@procore/text-editor 1.1.0 → 1.2.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 +1 -0
- package/.jest/setupTests.js +1 -2
- package/CHANGELOG.md +9 -0
- package/README.md +15 -0
- package/dist/TextEditor/CKTextEditor.js +7 -3
- package/dist/TextEditor/CKTextEditor.js.map +1 -1
- package/dist/TextEditor/TextEditor.styles.js +6 -6
- package/dist/TextEditor/TextEditor.styles.js.map +1 -1
- package/dist/TextEditor/TextEditor.types.d.ts +28 -8
- package/dist/TextEditor/TextEditor.types.js.map +1 -1
- package/dist/TextEditor/TinyMCETextEditor.js +2 -1
- package/dist/TextEditor/TinyMCETextEditor.js.map +1 -1
- package/dist/TextEditor/plugins/ProcoreImageUploadPlugin/ProcoreImageUploadPlugin.d.ts +6 -0
- package/dist/TextEditor/plugins/ProcoreImageUploadPlugin/ProcoreImageUploadPlugin.js +114 -14
- package/dist/TextEditor/plugins/ProcoreImageUploadPlugin/ProcoreImageUploadPlugin.js.map +1 -1
- package/dist/TextEditor/utils/config.js +3 -3
- package/dist/TextEditor/utils/config.js.map +1 -1
- package/dist/TextEditor/utils/richTextEditorHandlers.d.ts +4 -1
- package/dist/TextEditor/utils/richTextEditorHandlers.js +79 -21
- package/dist/TextEditor/utils/richTextEditorHandlers.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +2 -2
- package/dist/TextEditorOutput/TextEditorOutput.styles.js.map +1 -1
- package/dist/_typedoc/TextEditor/TextEditor.types.json +323 -49
- package/dist/_typedoc/TextEditor/TextEditorProvider.types.json +2 -2
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +3 -3
- package/dist/_typedoc/deprecations.json +1 -1
- package/dist/locales/en.json +1 -0
- package/package.json +7 -7
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "",
|
|
11
11
|
"descriptionHtml": "",
|
|
12
12
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditorProvider.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/30db3ef62c93214770a670ede426a76e83e299ad/packages/text-editor/src/TextEditor/TextEditorProvider.types.ts#L9"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "features",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "- `stickyToolbar` - Have the editor toolbar stick to the top when content is longer than the page length.\n- `tabAsNavigation` - Have `Tab` key exit the editor. Support `Alt`/`Opt` + `Tab` as triple space indent.",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<ul>\n<li><code>stickyToolbar</code> - Have the editor toolbar stick to the top when content is longer than the page length.</li>\n<li><code>tabAsNavigation</code> - Have <code>Tab</code> key exit the editor. Support <code>Alt</code>/<code>Opt</code> + <code>Tab</code> as triple space indent.</li>\n</ul>\n</div></div>",
|
|
22
22
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditorProvider.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/30db3ef62c93214770a670ede426a76e83e299ad/packages/text-editor/src/TextEditor/TextEditorProvider.types.ts#L14"
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
"description": ""
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "Additional classNames",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional classNames</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.24.0</p></dd></dl></div>",
|
|
12
12
|
"sourceFile": "packages/text-editor/src/TextEditorOutput/TextEditorOutput.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/30db3ef62c93214770a670ede426a76e83e299ad/packages/text-editor/src/TextEditorOutput/TextEditorOutput.types.ts#L14"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "style",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Additional CSS styles",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Additional CSS styles</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.24.0</p></dd></dl></div>",
|
|
22
22
|
"sourceFile": "packages/text-editor/src/TextEditorOutput/TextEditorOutput.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/30db3ef62c93214770a670ede426a76e83e299ad/packages/text-editor/src/TextEditorOutput/TextEditorOutput.types.ts#L21"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "value",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"description": "Formatted text from `TextEditor`",
|
|
31
31
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Formatted text from <code>TextEditor</code></p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>10.24.0</p></dd></dl></div>",
|
|
32
32
|
"sourceFile": "packages/text-editor/src/TextEditorOutput/TextEditorOutput.types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/30db3ef62c93214770a670ede426a76e83e299ad/packages/text-editor/src/TextEditorOutput/TextEditorOutput.types.ts#L7"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"description": ""
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"interface":"TextEditorProps","property":"initialValue","deprecatedSince":"0.0.1","message":"`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead","deprecationKind":"prop"}]
|
|
1
|
+
[{"interface":"TextEditorBaseProps","property":"initialValue","deprecatedSince":"0.0.1","message":"`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead","deprecationKind":"prop"},{"interface":"TextEditorProps","property":"initialValue","deprecatedSince":"0.0.1","message":"`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead","deprecationKind":"prop"}]
|
package/dist/locales/en.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit": "You've reached the limit of %{count} images. Remove one before adding another.",
|
|
11
11
|
"unreadable": "This file couldn't be read as an image. Choose a different image and try again.",
|
|
12
12
|
"failed": "We couldn't upload this image. Check your connection and try again.",
|
|
13
|
+
"missingStorageInstructions": "Something went wrong uploading this image. Please try again.",
|
|
13
14
|
"invalidProstoreFileId": "Something went wrong uploading this image. Please try again.",
|
|
14
15
|
"invalidImageUrl": "Something went wrong uploading this image. Please try again."
|
|
15
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/text-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@procore/web-sdk-feature-toggle": "^2.7.0",
|
|
89
89
|
"@react-aria/focus": "^3.21.2",
|
|
90
90
|
"@react-aria/utils": "^3.31.0",
|
|
91
|
-
"sanitize-html": "^2.17.
|
|
91
|
+
"sanitize-html": "^2.17.5"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@babel/cli": "^7.22.10",
|
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
"@storybook/jest": "^0.2.3",
|
|
106
106
|
"@storybook/react-webpack5": "^9.1.16",
|
|
107
107
|
"@storybook/testing-library": "^0.2.2",
|
|
108
|
-
"@testing-library/dom": "
|
|
109
|
-
"@testing-library/jest-dom": "
|
|
110
|
-
"@testing-library/react": "16.3.0",
|
|
111
|
-
"@testing-library/user-event": "14.
|
|
108
|
+
"@testing-library/dom": "^10.4.0",
|
|
109
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
110
|
+
"@testing-library/react": "^16.3.0",
|
|
111
|
+
"@testing-library/user-event": "^14.6.1",
|
|
112
112
|
"@types/fs-extra": "^11.0.1",
|
|
113
113
|
"@types/glob": "^8.0.1",
|
|
114
114
|
"@types/jest": "^29.4.0",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"ckeditor5": "^48.1.1",
|
|
127
127
|
"ckeditor5-premium-features": "^48.1.1",
|
|
128
128
|
"css-loader": "^7.1.2",
|
|
129
|
-
"eslint": "^8.
|
|
129
|
+
"eslint": "^8.57.1",
|
|
130
130
|
"eslint-config-prettier": "^9.0.0",
|
|
131
131
|
"eslint-config-react-app": "^7.0.1",
|
|
132
132
|
"eslint-plugin-react-hooks": "^4.6.0",
|