diff --git a/package-lock.json b/package-lock.json index 98afc2f..f535aa2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,6 +49,7 @@ } }, "examples/playground": { + "name": "@pdejs/playground", "version": "0.0.1", "license": "Apache-2.0", "dependencies": { @@ -63,6 +64,9 @@ "name": "@pdejs/simple", "version": "0.0.1", "license": "Apache-2.0", + "dependencies": { + "@pdejs/core": "*" + }, "devDependencies": { "vite": "^3.1.4" } @@ -6201,7 +6205,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz", "integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==", - "dev": true, "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -6236,7 +6239,6 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz", "integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==", - "dev": true, "dependencies": { "camel-case": "^4.1.2", "capital-case": "^1.0.4", @@ -6719,7 +6721,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", "integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==", - "dev": true, "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -10171,7 +10172,6 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", - "dev": true, "dependencies": { "capital-case": "^1.0.4", "tslib": "^2.0.3" @@ -13617,7 +13617,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", "integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==", - "dev": true, "dependencies": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -16268,7 +16267,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz", "integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==", - "dev": true, "dependencies": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -16558,7 +16556,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", - "dev": true, "dependencies": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -18283,7 +18280,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz", "integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==", - "dev": true, "dependencies": { "tslib": "^2.0.3" } @@ -18292,7 +18288,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz", "integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==", - "dev": true, "dependencies": { "tslib": "^2.0.3" } @@ -19783,10 +19778,12 @@ "name": "@pdejs/core", "version": "0.0.1", "license": "Apache-2.0", + "dependencies": { + "change-case": "^4.1.2" + }, "devDependencies": { "@babel/core": "^7.18.13", "@types/jest": "^28.1.7", - "change-case": "^4.1.2", "cli-color": "^2.0.3", "esbuild-loader": "^2.19.0", "jest": "^28.1.3", @@ -22752,7 +22749,8 @@ "@pdejs/simple": { "version": "file:examples/simple", "requires": { - "vite": "*" + "@pdejs/core": "*", + "vite": "^3.1.4" } }, "@pdejs/tool-block-paragraph": { @@ -24589,7 +24587,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz", "integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==", - "dev": true, "requires": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -24614,7 +24611,6 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz", "integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==", - "dev": true, "requires": { "camel-case": "^4.1.2", "capital-case": "^1.0.4", @@ -24991,7 +24987,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", "integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==", - "dev": true, "requires": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -27472,7 +27467,6 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", - "dev": true, "requires": { "capital-case": "^1.0.4", "tslib": "^2.0.3" @@ -30006,7 +30000,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", "integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==", - "dev": true, "requires": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -31934,7 +31927,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz", "integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==", - "dev": true, "requires": { "no-case": "^3.0.4", "tslib": "^2.0.3", @@ -32172,7 +32164,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", - "dev": true, "requires": { "dot-case": "^3.0.4", "tslib": "^2.0.3" @@ -33370,7 +33361,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz", "integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==", - "dev": true, "requires": { "tslib": "^2.0.3" } @@ -33379,7 +33369,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz", "integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==", - "dev": true, "requires": { "tslib": "^2.0.3" } diff --git a/packages/core/package.json b/packages/core/package.json index 6f1ccb2..e7332f0 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -48,10 +48,12 @@ "bugs": { "url": "https://github.com/cam-inc/pde.js/issues" }, + "dependencies": { + "change-case": "^4.1.2" + }, "devDependencies": { "@babel/core": "^7.18.13", "@types/jest": "^28.1.7", - "change-case": "^4.1.2", "cli-color": "^2.0.3", "esbuild-loader": "^2.19.0", "jest": "^28.1.3", diff --git a/packages/core/src/component.ts b/packages/core/src/component.ts index d87958f..3314c92 100644 --- a/packages/core/src/component.ts +++ b/packages/core/src/component.ts @@ -1,3 +1,42 @@ +/** + * The implementation included in this file is based on Preact. + * Variables, functions, modules, etc. are renamed to names that are easier for us to interpret. + * + * Here is the file referenced and the original license. + * + * --- REFERENCED FILE --- + * + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/component.js + * + * --- --- + * + * --- ORIGINAL LICENSE --- + * + * The MIT License (MIT) + * + * Copyright (c) 2015-present Jason Miller + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * --- --- + */ + import { PDJSX, VNode, Component as ComponentType } from './types'; import { Fragment } from './create-element'; import { assign } from './helpers'; diff --git a/packages/core/src/create-element.ts b/packages/core/src/create-element.ts index ba77f77..28c7449 100644 --- a/packages/core/src/create-element.ts +++ b/packages/core/src/create-element.ts @@ -1,3 +1,42 @@ +/** + * The implementation included in this file is based on Preact. + * Variables, functions, modules, etc. are renamed to names that are easier for us to interpret. + * + * Here is the file referenced and the original license. + * + * --- REFERENCED FILE --- + * + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/create-element.js + * + * --- --- + * + * --- ORIGINAL LICENSE --- + * + * The MIT License (MIT) + * + * Copyright (c) 2015-present Jason Miller + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * --- --- + */ + import { VNodeProps, VNode, Props } from './types'; let vNodeId = 0; diff --git a/packages/core/src/hooks.ts b/packages/core/src/hooks.ts index 52410d4..ba90018 100644 --- a/packages/core/src/hooks.ts +++ b/packages/core/src/hooks.ts @@ -1,3 +1,42 @@ +/** + * The implementation included in this file is based on Preact. + * Variables, functions, modules, etc. are renamed to names that are easier for us to interpret. + * + * Here is the file referenced and the original license. + * + * --- REFERENCED FILE --- + * + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/hooks/src/index.js + * + * --- --- + * + * --- ORIGINAL LICENSE --- + * + * The MIT License (MIT) + * + * Copyright (c) 2015-present Jason Miller + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * --- --- + */ + import { Component as ComponentType } from './types'; import { options } from './options'; diff --git a/packages/core/src/options.ts b/packages/core/src/options.ts index 0c284a5..de61e68 100644 --- a/packages/core/src/options.ts +++ b/packages/core/src/options.ts @@ -1,3 +1,42 @@ +/** + * The implementation included in this file is based on Preact. + * Variables, functions, modules, etc. are renamed to names that are easier for us to interpret. + * + * Here is the file referenced and the original license. + * + * --- REFERENCED FILE --- + * + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/options.js + * + * --- --- + * + * --- ORIGINAL LICENSE --- + * + * The MIT License (MIT) + * + * Copyright (c) 2015-present Jason Miller + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * --- --- + */ + import { Component, VNode } from './types'; export type Options = { diff --git a/packages/core/src/reconciler/childlen.ts b/packages/core/src/reconciler/childlen.ts index 1f9a2c1..cd435bb 100644 --- a/packages/core/src/reconciler/childlen.ts +++ b/packages/core/src/reconciler/childlen.ts @@ -1,3 +1,42 @@ +/** + * The implementation included in this file is based on Preact. + * Variables, functions, modules, etc. are renamed to names that are easier for us to interpret. + * + * Here is the file referenced and the original license. + * + * --- REFERENCED FILE --- + * + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/diff/children.js + * + * --- --- + * + * --- ORIGINAL LICENSE --- + * + * The MIT License (MIT) + * + * Copyright (c) 2015-present Jason Miller + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * --- --- + */ + import { createVNode, Fragment } from '../create-element'; import { reconcile, unmount } from '.'; import { diff --git a/packages/core/src/reconciler/elements.ts b/packages/core/src/reconciler/elements.ts index 6be4fbe..e845514 100644 --- a/packages/core/src/reconciler/elements.ts +++ b/packages/core/src/reconciler/elements.ts @@ -1,3 +1,42 @@ +/** + * The implementation included in this file is based on Preact. + * Variables, functions, modules, etc. are renamed to names that are easier for us to interpret. + * + * Here is the file referenced and the original license. + * + * --- REFERENCED FILE --- + * + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/diff/index.js + * + * --- --- + * + * --- ORIGINAL LICENSE --- + * + * The MIT License (MIT) + * + * Copyright (c) 2015-present Jason Miller + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * --- --- + */ + import { isEditorJSVNode } from '../helpers'; import { Component as ComponentType, PDJSX, VNode } from '../types'; import { reconcileChildren } from './childlen'; diff --git a/packages/core/src/reconciler/index.ts b/packages/core/src/reconciler/index.ts index 3b685cf..00964a2 100644 --- a/packages/core/src/reconciler/index.ts +++ b/packages/core/src/reconciler/index.ts @@ -1,3 +1,42 @@ +/** + * The implementation included in this file is based on Preact. + * Variables, functions, modules, etc. are renamed to names that are easier for us to interpret. + * + * Here is the file referenced and the original license. + * + * --- REFERENCED FILE --- + * + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/diff/index.js + * + * --- --- + * + * --- ORIGINAL LICENSE --- + * + * The MIT License (MIT) + * + * Copyright (c) 2015-present Jason Miller + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * --- --- + */ + import { PDJSX, VNode, diff --git a/packages/core/src/reconciler/props.ts b/packages/core/src/reconciler/props.ts index 85c57db..77567ad 100644 --- a/packages/core/src/reconciler/props.ts +++ b/packages/core/src/reconciler/props.ts @@ -1,3 +1,42 @@ +/** + * The implementation included in this file is based on Preact. + * Variables, functions, modules, etc. are renamed to names that are easier for us to interpret. + * + * Here is the file referenced and the original license. + * + * --- REFERENCED FILE --- + * + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/diff/props.js + * + * --- --- + * + * --- ORIGINAL LICENSE --- + * + * The MIT License (MIT) + * + * Copyright (c) 2015-present Jason Miller + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * --- --- + */ + import { options } from '../options'; import { hasOwnProperty, isReadOnlyHtmlAttribute } from '../helpers'; import { PDJSX, VNode } from '../types'; diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 08f623b..e4afa00 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -1,14 +1,45 @@ -import { - PasteEvent, - BlockToolConstructorOptions, - InlineToolConstructorOptions, - API, - ToolConfig, - BlockAPI, - EditorConfig, - BlockToolData, -} from '@editorjs/editorjs'; -import { BlockTuneData } from '@editorjs/editorjs/types/block-tunes/block-tune-data'; +/** + * The implementation included in this file is based on Preact. + * Variables, functions, modules, etc. are renamed to names that are easier for us to interpret. + * + * Here is the files referenced and the original license. + * + * --- REFERENCED FILES --- + * + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/jsx.d.ts + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/index.d.ts + * https://github.com/preactjs/preact/blob/17da4efa736f14c84cd9f36fca4420d94f0dd403/src/internal.d.ts + * + * --- --- + * + * --- ORIGINAL LICENSE --- + * + * The MIT License (MIT) + * + * Copyright (c) 2015-present Jason Miller + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * --- --- + */ + +import { PasteEvent, EditorConfig, BlockToolData } from '@editorjs/editorjs'; export type ComponentClass

= { new (props: P, context?: unknown): unknown; diff --git a/packages/core/vite.config.ts b/packages/core/vite.config.ts index 666ad96..7893beb 100644 --- a/packages/core/vite.config.ts +++ b/packages/core/vite.config.ts @@ -10,5 +10,6 @@ export default defineConfig({ }, outDir: path.resolve(__dirname, './dist'), emptyOutDir: false, + sourcemap: true, }, }); diff --git a/packages/tool-block-paragraph/vite.config.ts b/packages/tool-block-paragraph/vite.config.ts index 8b6b306..000687d 100644 --- a/packages/tool-block-paragraph/vite.config.ts +++ b/packages/tool-block-paragraph/vite.config.ts @@ -10,5 +10,6 @@ export default defineConfig({ }, outDir: path.resolve(__dirname, './dist'), emptyOutDir: false, + sourcemap: true, }, }); diff --git a/packages/tool-inline-marker/vite.config.ts b/packages/tool-inline-marker/vite.config.ts index 8b6b306..000687d 100644 --- a/packages/tool-inline-marker/vite.config.ts +++ b/packages/tool-inline-marker/vite.config.ts @@ -10,5 +10,6 @@ export default defineConfig({ }, outDir: path.resolve(__dirname, './dist'), emptyOutDir: false, + sourcemap: true, }, });