@orangelogic/design-system 2.92.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 +1 -1
- 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,44 @@
|
|
|
1
|
+
import { ITabulator } from '../../../../../../types/src/table';
|
|
2
|
+
import { default as Cell } from '../../core/cell/Cell';
|
|
3
|
+
import { default as Module } from '../../core/Module';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Marker class applied to every cell whose column has `clickable: true`. CSS
|
|
7
|
+
* in `table.styles.ts` uses this selector for the link-like appearance.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CLICKABLE_CELL_CLASS = "tabulator-clickable-cell";
|
|
10
|
+
/**
|
|
11
|
+
* Tabulator module that renders cells in `clickable` columns with link-like
|
|
12
|
+
* styling and dispatches `cx-table-row-action-click` on click or keyboard
|
|
13
|
+
* activation (Enter / Space).
|
|
14
|
+
*
|
|
15
|
+
* **Mouse:** Normal click prevents default anchor navigation and emits the
|
|
16
|
+
* action. Ctrl/Meta+click anywhere on the cell body calls `window.open()` on
|
|
17
|
+
* the first `<a href>` (new tab). Ctrl/Meta+click directly on the anchor lets
|
|
18
|
+
* the browser handle it natively.
|
|
19
|
+
*
|
|
20
|
+
* **Keyboard:** When the cell contains an `<a href>`, the anchor is the
|
|
21
|
+
* natural tab target — Tabulator does not intercept Tab from native `<a>`
|
|
22
|
+
* elements, so focus moves correctly via the browser. Enter/Space on the
|
|
23
|
+
* anchor bubbles up to our keydown handler on the cell and emits the action
|
|
24
|
+
* (navigation is prevented). When no anchor is present, the cell itself gets
|
|
25
|
+
* `tabIndex=0` and `role="button"`. Ctrl/Meta+Enter / Ctrl/Meta+Space calls
|
|
26
|
+
* `window.open()` on the first `<a href>` in the cell (if any).
|
|
27
|
+
*
|
|
28
|
+
* The triggered action is resolved from the first available hover menu in this
|
|
29
|
+
* order: column > row > table. The optional `clickableActionName` column
|
|
30
|
+
* property targets a specific action by name; if no match is found the
|
|
31
|
+
* activation is a no-op.
|
|
32
|
+
*/
|
|
33
|
+
export default class ClickableCell extends Module {
|
|
34
|
+
static readonly moduleName = "clickableCell";
|
|
35
|
+
private readonly cellKeyHandlers;
|
|
36
|
+
constructor(table: ITabulator);
|
|
37
|
+
initialize(): void;
|
|
38
|
+
layoutCell(cell: Cell): void;
|
|
39
|
+
handleCellClick(event: MouseEvent, cell: Cell): void;
|
|
40
|
+
private emitCellAction;
|
|
41
|
+
private getCxTableHost;
|
|
42
|
+
private resolveAction;
|
|
43
|
+
private pickAction;
|
|
44
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { CxTableRowActions } from '@/atoms/components/table/components';
|
|
2
|
+
import { IHoverMenu } from '../../../../../../types/src/table';
|
|
3
|
+
import { default as Cell } from '../../core/cell/Cell';
|
|
4
|
+
import { default as Module } from '../../core/Module';
|
|
5
|
+
import { default as Row } from '../../core/row/Row';
|
|
6
|
+
import { default as Tabulator } from '../../core/Tabulator';
|
|
5
7
|
|
|
6
8
|
export default class HoverMenu extends Module implements IHoverMenu {
|
|
7
9
|
static readonly moduleName = "hoverMenu";
|
|
@@ -13,7 +15,7 @@ export default class HoverMenu extends Module implements IHoverMenu {
|
|
|
13
15
|
handleRowMouseLeave(e: Event, row: Row): void;
|
|
14
16
|
handleCellMouseEnter(e: Event, cell: Cell): void;
|
|
15
17
|
handleCellMouseLeave(e: Event, cell: Cell): void;
|
|
16
|
-
|
|
18
|
+
createCxTableRowActions(): CxTableRowActions;
|
|
17
19
|
layoutRow(row: Row): void;
|
|
18
20
|
private getMenuPlacement;
|
|
19
21
|
private applyMenuPosition;
|
|
@@ -20,6 +20,7 @@ export { default as CxGraphView } from './graph-view/graph-view';
|
|
|
20
20
|
export { default as CxIconPicker } from './icon-picker/icon-picker';
|
|
21
21
|
export { default as CxListEditor } from './list-editor/list-editor';
|
|
22
22
|
export { default as CxMasonry } from './masonry/masonry';
|
|
23
|
+
export { default as CxMentions } from './mentions/mentions';
|
|
23
24
|
export { default as CxPaddingInputGroup } from './padding-input-group/padding-input-group';
|
|
24
25
|
export { default as CxPageOutline } from './page-outline/page-outline';
|
|
25
26
|
export { default as CxPositionPicker } from './position-picker/position-picker';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { default as CxBadge } from '../../../atoms/src/components/badge/badge.ts';
|
|
2
|
+
import { default as CxIcon } from '../../../atoms/src/components/icon/icon.ts';
|
|
3
|
+
import { default as CxMenu } from '../../../atoms/src/components/menu/menu.ts';
|
|
4
|
+
import { default as CxMenuItem } from '../../../atoms/src/components/menu-item/menu-item.ts';
|
|
5
|
+
import { default as CxPopup } from '../../../atoms/src/components/popup/popup.ts';
|
|
6
|
+
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
7
|
+
import { default as CxTooltip } from '../../../atoms/src/components/tooltip/tooltip.ts';
|
|
8
|
+
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
9
|
+
import { AutocompleteItem } from '../../../types/src/comment';
|
|
10
|
+
import { TemplateResult } from 'lit';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @summary Displays and manages mention autocomplete options.
|
|
14
|
+
* @description Renders a popup menu of mention candidates, supports keyboard navigation, and notifies consumers when an item is selected.
|
|
15
|
+
*
|
|
16
|
+
* @csspart base - The popup base part exposed by `cx-popup`.
|
|
17
|
+
*/
|
|
18
|
+
export default class CxMentions extends CortexElement {
|
|
19
|
+
static readonly styles: import('lit').CSSResult;
|
|
20
|
+
static readonly dependencies: {
|
|
21
|
+
'cx-badge': typeof CxBadge;
|
|
22
|
+
'cx-icon': typeof CxIcon;
|
|
23
|
+
'cx-menu': typeof CxMenu;
|
|
24
|
+
'cx-menu-item': typeof CxMenuItem;
|
|
25
|
+
'cx-popup': typeof CxPopup;
|
|
26
|
+
'cx-space': typeof CxSpace;
|
|
27
|
+
'cx-tooltip': typeof CxTooltip;
|
|
28
|
+
};
|
|
29
|
+
active: boolean;
|
|
30
|
+
anchor: CxPopup['anchor'] | undefined;
|
|
31
|
+
items: AutocompleteItem[];
|
|
32
|
+
searchTerm: string;
|
|
33
|
+
noItemsMessage: string;
|
|
34
|
+
onSelect: ((value: {
|
|
35
|
+
id: string;
|
|
36
|
+
label: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
} | undefined, key?: 'Enter') => void) | undefined;
|
|
39
|
+
selectedIndex: number;
|
|
40
|
+
private handleSelect;
|
|
41
|
+
private handleUp;
|
|
42
|
+
private handleDown;
|
|
43
|
+
handleEnter(): void;
|
|
44
|
+
handleKeyDown(event: KeyboardEvent): boolean;
|
|
45
|
+
handleItemsChange(): void;
|
|
46
|
+
handleSelectedIndexChange(): Promise<void>;
|
|
47
|
+
render(): TemplateResult;
|
|
48
|
+
}
|
|
49
|
+
declare global {
|
|
50
|
+
interface HTMLElementTagNameMap {
|
|
51
|
+
'cx-mentions': CxMentions;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -4,10 +4,10 @@ import { default as CxPopup } from '../../../atoms/src/components/popup/popup.ts
|
|
|
4
4
|
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
5
5
|
import { default as CxTimecode } from '../../../atoms/src/components/timecode/timecode.ts';
|
|
6
6
|
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
7
|
+
import { default as CxMentions } from '../../../molecules/src/mentions/mentions.ts';
|
|
7
8
|
import { AutocompleteItem } from '../../../types/src/comment';
|
|
8
9
|
import { TimecodeMode } from '../../../types/src/video-editor';
|
|
9
10
|
import { TemplateResult } from 'lit';
|
|
10
|
-
import { default as CxCommentMention } from './components/comment-mention/comment-mention';
|
|
11
11
|
import { default as CxCommentMenu } from './components/comment-menu/comment-menu';
|
|
12
12
|
|
|
13
13
|
export type CxCommentChangeEvent = CustomEvent<{
|
|
@@ -31,9 +31,9 @@ export default class CxComment extends CortexElement {
|
|
|
31
31
|
static readonly styles: import('lit').CSSResult[];
|
|
32
32
|
private readonly localize;
|
|
33
33
|
static readonly dependencies: {
|
|
34
|
-
'cx-comment-mention': typeof CxCommentMention;
|
|
35
34
|
'cx-comment-menu': typeof CxCommentMenu;
|
|
36
35
|
'cx-dialog': typeof CxDialog;
|
|
36
|
+
'cx-mentions': typeof CxMentions;
|
|
37
37
|
'cx-popup': typeof CxPopup;
|
|
38
38
|
'cx-space': typeof CxSpace;
|
|
39
39
|
'cx-timecode': typeof CxTimecode;
|
|
@@ -42,7 +42,7 @@ export default class CxComment extends CortexElement {
|
|
|
42
42
|
private caretAnimationId?;
|
|
43
43
|
readonly editorContainer: HTMLDivElement;
|
|
44
44
|
readonly commentMenu: CxCommentMenu;
|
|
45
|
-
readonly commentMention:
|
|
45
|
+
readonly commentMention: CxMentions;
|
|
46
46
|
readonly overlayContent: HTMLDivElement;
|
|
47
47
|
readonly container: HTMLDivElement;
|
|
48
48
|
readonly dialog: CxDialog;
|
|
@@ -16,14 +16,13 @@ import { default as CxSelect } from '../../../../../../../atoms/src/components/s
|
|
|
16
16
|
import { default as CxSpace } from '../../../../../../../atoms/src/components/space/space.ts';
|
|
17
17
|
import { default as CxTypography } from '../../../../../../../atoms/src/components/typography/typography.ts';
|
|
18
18
|
import { default as CortexElement } from '../../../../../../../base/src/cortex-element.ts';
|
|
19
|
+
import { default as CxSpecialCharactersDialog } from '../../../../../special-characters-dialog/special-characters-dialog.ts';
|
|
19
20
|
import { Asset, AssetTypeString } from '../../../../../../../types/src/content-builder';
|
|
20
21
|
import { Component } from 'grapesjs';
|
|
21
22
|
import { TemplateResult } from 'lit';
|
|
22
23
|
import { default as CxAnchorDialog } from './anchor-dialog';
|
|
23
24
|
import { default as CxImageDialog } from './image-dialog';
|
|
24
25
|
import { CxSelectWithTooltip } from './select-with-tooltip';
|
|
25
|
-
import { default as CxSpecialCharDialog } from './special-char-dialog';
|
|
26
|
-
import { default as CxTableDialog } from './table-dialog';
|
|
27
26
|
|
|
28
27
|
export default class CxRTEBubbleMenu extends CortexElement {
|
|
29
28
|
static readonly styles: import('lit').CSSResult[];
|
|
@@ -46,15 +45,13 @@ export default class CxRTEBubbleMenu extends CortexElement {
|
|
|
46
45
|
'cx-select': typeof CxSelect;
|
|
47
46
|
'cx-select-with-tooltip': typeof CxSelectWithTooltip;
|
|
48
47
|
'cx-space': typeof CxSpace;
|
|
49
|
-
'cx-special-
|
|
50
|
-
'cx-table-dialog': typeof CxTableDialog;
|
|
48
|
+
'cx-special-characters-dialog': typeof CxSpecialCharactersDialog;
|
|
51
49
|
'cx-typography': typeof CxTypography;
|
|
52
50
|
};
|
|
53
51
|
private readonly localize;
|
|
54
52
|
bubbleMenu: CxPopup;
|
|
55
|
-
tableDialog: CxTableDialog;
|
|
56
53
|
anchorDialog: CxAnchorDialog;
|
|
57
|
-
specialCharDialog:
|
|
54
|
+
specialCharDialog: CxSpecialCharactersDialog;
|
|
58
55
|
assetDialog: CxImageDialog;
|
|
59
56
|
bulletListDropdown?: CxDropdown;
|
|
60
57
|
orderedListDropdown?: CxDropdown;
|
|
@@ -200,10 +197,6 @@ export default class CxRTEBubbleMenu extends CortexElement {
|
|
|
200
197
|
private handleUnsetLink;
|
|
201
198
|
renderLinkButton(advance?: boolean): TemplateResult<1>;
|
|
202
199
|
renderLinkDialog(): TemplateResult<1>;
|
|
203
|
-
private _openTableDialog;
|
|
204
|
-
private openTableDialog;
|
|
205
|
-
private closeTableDialog;
|
|
206
|
-
private onConfirmTableProperties;
|
|
207
200
|
renderTableControl(): TemplateResult<1>;
|
|
208
201
|
private _openAnchorDialog;
|
|
209
202
|
openAnchorDialog(): void;
|
|
@@ -222,6 +215,8 @@ export default class CxRTEBubbleMenu extends CortexElement {
|
|
|
222
215
|
private onConfirmImageProperties;
|
|
223
216
|
renderImageDialog(): TemplateResult<1>;
|
|
224
217
|
isEnable(flag: boolean): boolean;
|
|
218
|
+
/** Mirrors `shouldShow` in the RTE: allow the formatting/stacked menu when the selection is non-empty (with the same empty-block edge case) or when the caret is inside a table. */
|
|
219
|
+
bubbleShowsFormattingMenu(): boolean;
|
|
225
220
|
renderMenu(): TemplateResult<1>;
|
|
226
221
|
render(): TemplateResult<1>;
|
|
227
222
|
}
|
package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/constant.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { default as tableDeleteSvg } from './svg/table-delete.svg';
|
|
2
|
-
import { default as tableDeleteColumnSvg } from './svg/table-delete-column.svg';
|
|
3
|
-
import { default as tableDeleteRowSvg } from './svg/table-delete-row.svg';
|
|
4
|
-
import { default as tableInsertColumnAfterSvg } from './svg/table-insert-column-after.svg';
|
|
5
|
-
import { default as tableInsertColumnBeforeSvg } from './svg/table-insert-column-before.svg';
|
|
6
|
-
import { default as tableInsertRowAfterSvg } from './svg/table-insert-row-after.svg';
|
|
7
|
-
import { default as tableInsertRowBeforeSvg } from './svg/table-insert-row-before.svg';
|
|
8
1
|
import { default as tableMergeCellsSvg } from './svg/table-merge-cells.svg';
|
|
9
2
|
import { default as tablePropertiesSvg } from './svg/table-properties.svg';
|
|
10
3
|
import { default as tableSplitCellSvg } from './svg/table-split-cell.svg';
|
|
@@ -37,12 +30,18 @@ export declare const fontSizeOptions: string[];
|
|
|
37
30
|
export declare const blockFormatOptions: string[];
|
|
38
31
|
export declare const lineHeightOptions: string[];
|
|
39
32
|
export declare const colors: string[];
|
|
33
|
+
/** Material Symbols ligature names for table structure actions (RTE + `cx-rich-text` bubble menus). */
|
|
34
|
+
export declare const TABLE_BUBBLE_STRUCTURE_ICONS: {
|
|
35
|
+
readonly addColumnAfter: "add_column_right";
|
|
36
|
+
readonly addColumnBefore: "add_column_left";
|
|
37
|
+
readonly addRowAfter: "add_row_below";
|
|
38
|
+
readonly addRowBefore: "add_row_above";
|
|
39
|
+
readonly deleteColumn: "vertical_split";
|
|
40
|
+
readonly deleteRow: "horizontal_split";
|
|
41
|
+
readonly deleteTable: "grid_off";
|
|
42
|
+
readonly tableProperties: "border_all";
|
|
43
|
+
};
|
|
40
44
|
export declare const TABLE_ALIGNMENTS: string[];
|
|
41
45
|
export declare const CSS_UNITS: string[];
|
|
42
46
|
export declare const BORDER_STYLES: string[];
|
|
43
|
-
export {
|
|
44
|
-
export declare const specialChars: {
|
|
45
|
-
title: string;
|
|
46
|
-
type: string;
|
|
47
|
-
value: string;
|
|
48
|
-
}[];
|
|
47
|
+
export { tableMergeCellsSvg, tablePropertiesSvg, tableSplitCellSvg, tableToggleCellHeaderSvg, tableToggleColumnHeaderSvg, tableToggleRowHeaderSvg, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const baseExtensions: (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<import('
|
|
1
|
+
export declare const baseExtensions: (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<import('../../../../../../tools/src/tiptap/extensions/text-style').TextStyleOptions, any>)[];
|
|
2
2
|
export declare const basicFormatExtensions: import('@tiptap/core').Mark<import('@tiptap/extension-bold').BoldOptions, any>[];
|
|
3
3
|
export declare const textScriptExtensions: import('@tiptap/core').Mark<import('@tiptap/extension-subscript').SubscriptExtensionOptions, any>[];
|
|
4
4
|
export declare const linkExtensions: import('@tiptap/core').Mark<import('@tiptap/extension-link').LinkOptions, any>[];
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { default as CxButton } from '../../../atoms/src/components/button/button.ts';
|
|
2
|
+
import { default as CxDropdown } from '../../../atoms/src/components/dropdown/dropdown.ts';
|
|
3
|
+
import { default as CxIconButton } from '../../../atoms/src/components/icon-button/icon-button.ts';
|
|
4
|
+
import { default as CxInput } from '../../../atoms/src/components/input/input.ts';
|
|
5
|
+
import { default as CxMenu } from '../../../atoms/src/components/menu/menu.ts';
|
|
6
|
+
import { default as CxMenuItem } from '../../../atoms/src/components/menu-item/menu-item.ts';
|
|
7
|
+
import { default as CxPopup } from '../../../atoms/src/components/popup/popup.ts';
|
|
8
|
+
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
9
|
+
import { default as CxTooltip } from '../../../atoms/src/components/tooltip/tooltip.ts';
|
|
10
|
+
import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
|
|
11
|
+
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
12
|
+
import { CSSResultGroup } from 'lit';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @summary Popup for find-and-replace controls.
|
|
16
|
+
*
|
|
17
|
+
* @description Renders a lightweight top-end popup that delegates all find/replace behavior to host listeners through
|
|
18
|
+
* custom events. The component only gathers user input, shows optional occurrence progress, and emits intent.
|
|
19
|
+
*
|
|
20
|
+
* @event {{ findText: string; replaceText: string }} cx-find-and-replace-find - Fired when the user clicks the Find button or presses Enter in the search input.
|
|
21
|
+
* @event {{ findText: string; replaceText: string }} cx-find-and-replace-replace - Fired when the user clicks the Replace button.
|
|
22
|
+
* @event {{ findText: string; replaceText: string }} cx-find-and-replace-replace-all - Fired when the user clicks the Replace all button.
|
|
23
|
+
* @event {{ findText: string }} cx-find-and-replace-previous - Fired when the user navigates to the previous match.
|
|
24
|
+
* @event {{ findText: string }} cx-find-and-replace-next - Fired when the user navigates to the next match.
|
|
25
|
+
*
|
|
26
|
+
* @cssproperty [--find-and-replace-width=24rem] - Preferred dialog width token; used with viewport clamping on the inner dialog.
|
|
27
|
+
*/
|
|
28
|
+
export default class CxFindAndReplace extends CortexElement {
|
|
29
|
+
static readonly styles: CSSResultGroup;
|
|
30
|
+
static readonly dependencies: {
|
|
31
|
+
'cx-button': typeof CxButton;
|
|
32
|
+
'cx-dropdown': typeof CxDropdown;
|
|
33
|
+
'cx-icon-button': typeof CxIconButton;
|
|
34
|
+
'cx-input': typeof CxInput;
|
|
35
|
+
'cx-menu': typeof CxMenu;
|
|
36
|
+
'cx-menu-item': typeof CxMenuItem;
|
|
37
|
+
'cx-popup': typeof CxPopup;
|
|
38
|
+
'cx-space': typeof CxSpace;
|
|
39
|
+
'cx-tooltip': typeof CxTooltip;
|
|
40
|
+
'cx-typography': typeof CxTypography;
|
|
41
|
+
};
|
|
42
|
+
private readonly localize;
|
|
43
|
+
private readonly searchInputEl;
|
|
44
|
+
open: boolean;
|
|
45
|
+
/** Distance in pixels from the viewport top-right corner for popup anchoring. */
|
|
46
|
+
popupDistance: number;
|
|
47
|
+
/** One-based index of the highlighted search match shown in the progress text. */
|
|
48
|
+
currentOccurrence: number;
|
|
49
|
+
/** Total number of matched search occurrences shown in the progress text. */
|
|
50
|
+
totalOccurrences: number;
|
|
51
|
+
/** Hides the occurrence progress text when true. */
|
|
52
|
+
hideOccurrenceProgress: boolean;
|
|
53
|
+
/** Current text used for finding matches. */
|
|
54
|
+
private findText;
|
|
55
|
+
/** Current text used for replacement actions. */
|
|
56
|
+
private replaceText;
|
|
57
|
+
private matchCase;
|
|
58
|
+
private wholeWord;
|
|
59
|
+
private findInSelection;
|
|
60
|
+
private readonly popupAnchor;
|
|
61
|
+
handleOpenChange(): Promise<void>;
|
|
62
|
+
show(searchTerm?: string): Promise<boolean>;
|
|
63
|
+
hide(): Promise<boolean>;
|
|
64
|
+
private handlePanelKeyDown;
|
|
65
|
+
private getActionDetail;
|
|
66
|
+
private getNavigateDetail;
|
|
67
|
+
private handleFindTextInput;
|
|
68
|
+
private handleFindTextKeyDown;
|
|
69
|
+
private handleReplaceTextInput;
|
|
70
|
+
private handleFind;
|
|
71
|
+
private handleReplaceClick;
|
|
72
|
+
private handleReplaceAllClick;
|
|
73
|
+
private handlePreviousClick;
|
|
74
|
+
private handleNextClick;
|
|
75
|
+
private handleCloseClick;
|
|
76
|
+
private handleSearchOptionSelect;
|
|
77
|
+
private renderOccurrenceSummary;
|
|
78
|
+
render(): import('lit').TemplateResult<1>;
|
|
79
|
+
}
|
|
80
|
+
declare global {
|
|
81
|
+
interface HTMLElementTagNameMap {
|
|
82
|
+
'cx-find-and-replace': CxFindAndReplace;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -11,7 +11,9 @@ export { default as CxComment } from './comment/comment';
|
|
|
11
11
|
export { default as CxContentBuilder } from './content-builder/content-builder';
|
|
12
12
|
export { default as CxDownloader } from './downloader/downloader';
|
|
13
13
|
export { default as CxFileOnDemand } from './file-on-demand/file-on-demand';
|
|
14
|
+
export { default as CxFindAndReplace } from './find-and-replace/find-and-replace';
|
|
14
15
|
export { default as CxMultiSelect } from './multi-select/multi-select';
|
|
16
|
+
export { default as CxSpecialCharactersDialog } from './special-characters-dialog/special-characters-dialog';
|
|
15
17
|
export { default as CxTemplateSwitcher } from './template-switcher/template-switcher';
|
|
16
18
|
export { default as CxTextToSpeech } from './text-to-speech/text-to-speech';
|
|
17
19
|
export { default as CxVideoChaptersManager } from './video-chapters-manager/video-chapters-manager';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as CortexElement } from '../../../../../../../base/src/cortex-element.ts';
|
|
1
|
+
import { default as CxDialog } from '../../../atoms/src/components/dialog/dialog.ts';
|
|
2
|
+
import { default as CxInput } from '../../../atoms/src/components/input/input.ts';
|
|
3
|
+
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
4
|
+
import { default as CxTab } from '../../../atoms/src/components/tab/tab.ts';
|
|
5
|
+
import { default as CxTabGroup } from '../../../atoms/src/components/tab-group/tab-group.ts';
|
|
6
|
+
import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
|
|
7
|
+
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
9
8
|
import { CSSResultGroup } from 'lit';
|
|
10
9
|
|
|
11
10
|
export declare class CxSpecialCharDialog extends CortexElement {
|
|
@@ -20,9 +19,6 @@ export declare class CxSpecialCharDialog extends CortexElement {
|
|
|
20
19
|
};
|
|
21
20
|
private readonly localize;
|
|
22
21
|
open: boolean;
|
|
23
|
-
tiptapEditor: TiptapEditor;
|
|
24
|
-
handleDialogCancel: () => void;
|
|
25
|
-
handleDialogConfirm: () => void;
|
|
26
22
|
/**
|
|
27
23
|
* The boundary property of the confirm popover's dropdown/dialog popup.
|
|
28
24
|
*/
|
|
@@ -34,12 +30,15 @@ export declare class CxSpecialCharDialog extends CortexElement {
|
|
|
34
30
|
type: string;
|
|
35
31
|
value: string;
|
|
36
32
|
}[];
|
|
33
|
+
private filteredItems;
|
|
37
34
|
selectedChar: string;
|
|
38
35
|
onOpenStateChange(): void;
|
|
36
|
+
onFilterInputsChange(): void;
|
|
39
37
|
private handleRequestClose;
|
|
40
38
|
private handleTabShow;
|
|
41
|
-
private
|
|
39
|
+
private handleSearchInput;
|
|
42
40
|
private handleCharClick;
|
|
41
|
+
private updateFilteredItems;
|
|
43
42
|
render(): import('lit').TemplateResult<1>;
|
|
44
43
|
}
|
|
45
44
|
export default CxSpecialCharDialog;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAllFormatCodesResponse,
|
|
1
|
+
import { GetAllFormatCodesResponse, GetAssetsInFolderRequest, GetAssetsInFolderResponse, GetAssetsRequest, GetAssetsResponse, GetAvailableProxiesResponse, GetCropZoneSuggestionRequest, GetCropZoneSuggestionResponse, GetTransformAssetLinkResponse, SearchAssetsParams, SearchAssetsResponse } from './asset.types';
|
|
2
2
|
|
|
3
3
|
export declare const DEFAULT_VIEW_SIZE = "CoreField.LargeSizePreview";
|
|
4
4
|
export declare const FIELD_CORTEX_PATH = "Document.CortexPath";
|
|
@@ -21,15 +21,13 @@ export declare const FIELD_LARGE_SIZE_PREVIEW_ID = "Document.DocumentDirectRepre
|
|
|
21
21
|
export declare const LIBRARY_NAME = "Library";
|
|
22
22
|
export declare const MESSAGE_NEW_LINE = "\n";
|
|
23
23
|
export declare const ORIGINAL_VIEW_SIZE = "CoreField.OriginalPreview";
|
|
24
|
+
export declare const SEARCH_FIELDS: {
|
|
25
|
+
DEFAULT_VIEW_SIZE: string;
|
|
26
|
+
FIELD_TITLE_WITH_FALLBACK: string;
|
|
27
|
+
ORIGINAL_VIEW_SIZE: string;
|
|
28
|
+
};
|
|
24
29
|
export declare function resolveAssetExtraFilters(selectedFacets?: Record<string, string[]>): Record<string, string[]>;
|
|
25
|
-
export declare function
|
|
26
|
-
extraFields?: string;
|
|
27
|
-
id: string;
|
|
28
|
-
proxyPreference?: string;
|
|
29
|
-
siteUrl?: string;
|
|
30
|
-
token?: string;
|
|
31
|
-
useSession?: string;
|
|
32
|
-
}): Promise<GetAssetLinkResponse | null>;
|
|
30
|
+
export declare function apiSearchAssets({ countPerPage, fields, getPermanentAssetsPaths, pageNumber, query, siteUrl, sort, token, useSession, }: SearchAssetsParams): Promise<SearchAssetsResponse>;
|
|
33
31
|
export declare function apiGetTransformAssetLink({ assetId, extension, format, siteUrl, token, transformations, useSession, }: {
|
|
34
32
|
assetId: string;
|
|
35
33
|
extension?: string;
|
|
@@ -40,7 +38,7 @@ export declare function apiGetTransformAssetLink({ assetId, extension, format, s
|
|
|
40
38
|
useSession?: string;
|
|
41
39
|
}): Promise<GetTransformAssetLinkResponse | null>;
|
|
42
40
|
export declare function apiGetAssets({ extraFields, recordIds, }: GetAssetsRequest): Promise<GetAssetsResponse>;
|
|
43
|
-
export declare function apiGetAssetsInFolder({
|
|
41
|
+
export declare function apiGetAssetsInFolder({ countPerPage, extraFields, limitedDocTypes, pageNumber, parentFolderIdentifier, searchTerm, sortOrder, }: GetAssetsInFolderRequest): Promise<GetAssetsInFolderResponse>;
|
|
44
42
|
export declare function apiGetCropFocusMode({ autoCropMode, cropHeight, cropWidth, imageUrl, useSession, }: GetCropZoneSuggestionRequest): Promise<GetCropZoneSuggestionResponse | null>;
|
|
45
43
|
export declare function apiGetAvailableProxies({ assetRecordId, siteUrl, token, useSession, }: {
|
|
46
44
|
assetRecordId: string;
|
|
@@ -53,8 +51,12 @@ export declare function apiGetAllFormatCodes({ siteUrl, }?: {
|
|
|
53
51
|
}): Promise<GetAllFormatCodesResponse | {
|
|
54
52
|
formatsByDocType: {};
|
|
55
53
|
}>;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Uploads a file via UploadNewMedia v3 (`UPLOAD_RESPONSE`), then resolves a download URL via GetAssetLink.
|
|
56
|
+
*/
|
|
57
|
+
export declare function apiUploadNewMediaV3GetDownloadLink({ baseUri, file, fileExtension, folderRecordID, }: {
|
|
58
|
+
baseUri?: string;
|
|
59
|
+
file: File;
|
|
60
|
+
fileExtension: string;
|
|
61
|
+
folderRecordID: string;
|
|
62
|
+
}): Promise<string | null>;
|
|
@@ -23,12 +23,6 @@ export type Asset = {
|
|
|
23
23
|
tags: string;
|
|
24
24
|
width?: string;
|
|
25
25
|
};
|
|
26
|
-
export type ContentItem = {
|
|
27
|
-
fields: {
|
|
28
|
-
[key: string]: string;
|
|
29
|
-
};
|
|
30
|
-
recordID: string;
|
|
31
|
-
};
|
|
32
26
|
export type Facet = {
|
|
33
27
|
facetDetails: {
|
|
34
28
|
displayName: string;
|
|
@@ -41,37 +35,14 @@ export type Facet = {
|
|
|
41
35
|
value: string;
|
|
42
36
|
}>;
|
|
43
37
|
};
|
|
44
|
-
export type GetAssetLinkRequest = {
|
|
45
|
-
ExtraFields?: string;
|
|
46
|
-
Proxy?: string;
|
|
47
|
-
RecordId: string;
|
|
48
|
-
Token?: string;
|
|
49
|
-
UseSession?: string;
|
|
50
|
-
};
|
|
51
|
-
export type GetAssetLinkResponse = {
|
|
52
|
-
extraFields?: {
|
|
53
|
-
[key: string]: string;
|
|
54
|
-
};
|
|
55
|
-
imageUrl: string;
|
|
56
|
-
metadata?: {
|
|
57
|
-
[key: string]: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
38
|
export type GetAssetsInFolderRequest = {
|
|
39
|
+
countPerPage: number;
|
|
61
40
|
extraFields?: string[];
|
|
62
|
-
folderId: string;
|
|
63
|
-
limit: number;
|
|
64
41
|
limitedDocTypes: string[];
|
|
42
|
+
pageNumber: number;
|
|
43
|
+
parentFolderIdentifier: string;
|
|
65
44
|
searchTerm: string;
|
|
66
|
-
seeThrough: boolean;
|
|
67
|
-
selectedFacets: Record<string, string[]>;
|
|
68
45
|
sortOrder: string;
|
|
69
|
-
start: number;
|
|
70
|
-
};
|
|
71
|
-
export type GetContentResponse = {
|
|
72
|
-
contentItems?: ContentItem[];
|
|
73
|
-
facets: Facet[];
|
|
74
|
-
totalCount: number;
|
|
75
46
|
};
|
|
76
47
|
export type GetAssetsInFolderResponse = {
|
|
77
48
|
facets: Facet[];
|
|
@@ -162,3 +133,97 @@ export type GetAllFormatCodesRawResponse = {
|
|
|
162
133
|
export type GetAllFormatCodesResponse = {
|
|
163
134
|
formatsByDocType: FormatsByDocType;
|
|
164
135
|
};
|
|
136
|
+
export type SearchDateOperator = ':' | '>' | '>:' | '<' | '<:';
|
|
137
|
+
export type SearchDateCriterion = {
|
|
138
|
+
operator: SearchDateOperator;
|
|
139
|
+
value: string;
|
|
140
|
+
};
|
|
141
|
+
export declare enum SearchOrientation {
|
|
142
|
+
Landscape = "Landscape",
|
|
143
|
+
Portrait = "Portrait",
|
|
144
|
+
Square = "Square"
|
|
145
|
+
}
|
|
146
|
+
export type SearchCriteria = {
|
|
147
|
+
artist?: string;
|
|
148
|
+
color?: boolean;
|
|
149
|
+
createDate?: SearchDateCriterion | [SearchDateCriterion, SearchDateCriterion];
|
|
150
|
+
custom?: Record<string, string | string[]>;
|
|
151
|
+
docSubType?: string | string[];
|
|
152
|
+
docType?: MediaType | MediaType[];
|
|
153
|
+
editDate?: SearchDateCriterion | [SearchDateCriterion, SearchDateCriterion];
|
|
154
|
+
fileExtension?: string | string[];
|
|
155
|
+
keyword?: string | string[];
|
|
156
|
+
mediaDate?: SearchDateCriterion | [SearchDateCriterion, SearchDateCriterion];
|
|
157
|
+
mediaNumber?: string;
|
|
158
|
+
nativeKeyword?: string | string[];
|
|
159
|
+
orientation?: SearchOrientation;
|
|
160
|
+
parentFolderIdentifier?: string;
|
|
161
|
+
path?: string;
|
|
162
|
+
photographer?: string;
|
|
163
|
+
purpose?: string;
|
|
164
|
+
recordId?: string | string[];
|
|
165
|
+
systemIdentifier?: string;
|
|
166
|
+
text?: string;
|
|
167
|
+
title?: string;
|
|
168
|
+
};
|
|
169
|
+
export type SearchQueryNode = {
|
|
170
|
+
and: SearchQueryNode[];
|
|
171
|
+
} | {
|
|
172
|
+
or: SearchQueryNode[];
|
|
173
|
+
} | {
|
|
174
|
+
not: SearchQueryNode;
|
|
175
|
+
} | SearchCriteria;
|
|
176
|
+
export type SearchAssetsParams = {
|
|
177
|
+
countPerPage?: number;
|
|
178
|
+
fields?: string[];
|
|
179
|
+
getPermanentAssetsPaths?: boolean;
|
|
180
|
+
pageNumber?: number;
|
|
181
|
+
query: SearchQueryNode;
|
|
182
|
+
siteUrl?: string;
|
|
183
|
+
sort?: string;
|
|
184
|
+
token?: string;
|
|
185
|
+
useSession?: string;
|
|
186
|
+
};
|
|
187
|
+
export type SearchAssetsMediaField = {
|
|
188
|
+
Height?: number;
|
|
189
|
+
URI: string;
|
|
190
|
+
Width?: number;
|
|
191
|
+
};
|
|
192
|
+
export type SearchAssetsItemFieldValue = string | number | boolean | SearchAssetsMediaField;
|
|
193
|
+
export type SearchAssetsItem = Record<string, SearchAssetsItemFieldValue>;
|
|
194
|
+
export type SearchAssetsRawResponse = {
|
|
195
|
+
APIRequestInfo?: {
|
|
196
|
+
APIVersion: string;
|
|
197
|
+
IsLoggedIn: boolean;
|
|
198
|
+
Module: string;
|
|
199
|
+
ProviderID: string;
|
|
200
|
+
ProviderVersion: string;
|
|
201
|
+
Status: string;
|
|
202
|
+
TimeoutPeriodMinutes: number;
|
|
203
|
+
UserLogin: string;
|
|
204
|
+
};
|
|
205
|
+
APIResponse: {
|
|
206
|
+
GlobalInfo: {
|
|
207
|
+
QueryDurationMilliseconds: number;
|
|
208
|
+
Sort: string;
|
|
209
|
+
TotalCount: number;
|
|
210
|
+
};
|
|
211
|
+
Items: SearchAssetsItem[];
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
export type SearchAssetsResponse = {
|
|
215
|
+
items: SearchAssetsItem[];
|
|
216
|
+
sort: string;
|
|
217
|
+
totalCount: number;
|
|
218
|
+
};
|
|
219
|
+
/** Raw JSON from `ASSET_API_ENDPOINT.UPLOAD_RESPONSE` (UploadNewMedia v3). */
|
|
220
|
+
export type UploadNewMediaV3Response = {
|
|
221
|
+
APIResponse?: {
|
|
222
|
+
SystemIdentifier?: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
/** Parsed asset link payload (raw API may expose either field). */
|
|
226
|
+
export type GetAssetLinkDownloadRawResponse = {
|
|
227
|
+
downloadLink?: string;
|
|
228
|
+
imageUrl?: string;
|
|
229
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SearchAssetsItemFieldValue, SearchAssetsMediaField, SearchQueryNode } from './asset.types';
|
|
2
|
+
|
|
3
|
+
export declare function isSearchAssetsMediaField(value: SearchAssetsItemFieldValue): value is SearchAssetsMediaField;
|
|
4
|
+
export type AssetExtraFilters = {
|
|
5
|
+
FacetFilters?: Record<string, string[]>;
|
|
6
|
+
SubtypeCriteria?: string[];
|
|
7
|
+
};
|
|
8
|
+
export declare function resolveAssetExtraFilters(selectedFacets?: Record<string, string[]>): AssetExtraFilters;
|
|
9
|
+
export declare function buildSearchQuery(node: SearchQueryNode): string;
|