@procore/text-editor 1.0.1 → 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 +3 -0
- package/.jest/ckeditorUtilsMock.js +14 -0
- package/.jest/setupTests.js +1 -2
- package/CHANGELOG.md +24 -0
- package/README.md +15 -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 +12 -8
- 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 +6 -6
- package/dist/TextEditor/TextEditor.styles.js.map +1 -1
- package/dist/TextEditor/TextEditor.types.d.ts +29 -9
- 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 +2 -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 +7 -1
- package/dist/TextEditor/plugins/ProcoreImageUploadPlugin/ProcoreImageUploadPlugin.js +162 -71
- 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 +30 -5
- 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 +5 -2
- package/dist/TextEditor/utils/richTextEditorHandlers.js +138 -99
- 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 +1 -1
- 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 +432 -158
- package/dist/_typedoc/TextEditor/TextEditorProvider.types.json +4 -4
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +9 -9
- package/dist/_typedoc/deprecations.json +1 -1
- 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/en.json +1 -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 +49 -47
- package/.jest/translationMock.js +0 -12
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"typeDetail": "<span class=\"tsd-signature-type\">ReactNode</span>",
|
|
10
10
|
"description": "",
|
|
11
11
|
"descriptionHtml": "",
|
|
12
|
-
"sourceFile": "TextEditor/TextEditorProvider.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
12
|
+
"sourceFile": "packages/text-editor/src/TextEditor/TextEditorProvider.types.ts",
|
|
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",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"typeDetail": "<span class=\"tsd-signature-type\">TextEditorFeatureToggle</span>",
|
|
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
|
-
"sourceFile": "TextEditor/TextEditorProvider.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
22
|
+
"sourceFile": "packages/text-editor/src/TextEditor/TextEditorProvider.types.ts",
|
|
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": ""
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
9
9
|
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
10
10
|
"description": "Additional classNames",
|
|
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
|
|
12
|
-
"sourceFile": "TextEditorOutput/TextEditorOutput.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
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
|
+
"sourceFile": "packages/text-editor/src/TextEditorOutput/TextEditorOutput.types.ts",
|
|
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",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"type": "<span class=\"tsd-signature-type\">CSSProperties</span>",
|
|
19
19
|
"typeDetail": "<span class=\"tsd-signature-type\">CSSProperties</span>",
|
|
20
20
|
"description": "Additional CSS styles",
|
|
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
|
|
22
|
-
"sourceFile": "TextEditorOutput/TextEditorOutput.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
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
|
+
"sourceFile": "packages/text-editor/src/TextEditorOutput/TextEditorOutput.types.ts",
|
|
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",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"type": "<span class=\"tsd-signature-type\">string</span>",
|
|
29
29
|
"typeDetail": "<span class=\"tsd-signature-type\">string</span>",
|
|
30
30
|
"description": "Formatted text from `TextEditor`",
|
|
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
|
|
32
|
-
"sourceFile": "TextEditorOutput/TextEditorOutput.types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
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
|
+
"sourceFile": "packages/text-editor/src/TextEditorOutput/TextEditorOutput.types.ts",
|
|
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"}]
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from '../TextEditor/TextEditor.types';
|
|
2
|
-
export * from '../TextEditor/TextEditorProvider.types';
|
|
3
|
-
export * from '../TextEditorOutput/TextEditorOutput.types';
|
|
1
|
+
export type * from '../TextEditor/TextEditor.types';
|
|
2
|
+
export type * from '../TextEditor/TextEditorProvider.types';
|
|
3
|
+
export type * from '../TextEditorOutput/TextEditorOutput.types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propsTypedoc.js","names":[],"sources":["../../src/_utils/propsTypedoc.ts"],"sourcesContent":["export * from '../TextEditor/TextEditor.types'\nexport * from '../TextEditor/TextEditorProvider.types'\nexport * from '../TextEditorOutput/TextEditorOutput.types'\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"propsTypedoc.js","names":[],"sources":["../../src/_utils/propsTypedoc.ts"],"sourcesContent":["export type * from '../TextEditor/TextEditor.types'\nexport type * from '../TextEditor/TextEditorProvider.types'\nexport type * from '../TextEditorOutput/TextEditorOutput.types'\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ckeditor5-premium-features.d.js","names":[],"sources":["../src/ckeditor5-premium-features.d.ts"],"sourcesContent":["declare module 'ckeditor5-premium-features' {\n import type { Editor, PluginConstructor } from 'ckeditor5'\n\n export const MultiLevelList: PluginConstructor<Editor>\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"ckeditor5-premium-features.d.js","names":[],"sources":["../src/ckeditor5-premium-features.d.ts"],"sourcesContent":["declare module 'ckeditor5-premium-features' {\n import type { Editor, PluginConstructor } from 'ckeditor5'\n\n export const MultiLevelList: PluginConstructor<Editor>\n}\n"],"mappings":"","ignoreList":[]}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export * from './DebouncedTextEditor'\nexport * from './TextEditor'\nexport * from './TextEditorOutput'\n"],"mappings":"AAAA,cAAc,uBAAuB;AACrC,cAAc,cAAc;AAC5B,cAAc,oBAAoB"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export * from './DebouncedTextEditor'\nexport * from './TextEditor'\nexport * from './TextEditorOutput'\n"],"mappings":"AAAA,cAAc,uBAAuB;AACrC,cAAc,cAAc;AAC5B,cAAc,oBAAoB","ignoreList":[]}
|
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/dist/stories/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","names":["Form","React","SingleForm","_ref","_ref$component","component","FieldComponent","Field","debug","initialValue","view","variant","props","_objectWithoutProperties","_excluded","columnOne","colStart","columnTwo","createElement","enableReinitialize","initialValues","value","onSubmit","values","alert","JSON","stringify","Row","_extends","name","label","description","disabled","error","BaseCRU"],"sources":["../../src/stories/util.tsx"],"sourcesContent":["import { Form } from '@procore/core-react'\nimport React from 'react'\n\ninterface SingleFormProps {\n component?: any\n debug?: boolean\n initialValue?: any\n variant?: React.ComponentProps<typeof Form>['variant']\n view?: React.ComponentProps<typeof Form>['view']\n // TODO: textEditorComponent: any\n}\n\n/**\n * Takes a Form Field component with TextEditor and creates\n * a full Form of one view and variant.\n */\nconst SingleForm = ({\n component: FieldComponent = Form.Field,\n debug,\n initialValue,\n view,\n variant,\n // TODO: textEditorComponent,\n ...props\n}: SingleFormProps) => {\n // removes colStart from DOM for traditional variant\n const columnOne = variant === 'traditional' ? {} : { colStart: 1 }\n const columnTwo = variant === 'traditional' ? {} : { colStart: 7 }\n\n return (\n <Form\n enableReinitialize\n initialValues={{\n value: initialValue,\n }}\n variant={variant}\n view={view}\n onSubmit={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <Form.Form>\n <Form.Row>\n <FieldComponent\n name=\"empty\"\n label=\"Empty Text\"\n description=\"Empty Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnOne}\n {...props}\n />\n <FieldComponent\n name=\"value\"\n label=\"Initial Value Text\"\n description=\"Initial Value Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnTwo}\n {...props}\n />\n </Form.Row>\n <Form.Row>\n <FieldComponent\n name=\"disabled-empty\"\n disabled\n label=\"Disabled Empty Text\"\n description=\"Disabled Empty Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnOne}\n {...props}\n />\n <FieldComponent\n name=\"disabled-value\"\n disabled\n label=\"Disabled Initial Value Text\"\n description=\"Disabled Initial Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnTwo}\n {...props}\n />\n </Form.Row>\n <Form.Row>\n <FieldComponent\n name=\"error-empty\"\n error\n label=\"Error Boolean Empty Text\"\n description=\"Error Boolean Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnOne}\n {...props}\n />\n <FieldComponent\n name=\"error-value\"\n error=\"Some error message that should be read red\"\n label=\"Error Message Initial Value Text\"\n description=\"Error Message Initial Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnTwo}\n {...props}\n />\n </Form.Row>\n </Form.Form>\n </Form>\n )\n}\n\n/** All variations for a field with TextEditor.\n * @example\n * <BaseCRU\n component={Form.RichText}\n initialValue=\"<p>Hello</p>\"\n textEditorComponent={TextEditor}\n />\n */\nexport function BaseCRU<Element extends React.JSXElementConstructor<any>>(\n props: Omit<SingleFormProps, 'component'> & {\n component: Element\n // TODO: textEditorComponent: any\n } & Omit<React.ComponentProps<Element>, 'name'>\n) {\n return <SingleForm view=\"create\" {...props} />\n}\n"],"mappings":";;;;AAAA,SAASA,IAAI,QAAQ,qBAAqB;AAC1C,OAAOC,KAAK,MAAM,OAAO;AAWzB;AACA;AACA;AACA;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAQO;EAAA,IAAAC,cAAA,GAAAD,IAAA,CAPrBE,SAAS;IAAEC,cAAc,GAAAF,cAAA,cAAGJ,IAAI,CAACO,KAAK,GAAAH,cAAA;IACtCI,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,YAAY,GAAAN,IAAA,CAAZM,YAAY;IACZC,IAAI,GAAAP,IAAA,CAAJO,IAAI;IACJC,OAAO,GAAAR,IAAA,CAAPQ,OAAO;IAEJC,KAAK,GAAAC,wBAAA,CAAAV,IAAA,EAAAW,SAAA;EAER;EACA,IAAMC,SAAS,GAAGJ,OAAO,KAAK,aAAa,GAAG,CAAC,CAAC,GAAG;IAAEK,QAAQ,EAAE;EAAE,CAAC;EAClE,IAAMC,SAAS,GAAGN,OAAO,KAAK,aAAa,GAAG,CAAC,CAAC,GAAG;IAAEK,QAAQ,EAAE;EAAE,CAAC;EAElE,oBACEf,KAAA,CAAAiB,aAAA,CAAClB,IAAI;IACHmB,kBAAkB;IAClBC,aAAa,EAAE;M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sB,QAAA;IACbC,IAAI,EAAC,aAAa;IAClBI,KAAK;IACLH,KAAK,EAAC,0BAA0B;IAChCC,WAAW,EAAC;IACZ;EAAA,GACIhB,SAAS,EACTH,KAAK,CACV,CAAC,eACFX,KAAA,CAAAiB,aAAA,CAACZ,cAAc,EAAAsB,QAAA;IACbC,IAAI,EAAC,aAAa;IAClBI,KAAK,EAAC,4CAA4C;IAClDH,KAAK,EAAC,kCAAkC;IACxCC,WAAW,EAAC;IACZ;EAAA,GACId,SAAS,EACTL,KAAK,CACV,CACO,CACD,CACP,CAAC;AAEX,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASsB,OAAOA,CACrBtB,KAG+C,EAC/C;EACA,oBAAOX,KAAA,CAAAiB,aAAA,CAAChB,UAAU,EAAA0B,QAAA;IAAClB,IAAI,EAAC;EAAQ,GAAKE,KAAK,CAAG,CAAC;AAChD"}
|
|
1
|
+
{"version":3,"file":"util.js","names":["Form","React","SingleForm","_ref","_ref$component","component","FieldComponent","Field","debug","initialValue","view","variant","props","_objectWithoutProperties","_excluded","columnOne","colStart","columnTwo","createElement","enableReinitialize","initialValues","value","onSubmit","values","alert","JSON","stringify","Row","_extends","name","label","description","disabled","error","BaseCRU"],"sources":["../../src/stories/util.tsx"],"sourcesContent":["import { Form } from '@procore/core-react'\nimport React from 'react'\n\ninterface SingleFormProps {\n component?: any\n debug?: boolean\n initialValue?: any\n variant?: React.ComponentProps<typeof Form>['variant']\n view?: React.ComponentProps<typeof Form>['view']\n // TODO: textEditorComponent: any\n}\n\n/**\n * Takes a Form Field component with TextEditor and creates\n * a full Form of one view and variant.\n */\nconst SingleForm = ({\n component: FieldComponent = Form.Field,\n debug,\n initialValue,\n view,\n variant,\n // TODO: textEditorComponent,\n ...props\n}: SingleFormProps) => {\n // removes colStart from DOM for traditional variant\n const columnOne = variant === 'traditional' ? {} : { colStart: 1 }\n const columnTwo = variant === 'traditional' ? {} : { colStart: 7 }\n\n return (\n <Form\n enableReinitialize\n initialValues={{\n value: initialValue,\n }}\n variant={variant}\n view={view}\n onSubmit={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <Form.Form>\n <Form.Row>\n <FieldComponent\n name=\"empty\"\n label=\"Empty Text\"\n description=\"Empty Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnOne}\n {...props}\n />\n <FieldComponent\n name=\"value\"\n label=\"Initial Value Text\"\n description=\"Initial Value Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnTwo}\n {...props}\n />\n </Form.Row>\n <Form.Row>\n <FieldComponent\n name=\"disabled-empty\"\n disabled\n label=\"Disabled Empty Text\"\n description=\"Disabled Empty Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnOne}\n {...props}\n />\n <FieldComponent\n name=\"disabled-value\"\n disabled\n label=\"Disabled Initial Value Text\"\n description=\"Disabled Initial Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnTwo}\n {...props}\n />\n </Form.Row>\n <Form.Row>\n <FieldComponent\n name=\"error-empty\"\n error\n label=\"Error Boolean Empty Text\"\n description=\"Error Boolean Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnOne}\n {...props}\n />\n <FieldComponent\n name=\"error-value\"\n error=\"Some error message that should be read red\"\n label=\"Error Message Initial Value Text\"\n description=\"Error Message Initial Description\"\n // TODO: textEditorComponent={textEditorComponent}\n {...columnTwo}\n {...props}\n />\n </Form.Row>\n </Form.Form>\n </Form>\n )\n}\n\n/** All variations for a field with TextEditor.\n * @example\n * <BaseCRU\n component={Form.RichText}\n initialValue=\"<p>Hello</p>\"\n textEditorComponent={TextEditor}\n />\n */\nexport function BaseCRU<Element extends React.JSXElementConstructor<any>>(\n props: Omit<SingleFormProps, 'component'> & {\n component: Element\n // TODO: textEditorComponent: any\n } & Omit<React.ComponentProps<Element>, 'name'>\n) {\n return <SingleForm view=\"create\" {...props} />\n}\n"],"mappings":";;;;AAAA,SAASA,IAAI,QAAQ,qBAAqB;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,QAAA;IAAClB,IAAI,EAAC;EAAQ,GAAKE,KAAK,CAAG,CAAC;AAChD","ignoreList":[]}
|
package/dist/utils/debounce.js
CHANGED
|
@@ -29,7 +29,7 @@ export function debounce(func, wait) {
|
|
|
29
29
|
var _pending;
|
|
30
30
|
clearTimeout(timeout);
|
|
31
31
|
timeout = null;
|
|
32
|
-
(_pending = pending) === null || _pending === void 0
|
|
32
|
+
(_pending = pending) === null || _pending === void 0 || _pending();
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
return debounced;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debounce.js","names":["debounce","func","wait","immediate","arguments","length","undefined","timeout","pending","debounced","_this","_len","args","Array","_key","apply","callNow","clearTimeout","setTimeout","flush","_pending"],"sources":["../../src/utils/debounce.ts"],"sourcesContent":["export function debounce<T extends (...args: any[]) => void>(\n func: T,\n wait: number,\n immediate: boolean = false\n) {\n let timeout: ReturnType<typeof setTimeout> | null = null\n let pending: (() => void) | null = null\n\n const debounced = function (\n this: ThisParameterType<T>,\n ...args: Parameters<T>\n ): void {\n pending = () => func.apply(this, args)\n\n const callNow = immediate && timeout === null\n\n if (timeout !== null) {\n clearTimeout(timeout)\n }\n\n timeout = setTimeout(() => {\n timeout = null\n if (!immediate) {\n func.apply(this, args)\n }\n }, wait)\n\n if (callNow) {\n func.apply(this, args)\n }\n }\n\n debounced.flush = () => {\n if (timeout !== null) {\n clearTimeout(timeout)\n timeout = null\n pending?.()\n }\n }\n\n return debounced\n}\n"],"mappings":"AAAA,OAAO,SAASA,QAAQA,CACtBC,IAAO,EACPC,IAAY,EAEZ;EAAA,IADAC,SAAkB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAE1B,IAAIG,OAA6C,GAAG,IAAI;EACxD,IAAIC,OAA4B,GAAG,IAAI;EAEvC,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAA,EAGP;IAAA,IAAAC,KAAA;IAAA,SAAAC,IAAA,GAAAP,SAAA,CAAAC,MAAA,EADHO,IAAI,OAAAC,KAAA,CAAAF,IAAA,GAAAG,IAAA,MAAAA,IAAA,GAAAH,IAAA,EAAAG,IAAA;MAAJF,IAAI,CAAAE,IAAA,IAAAV,SAAA,CAAAU,IAAA;IAAA;IAEPN,OAAO,GAAG,SAAVA,OAAOA,CAAA;MAAA,OAASP,IAAI,CAACc,KAAK,CAACL,KAAI,EAAEE,IAAI,CAAC;IAAA;IAEtC,IAAMI,OAAO,GAAGb,SAAS,IAAII,OAAO,KAAK,IAAI;IAE7C,IAAIA,OAAO,KAAK,IAAI,EAAE;MACpBU,YAAY,CAACV,OAAO,CAAC;IACvB;IAEAA,OAAO,GAAGW,UAAU,CAAC,YAAM;MACzBX,OAAO,GAAG,IAAI;MACd,IAAI,CAACJ,SAAS,EAAE;QACdF,IAAI,CAACc,KAAK,CAACL,KAAI,EAAEE,IAAI,CAAC;MACxB;IACF,CAAC,EAAEV,IAAI,CAAC;IAER,IAAIc,OAAO,EAAE;MACXf,IAAI,CAACc,KAAK,CAAC,IAAI,EAAEH,IAAI,CAAC;IACxB;EACF,CAAC;EAEDH,SAAS,CAACU,KAAK,GAAG,YAAM;IACtB,IAAIZ,OAAO,KAAK,IAAI,EAAE;MAAA,IAAAa,QAAA;MACpBH,YAAY,CAACV,OAAO,CAAC;MACrBA,OAAO,GAAG,IAAI;MACd,CAAAa,QAAA,GAAAZ,OAAO,cAAAY,QAAA,
|
|
1
|
+
{"version":3,"file":"debounce.js","names":["debounce","func","wait","immediate","arguments","length","undefined","timeout","pending","debounced","_this","_len","args","Array","_key","apply","callNow","clearTimeout","setTimeout","flush","_pending"],"sources":["../../src/utils/debounce.ts"],"sourcesContent":["export function debounce<T extends (...args: any[]) => void>(\n func: T,\n wait: number,\n immediate: boolean = false\n) {\n let timeout: ReturnType<typeof setTimeout> | null = null\n let pending: (() => void) | null = null\n\n const debounced = function (\n this: ThisParameterType<T>,\n ...args: Parameters<T>\n ): void {\n pending = () => func.apply(this, args)\n\n const callNow = immediate && timeout === null\n\n if (timeout !== null) {\n clearTimeout(timeout)\n }\n\n timeout = setTimeout(() => {\n timeout = null\n if (!immediate) {\n func.apply(this, args)\n }\n }, wait)\n\n if (callNow) {\n func.apply(this, args)\n }\n }\n\n debounced.flush = () => {\n if (timeout !== null) {\n clearTimeout(timeout)\n timeout = null\n pending?.()\n }\n }\n\n return debounced\n}\n"],"mappings":"AAAA,OAAO,SAASA,QAAQA,CACtBC,IAAO,EACPC,IAAY,EAEZ;EAAA,IADAC,SAAkB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAE1B,IAAIG,OAA6C,GAAG,IAAI;EACxD,IAAIC,OAA4B,GAAG,IAAI;EAEvC,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAA,EAGP;IAAA,IAAAC,KAAA;IAAA,SAAAC,IAAA,GAAAP,SAAA,CAAAC,MAAA,EADHO,IAAI,OAAAC,KAAA,CAAAF,IAAA,GAAAG,IAAA,MAAAA,IAAA,GAAAH,IAAA,EAAAG,IAAA;MAAJF,IAAI,CAAAE,IAAA,IAAAV,SAAA,CAAAU,IAAA;IAAA;IAEPN,OAAO,GAAG,SAAVA,OAAOA,CAAA;MAAA,OAASP,IAAI,CAACc,KAAK,CAACL,KAAI,EAAEE,IAAI,CAAC;IAAA;IAEtC,IAAMI,OAAO,GAAGb,SAAS,IAAII,OAAO,KAAK,IAAI;IAE7C,IAAIA,OAAO,KAAK,IAAI,EAAE;MACpBU,YAAY,CAACV,OAAO,CAAC;IACvB;IAEAA,OAAO,GAAGW,UAAU,CAAC,YAAM;MACzBX,OAAO,GAAG,IAAI;MACd,IAAI,CAACJ,SAAS,EAAE;QACdF,IAAI,CAACc,KAAK,CAACL,KAAI,EAAEE,IAAI,CAAC;MACxB;IACF,CAAC,EAAEV,IAAI,CAAC;IAER,IAAIc,OAAO,EAAE;MACXf,IAAI,CAACc,KAAK,CAAC,IAAI,EAAEH,IAAI,CAAC;IACxB;EACF,CAAC;EAEDH,SAAS,CAACU,KAAK,GAAG,YAAM;IACtB,IAAIZ,OAAO,KAAK,IAAI,EAAE;MAAA,IAAAa,QAAA;MACpBH,YAAY,CAACV,OAAO,CAAC;MACrBA,OAAO,GAAG,IAAI;MACd,CAAAa,QAAA,GAAAZ,OAAO,cAAAY,QAAA,eAAPA,QAAA,CAAU,CAAC;IACb;EACF,CAAC;EAED,OAAOX,SAAS;AAClB","ignoreList":[]}
|
package/jestConfig.js
CHANGED
|
@@ -48,8 +48,6 @@ function textEditorJestConfig(config) {
|
|
|
48
48
|
'^ckeditor5$': resolveMockFile('ckeditorMock.js'),
|
|
49
49
|
'^ckeditor5-premium-features$': resolveMockFile('ckeditorMock.js'),
|
|
50
50
|
'^@ckeditor/ckeditor5-react$': resolveMockFile('ckeditorMock.js'),
|
|
51
|
-
'^@ckeditor/ckeditor5-utils/src/translation-service$':
|
|
52
|
-
resolveMockFile('translationMock.js'),
|
|
53
51
|
'^ckeditor5/translations/(.+)\\.js$': resolveMockFile(
|
|
54
52
|
'translationFileMock.js'
|
|
55
53
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/text-editor",
|
|
3
|
-
"version": "1.0
|
|
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",
|
|
@@ -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.53.
|
|
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,72 +79,74 @@
|
|
|
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.
|
|
91
|
-
"sanitize-html": "^2.17.
|
|
89
|
+
"@react-aria/focus": "^3.21.2",
|
|
90
|
+
"@react-aria/utils": "^3.31.0",
|
|
91
|
+
"sanitize-html": "^2.17.5"
|
|
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.53.
|
|
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",
|
|
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.
|
|
112
|
-
"@types/fs-extra": "11.0.1",
|
|
113
|
-
"@types/glob": "8.0.1",
|
|
114
|
-
"@types/jest": "29.4.0",
|
|
115
|
-
"@types/
|
|
116
|
-
"@types/react
|
|
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
|
+
"@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.57.1",
|
|
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