@pega/cosmos-react-rte 9.0.0-build.14.5 → 9.0.0-build.14.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextEditor.styles.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/RichTextEditor.styles.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,eAAO,MAAM,qBAAqB;sBACd,mBAAmB,CAAC,QAAQ,CAAC;SA6B/C,CAAC;AAIH,QAAA,MAAM,oBAAoB;cAA0B,OAAO;oBAAkB,OAAO;SA2CnF,CAAC;AAIF,eAAO,MAAM,oBAAoB,yGAYhC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"RichTextEditor.styles.d.ts","sourceRoot":"","sources":["../../../src/components/RichTextEditor/RichTextEditor.styles.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,eAAO,MAAM,qBAAqB;sBACd,mBAAmB,CAAC,QAAQ,CAAC;SA6B/C,CAAC;AAIH,QAAA,MAAM,oBAAoB;cAA0B,OAAO;oBAAkB,OAAO;SAwCnF,CAAC;AAIF,eAAO,MAAM,oBAAoB,yGAYhC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -39,9 +39,6 @@ const StyledRichTextEditor = styled.div(({ theme, focused, hasSuggestion }) => {
39
39
  : theme.base.palette['primary-background']};
40
40
  width: 100%;
41
41
  position: relative;
42
- border-color: ${hasSuggestion && theme.components['form-field'].pending
43
- ? theme.components['form-field'].pending['status-color']
44
- : theme.components['form-control']['border-color']};
45
42
  box-shadow: none;
46
43
 
