mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 00:21:47 +08:00
Various licensing fixes (#1380)
* various licensing fixes * fix spacing * add license to README
This commit is contained in:
@ -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).
|
||||
|
@ -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');
|
||||
|
@ -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
|
||||
|
@ -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');
|
||||
|
@ -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';
|
||||
|
@ -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');
|
||||
|
@ -39,5 +39,6 @@
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
},
|
||||
"cracoConfig": "config/craco.config.js"
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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');
|
||||
|
@ -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',
|
||||
},
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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';
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user