@procore/text-editor 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jest/ckeditorMock.js +2 -0
- package/.jest/ckeditorUtilsMock.js +14 -0
- package/CHANGELOG.md +30 -0
- package/dist/DebouncedTextEditor/DebouncedTextEditor.js +1 -1
- package/dist/DebouncedTextEditor/DebouncedTextEditor.js.map +1 -1
- package/dist/DebouncedTextEditor/index.js.map +1 -1
- package/dist/TextEditor/CKTextEditor.js +15 -9
- package/dist/TextEditor/CKTextEditor.js.map +1 -1
- package/dist/TextEditor/EditorError.js.map +1 -1
- package/dist/TextEditor/Providers/FeatureFlagProvider.js.map +1 -1
- package/dist/TextEditor/StickyToolbar/index.js.map +1 -1
- package/dist/TextEditor/StickyToolbar/useStickyToolbar.js.map +1 -1
- package/dist/TextEditor/StickyToolbar/useStickyToolbar.types.js.map +1 -1
- package/dist/TextEditor/TextEditor.js.map +1 -1
- package/dist/TextEditor/TextEditor.styles.d.ts +7 -8
- package/dist/TextEditor/TextEditor.styles.js +5 -5
- package/dist/TextEditor/TextEditor.styles.js.map +1 -1
- package/dist/TextEditor/TextEditor.types.d.ts +1 -1
- package/dist/TextEditor/TextEditor.types.js.map +1 -1
- package/dist/TextEditor/TextEditorI18nProvider.js.map +1 -1
- package/dist/TextEditor/TextEditorProvider.js.map +1 -1
- package/dist/TextEditor/TextEditorProvider.types.d.ts +1 -1
- package/dist/TextEditor/TextEditorProvider.types.js.map +1 -1
- package/dist/TextEditor/TinyMCETextEditor.js.map +1 -1
- package/dist/TextEditor/index.d.ts +1 -1
- package/dist/TextEditor/index.js +0 -1
- package/dist/TextEditor/index.js.map +1 -1
- package/dist/TextEditor/license_key.js.map +1 -1
- package/dist/TextEditor/plugins/CutPlugin/CutCommand.js +21 -29
- package/dist/TextEditor/plugins/CutPlugin/CutCommand.js.map +1 -1
- package/dist/TextEditor/plugins/CutPlugin/CutPlugin.js +2 -2
- package/dist/TextEditor/plugins/CutPlugin/CutPlugin.js.map +1 -1
- package/dist/TextEditor/plugins/CutPlugin/index.js.map +1 -1
- package/dist/TextEditor/plugins/IndentPaddingToMarginPlugin/IndentPaddingToMarginPlugin.js.map +1 -1
- package/dist/TextEditor/plugins/IndentPaddingToMarginPlugin/index.js.map +1 -1
- package/dist/TextEditor/plugins/NormalizeTableWidthPlugin/NormalizeTableWidthPlugin.js.map +1 -1
- package/dist/TextEditor/plugins/NormalizeTableWidthPlugin/index.js.map +1 -1
- package/dist/TextEditor/plugins/PasteAsTextPlugin/PasteAsTextCommand.js +20 -28
- package/dist/TextEditor/plugins/PasteAsTextPlugin/PasteAsTextCommand.js.map +1 -1
- package/dist/TextEditor/plugins/PasteAsTextPlugin/PasteAsTextPlugin.js +2 -2
- package/dist/TextEditor/plugins/PasteAsTextPlugin/PasteAsTextPlugin.js.map +1 -1
- package/dist/TextEditor/plugins/PasteAsTextPlugin/index.js.map +1 -1
- package/dist/TextEditor/plugins/PastePlugin/PasteCommand.js +54 -62
- package/dist/TextEditor/plugins/PastePlugin/PasteCommand.js.map +1 -1
- package/dist/TextEditor/plugins/PastePlugin/PastePlugin.js +2 -2
- package/dist/TextEditor/plugins/PastePlugin/PastePlugin.js.map +1 -1
- package/dist/TextEditor/plugins/PastePlugin/index.js.map +1 -1
- package/dist/TextEditor/plugins/ProcoreImageUploadPlugin/ProcoreImageUploadPlugin.d.ts +1 -1
- package/dist/TextEditor/plugins/ProcoreImageUploadPlugin/ProcoreImageUploadPlugin.js +50 -59
- package/dist/TextEditor/plugins/ProcoreImageUploadPlugin/ProcoreImageUploadPlugin.js.map +1 -1
- package/dist/TextEditor/plugins/ProcoreImageUploadPlugin/index.js.map +1 -1
- package/dist/TextEditor/plugins/TabSpacesPlugin/TabSpacesPlugin.js.map +1 -1
- package/dist/TextEditor/plugins/TabSpacesPlugin/index.js.map +1 -1
- package/dist/TextEditor/textEditorTheming/icons.js.map +1 -1
- package/dist/TextEditor/textEditorTheming/index.js.map +1 -1
- package/dist/TextEditor/textEditorTheming/textEditorTheming.styles.d.ts +0 -1
- package/dist/TextEditor/textEditorTheming/textEditorTheming.styles.js.map +1 -1
- package/dist/TextEditor/useCKEditorCss.js.map +1 -1
- package/dist/TextEditor/useCKEditorFocusScope.js.map +1 -1
- package/dist/TextEditor/useTabAsNavigation.js.map +1 -1
- package/dist/TextEditor/utils/config.js +29 -4
- package/dist/TextEditor/utils/config.js.map +1 -1
- package/dist/TextEditor/utils/imageAttributes.js.map +1 -1
- package/dist/TextEditor/utils/imageUrls.js.map +1 -1
- package/dist/TextEditor/utils/index.js.map +1 -1
- package/dist/TextEditor/utils/locale.js +12 -1
- package/dist/TextEditor/utils/locale.js.map +1 -1
- package/dist/TextEditor/utils/richTextEditorHandlers.d.ts +2 -2
- package/dist/TextEditor/utils/richTextEditorHandlers.js +62 -81
- package/dist/TextEditor/utils/richTextEditorHandlers.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.d.ts +0 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +2 -2
- package/dist/TextEditorOutput/TextEditorOutput.styles.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.types.d.ts +0 -1
- package/dist/TextEditorOutput/TextEditorOutput.types.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.utils.js +12 -4
- package/dist/TextEditorOutput/TextEditorOutput.utils.js.map +1 -1
- package/dist/TextEditorOutput/index.js.map +1 -1
- package/dist/_storyHelpers/constants.js.map +1 -1
- package/dist/_typedoc/TextEditor/TextEditor.types.json +153 -153
- package/dist/_typedoc/TextEditor/TextEditorProvider.types.json +4 -4
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +9 -9
- package/dist/_utils/propsTypedoc.d.ts +3 -3
- package/dist/_utils/propsTypedoc.js +1 -3
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/dist/ckeditor5-premium-features.d.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/locales/de-DE.json +17 -0
- package/dist/locales/en-AU.json +17 -0
- package/dist/locales/en-CA.json +17 -0
- package/dist/locales/en-GB.json +17 -0
- package/dist/locales/es-ES.json +17 -0
- package/dist/locales/es.json +17 -0
- package/dist/locales/fr-CA.json +17 -0
- package/dist/locales/fr-FR.json +17 -0
- package/dist/locales/is-IS.json +17 -0
- package/dist/locales/it-IT.json +17 -0
- package/dist/locales/ja-JP.json +17 -0
- package/dist/locales/nb-NO.json +17 -0
- package/dist/locales/pl-PL.json +17 -0
- package/dist/locales/pt-BR.json +17 -0
- package/dist/locales/pt-PT.json +17 -0
- package/dist/locales/th-TH.json +17 -0
- package/dist/locales/zh-SG.json +17 -0
- package/dist/locales/zh-TW.json +17 -0
- package/dist/stories/util.js.map +1 -1
- package/dist/utils/debounce.js +1 -1
- package/dist/utils/debounce.js.map +1 -1
- package/jestConfig.js +0 -2
- package/package.json +44 -42
- package/.jest/translationMock.js +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/text-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Rich text editor component based on CKEditor 5",
|
|
5
5
|
"author": "Procore Technologies",
|
|
6
6
|
"homepage": "https://github.com/procore/core/tree/main/packages/text-editor",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"build": "yarn run clean && yarn run build:esm & yarn run build:types & yarn run build:typedoc",
|
|
54
54
|
"build-storybook": "storybook build --webpack-stats-json",
|
|
55
55
|
"build:esm": "BUNDLING=true babel src --out-dir dist --extensions '.ts,.tsx,.js,.snap' -s --copy-files --no-copy-ignored",
|
|
56
|
-
"build:typedoc": "ts-node typedoc.ts",
|
|
56
|
+
"build:typedoc": "ts-node --project tsconfig.typedoc.json typedoc.ts",
|
|
57
57
|
"build:types": "tsc --declaration --emitDeclarationOnly -p tsconfig.prod.json",
|
|
58
58
|
"chromatic": "dotenvx run -- chromatic",
|
|
59
59
|
"chromatic:ci": "chromatic --ci --storybook-build-dir ./storybook-static --project-token=${CHROMATIC_TEXT_EDITOR_TOKEN} --exit-once-uploaded --only-changed --skip=\"dependabot*\"",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"dev": "NODE_ENV=development yarn run dev:ts",
|
|
62
62
|
"dev:ts": "tsc -p tsconfig.prod.json --watch",
|
|
63
63
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx src",
|
|
64
|
-
"lint:types": "tsc -p tsconfig.prod.json --noEmit",
|
|
64
|
+
"lint:types": "tsc -p tsconfig.prod.json --noEmit && tsc -p tsconfig.typedoc.json --noEmit",
|
|
65
65
|
"lint:types:watch": "tsc -p . --noEmit --watch",
|
|
66
66
|
"storybook": "storybook dev -p 6008",
|
|
67
67
|
"test": "TZ=America/Los_Angeles jest --runInBand --logHeapUsage",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"test:watch": "yarn run test --watch"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@procore/core-react": "^12.
|
|
72
|
+
"@procore/core-react": "^12.53.1",
|
|
73
73
|
"@procore/globalization-toolkit": ">= 3 < 4",
|
|
74
74
|
"ckeditor5": ">= 47 < 49",
|
|
75
75
|
"ckeditor5-premium-features": ">= 47 < 49",
|
|
@@ -79,27 +79,27 @@
|
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@ckeditor/ckeditor5-react": "^11.1.2",
|
|
82
|
-
"@procore/cdn-translations": "^1.0.
|
|
82
|
+
"@procore/cdn-translations": "^1.0.1",
|
|
83
83
|
"@procore/core-http": "^13.1.0",
|
|
84
84
|
"@procore/core-i18n-js": "^10.30.0",
|
|
85
|
-
"@procore/core-icons": "^12.
|
|
85
|
+
"@procore/core-icons": "^12.19.0",
|
|
86
86
|
"@procore/toast-alert": "^5.2.0",
|
|
87
87
|
"@procore/web-sdk-env-utils": "^0.1.0",
|
|
88
88
|
"@procore/web-sdk-feature-toggle": "^2.7.0",
|
|
89
|
-
"@react-aria/focus": "3.
|
|
90
|
-
"@react-aria/utils": "3.
|
|
89
|
+
"@react-aria/focus": "^3.21.2",
|
|
90
|
+
"@react-aria/utils": "^3.31.0",
|
|
91
91
|
"sanitize-html": "^2.17.0"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@babel/cli": "^7.22.10",
|
|
95
95
|
"@babel/core": "^7.22.1",
|
|
96
|
-
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
|
97
|
-
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
98
|
-
"@babel/preset-env": "7.
|
|
99
|
-
"@babel/preset-react": "7.
|
|
100
|
-
"@babel/preset-typescript": "7.
|
|
101
|
-
"@babel/register": "7.18.9",
|
|
102
|
-
"@procore/core-react": "^12.
|
|
96
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
97
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
98
|
+
"@babel/preset-env": "^7.25.0",
|
|
99
|
+
"@babel/preset-react": "^7.24.1",
|
|
100
|
+
"@babel/preset-typescript": "^7.24.1",
|
|
101
|
+
"@babel/register": "^7.18.9",
|
|
102
|
+
"@procore/core-react": "^12.53.1",
|
|
103
103
|
"@procore/globalization-toolkit": "3.0.0",
|
|
104
104
|
"@storybook/addon-webpack5-compiler-swc": "^4.0.2",
|
|
105
105
|
"@storybook/jest": "^0.2.3",
|
|
@@ -109,42 +109,44 @@
|
|
|
109
109
|
"@testing-library/jest-dom": "5.16.4",
|
|
110
110
|
"@testing-library/react": "16.3.0",
|
|
111
111
|
"@testing-library/user-event": "14.4.3",
|
|
112
|
-
"@types/fs-extra": "11.0.1",
|
|
113
|
-
"@types/glob": "8.0.1",
|
|
114
|
-
"@types/jest": "29.4.0",
|
|
115
|
-
"@types/
|
|
116
|
-
"@types/react
|
|
112
|
+
"@types/fs-extra": "^11.0.1",
|
|
113
|
+
"@types/glob": "^8.0.1",
|
|
114
|
+
"@types/jest": "^29.4.0",
|
|
115
|
+
"@types/markdown-it": "^14.1.2",
|
|
116
|
+
"@types/react": "^18.3.1",
|
|
117
|
+
"@types/react-dom": "^18.3.1",
|
|
117
118
|
"@types/sanitize-html": "^2.16.0",
|
|
118
|
-
"@typescript-eslint/eslint-plugin": "
|
|
119
|
-
"@typescript-eslint/parser": "
|
|
120
|
-
"babel-core": "7.0.0-bridge.0",
|
|
121
|
-
"babel-jest": "29.1.2",
|
|
122
|
-
"babel-loader": "8.2.5",
|
|
123
|
-
"babel-plugin-styled-components": "2.1.4",
|
|
119
|
+
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
120
|
+
"@typescript-eslint/parser": "^8.26.0",
|
|
121
|
+
"babel-core": "^7.0.0-bridge.0",
|
|
122
|
+
"babel-jest": "^29.1.2",
|
|
123
|
+
"babel-loader": "^8.2.5",
|
|
124
|
+
"babel-plugin-styled-components": "^2.1.4",
|
|
124
125
|
"chromatic": "^13.1.3",
|
|
125
|
-
"ckeditor5": "48.1.1",
|
|
126
|
-
"ckeditor5-premium-features": "48.1.1",
|
|
126
|
+
"ckeditor5": "^48.1.1",
|
|
127
|
+
"ckeditor5-premium-features": "^48.1.1",
|
|
127
128
|
"css-loader": "^7.1.2",
|
|
128
|
-
"eslint": "8.
|
|
129
|
-
"eslint-config-prettier": "
|
|
129
|
+
"eslint": "^8.52.0",
|
|
130
|
+
"eslint-config-prettier": "^9.0.0",
|
|
130
131
|
"eslint-config-react-app": "^7.0.1",
|
|
131
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
132
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
132
133
|
"eslint-plugin-storybook": "^9.1.16",
|
|
133
|
-
"fs-extra": "11.1.1",
|
|
134
|
-
"glob": "8.1.0",
|
|
135
|
-
"jest": "29.
|
|
136
|
-
"jest-styled-components": "7.2.0",
|
|
134
|
+
"fs-extra": "^11.1.1",
|
|
135
|
+
"glob": "^8.1.0",
|
|
136
|
+
"jest": "^29.5.0",
|
|
137
|
+
"jest-styled-components": "^7.2.0",
|
|
138
|
+
"markdown-it": "^14.3.0",
|
|
137
139
|
"postcss-loader": "^8.1.1",
|
|
138
|
-
"react": "18.3.1",
|
|
139
|
-
"react-dom": "18.3.1",
|
|
140
|
+
"react": "^18.3.1",
|
|
141
|
+
"react-dom": "^18.3.1",
|
|
140
142
|
"rimraf": "^6.0.1",
|
|
141
143
|
"storybook": "^9.1.17",
|
|
142
144
|
"style-loader": "^4.0.0",
|
|
143
|
-
"styled-components": "6.1.18",
|
|
145
|
+
"styled-components": "^6.1.18",
|
|
144
146
|
"ts-jest": "^29.0.5",
|
|
145
|
-
"ts-node": "10.9.1",
|
|
146
|
-
"typedoc": "0.
|
|
147
|
-
"typescript": "
|
|
148
|
-
"webpack": "5.96.1"
|
|
147
|
+
"ts-node": "^10.9.1",
|
|
148
|
+
"typedoc": "^0.28.20",
|
|
149
|
+
"typescript": "~5.8.3",
|
|
150
|
+
"webpack": "^5.96.1"
|
|
149
151
|
}
|
|
150
152
|
}
|
package/.jest/translationMock.js
DELETED