@procore/text-editor 1.2.0 → 1.2.1
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/CHANGELOG.md +8 -0
- package/dist/TextEditor/TextEditor.styles.d.ts +15 -7
- package/dist/TextEditor/TextEditor.styles.js +4 -4
- package/dist/TextEditorOutput/TextEditorOutput.styles.d.ts +3 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +2 -2
- package/dist/TextEditorOutput/TextEditorOutput.styles.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.utils.js +7 -3
- package/dist/TextEditorOutput/TextEditorOutput.utils.js.map +1 -1
- package/dist/_typedoc/TextEditor/TextEditor.types.json +61 -61
- package/dist/_typedoc/TextEditor/TextEditorProvider.types.json +2 -2
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +3 -3
- package/dist/locales/de-DE.json +1 -0
- package/dist/locales/en-AU.json +1 -0
- package/dist/locales/en-CA.json +1 -0
- package/dist/locales/en-GB.json +1 -0
- package/dist/locales/es-ES.json +1 -0
- package/dist/locales/es.json +1 -0
- package/dist/locales/fr-CA.json +1 -0
- package/dist/locales/fr-FR.json +1 -0
- package/dist/locales/is-IS.json +1 -0
- package/dist/locales/it-IT.json +1 -0
- package/dist/locales/ja-JP.json +1 -0
- package/dist/locales/nb-NO.json +1 -0
- package/dist/locales/pl-PL.json +1 -0
- package/dist/locales/pt-BR.json +1 -0
- package/dist/locales/pt-PT.json +1 -0
- package/dist/locales/th-TH.json +1 -0
- package/dist/locales/zh-SG.json +1 -0
- package/dist/locales/zh-TW.json +1 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
export declare const GlobalEditorStyles: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & {
|
|
2
2
|
zIndex: number;
|
|
3
3
|
}>;
|
|
4
|
-
export declare const StyledTextEditor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").
|
|
4
|
+
export declare const StyledTextEditor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
5
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
6
|
+
}, {
|
|
5
7
|
error?: boolean;
|
|
6
8
|
$ready?: boolean;
|
|
7
9
|
}>> & string;
|
|
8
|
-
export declare const StyledImageUploadWarningToast: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
10
|
+
export declare const StyledImageUploadWarningToast: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").HTMLAttributes<HTMLDivElement> & import("@procore/core-react").FlexProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
9
11
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
+
}, "style"> & {
|
|
13
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
14
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("@procore/core-react").FlexProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
|
|
15
|
+
export declare const StyledImageUploadWarningToastIcon: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<{
|
|
12
16
|
size?: import("@procore/core-icons/dist/Icon").IconSize;
|
|
13
17
|
} & import("react").SVGAttributes<SVGElement> & import("react").RefAttributes<SVGSVGElement>, "ref"> & {
|
|
14
18
|
ref?: ((instance: SVGSVGElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
15
|
-
},
|
|
19
|
+
}, "style"> & {
|
|
20
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
21
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<{
|
|
16
22
|
size?: import("@procore/core-icons/dist/Icon").IconSize;
|
|
17
23
|
} & import("react").SVGAttributes<SVGElement> & import("react").RefAttributes<SVGSVGElement>>, keyof import("react").Component<any, {}, any>>;
|
|
18
|
-
export declare const StyledReadOnlyValue: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
24
|
+
export declare const StyledReadOnlyValue: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").HTMLAttributes<HTMLSpanElement> & import("@procore/core-react").TypographyProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
19
25
|
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
20
|
-
},
|
|
26
|
+
}, "style"> & {
|
|
27
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
28
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("@procore/core-react").TypographyProps & import("react").RefAttributes<HTMLSpanElement>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -31,7 +31,7 @@ export var GlobalEditorStyles = /*#__PURE__*/createGlobalStyle([":root{--ck-z-de
|
|
|
31
31
|
}, colors.white, colors.blue45);
|
|
32
32
|
export var StyledTextEditor = /*#__PURE__*/styled.div.withConfig({
|
|
33
33
|
displayName: "StyledTextEditor",
|
|
34
|
-
componentId: "text-editor-
|
|
34
|
+
componentId: "text-editor-1_2_1__sc-iim79x-0"
|
|
35
35
|
})([".ck.ck-editor{opacity:", ";}", ""], function (_ref0) {
|
|
36
36
|
var $ready = _ref0.$ready;
|
|
37
37
|
return $ready ? 1 : 0;
|
|
@@ -41,14 +41,14 @@ export var StyledTextEditor = /*#__PURE__*/styled.div.withConfig({
|
|
|
41
41
|
});
|
|
42
42
|
export var StyledImageUploadWarningToast = /*#__PURE__*/styled(Flex).withConfig({
|
|
43
43
|
displayName: "StyledImageUploadWarningToast",
|
|
44
|
-
componentId: "text-editor-
|
|
44
|
+
componentId: "text-editor-1_2_1__sc-iim79x-1"
|
|
45
45
|
})(["background-color:", ";border-radius:", "px;box-shadow:0px 8px 32px -4px hsla(200,10%,15%,0.64);color:", ";min-height:48px;width:550px;"], colors.blue40, borderRadius.md, colors.white);
|
|
46
46
|
export var StyledImageUploadWarningToastIcon = /*#__PURE__*/styled(Info).withConfig({
|
|
47
47
|
displayName: "StyledImageUploadWarningToastIcon",
|
|
48
|
-
componentId: "text-editor-
|
|
48
|
+
componentId: "text-editor-1_2_1__sc-iim79x-2"
|
|
49
49
|
})(["color:", ";"], colors.white);
|
|
50
50
|
export var StyledReadOnlyValue = /*#__PURE__*/styled(Typography).withConfig({
|
|
51
51
|
displayName: "StyledReadOnlyValue",
|
|
52
|
-
componentId: "text-editor-
|
|
52
|
+
componentId: "text-editor-1_2_1__sc-iim79x-3"
|
|
53
53
|
})(["overflow-wrap:anywhere;margin-block-start:0 !important;user-select:text;table{border-width:revert-layer;border-style:solid;border-color:", ";overflow-wrap:break-word;}td,tr,th,tbody{border-width:revert-layer;border-style:inherit;border-color:inherit;}p{line-height:normal;}"], colors.gray60);
|
|
54
54
|
//# sourceMappingURL=TextEditor.styles.js.map
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export declare const StyledEditor: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
1
|
+
export declare const StyledEditor: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
|
+
}> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
export var StyledEditor = /*#__PURE__*/styled.div.withConfig({
|
|
3
3
|
displayName: "StyledEditor",
|
|
4
|
-
componentId: "text-editor-
|
|
5
|
-
})([".ck-editor__top{height:0 !important;}.ck-content{border:none !important;padding:0 !important;overflow-x:auto;--ck-content-font-family:Inter,'Noto Sans JP','Noto Sans KR','Noto Sans SC','Noto Sans TC',sans-serif;--ck-content-font-size:14px;--ck-content-word-break:break-word;--ck-content-overflow-wrap:break-word;--ck-content-line-height:1.4;p{margin:0;}img{margin-left:auto;margin-right:auto;max-width:100%;height:auto;}.image-style-align-left{float:left;margin-right:1.5em;}.image-style-align-right{float:right;margin-left:1.5em;}.image-style-side{float:right;margin-left:1.5em;max-width:50%;}.image-style-block-align-left{margin-left:0;margin-right:auto;}.image-style-block-align-right{margin-left:auto;margin-right:0;}figure.image{display:table;clear:both;margin:0 auto;&.image-style-align-left,&.image-style-align-right,&.image-style-side{clear:none;}&.image-style-align-left{margin:0 1.5em 0 0;}&.image-style-align-right,&.image-style-side{margin:0 0 0 1.5em;}&.image-style-block-align-left{margin-left:0;margin-right:auto;}&.image-style-block-align-right{margin-left:auto;margin-right:0;}}img.image-style-align-left,img.image-style-align-right,img.image-style-side{margin-left:0;margin-right:0;}img.image-style-align-left{margin-right:1.5em;}img.image-style-align-right,img.image-style-side{margin-left:1.5em;}figure.table{display:table;margin-top:0.9em;margin-bottom:0.9em;}figure.table table,table{width:100%;border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;th{text-align:left;}& > thead,& > tbody{& > tr > td,& > tr > th{border:1px solid #bfbfbf;min-width:2em;padding:0.4em;}& > tr > th{background:rgba(0,0,0,0.05);font-weight:700;}}}}"]);
|
|
4
|
+
componentId: "text-editor-1_2_1__sc-1oujb2g-0"
|
|
5
|
+
})([".ck-editor__top{height:0 !important;}.ck-content{border:none !important;padding:0 !important;overflow-x:auto;--ck-content-font-family:Inter,'Noto Sans JP','Noto Sans KR','Noto Sans SC','Noto Sans TC',sans-serif;--ck-content-font-size:14px;--ck-content-word-break:break-word;--ck-content-overflow-wrap:break-word;--ck-content-line-height:1.4;p{margin:0;}li.ck-list-marker-bold::marker{font-weight:bold;}li.ck-list-marker-italic::marker{font-style:italic;}li.ck-list-marker-color::marker{color:var(--ck-content-list-marker-color);}li.ck-list-marker-font-family::marker{font-family:var(--ck-content-list-marker-font-family);}li.ck-list-marker-font-size::marker{font-size:var(--ck-content-list-marker-font-size);}img{margin-left:auto;margin-right:auto;max-width:100%;height:auto;}.image-style-align-left{float:left;margin-right:1.5em;}.image-style-align-right{float:right;margin-left:1.5em;}.image-style-side{float:right;margin-left:1.5em;max-width:50%;}.image-style-block-align-left{margin-left:0;margin-right:auto;}.image-style-block-align-right{margin-left:auto;margin-right:0;}figure.image{display:table;clear:both;margin:0 auto;&.image-style-align-left,&.image-style-align-right,&.image-style-side{clear:none;}&.image-style-align-left{margin:0 1.5em 0 0;}&.image-style-align-right,&.image-style-side{margin:0 0 0 1.5em;}&.image-style-block-align-left{margin-left:0;margin-right:auto;}&.image-style-block-align-right{margin-left:auto;margin-right:0;}}img.image-style-align-left,img.image-style-align-right,img.image-style-side{margin-left:0;margin-right:0;}img.image-style-align-left{margin-right:1.5em;}img.image-style-align-right,img.image-style-side{margin-left:1.5em;}figure.table{display:table;margin-top:0.9em;margin-bottom:0.9em;}figure.table table,table{width:100%;border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;th{text-align:left;}& > thead,& > tbody{& > tr > td,& > tr > th{border:1px solid #bfbfbf;min-width:2em;padding:0.4em;}& > tr > th{background:rgba(0,0,0,0.05);font-weight:700;}}}}"]);
|
|
6
6
|
//# sourceMappingURL=TextEditorOutput.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextEditorOutput.styles.js","names":["styled","StyledEditor","div","withConfig","displayName","componentId"],"sources":["../../src/TextEditorOutput/TextEditorOutput.styles.ts"],"sourcesContent":["import styled from 'styled-components'\n\nexport const StyledEditor = styled.div`\n .ck-editor__top {\n height: 0 !important;\n }\n\n .ck-content {\n border: none !important;\n padding: 0 !important;\n overflow-x: auto;\n --ck-content-font-family: Inter, 'Noto Sans JP', 'Noto Sans KR',\n 'Noto Sans SC', 'Noto Sans TC', sans-serif;\n --ck-content-font-size: 14px;\n --ck-content-word-break: break-word;\n --ck-content-overflow-wrap: break-word;\n --ck-content-line-height: 1.4;\n\n p {\n margin: 0;\n }\n\n img {\n margin-left: auto;\n margin-right: auto;\n max-width: 100%;\n height: auto;\n }\n\n .image-style-align-left {\n float: left;\n margin-right: 1.5em;\n }\n\n .image-style-align-right {\n float: right;\n margin-left: 1.5em;\n }\n\n .image-style-side {\n float: right;\n margin-left: 1.5em;\n max-width: 50%;\n }\n\n .image-style-block-align-left {\n margin-left: 0;\n margin-right: auto;\n }\n\n .image-style-block-align-right {\n margin-left: auto;\n margin-right: 0;\n }\n\n figure.image {\n display: table;\n clear: both;\n margin: 0 auto;\n\n &.image-style-align-left,\n &.image-style-align-right,\n &.image-style-side {\n clear: none;\n }\n\n &.image-style-align-left {\n margin: 0 1.5em 0 0;\n }\n\n &.image-style-align-right,\n &.image-style-side {\n margin: 0 0 0 1.5em;\n }\n\n &.image-style-block-align-left {\n margin-left: 0;\n margin-right: auto;\n }\n\n &.image-style-block-align-right {\n margin-left: auto;\n margin-right: 0;\n }\n }\n\n img.image-style-align-left,\n img.image-style-align-right,\n img.image-style-side {\n margin-left: 0;\n margin-right: 0;\n }\n\n img.image-style-align-left {\n margin-right: 1.5em;\n }\n\n img.image-style-align-right,\n img.image-style-side {\n margin-left: 1.5em;\n }\n\n figure.table {\n display: table;\n margin-top: 0.9em;\n margin-bottom: 0.9em;\n }\n\n figure.table table,\n table {\n width: 100%;\n border: 1px double #b3b3b3;\n border-collapse: collapse;\n border-spacing: 0;\n\n th {\n text-align: left;\n }\n\n & > thead,\n & > tbody {\n & > tr > td,\n & > tr > th {\n border: 1px solid #bfbfbf;\n min-width: 2em;\n padding: 0.4em;\n }\n\n & > tr > th {\n background: rgba(0, 0, 0, 0.05);\n font-weight: 700;\n }\n }\n }\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AAEtC,OAAO,IAAMC,YAAY,gBAAGD,MAAM,CAACE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"TextEditorOutput.styles.js","names":["styled","StyledEditor","div","withConfig","displayName","componentId"],"sources":["../../src/TextEditorOutput/TextEditorOutput.styles.ts"],"sourcesContent":["import styled from 'styled-components'\n\nexport const StyledEditor = styled.div`\n .ck-editor__top {\n height: 0 !important;\n }\n\n .ck-content {\n border: none !important;\n padding: 0 !important;\n overflow-x: auto;\n --ck-content-font-family: Inter, 'Noto Sans JP', 'Noto Sans KR',\n 'Noto Sans SC', 'Noto Sans TC', sans-serif;\n --ck-content-font-size: 14px;\n --ck-content-word-break: break-word;\n --ck-content-overflow-wrap: break-word;\n --ck-content-line-height: 1.4;\n\n p {\n margin: 0;\n }\n\n li.ck-list-marker-bold::marker {\n font-weight: bold;\n }\n\n li.ck-list-marker-italic::marker {\n font-style: italic;\n }\n\n li.ck-list-marker-color::marker {\n color: var(--ck-content-list-marker-color);\n }\n\n li.ck-list-marker-font-family::marker {\n font-family: var(--ck-content-list-marker-font-family);\n }\n\n li.ck-list-marker-font-size::marker {\n font-size: var(--ck-content-list-marker-font-size);\n }\n\n img {\n margin-left: auto;\n margin-right: auto;\n max-width: 100%;\n height: auto;\n }\n\n .image-style-align-left {\n float: left;\n margin-right: 1.5em;\n }\n\n .image-style-align-right {\n float: right;\n margin-left: 1.5em;\n }\n\n .image-style-side {\n float: right;\n margin-left: 1.5em;\n max-width: 50%;\n }\n\n .image-style-block-align-left {\n margin-left: 0;\n margin-right: auto;\n }\n\n .image-style-block-align-right {\n margin-left: auto;\n margin-right: 0;\n }\n\n figure.image {\n display: table;\n clear: both;\n margin: 0 auto;\n\n &.image-style-align-left,\n &.image-style-align-right,\n &.image-style-side {\n clear: none;\n }\n\n &.image-style-align-left {\n margin: 0 1.5em 0 0;\n }\n\n &.image-style-align-right,\n &.image-style-side {\n margin: 0 0 0 1.5em;\n }\n\n &.image-style-block-align-left {\n margin-left: 0;\n margin-right: auto;\n }\n\n &.image-style-block-align-right {\n margin-left: auto;\n margin-right: 0;\n }\n }\n\n img.image-style-align-left,\n img.image-style-align-right,\n img.image-style-side {\n margin-left: 0;\n margin-right: 0;\n }\n\n img.image-style-align-left {\n margin-right: 1.5em;\n }\n\n img.image-style-align-right,\n img.image-style-side {\n margin-left: 1.5em;\n }\n\n figure.table {\n display: table;\n margin-top: 0.9em;\n margin-bottom: 0.9em;\n }\n\n figure.table table,\n table {\n width: 100%;\n border: 1px double #b3b3b3;\n border-collapse: collapse;\n border-spacing: 0;\n\n th {\n text-align: left;\n }\n\n & > thead,\n & > tbody {\n & > tr > td,\n & > tr > th {\n border: 1px solid #bfbfbf;\n min-width: 2em;\n padding: 0.4em;\n }\n\n & > tr > th {\n background: rgba(0, 0, 0, 0.05);\n font-weight: 700;\n }\n }\n }\n }\n`\n"],"mappings":"AAAA,OAAOA,MAAM,MAAM,mBAAmB;AAEtC,OAAO,IAAMC,YAAY,gBAAGD,MAAM,CAACE,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2+DAyJrC","ignoreList":[]}
|
|
@@ -19,6 +19,7 @@ import sanitizeHtml from 'sanitize-html';
|
|
|
19
19
|
import { RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE } from '../TextEditor/utils/imageAttributes';
|
|
20
20
|
import { canonicalizeTextEditorImageUrl } from '../TextEditor/utils/imageUrls';
|
|
21
21
|
export { isAllowedTextEditorImageUrl } from '../TextEditor/utils/imageUrls';
|
|
22
|
+
var COLOR_VALUES = [/^#[0-9a-fA-F]{3,6}$/, /^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/, /^rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*[\d.]+\s*\)$/];
|
|
22
23
|
var CKEDITOR_IMAGE_CLASSES = new Set(['image', 'image-inline', 'image_resized', 'image-style-align-left', 'image-style-align-right', 'image-style-block-align-left', 'image-style-block-align-right', 'image-style-side',
|
|
23
24
|
// Keep as-is: the figure transform runs on ALL figures, and this is the
|
|
24
25
|
// table-figure marker (`<figure class="table">`). We can't filter it out
|
|
@@ -157,8 +158,8 @@ export var sanitizeTextEditorHtml = function sanitizeTextEditorHtml(html) {
|
|
|
157
158
|
},
|
|
158
159
|
allowedStyles: {
|
|
159
160
|
'*': {
|
|
160
|
-
color:
|
|
161
|
-
'background-color':
|
|
161
|
+
color: COLOR_VALUES,
|
|
162
|
+
'background-color': COLOR_VALUES,
|
|
162
163
|
'font-size': [/^\d+(?:px|pt|em|rem|%)$/],
|
|
163
164
|
'font-weight': [/^(?:normal|bold|bolder|lighter|\d{1,3})$/],
|
|
164
165
|
'font-style': [/^(?:normal|italic|oblique)$/],
|
|
@@ -187,10 +188,13 @@ export var sanitizeTextEditorHtml = function sanitizeTextEditorHtml(html) {
|
|
|
187
188
|
'border-bottom': [/.*/],
|
|
188
189
|
'border-left': [/.*/],
|
|
189
190
|
'border-right': [/.*/],
|
|
190
|
-
'border-color':
|
|
191
|
+
'border-color': COLOR_VALUES,
|
|
191
192
|
'border-width': [/^\d+(?:px|pt|em|rem)?$/],
|
|
192
193
|
'border-style': [/^(?:none|solid|dashed|dotted|double)$/],
|
|
193
194
|
'list-style-type': [/.*/],
|
|
195
|
+
'--ck-content-list-marker-color': COLOR_VALUES,
|
|
196
|
+
'--ck-content-list-marker-font-size': [/^\d+(?:px|pt|em|rem|%)$/],
|
|
197
|
+
'--ck-content-list-marker-font-family': [/.*/],
|
|
194
198
|
'vertical-align': [/.*/],
|
|
195
199
|
'white-space': [/.*/],
|
|
196
200
|
'aspect-ratio': [/^\d+(?:\.\d+)?(?:\s*\/\s*\d+(?:\.\d+)?)?$/],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextEditorOutput.utils.js","names":["sanitizeHtml","RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE","canonicalizeTextEditorImageUrl","isAllowedTextEditorImageUrl","CKEDITOR_IMAGE_CLASSES","Set","IMAGE_TAGS","sanitizeSrcset","srcset","candidates","split","map","candidate","trim","filter","Boolean","length","undefined","sanitizedCandidates","_candidate$split","_candidate$split2","_toArray","url","descriptors","_arrayLikeToArray","slice","canonicalUrl","some","descriptor","test","concat","_toConsumableArray","join","includes","TABLE_ALIGNMENT_CLASS","sanitizeImageClass","className","allowedClasses","name","has","sanitizeImageSizes","sizes","sanitizeProstoreFileId","id","SAFE_IMAGE_STYLE_PROPERTIES","filterImageStyle","style","safeDeclarations","declaration","_property$trim$toLowe","_declaration$split","_declaration$split2","_slicedToArray","property","toLowerCase","setOrDeleteAttribute","attributes","value","sanitizeImageTagAttributes","tagName","onclick","onload","sanitizeClassAttribute","sanitizeUrlAttribute","sanitize","sanitizeImageUrlAttributes","sanitizeProstoreFileIdAttribute","addLazyImageLoadingAttributes","src","loading","decoding","transformImageTag","attribs","sanitizedAttributes","_objectSpread","sanitizeTextEditorHtml","html","allowedTags","allowedAttributes","a","figure","picture","source","img","table","col","td","th","allowedStyles","color","width","height","margin","padding","border","allowedSchemes","allowedSchemesByTag","transformTags","figcaption","exclusiveFilter","frame","tag","allowedIframeHostnames"],"sources":["../../src/TextEditorOutput/TextEditorOutput.utils.ts"],"sourcesContent":["import sanitizeHtml from 'sanitize-html'\n\nimport { RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE } from '../TextEditor/utils/imageAttributes'\nimport { canonicalizeTextEditorImageUrl } from '../TextEditor/utils/imageUrls'\n\nexport { isAllowedTextEditorImageUrl } from '../TextEditor/utils/imageUrls'\n\ntype Attributes = Record<string, string>\n\nconst CKEDITOR_IMAGE_CLASSES = new Set([\n 'image',\n 'image-inline',\n 'image_resized',\n 'image-style-align-left',\n 'image-style-align-right',\n 'image-style-block-align-left',\n 'image-style-block-align-right',\n 'image-style-side',\n // Keep as-is: the figure transform runs on ALL figures, and this is the\n // table-figure marker (`<figure class=\"table\">`). We can't filter it out\n 'table',\n])\n\nconst IMAGE_TAGS = new Set(['figure', 'figcaption', 'picture', 'source', 'img'])\n\nconst sanitizeSrcset = (srcset: string) => {\n const candidates = srcset\n .split(',')\n .map((candidate) => candidate.trim())\n .filter(Boolean)\n\n if (candidates.length === 0) {\n return undefined\n }\n\n const sanitizedCandidates = candidates.map((candidate) => {\n const [url, ...descriptors] = candidate.split(/\\s+/)\n const canonicalUrl = canonicalizeTextEditorImageUrl(url)\n\n if (\n !canonicalUrl ||\n descriptors.some(\n (descriptor) => !/^(?:\\d+w|\\d+(?:\\.\\d+)?x)$/.test(descriptor)\n )\n ) {\n return undefined\n }\n\n return [canonicalUrl, ...descriptors].join(' ')\n })\n\n if (sanitizedCandidates.includes(undefined)) {\n return undefined\n }\n\n return sanitizedCandidates.join(', ')\n}\n\n// Keep it as-is — we can't filter it out or the output loses the table's\n// alignment and always falls back to the default (centered).\nconst TABLE_ALIGNMENT_CLASS = /^table-style-(block-)?align-(left|center|right)$/\n\nconst sanitizeImageClass = (className?: string) => {\n const allowedClasses = className\n ?.split(/\\s+/)\n .filter(\n (name) =>\n CKEDITOR_IMAGE_CLASSES.has(name) || TABLE_ALIGNMENT_CLASS.test(name)\n )\n\n return allowedClasses?.length ? allowedClasses.join(' ') : undefined\n}\n\nconst sanitizeImageSizes = (sizes?: string) => {\n if (!sizes || /url\\(|javascript:|data:/i.test(sizes)) {\n return undefined\n }\n\n return /^[\\w\\s().,:+\\-/%]+$/.test(sizes) ? sizes : undefined\n}\n\nconst sanitizeProstoreFileId = (id?: string) =>\n id && /^[\\w-]+$/.test(id) ? id : undefined\n\n// ImageResize writes inline `width: X%` (and occasionally `height`) on the\n// containing <figure>/<img>. Keep only those declarations so resized images\n// render at the user's chosen size, `allowedStyles` further validates the values.\nconst SAFE_IMAGE_STYLE_PROPERTIES = new Set(['width', 'height', 'aspect-ratio'])\n\nconst filterImageStyle = (style?: string) => {\n if (!style) {\n return undefined\n }\n\n const safeDeclarations = style\n .split(';')\n .map((declaration) => declaration.trim())\n .filter(Boolean)\n .filter((declaration) => {\n const [property] = declaration.split(':', 1)\n return SAFE_IMAGE_STYLE_PROPERTIES.has(\n property?.trim().toLowerCase() ?? ''\n )\n })\n\n return safeDeclarations.length ? `${safeDeclarations.join('; ')};` : undefined\n}\n\nconst setOrDeleteAttribute = (\n attributes: Attributes,\n name: string,\n value?: string\n) => {\n if (value) {\n attributes[name] = value\n } else {\n delete attributes[name]\n }\n}\n\nconst sanitizeImageTagAttributes = (\n tagName: string,\n attributes: Attributes\n) => {\n if (!IMAGE_TAGS.has(tagName)) {\n return\n }\n\n setOrDeleteAttribute(attributes, 'style', filterImageStyle(attributes.style))\n delete attributes.onclick\n delete attributes.onload\n}\n\nconst sanitizeClassAttribute = (attributes: Attributes) => {\n setOrDeleteAttribute(\n attributes,\n 'class',\n sanitizeImageClass(attributes.class)\n )\n}\n\nconst sanitizeUrlAttribute = (\n attributes: Attributes,\n name: string,\n sanitize: (value: string) => string | undefined\n) => {\n if (attributes[name]) {\n setOrDeleteAttribute(attributes, name, sanitize(attributes[name]))\n }\n}\n\nconst sanitizeImageUrlAttributes = (attributes: Attributes) => {\n sanitizeUrlAttribute(attributes, 'src', canonicalizeTextEditorImageUrl)\n sanitizeUrlAttribute(attributes, 'srcset', sanitizeSrcset)\n sanitizeUrlAttribute(attributes, 'sizes', sanitizeImageSizes)\n}\n\nconst sanitizeProstoreFileIdAttribute = (attributes: Attributes) => {\n setOrDeleteAttribute(\n attributes,\n RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE,\n sanitizeProstoreFileId(attributes[RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE])\n )\n}\n\nconst addLazyImageLoadingAttributes = (\n tagName: string,\n attributes: Attributes\n) => {\n if (tagName === 'img' && attributes.src) {\n attributes.loading = 'lazy'\n attributes.decoding = 'async'\n }\n}\n\nconst transformImageTag = (tagName: string, attribs: Attributes) => {\n const sanitizedAttributes: Attributes = { ...attribs }\n\n sanitizeImageTagAttributes(tagName, sanitizedAttributes)\n sanitizeClassAttribute(sanitizedAttributes)\n sanitizeImageUrlAttributes(sanitizedAttributes)\n sanitizeProstoreFileIdAttribute(sanitizedAttributes)\n addLazyImageLoadingAttributes(tagName, sanitizedAttributes)\n\n return {\n tagName,\n attribs: sanitizedAttributes,\n }\n}\n\nexport const sanitizeTextEditorHtml = (html: string) => {\n if (!html) {\n return ''\n }\n\n return sanitizeHtml(html, {\n allowedTags: [\n 'p',\n 'br',\n 'strong',\n 'b',\n 'em',\n 'i',\n 'u',\n 's',\n 'span',\n 'div',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'ul',\n 'ol',\n 'li',\n 'a',\n 'figure',\n 'figcaption',\n 'table',\n 'colgroup',\n 'col',\n 'thead',\n 'tbody',\n 'tr',\n 'td',\n 'th',\n 'blockquote',\n 'pre',\n 'code',\n 'hr',\n 'img',\n 'picture',\n 'source',\n 'sub',\n 'sup',\n ],\n allowedAttributes: {\n '*': ['style', 'class'],\n a: ['href', 'title', 'target', 'rel'],\n figure: ['class', RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE],\n picture: ['class', RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE],\n source: ['srcset', 'sizes', 'type', 'media'],\n img: [\n 'src',\n 'srcset',\n 'sizes',\n 'alt',\n 'title',\n 'width',\n 'height',\n 'loading',\n 'decoding',\n 'class',\n RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE,\n ],\n table: ['border', 'cellpadding', 'cellspacing'],\n col: ['span'],\n td: ['colspan', 'rowspan'],\n th: ['colspan', 'rowspan', 'scope'],\n },\n allowedStyles: {\n '*': {\n color: [\n /^#[0-9a-fA-F]{3,6}$/,\n /^rgb\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*\\)$/,\n /^rgba\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*[\\d.]+\\s*\\)$/,\n ],\n 'background-color': [\n /^#[0-9a-fA-F]{3,6}$/,\n /^rgb\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*\\)$/,\n /^rgba\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*[\\d.]+\\s*\\)$/,\n ],\n 'font-size': [/^\\d+(?:px|pt|em|rem|%)$/],\n 'font-weight': [/^(?:normal|bold|bolder|lighter|\\d{1,3})$/],\n 'font-style': [/^(?:normal|italic|oblique)$/],\n 'font-family': [/.*/],\n 'text-decoration': [/^(?:none|underline|line-through|overline)$/],\n 'text-align': [/^(?:left|right|center|justify)$/],\n 'line-height': [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)?$/],\n width: [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n 'min-width': [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n 'max-width': [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n height: [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n 'min-height': [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n 'max-height': [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n margin: [/^\\d+(?:px|pt|em|rem|%)?(?:\\s+\\d+(?:px|pt|em|rem|%)?)*$/],\n 'margin-top': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'margin-bottom': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'margin-left': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'margin-right': [/^\\d+(?:px|pt|em|rem|%)?$/],\n padding: [/^\\d+(?:px|pt|em|rem|%)?(?:\\s+\\d+(?:px|pt|em|rem|%)?)*$/],\n 'padding-top': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'padding-bottom': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'padding-left': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'padding-right': [/^\\d+(?:px|pt|em|rem|%)?$/],\n border: [/.*/],\n 'border-top': [/.*/],\n 'border-bottom': [/.*/],\n 'border-left': [/.*/],\n 'border-right': [/.*/],\n 'border-color': [\n /^#[0-9a-fA-F]{3,6}$/,\n /^rgb\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*\\)$/,\n /^rgba\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*[\\d.]+\\s*\\)$/,\n ],\n 'border-width': [/^\\d+(?:px|pt|em|rem)?$/],\n 'border-style': [/^(?:none|solid|dashed|dotted|double)$/],\n 'list-style-type': [/.*/],\n 'vertical-align': [/.*/],\n 'white-space': [/.*/],\n 'aspect-ratio': [/^\\d+(?:\\.\\d+)?(?:\\s*\\/\\s*\\d+(?:\\.\\d+)?)?$/],\n float: [/^(?:left|right|none)$/],\n },\n },\n allowedSchemes: ['http', 'https', 'mailto', 'tel'],\n allowedSchemesByTag: {\n img: ['http', 'https'],\n source: ['http', 'https'],\n },\n transformTags: {\n figure: transformImageTag,\n figcaption: transformImageTag,\n picture: transformImageTag,\n source: transformImageTag,\n img: transformImageTag,\n },\n exclusiveFilter: (frame) =>\n (frame.tag === 'img' && !frame.attribs.src) ||\n (frame.tag === 'source' && !frame.attribs.srcset),\n allowedIframeHostnames: [],\n })\n}\n"],"mappings":";;;;;;;;;;;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AM,EAAET,iBAAiB;MACzB2B,UAAU,EAAE3B,iBAAiB;MAC7BU,OAAO,EAAEV,iBAAiB;MAC1BW,MAAM,EAAEX,iBAAiB;MACzBY,GAAG,EAAEZ;IACP,CAAC;IACD4B,eAAe,EAAE,SAAjBA,eAAeA,CAAGC,KAAK;MAAA,OACpBA,KAAK,CAACC,GAAG,KAAK,KAAK,IAAI,CAACD,KAAK,CAAC5B,OAAO,CAACJ,GAAG,IACzCgC,KAAK,CAACC,GAAG,KAAK,QAAQ,IAAI,CAACD,KAAK,CAAC5B,OAAO,CAAChE,MAAO;IAAA;IACnD8F,sBAAsB,EAAE;EAC1B,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"TextEditorOutput.utils.js","names":["sanitizeHtml","RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE","canonicalizeTextEditorImageUrl","isAllowedTextEditorImageUrl","COLOR_VALUES","CKEDITOR_IMAGE_CLASSES","Set","IMAGE_TAGS","sanitizeSrcset","srcset","candidates","split","map","candidate","trim","filter","Boolean","length","undefined","sanitizedCandidates","_candidate$split","_candidate$split2","_toArray","url","descriptors","_arrayLikeToArray","slice","canonicalUrl","some","descriptor","test","concat","_toConsumableArray","join","includes","TABLE_ALIGNMENT_CLASS","sanitizeImageClass","className","allowedClasses","name","has","sanitizeImageSizes","sizes","sanitizeProstoreFileId","id","SAFE_IMAGE_STYLE_PROPERTIES","filterImageStyle","style","safeDeclarations","declaration","_property$trim$toLowe","_declaration$split","_declaration$split2","_slicedToArray","property","toLowerCase","setOrDeleteAttribute","attributes","value","sanitizeImageTagAttributes","tagName","onclick","onload","sanitizeClassAttribute","sanitizeUrlAttribute","sanitize","sanitizeImageUrlAttributes","sanitizeProstoreFileIdAttribute","addLazyImageLoadingAttributes","src","loading","decoding","transformImageTag","attribs","sanitizedAttributes","_objectSpread","sanitizeTextEditorHtml","html","allowedTags","allowedAttributes","a","figure","picture","source","img","table","col","td","th","allowedStyles","color","width","height","margin","padding","border","allowedSchemes","allowedSchemesByTag","transformTags","figcaption","exclusiveFilter","frame","tag","allowedIframeHostnames"],"sources":["../../src/TextEditorOutput/TextEditorOutput.utils.ts"],"sourcesContent":["import sanitizeHtml from 'sanitize-html'\n\nimport { RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE } from '../TextEditor/utils/imageAttributes'\nimport { canonicalizeTextEditorImageUrl } from '../TextEditor/utils/imageUrls'\n\nexport { isAllowedTextEditorImageUrl } from '../TextEditor/utils/imageUrls'\n\ntype Attributes = Record<string, string>\n\nconst COLOR_VALUES = [\n /^#[0-9a-fA-F]{3,6}$/,\n /^rgb\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*\\)$/,\n /^rgba\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*[\\d.]+\\s*\\)$/,\n]\n\nconst CKEDITOR_IMAGE_CLASSES = new Set([\n 'image',\n 'image-inline',\n 'image_resized',\n 'image-style-align-left',\n 'image-style-align-right',\n 'image-style-block-align-left',\n 'image-style-block-align-right',\n 'image-style-side',\n // Keep as-is: the figure transform runs on ALL figures, and this is the\n // table-figure marker (`<figure class=\"table\">`). We can't filter it out\n 'table',\n])\n\nconst IMAGE_TAGS = new Set(['figure', 'figcaption', 'picture', 'source', 'img'])\n\nconst sanitizeSrcset = (srcset: string) => {\n const candidates = srcset\n .split(',')\n .map((candidate) => candidate.trim())\n .filter(Boolean)\n\n if (candidates.length === 0) {\n return undefined\n }\n\n const sanitizedCandidates = candidates.map((candidate) => {\n const [url, ...descriptors] = candidate.split(/\\s+/)\n const canonicalUrl = canonicalizeTextEditorImageUrl(url)\n\n if (\n !canonicalUrl ||\n descriptors.some(\n (descriptor) => !/^(?:\\d+w|\\d+(?:\\.\\d+)?x)$/.test(descriptor)\n )\n ) {\n return undefined\n }\n\n return [canonicalUrl, ...descriptors].join(' ')\n })\n\n if (sanitizedCandidates.includes(undefined)) {\n return undefined\n }\n\n return sanitizedCandidates.join(', ')\n}\n\n// Keep it as-is — we can't filter it out or the output loses the table's\n// alignment and always falls back to the default (centered).\nconst TABLE_ALIGNMENT_CLASS = /^table-style-(block-)?align-(left|center|right)$/\n\nconst sanitizeImageClass = (className?: string) => {\n const allowedClasses = className\n ?.split(/\\s+/)\n .filter(\n (name) =>\n CKEDITOR_IMAGE_CLASSES.has(name) || TABLE_ALIGNMENT_CLASS.test(name)\n )\n\n return allowedClasses?.length ? allowedClasses.join(' ') : undefined\n}\n\nconst sanitizeImageSizes = (sizes?: string) => {\n if (!sizes || /url\\(|javascript:|data:/i.test(sizes)) {\n return undefined\n }\n\n return /^[\\w\\s().,:+\\-/%]+$/.test(sizes) ? sizes : undefined\n}\n\nconst sanitizeProstoreFileId = (id?: string) =>\n id && /^[\\w-]+$/.test(id) ? id : undefined\n\n// ImageResize writes inline `width: X%` (and occasionally `height`) on the\n// containing <figure>/<img>. Keep only those declarations so resized images\n// render at the user's chosen size, `allowedStyles` further validates the values.\nconst SAFE_IMAGE_STYLE_PROPERTIES = new Set(['width', 'height', 'aspect-ratio'])\n\nconst filterImageStyle = (style?: string) => {\n if (!style) {\n return undefined\n }\n\n const safeDeclarations = style\n .split(';')\n .map((declaration) => declaration.trim())\n .filter(Boolean)\n .filter((declaration) => {\n const [property] = declaration.split(':', 1)\n return SAFE_IMAGE_STYLE_PROPERTIES.has(\n property?.trim().toLowerCase() ?? ''\n )\n })\n\n return safeDeclarations.length ? `${safeDeclarations.join('; ')};` : undefined\n}\n\nconst setOrDeleteAttribute = (\n attributes: Attributes,\n name: string,\n value?: string\n) => {\n if (value) {\n attributes[name] = value\n } else {\n delete attributes[name]\n }\n}\n\nconst sanitizeImageTagAttributes = (\n tagName: string,\n attributes: Attributes\n) => {\n if (!IMAGE_TAGS.has(tagName)) {\n return\n }\n\n setOrDeleteAttribute(attributes, 'style', filterImageStyle(attributes.style))\n delete attributes.onclick\n delete attributes.onload\n}\n\nconst sanitizeClassAttribute = (attributes: Attributes) => {\n setOrDeleteAttribute(\n attributes,\n 'class',\n sanitizeImageClass(attributes.class)\n )\n}\n\nconst sanitizeUrlAttribute = (\n attributes: Attributes,\n name: string,\n sanitize: (value: string) => string | undefined\n) => {\n if (attributes[name]) {\n setOrDeleteAttribute(attributes, name, sanitize(attributes[name]))\n }\n}\n\nconst sanitizeImageUrlAttributes = (attributes: Attributes) => {\n sanitizeUrlAttribute(attributes, 'src', canonicalizeTextEditorImageUrl)\n sanitizeUrlAttribute(attributes, 'srcset', sanitizeSrcset)\n sanitizeUrlAttribute(attributes, 'sizes', sanitizeImageSizes)\n}\n\nconst sanitizeProstoreFileIdAttribute = (attributes: Attributes) => {\n setOrDeleteAttribute(\n attributes,\n RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE,\n sanitizeProstoreFileId(attributes[RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE])\n )\n}\n\nconst addLazyImageLoadingAttributes = (\n tagName: string,\n attributes: Attributes\n) => {\n if (tagName === 'img' && attributes.src) {\n attributes.loading = 'lazy'\n attributes.decoding = 'async'\n }\n}\n\nconst transformImageTag = (tagName: string, attribs: Attributes) => {\n const sanitizedAttributes: Attributes = { ...attribs }\n\n sanitizeImageTagAttributes(tagName, sanitizedAttributes)\n sanitizeClassAttribute(sanitizedAttributes)\n sanitizeImageUrlAttributes(sanitizedAttributes)\n sanitizeProstoreFileIdAttribute(sanitizedAttributes)\n addLazyImageLoadingAttributes(tagName, sanitizedAttributes)\n\n return {\n tagName,\n attribs: sanitizedAttributes,\n }\n}\n\nexport const sanitizeTextEditorHtml = (html: string) => {\n if (!html) {\n return ''\n }\n\n return sanitizeHtml(html, {\n allowedTags: [\n 'p',\n 'br',\n 'strong',\n 'b',\n 'em',\n 'i',\n 'u',\n 's',\n 'span',\n 'div',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'ul',\n 'ol',\n 'li',\n 'a',\n 'figure',\n 'figcaption',\n 'table',\n 'colgroup',\n 'col',\n 'thead',\n 'tbody',\n 'tr',\n 'td',\n 'th',\n 'blockquote',\n 'pre',\n 'code',\n 'hr',\n 'img',\n 'picture',\n 'source',\n 'sub',\n 'sup',\n ],\n allowedAttributes: {\n '*': ['style', 'class'],\n a: ['href', 'title', 'target', 'rel'],\n figure: ['class', RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE],\n picture: ['class', RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE],\n source: ['srcset', 'sizes', 'type', 'media'],\n img: [\n 'src',\n 'srcset',\n 'sizes',\n 'alt',\n 'title',\n 'width',\n 'height',\n 'loading',\n 'decoding',\n 'class',\n RICH_TEXT_EDITOR_FILE_ID_ATTRIBUTE,\n ],\n table: ['border', 'cellpadding', 'cellspacing'],\n col: ['span'],\n td: ['colspan', 'rowspan'],\n th: ['colspan', 'rowspan', 'scope'],\n },\n allowedStyles: {\n '*': {\n color: COLOR_VALUES,\n 'background-color': COLOR_VALUES,\n 'font-size': [/^\\d+(?:px|pt|em|rem|%)$/],\n 'font-weight': [/^(?:normal|bold|bolder|lighter|\\d{1,3})$/],\n 'font-style': [/^(?:normal|italic|oblique)$/],\n 'font-family': [/.*/],\n 'text-decoration': [/^(?:none|underline|line-through|overline)$/],\n 'text-align': [/^(?:left|right|center|justify)$/],\n 'line-height': [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)?$/],\n width: [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n 'min-width': [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n 'max-width': [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n height: [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n 'min-height': [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n 'max-height': [/^\\d+(?:\\.\\d+)?(?:px|pt|em|rem|%)$/],\n margin: [/^\\d+(?:px|pt|em|rem|%)?(?:\\s+\\d+(?:px|pt|em|rem|%)?)*$/],\n 'margin-top': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'margin-bottom': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'margin-left': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'margin-right': [/^\\d+(?:px|pt|em|rem|%)?$/],\n padding: [/^\\d+(?:px|pt|em|rem|%)?(?:\\s+\\d+(?:px|pt|em|rem|%)?)*$/],\n 'padding-top': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'padding-bottom': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'padding-left': [/^\\d+(?:px|pt|em|rem|%)?$/],\n 'padding-right': [/^\\d+(?:px|pt|em|rem|%)?$/],\n border: [/.*/],\n 'border-top': [/.*/],\n 'border-bottom': [/.*/],\n 'border-left': [/.*/],\n 'border-right': [/.*/],\n 'border-color': COLOR_VALUES,\n 'border-width': [/^\\d+(?:px|pt|em|rem)?$/],\n 'border-style': [/^(?:none|solid|dashed|dotted|double)$/],\n 'list-style-type': [/.*/],\n '--ck-content-list-marker-color': COLOR_VALUES,\n '--ck-content-list-marker-font-size': [/^\\d+(?:px|pt|em|rem|%)$/],\n '--ck-content-list-marker-font-family': [/.*/],\n 'vertical-align': [/.*/],\n 'white-space': [/.*/],\n 'aspect-ratio': [/^\\d+(?:\\.\\d+)?(?:\\s*\\/\\s*\\d+(?:\\.\\d+)?)?$/],\n float: [/^(?:left|right|none)$/],\n },\n },\n allowedSchemes: ['http', 'https', 'mailto', 'tel'],\n allowedSchemesByTag: {\n img: ['http', 'https'],\n source: ['http', 'https'],\n },\n transformTags: {\n figure: transformImageTag,\n figcaption: transformImageTag,\n picture: transformImageTag,\n source: transformImageTag,\n img: transformImageTag,\n },\n exclusiveFilter: (frame) =>\n (frame.tag === 'img' && !frame.attribs.src) ||\n (frame.tag === 'source' && !frame.attribs.srcset),\n allowedIframeHostnames: [],\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,OAAOA,YAAY,MAAM,eAAe;AAExC,S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,aAAa,EAAE;MACbjB,MAAM,EAAET,iBAAiB;MACzB2B,UAAU,EAAE3B,iBAAiB;MAC7BU,OAAO,EAAEV,iBAAiB;MAC1BW,MAAM,EAAEX,iBAAiB;MACzBY,GAAG,EAAEZ;IACP,CAAC;IACD4B,eAAe,EAAE,SAAjBA,eAAeA,CAAGC,KAAK;MAAA,OACpBA,KAAK,CAACC,GAAG,KAAK,KAAK,IAAI,CAACD,KAAK,CAAC5B,OAAO,CAACJ,GAAG,IACzCgC,KAAK,CAACC,GAAG,KAAK,QAAQ,IAAI,CAACD,KAAK,CAAC5B,OAAO,CAAChE,MAAO;IAAA;IACnD8F,sBAAsB,EAAE;EAC1B,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"description": "Accessible description for the editor's editable area.\nThis text provides additional context to screen reader users. It will be\nannounced after the label when the user focuses the editor.",
|
|
11
11
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Accessible description for the editor's editable area.\nThis text provides additional context to screen reader users. It will be\nannounced after the label when the user focuses the editor.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.1.0</p></dd></dl></div>",
|
|
12
12
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
13
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
13
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L153"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "aria-label",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"description": "Accessible label for the editor's editable area. This text will be\nannounced by screen readers when the user focuses the editor. It should\nmatch or include the visible label associated with this editor field.\nIf not provided, screen readers will announce a generic \"Rich Text Editor\" message.",
|
|
21
21
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Accessible label for the editor's editable area. This text will be\nannounced by screen readers when the user focuses the editor. It should\nmatch or include the visible label associated with this editor field.\nIf not provided, screen readers will announce a generic "Rich Text Editor" message.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.1.0</p></dd></dl></div>",
|
|
22
22
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
23
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
23
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L144"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "companyId",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"description": "Required to enable image uploads. When omitted, the editor renders without\nthe Procore image-upload plugin.",
|
|
31
31
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Required to enable image uploads. When omitted, the editor renders without\nthe Procore image-upload plugin.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.5.0</p></dd></dl></div>",
|
|
32
32
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
33
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
33
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L46"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "disabled",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"description": "Indicates if the editor is disabled",
|
|
41
41
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Indicates if the editor is disabled</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
42
42
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
43
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
43
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L119"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"name": "enforceCKEditor",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"description": "Opt in to CKEditor immediately, bypassing the gradual feature flag rollout.\nUse this only when you explicitly want to ignore the rollout schedule.\nWhen enabled, the LaunchDarkly flag is bypassed and CKEditor is rendered directly.",
|
|
51
51
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Opt in to CKEditor immediately, bypassing the gradual feature flag rollout.\nUse this only when you explicitly want to ignore the rollout schedule.\nWhen enabled, the LaunchDarkly flag is bypassed and CKEditor is rendered directly.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>1.0.0</p></dd></dl></div>",
|
|
52
52
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
53
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
53
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L251"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"name": "error",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"description": "Indicates if the editor is in an error state",
|
|
61
61
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Indicates if the editor is in an error state</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
62
62
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
63
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
63
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L126"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"name": "id",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"description": "Unique identifier for the editor",
|
|
71
71
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Unique identifier for the editor</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
72
72
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
73
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
73
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L95"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "init",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"description": "TinyMCE init configuration. Merged with internal defaults; use this to\npass custom content_style, paste hooks, or other TinyMCE-specific options.\nHas no effect when CKEditor is active.",
|
|
81
81
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>TinyMCE init configuration. Merged with internal defaults; use this to\npass custom content_style, paste hooks, or other TinyMCE-specific options.\nHas no effect when CKEditor is active.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>1.0.0</p></dd></dl></div>",
|
|
82
82
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
83
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
83
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L242"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"name": "initialValue",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"deprecated": "`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead",
|
|
93
93
|
"deprecatedSince": "0.0.1",
|
|
94
94
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
95
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
95
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L105"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"name": "locale",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"description": "Locale which will be used for localization. Can be passed directly or\nset by wrapping components in I18n provider.",
|
|
103
103
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Locale which will be used for localization. Can be passed directly or\nset by wrapping components in I18n provider.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
104
104
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
105
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
105
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L160"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"name": "onAfterDestroy",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"description": "Callback fired after the editor instance is destroyed",
|
|
113
113
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired after the editor instance is destroyed</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
114
114
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
115
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
115
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L210"
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"name": "onBlur",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"description": "Callback fired when the editor loses focus",
|
|
123
123
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when the editor loses focus</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
124
124
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
125
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
125
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L183"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"name": "onChange",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"description": "Callback fired when the editor content changes",
|
|
133
133
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when the editor content changes</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
134
134
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
135
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
135
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L169"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
"name": "onDirty",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"description": "Callback fired when the editor becomes dirty (content differs from initial value)",
|
|
143
143
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when the editor becomes dirty (content differs from initial value)</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
144
144
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
145
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
145
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L217"
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"name": "onError",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"description": "Callback fired when an error occurs in the editor",
|
|
153
153
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when an error occurs in the editor</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
154
154
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
155
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
155
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L190"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"name": "onFocus",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"description": "Callback fired when the editor gains focus",
|
|
163
163
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when the editor gains focus</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
164
164
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
165
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
165
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L176"
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"name": "onInit",
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"description": "Callback fired when the editor is ready",
|
|
173
173
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when the editor is ready</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
174
174
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
175
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
175
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L203"
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
"name": "onKeyDown",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"description": "Callback fired when a key is pressed in the editor",
|
|
183
183
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when a key is pressed in the editor</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
184
184
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
185
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
185
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L226"
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
"name": "placeholder",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"description": "Placeholder text shown when the editor is empty",
|
|
193
193
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Placeholder text shown when the editor is empty</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>1.0.0</p></dd></dl></div>",
|
|
194
194
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
195
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
195
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L233"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"name": "projectId",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"description": "",
|
|
203
203
|
"descriptionHtml": "",
|
|
204
204
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
205
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
205
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L47"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
"name": "readonly",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"description": "Indicates if the editor is in readonly mode.\nWhen true, renders the content using TextEditorOutput instead of the editable editor.",
|
|
213
213
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Indicates if the editor is in readonly mode.\nWhen true, renders the content using TextEditorOutput instead of the editable editor.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.2.0</p></dd></dl></div>",
|
|
214
214
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
215
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
215
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L134"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
"name": "toolName",
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
"description": "Identifier of the tool hosting the editor (e.g. `rfis`, `submittal_log`).\nRequired to enable image uploads: it is sent with each upload for\nattribution/audit and is validated by the backend against known tools.\nWhen omitted, the editor renders without the Procore image-upload plugin.",
|
|
223
223
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Identifier of the tool hosting the editor (e.g. <code>rfis</code>, <code>submittal_log</code>).\nRequired to enable image uploads: it is sent with each upload for\nattribution/audit and is validated by the backend against known tools.\nWhen omitted, the editor renders without the Procore image-upload plugin.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.7.0</p></dd></dl></div>",
|
|
224
224
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
225
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
225
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L56"
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"name": "value",
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"description": "The current value of the editor",
|
|
233
233
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>The current value of the editor</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
234
234
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
235
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
235
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L112"
|
|
236
236
|
}
|
|
237
237
|
],
|
|
238
238
|
"description": ""
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
"description": "",
|
|
249
249
|
"descriptionHtml": "",
|
|
250
250
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
251
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
251
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L34"
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
"name": "onError",
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"description": "",
|
|
259
259
|
"descriptionHtml": "",
|
|
260
260
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
261
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
261
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L35"
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
"name": "onWarning",
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
"description": "",
|
|
269
269
|
"descriptionHtml": "",
|
|
270
270
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
271
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
271
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L36"
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
"name": "upload",
|
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
"description": "Uploads the selected image and returns durable backend-approved image URLs.",
|
|
279
279
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Uploads the selected image and returns durable backend-approved image URLs.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.4.2</p></dd></dl></div>",
|
|
280
280
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
281
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
281
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L29"
|
|
282
282
|
}
|
|
283
283
|
],
|
|
284
284
|
"description": ""
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
"description": "Required to enable image uploads. When omitted, the editor renders without\nthe Procore image-upload plugin.",
|
|
295
295
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Required to enable image uploads. When omitted, the editor renders without\nthe Procore image-upload plugin.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.5.0</p></dd></dl></div>",
|
|
296
296
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
297
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
297
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L46"
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
"name": "projectId",
|
|
@@ -304,7 +304,7 @@
|
|
|
304
304
|
"description": "",
|
|
305
305
|
"descriptionHtml": "",
|
|
306
306
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
307
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
307
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L47"
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
"name": "toolName",
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
"description": "Identifier of the tool hosting the editor (e.g. `rfis`, `submittal_log`).\nRequired to enable image uploads: it is sent with each upload for\nattribution/audit and is validated by the backend against known tools.\nWhen omitted, the editor renders without the Procore image-upload plugin.",
|
|
315
315
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Identifier of the tool hosting the editor (e.g. <code>rfis</code>, <code>submittal_log</code>).\nRequired to enable image uploads: it is sent with each upload for\nattribution/audit and is validated by the backend against known tools.\nWhen omitted, the editor renders without the Procore image-upload plugin.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.7.0</p></dd></dl></div>",
|
|
316
316
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
317
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
317
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L56"
|
|
318
318
|
}
|
|
319
319
|
],
|
|
320
320
|
"description": ""
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
"description": "",
|
|
331
331
|
"descriptionHtml": "",
|
|
332
332
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
333
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
333
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L20"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
336
|
"name": "prostoreFileId",
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
"description": "Durable ProstoreFile id. The text editor embeds this ID in saved markup to\nmark the image as a first-party upload (backend email/PDF sanitizers rely on\nit). The persisted URL is a permanent, publicly fetchable Prostore URL, so\nit renders as-is in the app, emails, and exports.",
|
|
341
341
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Durable ProstoreFile id. The text editor embeds this ID in saved markup to\nmark the image as a first-party upload (backend email/PDF sanitizers rely on\nit). The persisted URL is a permanent, publicly fetchable Prostore URL, so\nit renders as-is in the app, emails, and exports.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.6.0</p></dd></dl></div>",
|
|
342
342
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
343
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
343
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L18"
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
"name": "urls",
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
"description": "",
|
|
351
351
|
"descriptionHtml": "",
|
|
352
352
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
353
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
353
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L7"
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
356
|
"name": "width",
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
"description": "",
|
|
361
361
|
"descriptionHtml": "",
|
|
362
362
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
363
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
363
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L19"
|
|
364
364
|
}
|
|
365
365
|
],
|
|
366
366
|
"description": ""
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
"description": "When true, the `rows` height acts as a minimum instead of a fixed\nsize: the editor starts at that height and grows with content beyond\nit. When false or omitted, the `rows` height is fixed and overflowing\ncontent scrolls.",
|
|
382
382
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>When true, the <code>rows</code> height acts as a minimum instead of a fixed\nsize: the editor starts at that height and grows with content beyond\nit. When false or omitted, the <code>rows</code> height is fixed and overflowing\ncontent scrolls.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>1.1.0</p></dd></dl></div>",
|
|
383
383
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
384
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
384
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L82"
|
|
385
385
|
},
|
|
386
386
|
{
|
|
387
387
|
"name": "rows",
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
"description": "Number of rows to control the editor height. When set, the editor\nheight is fixed. When omitted, the editor grows with content.",
|
|
392
392
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Number of rows to control the editor height. When set, the editor\nheight is fixed. When omitted, the editor grows with content.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>1.0.0</p></dd></dl></div>",
|
|
393
393
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
394
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
394
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L72"
|
|
395
395
|
}
|
|
396
396
|
],
|
|
397
397
|
"description": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Height behavior. <code>extendable</code> is only accepted together with <code>rows</code>:\nwithout <code>rows</code> the editor always auto-grows, so <code>extendable</code> would be\nmeaningless and is rejected at the type level.</p>\n</div></div>"
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
"description": "Accessible description for the editor's editable area.\nThis text provides additional context to screen reader users. It will be\nannounced after the label when the user focuses the editor.",
|
|
408
408
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Accessible description for the editor's editable area.\nThis text provides additional context to screen reader users. It will be\nannounced after the label when the user focuses the editor.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.1.0</p></dd></dl></div>",
|
|
409
409
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
410
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
410
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L153"
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
"name": "aria-label",
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
"description": "Accessible label for the editor's editable area. This text will be\nannounced by screen readers when the user focuses the editor. It should\nmatch or include the visible label associated with this editor field.\nIf not provided, screen readers will announce a generic \"Rich Text Editor\" message.",
|
|
418
418
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Accessible label for the editor's editable area. This text will be\nannounced by screen readers when the user focuses the editor. It should\nmatch or include the visible label associated with this editor field.\nIf not provided, screen readers will announce a generic "Rich Text Editor" message.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.1.0</p></dd></dl></div>",
|
|
419
419
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
420
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
420
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L144"
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
"name": "companyId",
|
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
"description": "Required to enable image uploads. When omitted, the editor renders without\nthe Procore image-upload plugin.",
|
|
428
428
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Required to enable image uploads. When omitted, the editor renders without\nthe Procore image-upload plugin.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.5.0</p></dd></dl></div>",
|
|
429
429
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
430
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
430
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L46"
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
"name": "disabled",
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
"description": "Indicates if the editor is disabled",
|
|
438
438
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Indicates if the editor is disabled</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
439
439
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
440
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
440
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L119"
|
|
441
441
|
},
|
|
442
442
|
{
|
|
443
443
|
"name": "enforceCKEditor",
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
"description": "Opt in to CKEditor immediately, bypassing the gradual feature flag rollout.\nUse this only when you explicitly want to ignore the rollout schedule.\nWhen enabled, the LaunchDarkly flag is bypassed and CKEditor is rendered directly.",
|
|
448
448
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Opt in to CKEditor immediately, bypassing the gradual feature flag rollout.\nUse this only when you explicitly want to ignore the rollout schedule.\nWhen enabled, the LaunchDarkly flag is bypassed and CKEditor is rendered directly.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>1.0.0</p></dd></dl></div>",
|
|
449
449
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
450
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
450
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L251"
|
|
451
451
|
},
|
|
452
452
|
{
|
|
453
453
|
"name": "error",
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
"description": "Indicates if the editor is in an error state",
|
|
458
458
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Indicates if the editor is in an error state</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
459
459
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
460
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
460
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L126"
|
|
461
461
|
},
|
|
462
462
|
{
|
|
463
463
|
"name": "id",
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
"description": "Unique identifier for the editor",
|
|
468
468
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Unique identifier for the editor</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
469
469
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
470
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
470
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L95"
|
|
471
471
|
},
|
|
472
472
|
{
|
|
473
473
|
"name": "init",
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
"description": "TinyMCE init configuration. Merged with internal defaults; use this to\npass custom content_style, paste hooks, or other TinyMCE-specific options.\nHas no effect when CKEditor is active.",
|
|
478
478
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>TinyMCE init configuration. Merged with internal defaults; use this to\npass custom content_style, paste hooks, or other TinyMCE-specific options.\nHas no effect when CKEditor is active.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>1.0.0</p></dd></dl></div>",
|
|
479
479
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
480
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
480
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L242"
|
|
481
481
|
},
|
|
482
482
|
{
|
|
483
483
|
"name": "initialValue",
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
"deprecated": "`initialValue` has been deprecated and will be removed in a future version.\nPlease use the `value` prop instead",
|
|
490
490
|
"deprecatedSince": "0.0.1",
|
|
491
491
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
492
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
492
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L105"
|
|
493
493
|
},
|
|
494
494
|
{
|
|
495
495
|
"name": "locale",
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
"description": "Locale which will be used for localization. Can be passed directly or\nset by wrapping components in I18n provider.",
|
|
500
500
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Locale which will be used for localization. Can be passed directly or\nset by wrapping components in I18n provider.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
501
501
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
502
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
502
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L160"
|
|
503
503
|
},
|
|
504
504
|
{
|
|
505
505
|
"name": "onAfterDestroy",
|
|
@@ -509,7 +509,7 @@
|
|
|
509
509
|
"description": "Callback fired after the editor instance is destroyed",
|
|
510
510
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired after the editor instance is destroyed</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
511
511
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
512
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
512
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L210"
|
|
513
513
|
},
|
|
514
514
|
{
|
|
515
515
|
"name": "onBlur",
|
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
"description": "Callback fired when the editor loses focus",
|
|
520
520
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when the editor loses focus</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
521
521
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
522
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
522
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L183"
|
|
523
523
|
},
|
|
524
524
|
{
|
|
525
525
|
"name": "onChange",
|
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
"description": "Callback fired when the editor content changes",
|
|
530
530
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when the editor content changes</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
531
531
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
532
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
532
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L169"
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
535
|
"name": "onDirty",
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
"description": "Callback fired when the editor becomes dirty (content differs from initial value)",
|
|
540
540
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when the editor becomes dirty (content differs from initial value)</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
541
541
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
542
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
542
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L217"
|
|
543
543
|
},
|
|
544
544
|
{
|
|
545
545
|
"name": "onError",
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
"description": "Callback fired when an error occurs in the editor",
|
|
550
550
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when an error occurs in the editor</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
551
551
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
552
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
552
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L190"
|
|
553
553
|
},
|
|
554
554
|
{
|
|
555
555
|
"name": "onFocus",
|
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
"description": "Callback fired when the editor gains focus",
|
|
560
560
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when the editor gains focus</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
561
561
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
562
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
562
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L176"
|
|
563
563
|
},
|
|
564
564
|
{
|
|
565
565
|
"name": "onInit",
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
"description": "Callback fired when the editor is ready",
|
|
570
570
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when the editor is ready</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
571
571
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
572
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
572
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L203"
|
|
573
573
|
},
|
|
574
574
|
{
|
|
575
575
|
"name": "onKeyDown",
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
"description": "Callback fired when a key is pressed in the editor",
|
|
580
580
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Callback fired when a key is pressed in the editor</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
581
581
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
582
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
582
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L226"
|
|
583
583
|
},
|
|
584
584
|
{
|
|
585
585
|
"name": "placeholder",
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
"description": "Placeholder text shown when the editor is empty",
|
|
590
590
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Placeholder text shown when the editor is empty</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>1.0.0</p></dd></dl></div>",
|
|
591
591
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
592
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
592
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L233"
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
595
|
"name": "projectId",
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
"description": "",
|
|
600
600
|
"descriptionHtml": "",
|
|
601
601
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
602
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
602
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L47"
|
|
603
603
|
},
|
|
604
604
|
{
|
|
605
605
|
"name": "readonly",
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
"description": "Indicates if the editor is in readonly mode.\nWhen true, renders the content using TextEditorOutput instead of the editable editor.",
|
|
610
610
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Indicates if the editor is in readonly mode.\nWhen true, renders the content using TextEditorOutput instead of the editable editor.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.2.0</p></dd></dl></div>",
|
|
611
611
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
612
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
612
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L134"
|
|
613
613
|
},
|
|
614
614
|
{
|
|
615
615
|
"name": "toolName",
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
"description": "Identifier of the tool hosting the editor (e.g. `rfis`, `submittal_log`).\nRequired to enable image uploads: it is sent with each upload for\nattribution/audit and is validated by the backend against known tools.\nWhen omitted, the editor renders without the Procore image-upload plugin.",
|
|
620
620
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Identifier of the tool hosting the editor (e.g. <code>rfis</code>, <code>submittal_log</code>).\nRequired to enable image uploads: it is sent with each upload for\nattribution/audit and is validated by the backend against known tools.\nWhen omitted, the editor renders without the Procore image-upload plugin.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.7.0</p></dd></dl></div>",
|
|
621
621
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
622
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
622
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L56"
|
|
623
623
|
},
|
|
624
624
|
{
|
|
625
625
|
"name": "value",
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
"description": "The current value of the editor",
|
|
630
630
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>The current value of the editor</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>0.0.1</p></dd></dl></div>",
|
|
631
631
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
632
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
632
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L112"
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"name": "extendable",
|
|
@@ -639,7 +639,7 @@
|
|
|
639
639
|
"description": "When true, the `rows` height acts as a minimum instead of a fixed\nsize: the editor starts at that height and grows with content beyond\nit. When false or omitted, the `rows` height is fixed and overflowing\ncontent scrolls.",
|
|
640
640
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>When true, the <code>rows</code> height acts as a minimum instead of a fixed\nsize: the editor starts at that height and grows with content beyond\nit. When false or omitted, the <code>rows</code> height is fixed and overflowing\ncontent scrolls.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>1.1.0</p></dd></dl></div>",
|
|
641
641
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
642
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
642
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L82"
|
|
643
643
|
},
|
|
644
644
|
{
|
|
645
645
|
"name": "rows",
|
|
@@ -649,7 +649,7 @@
|
|
|
649
649
|
"description": "Number of rows to control the editor height. When set, the editor\nheight is fixed. When omitted, the editor grows with content.",
|
|
650
650
|
"descriptionHtml": "<div class=\"tsd-comment tsd-typography\"><div class=\"lead\">\n<p>Number of rows to control the editor height. When set, the editor\nheight is fixed. When omitted, the editor grows with content.</p>\n</div><dl class=\"tsd-comment-tags\"><dt>since</dt><dd><p>1.0.0</p></dd></dl></div>",
|
|
651
651
|
"sourceFile": "packages/text-editor/src/TextEditor/TextEditor.types.ts",
|
|
652
|
-
"sourceUrl": "https://github.com/procore/core/blob/
|
|
652
|
+
"sourceUrl": "https://github.com/procore/core/blob/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditor/TextEditor.types.ts#L72"
|
|
653
653
|
}
|
|
654
654
|
],
|
|
655
655
|
"description": ""
|
|
@@ -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/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/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/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/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/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/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/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/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/74a2a6e9ef458b346a066a8f63dbc2f5ee1110ea/packages/text-editor/src/TextEditorOutput/TextEditorOutput.types.ts#L7"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"description": ""
|
package/dist/locales/de-DE.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "Sie haben das Limit von %{count} Bildern erreicht. Entfernen Sie ein Bild, bevor Sie ein neues hinzufügen.",
|
|
11
11
|
"unreadable" : "Diese Datei konnte nicht als Bild gelesen werden. Wählen Sie ein anderes Bild aus und versuchen Sie es erneut.",
|
|
12
12
|
"failed" : "Dieses Bild konnte nicht hochgeladen werden. Überprüfen Sie Ihre Verbindung und versuchen Sie es erneut.",
|
|
13
|
+
"missingStorageInstructions" : "Beim Hochladen dieses Bildes ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",
|
|
13
14
|
"invalidProstoreFileId" : "Beim Hochladen dieses Bildes ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",
|
|
14
15
|
"invalidImageUrl" : "Beim Hochladen dieses Bildes ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut."
|
|
15
16
|
}
|
package/dist/locales/en-AU.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/locales/en-CA.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/locales/en-GB.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/locales/es-ES.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "Ha alcanzado el límite de %{count} imágenes. Elimine una antes de añadir otra.",
|
|
11
11
|
"unreadable" : "Este archivo no se ha podido leer como una imagen. Elija otra imagen e inténtelo de nuevo.",
|
|
12
12
|
"failed" : "No se ha podido cargar esta imagen. Compruebe la conexión e inténtelo de nuevo.",
|
|
13
|
+
"missingStorageInstructions" : "Se ha producido un error al cargar esta imagen. Inténtelo de nuevo.",
|
|
13
14
|
"invalidProstoreFileId" : "Se ha producido un error al cargar esta imagen. Inténtelo de nuevo.",
|
|
14
15
|
"invalidImageUrl" : "Se ha producido un error al cargar esta imagen. Inténtelo de nuevo."
|
|
15
16
|
}
|
package/dist/locales/es.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "Alcanzó el límite de %{count} imágenes. Elimine una antes de agregar otra.",
|
|
11
11
|
"unreadable" : "Este archivo no se pudo leer como una imagen. Elija otra imagen e inténtelo de nuevo.",
|
|
12
12
|
"failed" : "No se pudo cargar esta imagen. Verifique su conexión y vuelva a intentarlo.",
|
|
13
|
+
"missingStorageInstructions" : "Se produjo un error al cargar esta imagen. Inténtelo de nuevo.",
|
|
13
14
|
"invalidProstoreFileId" : "Se produjo un error al subir esta imagen. Inténtelo de nuevo.",
|
|
14
15
|
"invalidImageUrl" : "Se produjo un error al subir esta imagen. Inténtelo de nuevo."
|
|
15
16
|
}
|
package/dist/locales/fr-CA.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "Vous avez atteint la limite de %{count} images. Enlevez-en une avant d'en ajouter une autre.",
|
|
11
11
|
"unreadable" : "Ce fichier n'a pas pu être lu comme une image. Choisissez une autre image et réessayez.",
|
|
12
12
|
"failed" : "Nous n'avons pas pu téléverser cette image. Vérifiez votre connexion et réessayez.",
|
|
13
|
+
"missingStorageInstructions" : "Une erreur s'est produite lors du téléversement de cette image. Veuillez réessayer.",
|
|
13
14
|
"invalidProstoreFileId" : "Une erreur s'est produite lors du téléversement de cette image. Veuillez réessayer.",
|
|
14
15
|
"invalidImageUrl" : "Une erreur s'est produite lors du téléversement de cette image. Veuillez réessayer."
|
|
15
16
|
}
|
package/dist/locales/fr-FR.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "Vous avez atteint la limite de %{count} images. Retirez-en une avant d'en ajouter une autre.",
|
|
11
11
|
"unreadable" : "Impossible de lire ce fichier comme une image. Choisissez une autre image et réessayez.",
|
|
12
12
|
"failed" : "Nous n'avons pas pu charger cette image. Vérifiez votre connexion et réessayez.",
|
|
13
|
+
"missingStorageInstructions" : "Une erreur s'est produite lors du chargement de cette image. Veuillez réessayer.",
|
|
13
14
|
"invalidProstoreFileId" : "Une erreur s'est produite lors du chargement de cette image. Veuillez réessayer.",
|
|
14
15
|
"invalidImageUrl" : "Une erreur s'est produite lors du chargement de cette image. Veuillez réessayer."
|
|
15
16
|
}
|
package/dist/locales/is-IS.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "Þú hefur náð hámarkinu %{count} myndir. Fjarlægðu eitt áður en þú bætir öðru við.",
|
|
11
11
|
"unreadable" : "Ekki var hægt að lesa þessa skrá sem mynd. Veldu aðra mynd og reyndu aftur.",
|
|
12
12
|
"failed" : "Við gátum ekki hlaðið þessari mynd inn. Athugaðu tenginguna þína og reyndu aftur.",
|
|
13
|
+
"missingStorageInstructions" : "Eitthvað fór úrskeiðis við að hlaða þessari mynd inn. Vinsamlegast reyndu aftur.",
|
|
13
14
|
"invalidProstoreFileId" : "Eitthvað fór úrskeiðis við að hlaða þessari mynd inn. Vinsamlegast reynið aftur.",
|
|
14
15
|
"invalidImageUrl" : "Eitthvað fór úrskeiðis við að hlaða þessari mynd inn. Vinsamlegast reynið aftur."
|
|
15
16
|
}
|
package/dist/locales/it-IT.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "È stato raggiunto il limite di %{count} immagini. Rimuoverne una prima di aggiungerne un'altra.",
|
|
11
11
|
"unreadable" : "Impossibile leggere questo file come immagine. Scegliere un'immagine diversa e riprovare.",
|
|
12
12
|
"failed" : "Impossibile caricare questa immagine. Verificare la connessione e riprovare.",
|
|
13
|
+
"missingStorageInstructions" : "Si è verificato un errore durante il caricamento di questa immagine. Riprovare.",
|
|
13
14
|
"invalidProstoreFileId" : "Si è verificato un errore durante il caricamento di questa immagine. Riprovare.",
|
|
14
15
|
"invalidImageUrl" : "Si è verificato un errore durante il caricamento di questa immagine. Riprovare."
|
|
15
16
|
}
|
package/dist/locales/ja-JP.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "画像数の上限である%{count}枚に達しました。新しいものを追加する前に、1 つ削除してください。",
|
|
11
11
|
"unreadable" : "このファイルは画像として読み込めませんでした。別の画像を選択して、もう一度お試しください。",
|
|
12
12
|
"failed" : "この画像をアップロードできませんでした。接続状況を確認して、もう一度お試しください。",
|
|
13
|
+
"missingStorageInstructions" : "画像のアップロード中に問題が発生しました。もう一度お試しください。",
|
|
13
14
|
"invalidProstoreFileId" : "画像のアップロード中に問題が発生しました。もう一度お試しください。",
|
|
14
15
|
"invalidImageUrl" : "画像のアップロード中に問題が発生しました。もう一度お試しください。"
|
|
15
16
|
}
|
package/dist/locales/nb-NO.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "Du har nådd grensen på %{count} bilder. Fjern ett før du legger til et annet.",
|
|
11
11
|
"unreadable" : "Denne filen kan ikke leses som et bilde. Velg et annet bilde og prøv igjen.",
|
|
12
12
|
"failed" : "Vi kan ikke laste opp dette bildet. Sjekk tilkoblingen din og prøv igjen.",
|
|
13
|
+
"missingStorageInstructions" : "Noe gikk galt under opplastingen av dette bildet. Prøv igjen.",
|
|
13
14
|
"invalidProstoreFileId" : "Noe gikk galt under opplastingen av dette bildet. Prøv igjen.",
|
|
14
15
|
"invalidImageUrl" : "Noe gikk galt under opplastingen av dette bildet. Prøv igjen."
|
|
15
16
|
}
|
package/dist/locales/pl-PL.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "Osiągnięto limit %{count} obrazów. Usuń jeden przed dodaniem kolejnego.",
|
|
11
11
|
"unreadable" : "Tego pliku nie można odczytać jako obrazu. Wybierz inny obraz i spróbuj ponownie.",
|
|
12
12
|
"failed" : "Nie udało się przesłać tego obrazu. Sprawdź połączenie i spróbuj ponownie.",
|
|
13
|
+
"missingStorageInstructions" : "Wystąpił błąd podczas przesyłania tego obrazu. Spróbuj ponownie.",
|
|
13
14
|
"invalidProstoreFileId" : "Wystąpił błąd podczas przesyłania tego obrazu. Spróbuj ponownie.",
|
|
14
15
|
"invalidImageUrl" : "Wystąpił błąd podczas przesyłania tego obrazu. Spróbuj ponownie."
|
|
15
16
|
}
|
package/dist/locales/pt-BR.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "Você atingiu o limite de %{count} imagens. Remova uma antes de adicionar outra.",
|
|
11
11
|
"unreadable" : "Este arquivo não pôde ser lido como uma imagem. Escolha uma imagem diferente e tente novamente.",
|
|
12
12
|
"failed" : "Não foi possível fazer upload desta imagem. Verifique a conexão e tente novamente.",
|
|
13
|
+
"missingStorageInstructions" : "Ocorreu um erro ao fazer upload desta imagem. Tente novamente.",
|
|
13
14
|
"invalidProstoreFileId" : "Ocorreu um erro ao fazer upload desta imagem. Tente novamente.",
|
|
14
15
|
"invalidImageUrl" : "Ocorreu um erro ao fazer upload desta imagem. Tente novamente."
|
|
15
16
|
}
|
package/dist/locales/pt-PT.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "Atingiu o limite de %{count} imagens. Remova uma antes de adicionar outra.",
|
|
11
11
|
"unreadable" : "Não foi possível ler este ficheiro como uma imagem. Escolha uma imagem diferente e tente novamente.",
|
|
12
12
|
"failed" : "Não foi possível carregar esta imagem. Verifique a sua ligação e tente novamente.",
|
|
13
|
+
"missingStorageInstructions" : "Ocorreu um erro ao carregar esta imagem. Tente novamente.",
|
|
13
14
|
"invalidProstoreFileId" : "Ocorreu um erro ao carregar esta imagem. Por favor, tente novamente.",
|
|
14
15
|
"invalidImageUrl" : "Ocorreu um erro ao carregar esta imagem. Por favor, tente novamente."
|
|
15
16
|
}
|
package/dist/locales/th-TH.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "คุณใช้จำนวนภาพครบ %{count} ภาพแล้ว นำอันหนึ่งออกก่อนจึงจะสามารถเพิ่มอันใหม่ได้",
|
|
11
11
|
"unreadable" : "ไฟล์นี้ไม่สามารถอ่านเป็นรูปภาพได้ เลือกภาพอื่นแล้วลองใหม่อีกครั้ง",
|
|
12
12
|
"failed" : "เราไม่สามารถอัปโหลดรูปภาพนี้ได้ ตรวจสอบการเชื่อมต่อของคุณแล้วลองใหม่อีกครั้ง",
|
|
13
|
+
"missingStorageInstructions" : "เกิดข้อผิดพลาดบางอย่างขณะอัปโหลดรูปภาพนี้ กรุณาลองอีกครั้ง.",
|
|
13
14
|
"invalidProstoreFileId" : "เกิดข้อผิดพลาดบางอย่างขณะอัปโหลดรูปภาพนี้ โปรดลองอีกครั้ง",
|
|
14
15
|
"invalidImageUrl" : "เกิดข้อผิดพลาดบางอย่างขณะอัปโหลดรูปภาพนี้ โปรดลองอีกครั้ง"
|
|
15
16
|
}
|
package/dist/locales/zh-SG.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "你已达到 %{count} 张图片的上限。请先移除一张图片,再添加新图片。",
|
|
11
11
|
"unreadable" : "此文件无法作为图像读取。请选择其他图片,然后重试。",
|
|
12
12
|
"failed" : "无法上传此图片。请检查连接,然后重试。",
|
|
13
|
+
"missingStorageInstructions" : "上传此图片时出错。请重试。",
|
|
13
14
|
"invalidProstoreFileId" : "上传此图片时出错。请重试。",
|
|
14
15
|
"invalidImageUrl" : "上传此图片时出错。请重试。"
|
|
15
16
|
}
|
package/dist/locales/zh-TW.json
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"imageLimit" : "您已達到 %{count} 張影像的上限。請先移除一張,再新增另一張。",
|
|
11
11
|
"unreadable" : "無法將此檔案讀取為影像。請選擇其他影像後再試一次。",
|
|
12
12
|
"failed" : "無法上傳此影像。請檢查您的網路連線並再試一次。",
|
|
13
|
+
"missingStorageInstructions" : "上傳此影像時發生問題。請再試一次。",
|
|
13
14
|
"invalidProstoreFileId" : "上傳此影像時發生問題。請再試一次。",
|
|
14
15
|
"invalidImageUrl" : "上傳此影像時發生問題。請再試一次。"
|
|
15
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procore/text-editor",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
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",
|
|
@@ -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.3",
|
|
73
73
|
"@procore/globalization-toolkit": ">= 3 < 4",
|
|
74
74
|
"ckeditor5": ">= 47 < 49",
|
|
75
75
|
"ckeditor5-premium-features": ">= 47 < 49",
|
|
@@ -82,13 +82,13 @@
|
|
|
82
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.20.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
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.7"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@babel/cli": "^7.22.10",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@babel/preset-react": "^7.24.1",
|
|
100
100
|
"@babel/preset-typescript": "^7.24.1",
|
|
101
101
|
"@babel/register": "^7.18.9",
|
|
102
|
-
"@procore/core-react": "^12.53.
|
|
102
|
+
"@procore/core-react": "^12.53.3",
|
|
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",
|