47
44
  /* Override default styling of slate placeholder. */
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextEditor.styles.js","sourceRoot":"","sources":["../../../src/components/RichTextEditor/RichTextEdit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;;sBAG5B,aAAa,IAAI,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,OAAO;QACrE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QACxD,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,cAAc,CAAC;;;;;;;mBAOvC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC;;;QAGnD,aAAa;QACf,GAAG,CAAA;;wBAEe,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;OACvE;;QAEC,OAAO;QACT,GAAG,CAAA;;0BAEiB,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC;wBAC5D,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC;;;;;;OAMzE;KACF,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;IAK1C,UAAU;;;;;;;CAOb,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { mix } from 'polished';\n\nimport { defaultThemeProp, StyledLink } from '@pega/cosmos-react-core';\nimport { listStyles } from '@pega/cosmos-react-core/lib/components/HTML/HTML';\n\nimport type { RichTextEditorProps } from './RichTextEditor.types';\n\nexport const StyledEditorContainer = styled.div<{\n containerHeight?: RichTextEditorProps['height'];\n}>(({ containerHeight, theme }) => {\n return css`\n padding: ${theme.base.spacing};\n\n ${typeof containerHeight === 'string' &&\n css`\n height: ${containerHeight};\n `}\n\n ${typeof containerHeight === 'object' &&\n css`\n ${containerHeight.min &&\n css`\n min-height: ${containerHeight.min};\n `}\n\n ${containerHeight.max &&\n css`\n max-height: ${containerHeight.max};\n `}\n `}\n\n &:hover {\n cursor: text;\n }\n\n ${listStyles}\n `;\n});\n\nStyledEditorContainer.defaultProps = defaultThemeProp;\n\nconst StyledRichTextEditor = styled.div<{ focused?: boolean; hasSuggestion?: boolean }>(\n ({ theme, focused, hasSuggestion }) => {\n return css`\n background-color: ${hasSuggestion && theme.components['form-field'].pending\n ? mix(\n 0.1,\n theme.components['form-field'].pending['status-color'],\n theme.base.palette['primary-background']\n )\n : theme.base.palette['primary-background']};\n width: 100%;\n position: relative;\n border-color: ${hasSuggestion && theme.components['form-field'].pending\n ? theme.components['form-field'].pending['status-color']\n : theme.components['form-control']['border-color']};\n box-shadow: none;\n\n /* Override default styling of slate placeholder. */\n span[data-slate-placeholder='true'] {\n position: absolute;\n inset-block-start: 0;\n opacity: ${theme.base.transparency['transparent-3']};\n }\n\n ${hasSuggestion &&\n css`\n /* Adding explicit styles for suggestion state */\n border-color: ${theme.components['form-field'].pending['status-color']};\n `}\n\n ${focused &&\n css`\n &:not([disabled]) {\n border-color: ${theme.components['form-control'][':focus']['border-color']};\n box-shadow: ${theme.components['form-control'][':focus']['box-shadow']};\n }\n\n &:hover:not([readonly]):not([disabled]):not(:focus, :focus-within) {\n border-color: transparent;\n }\n `}\n `;\n }\n);\n\nStyledRichTextEditor.defaultProps = defaultThemeProp;\n\nexport const StyledRichTextViewer = styled.div`\n width: 100%;\n position: relative;\n overflow-wrap: break-word;\n\n ${StyledLink} {\n &:enabled:focus,\n &:not([disabled]):focus {\n box-shadow: none;\n text-decoration: underline;\n }\n }\n`;\n\nexport default StyledRichTextEditor;\n"]}
1
+ {"version":3,"file":"RichTextEditor.styles.js","sourceRoot":"","sources":["../../../src/components/RichTextEditor/RichTextEditor.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,OAAO,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,OAAO,CAAC,cAAc,CAAC;OACvE;;QAEC,OAAO;QACT,GAAG,CAAA;;0BAEiB,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC;wBAC5D,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC;;;;;;OAMzE;KACF,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;IAK1C,UAAU;;;;;;;CAOb,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { mix } from 'polished';\n\nimport { defaultThemeProp, StyledLink } from '@pega/cosmos-react-core';\nimport { listStyles } from '@pega/cosmos-react-core/lib/components/HTML/HTML';\n\nimport type { RichTextEditorProps } from './RichTextEditor.types';\n\nexport const StyledEditorContainer = styled.div<{\n containerHeight?: RichTextEditorProps['height'];\n}>(({ containerHeight, theme }) => {\n return css`\n padding: ${theme.base.spacing};\n\n ${typeof containerHeight === 'string' &&\n css`\n height: ${containerHeight};\n `}\n\n ${typeof containerHeight === 'object' &&\n css`\n ${containerHeight.min &&\n css`\n min-height: ${containerHeight.min};\n `}\n\n ${containerHeight.max &&\n css`\n max-height: ${containerHeight.max};\n `}\n `}\n\n &:hover {\n cursor: text;\n }\n\n ${listStyles}\n `;\n});\n\nStyledEditorContainer.defaultProps = defaultThemeProp;\n\nconst StyledRichTextEditor = styled.div<{ focused?: boolean; hasSuggestion?: boolean }>(\n ({ theme, focused, hasSuggestion }) => {\n return css`\n background-color: ${hasSuggestion && theme.components['form-field'].pending\n ? mix(\n 0.1,\n theme.components['form-field'].pending['status-color'],\n theme.base.palette['primary-background']\n )\n : theme.base.palette['primary-background']};\n width: 100%;\n position: relative;\n box-shadow: none;\n\n /* Override default styling of slate placeholder. */\n span[data-slate-placeholder='true'] {\n position: absolute;\n inset-block-start: 0;\n opacity: ${theme.base.transparency['transparent-3']};\n }\n\n ${hasSuggestion &&\n css`\n /* Adding explicit styles for suggestion state */\n border-color: ${theme.components['form-field'].pending['status-color']};\n `}\n\n ${focused &&\n css`\n &:not([disabled]) {\n border-color: ${theme.components['form-control'][':focus']['border-color']};\n box-shadow: ${theme.components['form-control'][':focus']['box-shadow']};\n }\n\n &:hover:not([readonly]):not([disabled]):not(:focus, :focus-within) {\n border-color: transparent;\n }\n `}\n `;\n }\n);\n\nStyledRichTextEditor.defaultProps = defaultThemeProp;\n\nexport const StyledRichTextViewer = styled.div`\n width: 100%;\n position: relative;\n overflow-wrap: break-word;\n\n ${StyledLink} {\n &:enabled:focus,\n &:not([disabled]):focus {\n box-shadow: none;\n text-decoration: underline;\n }\n }\n`;\n\nexport default StyledRichTextEditor;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/cosmos-react-rte",
3
- "version": "9.0.0-build.14.5",
3
+ "version": "9.0.0-build.14.7",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "Pegasystems",
6
6
  "sideEffects": false,
@@ -14,7 +14,7 @@
14
14
  "build": "tsc -b tsconfig.build.json"
15
15
  },
16
16
  "dependencies": {
17
- "@pega/cosmos-react-core": "9.0.0-build.14.5",
17
+ "@pega/cosmos-react-core": "9.0.0-build.14.7",
18
18
  "@popperjs/core": "^2.11.6",
19
19
  "@types/parse5": "^6.0.0",
20
20
  "@types/react": "^17.0.62 || ^18.3.3",