Various licensing fixes (#1380)

* various licensing fixes

* fix spacing

* add license to README
This commit is contained in:
Acy Watson
2022-02-25 16:05:03 -08:00
committed by acywatson
parent 642620f67e
commit 37e741251b
19 changed files with 152 additions and 3 deletions

View File

@ -297,3 +297,7 @@ Note: Lexical does not support Internet Explorer or legacy versions of Edge.
- `npm run debug-test-e2e:firefox` runs only firefox e2e tests in head mode for debugging.
- `npm run test-e2e:webkit` runs only webkit e2e tests.
- `npm run debug-test-e2e:webkit` runs only webkit e2e tests in head mode for debugging.
### License
Lexical is [MIT licensed](./LICENSE).

View File

@ -1,3 +1,11 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
'use strict';
module.exports = require('./dist/LexicalClipboard.js');

View File

@ -24,7 +24,7 @@ declare export function $insertDataTransferForRichText(
): void;
declare export function getHtmlContent(editor: LexicalEditor): string;
declare export function getLexicalContent(editor: LexicalEditor): string;
declare export function $getLexicalContent(editor: LexicalEditor): string;
/*
* Plain Text

View File

@ -1,3 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
'use strict';
module.exports = require('./dist/LexicalFile.js');

View File

@ -1,3 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/
import useLexicalRichText from '@lexical/react/DEPRECATED_useLexicalRichText';
import {createEditor} from 'lexical';
import ExtendedNodes from 'lexical/ExtendedNodes';

View File

@ -1,3 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
'use strict';
module.exports = require('./dist/LexicalList.js');

View File

@ -39,5 +39,6 @@
"last 1 firefox version",
"last 1 safari version"
]
}
},
"cracoConfig": "config/craco.config.js"
}

View File

@ -1,3 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/
@import 'https://fonts.googleapis.com/css?family=Reenie+Beanie';
body {

View File

@ -1,3 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/
import type {LexicalEditor} from 'lexical';
import {

View File

@ -1,3 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
'use strict';
module.exports = require('./dist/LexicalTable.js');

View File

@ -85,6 +85,25 @@ const config = {
],
title: 'More',
},
{
// Please do not remove the privacy and terms, it's a legal requirement.
items: [
{
href: 'https://opensource.facebook.com/legal/privacy/',
label: 'Privacy',
rel: 'noreferrer noopener',
target: '_blank',
},
{
href: 'https://opensource.facebook.com/legal/terms/',
label: 'Terms',
rel: 'noreferrer noopener',
target: '_blank',
},
],
title: 'Legal',
},
],
style: 'dark',
},

View File

@ -1,3 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
'use strict';
module.exports = require('./dist/LexicalYjs.js');

View File

@ -1,3 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
'use strict';
module.exports = require('./dist/Lexical.js');

View File

@ -1,5 +1,14 @@
#!/usr/bin/env node
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/
'use strict';
const LEXICAL_PKG = 'lexical';

View File

@ -1,5 +1,14 @@
#!/usr/bin/env node
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/
'use strict';
const {exec} = require('child-process-promise');

View File

@ -1,5 +1,14 @@
#!/usr/bin/env node
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/
'use strict';
const {exec} = require('child-process-promise');

View File

@ -1,5 +1,14 @@
#!/usr/bin/env node
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/
'use strict';
const readline = require('readline');
@ -12,7 +21,7 @@ async function publish() {
console.info(
`You're about to publish:
${pkgs.join('\n')}
Type "publish" to confirm.`,
);
await waitForInput();

View File

@ -1,3 +1,12 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/
'use strict';
const ClosureCompiler = require('google-closure-compiler').compiler;