@orangelogic/design-system 2.91.0 → 2.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/asset.Duzr3O3z.js +370 -0
- package/library/chunks/{endpoints.BpAhLyZw.js → asset.types.6DCzTOQm.js} +517 -515
- package/library/chunks/{button.BrIJPc2a.js → button.BZjbVq8t.js} +3 -3
- package/library/chunks/button.styles.Cz4EELcL.js +5 -0
- package/library/chunks/{color-swatch-group.CpuPC0u3.js → color-swatch-group.DRKpTlyp.js} +5 -5
- package/library/chunks/{color-swatch.hsIcIXE-.js → color-swatch.CbL_TpRZ.js} +1 -1
- package/library/chunks/{confirm-popover.Bk0_yxOs.js → confirm-popover.bBo9aPlX.js} +3 -3
- package/library/chunks/{cropper.DTokTzP9.js → cropper.BRKVzJDb.js} +2 -2
- package/library/chunks/{dialog.CPAszptn.js → dialog.DRW8iwh-.js} +20 -13
- package/library/chunks/{dom.Dd4Wh-Mt.js → dom.DURaLV1d.js} +1 -1
- package/library/chunks/{dot-pagination.CWKKpM7m.js → dot-pagination.CvUr6R4S.js} +1 -1
- package/library/chunks/{file-on-demand.CTJQ6P_F.js → file-on-demand.Z7nx9v2R.js} +10 -10
- package/library/chunks/{folder-select.D6NkbExX.js → folder-select.DxBOSyvo.js} +48 -49
- package/library/chunks/{form.Bi8x0jbW.js → form.nRqYei4e.js} +1 -1
- package/library/chunks/header.ClxEkQPZ.js +700 -0
- package/library/chunks/{i18n.CgwQHLcP.js → i18n.W6czbRms.js} +87 -7
- package/library/chunks/icon-button.MqA-pNw8.js +149 -0
- package/library/chunks/{iframe.DnAs6e8f.js → iframe.PcSPtm_O.js} +1 -1
- package/library/chunks/{image.DbfpMKMc.js → image.C3LupRuN.js} +118 -115
- package/library/chunks/image.ocYnNdYK.js +150 -0
- package/library/chunks/{index.zCSI4caC.js → index.B7slZiaV.js} +173 -148
- package/library/chunks/{list-editor.T0Lrm0Yo.js → list-editor.BnIOuHUQ.js} +12 -13
- package/library/chunks/number.DE78rV_g.js +104 -0
- package/library/chunks/{option.T4KSh5qy.js → option.Cx54zrJq.js} +1 -1
- package/library/chunks/{pagination.DC9JIt4s.js → pagination.CG5odPWi.js} +4 -4
- package/library/chunks/{responsive.DL-wBD4P.js → responsive.D9TUCX5p.js} +1 -1
- package/library/chunks/{string.B_mXTq0K.js → string.DfV21HEI.js} +12 -8
- package/library/chunks/{tab-group.B6olTWpV.js → tab-group.BLZ-qEpp.js} +4 -4
- package/library/chunks/{table.Da1P5WrI.js → table.1GgUDoqR.js} +1068 -951
- package/library/chunks/template.ClovJacp.js +31 -0
- package/library/chunks/{time.D_uFZqqe.js → time.wo2iH5iw.js} +1 -1
- package/library/chunks/toast.Bc4wpYJ1.js +150 -0
- package/library/chunks/{tree.D5Fv7i1r.js → tree.CKi63r95.js} +89 -89
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +8 -8
- package/library/components/atoms.js +12 -12
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +4 -4
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +6 -6
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +11 -11
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +2 -2
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +6 -6
- package/library/components/markdown.js +2 -2
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +56 -53
- package/library/components/menu.js +10 -7
- package/library/components/molecules.js +5 -5
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +30 -43
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab.js +2 -2
- package/library/components/table.js +57 -55
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +28464 -28907
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/button/button.d.ts +5 -0
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +1 -0
- package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +1 -0
- package/library/packages/atoms/src/components/markdown/parser.d.ts +1 -1
- package/library/packages/atoms/src/components/menu/menu.d.ts +6 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +6 -0
- package/library/packages/atoms/src/components/table/styles/table-clickable-cell.styles.d.ts +10 -0
- package/library/packages/atoms/src/components/table/table.d.ts +1 -0
- package/library/packages/base/src/resizable-element.d.ts +1 -0
- package/library/packages/events/src/cx-code-block-language-change.d.ts +8 -0
- package/library/packages/events/src/cx-find-and-replace.d.ts +32 -0
- package/library/packages/events/src/cx-link-request.d.ts +12 -0
- package/library/packages/events/src/cx-rich-text-anchor-apply-request.d.ts +9 -0
- package/library/packages/events/src/cx-rich-text-blur.d.ts +6 -0
- package/library/packages/events/src/cx-rich-text-change.d.ts +8 -0
- package/library/packages/events/src/cx-rich-text-click.d.ts +6 -0
- package/library/packages/events/src/cx-rich-text-focus.d.ts +6 -0
- package/library/packages/events/src/cx-rich-text-image-drop.d.ts +8 -0
- package/library/packages/events/src/cx-rich-text-image-save.d.ts +23 -0
- package/library/packages/events/src/cx-rich-text-link-save.d.ts +19 -0
- package/library/packages/events/src/cx-rich-text-native-spellcheck-change.d.ts +12 -0
- package/library/packages/events/src/cx-rich-text-review-layout-refresh.d.ts +8 -0
- package/library/packages/events/src/cx-rich-text-review-node-created.d.ts +13 -0
- package/library/packages/events/src/cx-rich-text-review-selection-changed.d.ts +11 -0
- package/library/packages/events/src/cx-rich-text-suggestion-hover.d.ts +12 -0
- package/library/packages/events/src/cx-rich-text-table-cell-save.d.ts +15 -0
- package/library/packages/events/src/cx-rich-text-table-save.d.ts +16 -0
- package/library/packages/events/src/cx-rich-text-video-save.d.ts +28 -0
- package/library/packages/events/src/cx-special-characters-insert.d.ts +13 -0
- package/library/packages/events/src/cx-tiptap-code-block-doc-request.d.ts +19 -0
- package/library/packages/events/src/cx-tiptap-image-doc-request.d.ts +24 -0
- package/library/packages/events/src/cx-tiptap-image-host-feedback.d.ts +13 -0
- package/library/packages/events/src/cx-tiptap-video-doc-request.d.ts +24 -0
- package/library/packages/events/src/cx-tiptap-video-host-feedback.d.ts +13 -0
- package/library/packages/events/src/events.d.ts +25 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/core/modules/optional.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ClickableCell/ClickableCell.d.ts +44 -0
- package/library/packages/{atoms/src/components/table/modules → hybrid/table-core/src/tabulator-tables/modules/HoverMenu}/HoverMenu.d.ts +7 -5
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/mentions/mentions.d.ts +53 -0
- package/library/packages/organisms/src/comment/comment.d.ts +3 -3
- package/library/packages/organisms/src/comment/extensions/index.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +5 -10
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/constant.d.ts +12 -13
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +1 -1
- package/library/packages/organisms/src/find-and-replace/find-and-replace.d.ts +84 -0
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/organisms/src/{content-builder/plugins/rich-text-editor/components/rte-bubble-menu/special-char-dialog.d.ts → special-characters-dialog/special-characters-dialog.d.ts} +11 -12
- package/library/packages/services/src/api/asset/asset.d.ts +17 -15
- package/library/packages/services/src/api/asset/asset.types.d.ts +97 -32
- package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
- package/library/packages/services/src/api/endpoints.d.ts +2 -4
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +7 -0
- package/library/packages/tools/src/tiptap/constants/constants.d.ts +41 -0
- package/library/packages/tools/src/tiptap/constants/index.d.ts +1 -0
- package/library/packages/tools/src/tiptap/extensions/blockquote/index.d.ts +2 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/bubble-menu.d.ts → tools/src/tiptap/extensions/bubble-menu/index.d.ts} +11 -27
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/bullet-list/index.d.ts +3 -0
- package/library/packages/tools/src/tiptap/extensions/code-block/code-block-doc-bridge.d.ts +13 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/CodeBlock.d.ts → tools/src/tiptap/extensions/code-block/code-block.d.ts} +2 -1
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/CodeBlockPrism.d.ts → tools/src/tiptap/extensions/code-block/index.d.ts} +2 -1
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/PrismPlugin.d.ts → tools/src/tiptap/extensions/code-block/prism-plugin.d.ts} +1 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/document/commands.d.ts +2 -2
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/link/helpers/autolink.d.ts +1 -1
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/clickHandler.d.ts → tools/src/tiptap/extensions/link/helpers/click-handler.d.ts} +1 -1
- package/library/packages/tools/src/tiptap/extensions/link/helpers/is-valid-url.d.ts +1 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/pasteHandler.d.ts → tools/src/tiptap/extensions/link/helpers/paste-handler.d.ts} +1 -1
- package/library/packages/tools/src/tiptap/extensions/link/index.d.ts +6 -0
- package/library/packages/tools/src/tiptap/extensions/list-item/index.d.ts +2 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/ordered-list/index.d.ts +2 -0
- package/library/packages/tools/src/tiptap/extensions/text-style/index.d.ts +7 -0
- package/library/packages/tools/src/tiptap/utils/anchor-links.d.ts +2 -0
- package/library/packages/tools/src/tiptap/utils/extend-class-style.d.ts +4 -0
- package/library/packages/tools/src/tiptap/utils/is-only-code-block-selection.d.ts +4 -0
- package/library/packages/tools/src/tiptap/utils/parse-tracks.d.ts +1 -0
- package/library/packages/tools/src/tiptap/utils/rich-text-inline-viewer-doc-bridge.d.ts +38 -0
- package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/utils/getStyles.d.ts → tools/src/tiptap/utils/styles.d.ts} +4 -4
- package/library/packages/tools/src/tiptap/utils/text-block-type-input-rule-no-delete.d.ts +3 -0
- package/library/packages/types/src/menu-item.d.ts +2 -0
- package/library/packages/types/src/special-characters-dialog.d.ts +19 -0
- package/library/packages/types/src/table.d.ts +13 -0
- package/library/packages/types/src/tiptap.d.ts +52 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +80 -0
- package/library/packages/utils/src/image/image.d.ts +14 -1
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/keyboard/index.d.ts +1 -0
- package/library/packages/utils/src/keyboard/keyboard.d.ts +9 -0
- package/library/packages/utils/src/number/number.d.ts +4 -0
- package/library/packages/utils/src/object/object.d.ts +2 -0
- package/library/packages/utils/src/string/string.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +1 -0
- package/library/react-web-component.d.ts +154 -13
- package/library/utils.js +187 -177
- package/package.json +1 -1
- package/library/chunks/asset.CVuNAhz3.js +0 -287
- package/library/chunks/button.styles.CKqn956w.js +0 -5
- package/library/chunks/content-builder.B4Tqoc6M.js +0 -127
- package/library/chunks/header.DPVuEZN-.js +0 -177
- package/library/chunks/icon-button.BpwPU4Vg.js +0 -149
- package/library/chunks/image.mbpyiQpQ.js +0 -82
- package/library/chunks/number.CjNxU7Xs.js +0 -93
- package/library/chunks/template.CsJd8Pb_.js +0 -20
- package/library/chunks/toast.BXNbwZV8.js +0 -25
- package/library/packages/organisms/src/comment/components/comment-mention/comment-mention.d.ts +0 -44
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/index.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/rte-code-block-toolbar.d.ts +0 -28
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/index.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.d.ts +0 -68
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.styles.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/blockquote/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/code-block/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/image/convertSrcToBlob.d.ts +0 -6
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/image/index.d.ts +0 -4
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/helpers/isValidUrl.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/link/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/list-item/index.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/text-style/index.d.ts +0 -17
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/extendClassStyle.d.ts +0 -6
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/getImageNaturalWidthHeight.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/isAbsolute.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/isValidImageUrl.d.ts +0 -3
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/parseBooleanString.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/processAnchorLink.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/utils/textblockTypeInputRuleNoDelete.d.ts +0 -3
- /package/library/packages/{organisms/src/comment/components/comment-mention/comment-mention.styles.d.ts → molecules/src/mentions/mentions.styles.d.ts} +0 -0
- /package/library/packages/organisms/src/{content-builder/plugins/rich-text-editor/components/rte-bubble-menu/special-char-dialog.styles.d.ts → find-and-replace/find-and-replace.styles.d.ts} +0 -0
- /package/library/packages/organisms/src/{content-builder/plugins/rich-text-editor/components/rte-code-block-toolbar/rte-code-block-toolbar.styles.d.ts → special-characters-dialog/special-characters-dialog.styles.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/anchor/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/aside-block → tools/src/tiptap/extensions/aside}/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/div/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/document/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/font-size/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/heading/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/highlight/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/inline-class/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/line-height/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/list-item/commands.d.ts +0 -0
- /package/library/packages/{organisms/src/comment/extensions/mention.d.ts → tools/src/tiptap/extensions/mention/index.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/other-elements → tools/src/tiptap/extensions/other-element}/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/other-styles/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/paragraph/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/placeholder/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/cellselection.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/columnResizing.d.ts → tools/src/tiptap/extensions/table/column-resizing.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/commands.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/copyPaste.d.ts → tools/src/tiptap/extensions/table/copy-paste.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/createCell.d.ts → tools/src/tiptap/extensions/table/create-cell.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/createTable.d.ts → tools/src/tiptap/extensions/table/create-table.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/fixTables.d.ts → tools/src/tiptap/extensions/table/fix-tables.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/getTableNodeTypes.d.ts → tools/src/tiptap/extensions/table/get-table-node-types.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/index.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/input.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/rowResizing.d.ts → tools/src/tiptap/extensions/table/row-resizing.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor/extensions/table/tableEditing.d.ts → tools/src/tiptap/extensions/table/table-editing.d.ts} +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/table/utils.d.ts +0 -0
- /package/library/packages/{organisms/src/content-builder/plugins/rich-text-editor → tools/src/tiptap}/extensions/text-align/index.d.ts +0 -0
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
import x from "../components/copy-button.js";
|
|
2
|
+
import { n as s, C as k } from "./lib-cortex-element.CVMmyPMC.js";
|
|
3
|
+
import { c as b } from "./component.styles.CRO4Odto.js";
|
|
4
|
+
import { i as p } from "./lit-element.jLBm65_O.js";
|
|
5
|
+
import { c as v } from "./custom-element.L4WJXn1j.js";
|
|
6
|
+
import { L as y } from "./i18n.W6czbRms.js";
|
|
7
|
+
import { w } from "./watch.BCJD77bD.js";
|
|
8
|
+
import { e as m } from "./query.BBf1UFkC.js";
|
|
9
|
+
import { e as u } from "./class-map.BiVq-cVR.js";
|
|
10
|
+
import { o as P } from "./style-map.llVFPd__.js";
|
|
11
|
+
import { n as M } from "./when.Dr1es41R.js";
|
|
12
|
+
import { i as l, u as d } from "./static.UA3G1Deq.js";
|
|
13
|
+
const C = p`insert,span[format]{background-color:var(--cx-color-success-200)}delete{background-color:var(--cx-color-neutral-200);text-decoration:line-through}annotate{background-color:var(--cx-color-warning-200)}.ProseMirror figure[data-track*=deletion] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=deletion],.ProseMirror cx-rich-text-image-viewer[data-track*=deletion]{border:3px solid var(--cx-color-neutral);position:relative}.ProseMirror figure[data-track*=deletion] [data-node-type=figure]:after,.ProseMirror cx-rich-text-code-block[data-track*=deletion]:after,.ProseMirror cx-rich-text-image-viewer[data-track*=deletion]:after{content:"";box-sizing:border-box;pointer-events:none;background-image:repeating-linear-gradient(45deg, var(--cx-color-neutral), var(--cx-color-neutral) 10px, #fff 10px, #fff 20px);opacity:.4;width:100%;height:100%;position:absolute;top:0;left:0}.ProseMirror figure[data-track*=insertion] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=insertion],.ProseMirror cx-rich-text-image-viewer[data-track*=insertion]{border:3px solid var(--cx-color-success)}.ProseMirror figure[data-track*=annotation] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=annotation],.ProseMirror cx-rich-text-image-viewer[data-track*=annotation]{border:3px solid var(--cx-color-warning-200)}`, z = p`
|
|
14
|
+
.column-resize-handle {
|
|
15
|
+
background-color: var(--editor-table-resize-handle-color);
|
|
16
|
+
bottom: -2px;
|
|
17
|
+
height: unset !important;
|
|
18
|
+
max-height: unset !important;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
position: absolute;
|
|
21
|
+
right: -4px;
|
|
22
|
+
top: -2px;
|
|
23
|
+
width: 4px;
|
|
24
|
+
z-index: 10000;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.column-resize-handle.bottom-handle {
|
|
28
|
+
bottom: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.column-resize-handle.top-handle {
|
|
32
|
+
top: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.row-resize-handle {
|
|
36
|
+
background-color: var(--editor-table-resize-handle-color);
|
|
37
|
+
bottom: -4px;
|
|
38
|
+
height: 4px;
|
|
39
|
+
left: -2px;
|
|
40
|
+
max-width: unset !important;
|
|
41
|
+
pointer-events: none;
|
|
42
|
+
position: absolute;
|
|
43
|
+
right: -2px;
|
|
44
|
+
width: unset !important;
|
|
45
|
+
z-index: 20, 10000;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.row-resize-handle.left-handle {
|
|
49
|
+
left: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.row-resize-handle.right-handle {
|
|
53
|
+
right: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ProseMirror {
|
|
57
|
+
--editor-table-resize-handle-color: #adf;
|
|
58
|
+
outline: none;
|
|
59
|
+
white-space: pre-wrap;
|
|
60
|
+
line-height: normal;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ProseMirror p {
|
|
64
|
+
margin: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ProseMirror .tableWrapper .floating-button {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
position: absolute;
|
|
70
|
+
transition: opacity 0.2s ease-in-out;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ProseMirror code .inline-boundary {
|
|
74
|
+
background-color: #b4d7ff;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ProseMirror .code-block-wrapper {
|
|
78
|
+
background-color: var(--cx-color-neutral-50);
|
|
79
|
+
border-radius: var(--cx-border-radius-medium);
|
|
80
|
+
color: var(--cx-color-neutral-700);
|
|
81
|
+
min-height: 3rem;
|
|
82
|
+
padding: var(--cx-spacing-x-small);
|
|
83
|
+
position: relative;
|
|
84
|
+
white-space: normal;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ProseMirror .code-block-wrapper cx-rte-code-block-toolbar {
|
|
88
|
+
display: flex;
|
|
89
|
+
gap: var(--cx-spacing-small);
|
|
90
|
+
position: absolute;
|
|
91
|
+
right: var(--cx-spacing-2x-small);
|
|
92
|
+
top: var(--cx-spacing-2x-small);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.ProseMirror .code-block-wrapper cx-rte-code-block-toolbar,
|
|
96
|
+
.ProseMirror .code-block-wrapper cx-rte-code-block-toolbar.hidden {
|
|
97
|
+
opacity: 0;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ProseMirror .code-block-wrapper:hover cx-rte-code-block-toolbar:not(.hidden),
|
|
102
|
+
.ProseMirror .code-block-wrapper cx-rte-code-block-toolbar.open {
|
|
103
|
+
opacity: 1;
|
|
104
|
+
pointer-events: auto;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ProseMirror .floating-button {
|
|
108
|
+
position: absolute;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.ProseMirror .mce-item-anchor {
|
|
112
|
+
position: relative;
|
|
113
|
+
text-decoration: none !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Bookmark glyph: inline SVG mask (no FontAwesome / no extra font import). */
|
|
117
|
+
.ProseMirror .mce-item-anchor::before {
|
|
118
|
+
background-color: var(--cx-color-neutral-700);
|
|
119
|
+
content: '';
|
|
120
|
+
display: inline-block;
|
|
121
|
+
height: 0.75rem;
|
|
122
|
+
margin-inline-end: var(--cx-spacing-3x-small, 2px);
|
|
123
|
+
-webkit-mask: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M17%203H7c-1.1%200-1.99.9-1.99%202L5%2021l7-3%207%203V5c0-1.1-.9-2-2-2zm0%2015l-5-2.18L7%2018V5h10v13z%22%2F%3E%3C%2Fsvg%3E')
|
|
124
|
+
center / contain no-repeat;
|
|
125
|
+
mask: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M17%203H7c-1.1%200-1.99.9-1.99%202L5%2021l7-3%207%203V5c0-1.1-.9-2-2-2zm0%2015l-5-2.18L7%2018V5h10v13z%22%2F%3E%3C%2Fsvg%3E')
|
|
126
|
+
center / contain no-repeat;
|
|
127
|
+
width: 0.75rem;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ProseMirror .tableWrapper {
|
|
131
|
+
position: relative;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ProseMirror .tableWrapper:hover .floating-button,
|
|
135
|
+
.ProseMirror .tableWrapper.ProseMirror-selectednode .floating-button {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ProseMirror code {
|
|
140
|
+
font-family: monospace;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ProseMirror code [class*='InLn-'] {
|
|
144
|
+
font-family: inherit;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ProseMirror blockquote {
|
|
148
|
+
border-left: 3px solid var(--cx-color-neutral-300);
|
|
149
|
+
display: block;
|
|
150
|
+
margin-block-end: 1em;
|
|
151
|
+
margin-block-start: 1em;
|
|
152
|
+
margin-inline-end: 40px;
|
|
153
|
+
margin-inline-start: 40px;
|
|
154
|
+
padding-left: 1rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ProseMirror p.is-editor-empty {
|
|
158
|
+
font-family: var(--cx-font-sans);
|
|
159
|
+
position: relative;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ProseMirror p.is-editor-empty:first-child::before {
|
|
163
|
+
color: var(--cx-color-neutral-1000);
|
|
164
|
+
content: attr(data-placeholder);
|
|
165
|
+
display: block;
|
|
166
|
+
font-weight: 400;
|
|
167
|
+
height: 100%;
|
|
168
|
+
opacity: 0.25;
|
|
169
|
+
overflow: hidden;
|
|
170
|
+
pointer-events: none;
|
|
171
|
+
position: absolute;
|
|
172
|
+
text-overflow: ellipsis;
|
|
173
|
+
white-space: nowrap;
|
|
174
|
+
width: 100%;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.rich-text--editable .ProseMirror-selectednode>table {
|
|
178
|
+
outline: 2px dashed var(--cx-color-primary);
|
|
179
|
+
outline-offset: -2px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.ProseMirror figure {
|
|
183
|
+
margin: 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.ProseMirror table .selectedCell:after {
|
|
187
|
+
background: var(--cx-color-neutral-300);
|
|
188
|
+
bottom: 0;
|
|
189
|
+
content: '';
|
|
190
|
+
height: 100%;
|
|
191
|
+
left: 0;
|
|
192
|
+
opacity: 0.4;
|
|
193
|
+
pointer-events: none;
|
|
194
|
+
position: absolute;
|
|
195
|
+
right: 0;
|
|
196
|
+
top: 0;
|
|
197
|
+
z-index: 2;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.ProseMirror table td,
|
|
201
|
+
.ProseMirror table th {
|
|
202
|
+
border: 1px dashed var(--cx-color-neutral-400);
|
|
203
|
+
min-width: 1rem;
|
|
204
|
+
position: relative;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.ProseMirror table[data-align='center'] {
|
|
208
|
+
margin-left: auto;
|
|
209
|
+
margin-right: auto;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ProseMirror table[data-align='right'] {
|
|
213
|
+
margin-left: auto;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ProseMirror.cursor-col-resize {
|
|
217
|
+
cursor: col-resize;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.ProseMirror.cursor-row-resize {
|
|
221
|
+
cursor: row-resize;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
pre[class*='language-'],
|
|
225
|
+
code[class*='language-'] {
|
|
226
|
+
color: #d4d4d4;
|
|
227
|
+
font-size: var(--cx-font-size-x-small);
|
|
228
|
+
text-shadow: none;
|
|
229
|
+
font-family:
|
|
230
|
+
Menlo, Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', 'Courier New',
|
|
231
|
+
monospace;
|
|
232
|
+
direction: ltr;
|
|
233
|
+
text-align: left;
|
|
234
|
+
white-space: pre;
|
|
235
|
+
word-spacing: normal;
|
|
236
|
+
word-break: normal;
|
|
237
|
+
line-height: 1.5;
|
|
238
|
+
tab-size: 4;
|
|
239
|
+
hyphens: none;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
pre[class*='language-']::selection,
|
|
243
|
+
code[class*='language-']::selection,
|
|
244
|
+
pre[class*='language-'] *::selection,
|
|
245
|
+
code[class*='language-'] *::selection {
|
|
246
|
+
text-shadow: none;
|
|
247
|
+
background: #75a7ca;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@media print {
|
|
251
|
+
pre[class*='language-'],
|
|
252
|
+
code[class*='language-'] {
|
|
253
|
+
text-shadow: none;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
pre[class*='language-'] {
|
|
258
|
+
padding: 1em;
|
|
259
|
+
margin: 0.5em 0;
|
|
260
|
+
overflow: auto;
|
|
261
|
+
background: #1e1e1e;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
:not(pre) > code[class*='language-'] {
|
|
265
|
+
padding: 0.1em 0.3em;
|
|
266
|
+
border-radius: 0.3em;
|
|
267
|
+
color: #db4c69;
|
|
268
|
+
background: #f9f2f4;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/*********************************************************
|
|
272
|
+
* Tokens
|
|
273
|
+
*/
|
|
274
|
+
.namespace {
|
|
275
|
+
opacity: 0.7;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.token.doctype .token.doctype-tag {
|
|
279
|
+
color: #569cd6;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.token.doctype .token.name {
|
|
283
|
+
color: #9cdcfe;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.token.comment,
|
|
287
|
+
.token.prolog {
|
|
288
|
+
color: #6a9955;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.token.punctuation,
|
|
292
|
+
.language-html .language-css .token.punctuation,
|
|
293
|
+
.language-html .language-javascript .token.punctuation {
|
|
294
|
+
color: #d4d4d4;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.token.property,
|
|
298
|
+
.token.tag,
|
|
299
|
+
.token.boolean,
|
|
300
|
+
.token.number,
|
|
301
|
+
.token.constant,
|
|
302
|
+
.token.symbol,
|
|
303
|
+
.token.deleted,
|
|
304
|
+
.token.unit {
|
|
305
|
+
color: #b5cea8;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.token.selector,
|
|
309
|
+
.token.attr-name,
|
|
310
|
+
.token.string,
|
|
311
|
+
.token.char,
|
|
312
|
+
.token.builtin,
|
|
313
|
+
.token.inserted {
|
|
314
|
+
color: #ce9178;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.language-css .token.string.url {
|
|
318
|
+
text-decoration: underline;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.token.operator,
|
|
322
|
+
.token.entity {
|
|
323
|
+
color: #d4d4d4;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.token.operator.arrow {
|
|
327
|
+
color: #569cd6;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.token.atrule {
|
|
331
|
+
color: #ce9178;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.token.atrule .token.rule {
|
|
335
|
+
color: #c586c0;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.token.atrule .token.url {
|
|
339
|
+
color: #9cdcfe;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.token.atrule .token.url .token.function {
|
|
343
|
+
color: #dcdcaa;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.token.atrule .token.url .token.punctuation {
|
|
347
|
+
color: #d4d4d4;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.token.keyword {
|
|
351
|
+
color: #569cd6;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.token.keyword.module,
|
|
355
|
+
.token.keyword.control-flow {
|
|
356
|
+
color: #c586c0;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.token.function,
|
|
360
|
+
.token.function .token.maybe-class-name {
|
|
361
|
+
color: #dcdcaa;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.token.regex {
|
|
365
|
+
color: #d16969;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.token.important {
|
|
369
|
+
color: #569cd6;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.token.italic {
|
|
373
|
+
font-style: italic;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.token.constant {
|
|
377
|
+
color: #9cdcfe;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.token.class-name,
|
|
381
|
+
.token.maybe-class-name {
|
|
382
|
+
color: #4ec9b0;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.token.console {
|
|
386
|
+
color: #9cdcfe;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.token.parameter {
|
|
390
|
+
color: #9cdcfe;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.token.interpolation {
|
|
394
|
+
color: #9cdcfe;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.token.punctuation.interpolation-punctuation {
|
|
398
|
+
color: #569cd6;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.token.boolean {
|
|
402
|
+
color: #569cd6;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.token.property,
|
|
406
|
+
.token.variable,
|
|
407
|
+
.token.imports .token.maybe-class-name,
|
|
408
|
+
.token.exports .token.maybe-class-name {
|
|
409
|
+
color: #9cdcfe;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.token.selector {
|
|
413
|
+
color: #d7ba7d;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.token.escape {
|
|
417
|
+
color: #d7ba7d;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.token.tag {
|
|
421
|
+
color: #569cd6;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.token.tag .token.punctuation {
|
|
425
|
+
color: #808080;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.token.cdata {
|
|
429
|
+
color: #808080;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.token.attr-name {
|
|
433
|
+
color: #9cdcfe;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.token.attr-value,
|
|
437
|
+
.token.attr-value .token.punctuation {
|
|
438
|
+
color: #ce9178;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.token.attr-value .token.punctuation.attr-equals {
|
|
442
|
+
color: #d4d4d4;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.token.entity {
|
|
446
|
+
color: #569cd6;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.token.namespace {
|
|
450
|
+
color: #4ec9b0;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/*********************************************************
|
|
454
|
+
* Language Specific
|
|
455
|
+
*/
|
|
456
|
+
|
|
457
|
+
pre[class*='language-javascript'],
|
|
458
|
+
code[class*='language-javascript'],
|
|
459
|
+
pre[class*='language-jsx'],
|
|
460
|
+
code[class*='language-jsx'],
|
|
461
|
+
pre[class*='language-typescript'],
|
|
462
|
+
code[class*='language-typescript'],
|
|
463
|
+
pre[class*='language-tsx'],
|
|
464
|
+
code[class*='language-tsx'] {
|
|
465
|
+
color: #9cdcfe;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
pre[class*='language-css'],
|
|
469
|
+
code[class*='language-css'] {
|
|
470
|
+
color: #ce9178;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
pre[class*='language-html'],
|
|
474
|
+
code[class*='language-html'] {
|
|
475
|
+
color: #d4d4d4;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.language-regex .token.anchor {
|
|
479
|
+
color: #dcdcaa;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.language-html .token.punctuation {
|
|
483
|
+
color: #808080;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/*********************************************************
|
|
487
|
+
* Line highlighting
|
|
488
|
+
*/
|
|
489
|
+
pre[data-line] {
|
|
490
|
+
position: relative;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
pre[class*='language-'] > code[class*='language-'] {
|
|
494
|
+
position: relative;
|
|
495
|
+
z-index: 1;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.line-highlight {
|
|
499
|
+
position: absolute;
|
|
500
|
+
left: 0;
|
|
501
|
+
right: 0;
|
|
502
|
+
padding: 0;
|
|
503
|
+
margin-top: 1em;
|
|
504
|
+
background: #f7ebc6;
|
|
505
|
+
box-shadow: inset 5px 0 0 #f7d87c;
|
|
506
|
+
z-index: 0;
|
|
507
|
+
pointer-events: none;
|
|
508
|
+
line-height: inherit;
|
|
509
|
+
white-space: pre;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.bg-find-in-selection-range {
|
|
513
|
+
background-color: var(--cx-color-neutral-300);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/* search result rules come after gray in cascade so they win when both classes land on the same element */
|
|
517
|
+
.bg-search-result {
|
|
518
|
+
background-color: var(--cx-color-success-300);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.bg-light-search-result {
|
|
522
|
+
background-color: var(--cx-color-success-400);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/* when gray is nested inside a search-result span, let the outer green show through */
|
|
526
|
+
.bg-search-result .bg-find-in-selection-range,
|
|
527
|
+
.bg-light-search-result .bg-find-in-selection-range {
|
|
528
|
+
background-color: transparent;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
span.mention {
|
|
532
|
+
cursor: not-allowed;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
${C}
|
|
536
|
+
`;
|
|
537
|
+
var o = /* @__PURE__ */ ((e) => (e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e))(o || {}), f = /* @__PURE__ */ ((e) => (e.Center = "center", e.Justify = "justify", e.Left = "left", e.Right = "right", e))(f || {});
|
|
538
|
+
const A = p`:host{--color:light-dark(#000,#fff);--font-family:var(--cx-font-sans);--text-align:left;--line-height:1;--padding:0;width:100%;display:block}:host([alignment=center]) .container{--text-align:center;justify-content:center}:host([alignment=right]) .container{--text-align:right;flex-direction:row-reverse}:host([alignment=left]) .container{--text-align:left;justify-content:flex-start}:host([alignment=justify]) .container{--text-align:justify;justify-content:flex-start}.container{padding:var(--padding,0px);flex-direction:row;align-items:center;display:flex}.container ::slotted(p),.container p{word-wrap:break-word}.heading{color:var(--color);font-family:var(--font-family);text-align:var(--text-align,left);max-width:100%;min-height:calc(var(--line-height,1) * 1em);flex:auto;min-height:1lh;margin-block:0}.container.container--has-copy-button .heading{flex:none;max-width:calc(100% - 32px)}.copy-button{opacity:0;transition:opacity var(--cx-transition-fast);color:var(--cx-color-neutral-600);pointer-events:none;user-select:none;line-height:0}.container:hover .copy-button,.copy-button:focus-within{opacity:1;pointer-events:auto;user-select:auto}.heading-1{font-size:var(--cx-font-size-3x-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-3x-large))}.heading-2{font-size:var(--cx-font-size-2x-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-3x-large))}.heading-3{font-size:var(--cx-font-size-x-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-2x-large))}.heading-4{font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-x-large))}.heading-5{font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-large))}.heading-6{font-size:var(--cx-font-size-small);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-medium))}`;
|
|
539
|
+
var H = Object.defineProperty, L = Object.getOwnPropertyDescriptor, n = (e, r, a, i) => {
|
|
540
|
+
for (var c = i > 1 ? void 0 : i ? L(r, a) : r, h = e.length - 1, g; h >= 0; h--)
|
|
541
|
+
(g = e[h]) && (c = (i ? g(r, a, c) : g(c)) || c);
|
|
542
|
+
return i && c && H(r, a, c), c;
|
|
543
|
+
};
|
|
544
|
+
const S = {
|
|
545
|
+
[o.H1]: "heading-1",
|
|
546
|
+
[o.H2]: "heading-2",
|
|
547
|
+
[o.H3]: "heading-3",
|
|
548
|
+
[o.H4]: "heading-4",
|
|
549
|
+
[o.H5]: "heading-5",
|
|
550
|
+
[o.H6]: "heading-6"
|
|
551
|
+
}, T = {
|
|
552
|
+
[o.H1]: l`h1`,
|
|
553
|
+
[o.H2]: l`h2`,
|
|
554
|
+
[o.H3]: l`h3`,
|
|
555
|
+
[o.H4]: l`h4`,
|
|
556
|
+
[o.H5]: l`h5`,
|
|
557
|
+
[o.H6]: l`h6`
|
|
558
|
+
};
|
|
559
|
+
let t = class extends k {
|
|
560
|
+
constructor() {
|
|
561
|
+
super(), this.localize = new y(this), this.variant = o.H6, this.fontSize = void 0, this.hasAnchorLink = !1, this.anchorLink = "", this.alignment = f.Left, this.disabledCopyButton = !1, this.cms5PageReadyTimeout = null, this.scrollToAnchor = () => {
|
|
562
|
+
const e = this.getAnchorID();
|
|
563
|
+
!e || e !== this.anchorID || this.scrollIntoView({
|
|
564
|
+
block: "start"
|
|
565
|
+
});
|
|
566
|
+
}, this.handleClick = this.handleClick.bind(this), this.handleCMS5PageReady = this.handleCMS5PageReady.bind(this);
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Get the owner window
|
|
570
|
+
*/
|
|
571
|
+
get ownerWindow() {
|
|
572
|
+
return this.ownerDocument.defaultView ?? window;
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Get the anchor ID for the header.
|
|
576
|
+
* If `hasAnchorLink` is false, it returns an empty string.
|
|
577
|
+
* If `anchorLink` is provided, it returns that.
|
|
578
|
+
* Otherwise, it generates an anchor based on the text content of the header,
|
|
579
|
+
*/
|
|
580
|
+
get anchorID() {
|
|
581
|
+
return this.hasAnchorLink && (this.anchorLink || this.textContent?.trim().replace(/\s+/g, "-").toLowerCase()) || "";
|
|
582
|
+
}
|
|
583
|
+
runFirstUpdated() {
|
|
584
|
+
setTimeout(() => {
|
|
585
|
+
this.scrollToAnchor();
|
|
586
|
+
}, 200);
|
|
587
|
+
}
|
|
588
|
+
runConnectedCallback() {
|
|
589
|
+
this.addEventListener("click", this.handleClick), this.setAttribute("role", "heading"), this.hasAnchorLink && (this.ownerWindow.addEventListener("hashchange", this.scrollToAnchor), this.ownerWindow.addEventListener(
|
|
590
|
+
"cx-cms5-page-ready",
|
|
591
|
+
this.handleCMS5PageReady,
|
|
592
|
+
{
|
|
593
|
+
once: !0
|
|
594
|
+
}
|
|
595
|
+
));
|
|
596
|
+
}
|
|
597
|
+
disconnectedCallback() {
|
|
598
|
+
super.disconnectedCallback(), this.removeEventListener("click", this.handleClick), this.ownerWindow.removeEventListener("hashchange", this.scrollToAnchor), this.ownerWindow.removeEventListener(
|
|
599
|
+
"cx-cms5-page-ready",
|
|
600
|
+
this.scrollToAnchor
|
|
601
|
+
), this.cms5PageReadyTimeout && (clearTimeout(this.cms5PageReadyTimeout), this.cms5PageReadyTimeout = null);
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Scroll to anchor after CMS5 page is ready
|
|
605
|
+
* Wait 100ms for repaint reflow shift layout (not affect by fetching api in web component)
|
|
606
|
+
*/
|
|
607
|
+
handleCMS5PageReady() {
|
|
608
|
+
this.cms5PageReadyTimeout && clearTimeout(this.cms5PageReadyTimeout), this.cms5PageReadyTimeout = setTimeout(() => {
|
|
609
|
+
this.scrollToAnchor();
|
|
610
|
+
}, 100);
|
|
611
|
+
}
|
|
612
|
+
handleClick(e) {
|
|
613
|
+
this.contentEditable === "true" && e.stopPropagation();
|
|
614
|
+
}
|
|
615
|
+
getAnchorID() {
|
|
616
|
+
let e = "";
|
|
617
|
+
const a = this.ownerWindow.location.href.split("#");
|
|
618
|
+
return a.length > 1 && (e = decodeURIComponent(a[1])), e;
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* After Tiptap editor is destroyed, the slot element is removed.
|
|
622
|
+
* This method is used to re-add the slot element.
|
|
623
|
+
*/
|
|
624
|
+
addSlotElement() {
|
|
625
|
+
if (this.defaultSlot || !this.heading)
|
|
626
|
+
return;
|
|
627
|
+
const e = this.ownerDocument.createElement("slot");
|
|
628
|
+
this.heading.appendChild(e);
|
|
629
|
+
}
|
|
630
|
+
handleHeadingChange() {
|
|
631
|
+
this.setAttribute("aria-level", this.variant.replace("h", ""));
|
|
632
|
+
}
|
|
633
|
+
handleCopyButtonClick(e) {
|
|
634
|
+
e.stopPropagation();
|
|
635
|
+
}
|
|
636
|
+
renderHeading(e) {
|
|
637
|
+
const r = S[this.variant], a = T[this.variant], i = /\d/.test(this.fontSize || "");
|
|
638
|
+
return d`<${a} part="heading" class=${u({ heading: !0, [r]: !0 })} style=${P({
|
|
639
|
+
fontSize: i ? this.fontSize : void 0,
|
|
640
|
+
/**
|
|
641
|
+
* Reset line-height to the font's natural value so descenders fit
|
|
642
|
+
* inside the heading box; the host's tight `--line-height: 1`
|
|
643
|
+
* truncates glyph metrics at large custom font sizes and triggers a
|
|
644
|
+
* scrollbar in overflow:auto parents (e.g. cx-column).
|
|
645
|
+
*/
|
|
646
|
+
lineHeight: i ? "normal" : void 0
|
|
647
|
+
})}>${e}</${a}>`;
|
|
648
|
+
}
|
|
649
|
+
render() {
|
|
650
|
+
const e = this.hasAnchorLink ? `${this.ownerWindow.location.href.split("#")[0]}#${encodeURIComponent(this.anchorID)}` : "", r = this.hasAnchorLink && !this.disabledCopyButton;
|
|
651
|
+
return d`<div part="base" class=${u({
|
|
652
|
+
container: !0,
|
|
653
|
+
"container--has-copy-button": r
|
|
654
|
+
})}>${this.renderHeading(d`<slot></slot>`)}
|
|
655
|
+
${M(r, () => d`<cx-copy-button part="copy-button" class="copy-button" value=${e} hoist="" label=${this.localize.term("copy")} @click=${this.handleCopyButtonClick}><cx-icon slot="copy-icon" name="attachment"></cx-icon></cx-copy-button>`)}</div>`;
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
t.styles = [
|
|
659
|
+
b,
|
|
660
|
+
z,
|
|
661
|
+
A
|
|
662
|
+
];
|
|
663
|
+
t.dependencies = {
|
|
664
|
+
"cx-copy-button": x
|
|
665
|
+
};
|
|
666
|
+
n([
|
|
667
|
+
m("slot")
|
|
668
|
+
], t.prototype, "defaultSlot", 2);
|
|
669
|
+
n([
|
|
670
|
+
m(".heading")
|
|
671
|
+
], t.prototype, "heading", 2);
|
|
672
|
+
n([
|
|
673
|
+
s({ reflect: !0, type: String })
|
|
674
|
+
], t.prototype, "variant", 2);
|
|
675
|
+
n([
|
|
676
|
+
s({ attribute: "font-size", reflect: !0, type: String })
|
|
677
|
+
], t.prototype, "fontSize", 2);
|
|
678
|
+
n([
|
|
679
|
+
s({ attribute: "has-anchor-link", type: Boolean })
|
|
680
|
+
], t.prototype, "hasAnchorLink", 2);
|
|
681
|
+
n([
|
|
682
|
+
s({ attribute: "anchor-link", type: String })
|
|
683
|
+
], t.prototype, "anchorLink", 2);
|
|
684
|
+
n([
|
|
685
|
+
s({ type: String })
|
|
686
|
+
], t.prototype, "alignment", 2);
|
|
687
|
+
n([
|
|
688
|
+
s({ attribute: "disabled-copy-button", reflect: !0, type: Boolean })
|
|
689
|
+
], t.prototype, "disabledCopyButton", 2);
|
|
690
|
+
n([
|
|
691
|
+
w("variant")
|
|
692
|
+
], t.prototype, "handleHeadingChange", 1);
|
|
693
|
+
t = n([
|
|
694
|
+
v("cx-header")
|
|
695
|
+
], t);
|
|
696
|
+
export {
|
|
697
|
+
f as A,
|
|
698
|
+
t as C,
|
|
699
|
+
o as V
|
|
700
|
+
};
|