@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
package/library/utils.js
CHANGED
|
@@ -1,184 +1,194 @@
|
|
|
1
|
-
import { C as t, D as s, H as o,
|
|
2
|
-
import {
|
|
3
|
-
import { e as
|
|
4
|
-
import { d as
|
|
5
|
-
import { a as
|
|
6
|
-
import { a as
|
|
7
|
-
import { t as
|
|
8
|
-
import { c as
|
|
9
|
-
import { d as
|
|
10
|
-
import { d as
|
|
11
|
-
import { d as
|
|
12
|
-
import { w as
|
|
13
|
-
import { F as
|
|
14
|
-
import { L as
|
|
15
|
-
import { c as
|
|
16
|
-
import { g as
|
|
17
|
-
import { H as
|
|
18
|
-
import { g as
|
|
19
|
-
import { i as
|
|
20
|
-
import { w as
|
|
21
|
-
import { c as
|
|
22
|
-
import { f as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { g as
|
|
29
|
-
import { c as
|
|
30
|
-
import { R as ft, U as xt, c as ut, b as Ct, a as At, i as Tt, t as It } from "./chunks/url.Cj9cIQXJ.js";
|
|
1
|
+
import { C as t, D as s, H as o, K as r, P as i, m as l, e as n, f as m, u as p, x as g, g as c, h as d, p as f, d as x, i as u, o as A, j as C, k as T, l as I, z as S, A as E, y as v, r as y, v as R, s as h, q as L, n as D, t as b, w as F } from "./chunks/index.B7slZiaV.js";
|
|
2
|
+
import { n as P, h as B, f as _, g as H, k as M, i as O, e as w, l as k, m as N, j as G, r as U, t as X } from "./chunks/toast.Bc4wpYJ1.js";
|
|
3
|
+
import { e as K, a as j, f as W, g as q, d as Z, b as J, c as Y, i as Q, p as $, s as aa } from "./chunks/browser.BHOCIF_A.js";
|
|
4
|
+
import { d as ta, C as sa, e as oa, H as ra, R as ia, c as la, h as na, f as ma, g as pa, l as ga, p as ca, a as da, b as fa } from "./chunks/color.vLD2sNTs.js";
|
|
5
|
+
import { a as ua, b as Aa, g as Ca } from "./chunks/modal.U1QltQKe.js";
|
|
6
|
+
import { a as Ia, p as Sa, c as Ea, b as va, s as ya } from "./chunks/animate.El-MpOws.js";
|
|
7
|
+
import { t as ha } from "./chunks/converters.DkDtLstb.js";
|
|
8
|
+
import { c as Da } from "./chunks/custom-element.L4WJXn1j.js";
|
|
9
|
+
import { d as Fa } from "./chunks/debounce.DaHuiSGU.js";
|
|
10
|
+
import { d as Pa } from "./chunks/default-value.COZopaet.js";
|
|
11
|
+
import { d as _a } from "./chunks/drag.DXEXVXPv.js";
|
|
12
|
+
import { w as Ma } from "./chunks/event.mFzZi4sr.js";
|
|
13
|
+
import { F as wa, c as ka, f as Na, v as Ga, a as Ua } from "./chunks/form.nRqYei4e.js";
|
|
14
|
+
import { L as za, r as Ka } from "./chunks/i18n.W6czbRms.js";
|
|
15
|
+
import { c as Wa } from "./chunks/math.DqTA6ya4.js";
|
|
16
|
+
import { g as Za, l as Ja, s as Ya, u as Qa } from "./chunks/scroll.xtO5yojm.js";
|
|
17
|
+
import { H as ae, a as ee, g as te } from "./chunks/slot.j5oheLJC.js";
|
|
18
|
+
import { g as oe, a as re } from "./chunks/tabbable.CcMz3mIL.js";
|
|
19
|
+
import { i as le } from "./chunks/user-agent.D9aPuOyL.js";
|
|
20
|
+
import { w as me } from "./chunks/watch.BCJD77bD.js";
|
|
21
|
+
import { c as ge, d as ce, k as de, j as fe, a as xe, g as ue, h as Ae, b as Ce, f as Te, i as Ie, e as Se, l as Ee, s as ve } from "./chunks/dom.DURaLV1d.js";
|
|
22
|
+
import { c as Re, f as he, e as Le, b as De, g as be, d as Fe, i as Ve, r as Pe, a as Be } from "./chunks/image.ocYnNdYK.js";
|
|
23
|
+
import { a as He, b as Me, c as Oe, e as we, d as ke, f as Ne, g as Ge, r as Ue, s as Xe } from "./chunks/number.DE78rV_g.js";
|
|
24
|
+
import { s as Ke } from "./chunks/parse.Cu5nBDTb.js";
|
|
25
|
+
import { g as We, a as qe } from "./chunks/responsive.D9TUCX5p.js";
|
|
26
|
+
import { b as Je, a as Ye, e as Qe, f as $e, k as at, g as et, i as tt, p as st, q as ot, r as rt, c as it, s as lt, j as nt, n as mt, l as pt, m as gt, o as ct, t as dt, u as ft } from "./chunks/string.DfV21HEI.js";
|
|
27
|
+
import { g as ut, a as At } from "./chunks/template.ClovJacp.js";
|
|
28
|
+
import { c as Tt, a as It, f as St, g as Et } from "./chunks/time.wo2iH5iw.js";
|
|
29
|
+
import { R as yt, U as Rt, c as ht, b as Lt, a as Dt, i as bt, t as Ft } from "./chunks/url.Cj9cIQXJ.js";
|
|
31
30
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
ta as CMYK_VALIDATION_REGEX,
|
|
32
|
+
sa as ColorType,
|
|
34
33
|
t as CortexPopupController,
|
|
35
34
|
s as DragScroll,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
wa as FormControlController,
|
|
36
|
+
oa as HEX_ALPHA_VALIDATION_REGEX,
|
|
37
|
+
ra as HEX_VALIDATION_REGEX,
|
|
38
|
+
ae as HasSlotController,
|
|
40
39
|
o as HistoryManager,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
Da as
|
|
65
|
-
|
|
66
|
-
Fa as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
40
|
+
r as KeyboardKey,
|
|
41
|
+
za as LocalizeController,
|
|
42
|
+
i as PRECISION,
|
|
43
|
+
yt as RELATIVE_URL_REGEX,
|
|
44
|
+
ia as RGB_VALIDATION_REGEX,
|
|
45
|
+
Rt as URL_DOMAIN_VALIDATION_REGEX,
|
|
46
|
+
ht as URL_PROTOCOL_VALIDATION_REGEX,
|
|
47
|
+
Lt as URL_VALIDATION_REGEX,
|
|
48
|
+
ua as activeElements,
|
|
49
|
+
P as adjustRelativeValues,
|
|
50
|
+
Ia as animateTo,
|
|
51
|
+
Dt as appendProtocol,
|
|
52
|
+
Re as calculateAspectRatioFit,
|
|
53
|
+
Wa as clamp,
|
|
54
|
+
he as cleanImageFileName,
|
|
55
|
+
Tt as clearZeroDurationParts,
|
|
56
|
+
la as convertColor,
|
|
57
|
+
He as convertDataUnits,
|
|
58
|
+
Me as convertDurationToMilliseconds,
|
|
59
|
+
Oe as convertPixelsToAspectRatio,
|
|
60
|
+
Le as convertSrcToBlob,
|
|
61
|
+
De as cropImage,
|
|
62
|
+
ge as cssValueToPx,
|
|
63
|
+
Da as customElement,
|
|
64
|
+
ka as customErrorValidityState,
|
|
65
|
+
Fa as debounce,
|
|
66
|
+
Pa as defaultValue,
|
|
67
|
+
l as downloadAsset,
|
|
68
|
+
_a as drag,
|
|
69
|
+
Je as emptyToSpace,
|
|
70
|
+
na as extractColor,
|
|
71
|
+
Ye as extractExtension,
|
|
72
|
+
n as extractFrames,
|
|
73
|
+
Qe as extractRootData,
|
|
74
|
+
we as extractValueAndUnit,
|
|
75
|
+
B as fetchCortexApi,
|
|
76
|
+
K as findAncestorWithBuggyStyle,
|
|
77
|
+
j as findContainingBlock,
|
|
78
|
+
W as findCuttingAncestor,
|
|
79
|
+
m as findFrameByColAndRow,
|
|
80
|
+
_ as findIndexByProp,
|
|
81
|
+
Na as formCollections,
|
|
82
|
+
ke as formatAspectRatioString,
|
|
83
|
+
It as formatDurationPartsManually,
|
|
84
|
+
Ne as formatNumberWithGrouping,
|
|
85
|
+
$e as formatSecondsToTime,
|
|
86
|
+
at as formatTimeToSeconds,
|
|
87
|
+
St as formatWithIntlDurationFormat,
|
|
88
|
+
Ge as gcd,
|
|
89
|
+
ce as getActiveElement,
|
|
90
|
+
Aa as getActiveModals,
|
|
91
|
+
We as getBreakpointsFromCSS,
|
|
92
|
+
p as getBrowserFontVariants,
|
|
93
|
+
ma as getColorType,
|
|
94
|
+
be as getContainedImageSize,
|
|
95
|
+
de as getCortexPopupLayer,
|
|
96
|
+
fe as getCurrentZIndex,
|
|
97
|
+
Ca as getDeepestActiveElement,
|
|
98
|
+
qe as getDeviceType,
|
|
99
|
+
Et as getDurationPartsByUnitsFormat,
|
|
100
|
+
xe as getElementFromHTMLString,
|
|
101
|
+
ue as getElementFromTemplate,
|
|
102
|
+
g as getFormControls,
|
|
103
|
+
ut as getHighlightedTitle,
|
|
104
|
+
At as getHighlightedTitleHtml,
|
|
105
|
+
ee as getInnerHTML,
|
|
101
106
|
c as getInterval,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
f as
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
107
|
+
pa as getLightDarkCssString,
|
|
108
|
+
Fe as getNaturalWidthHeight,
|
|
109
|
+
Ae as getNeededPaddingForBoxShadow,
|
|
110
|
+
q as getNextAncestor,
|
|
111
|
+
Za as getOffset,
|
|
112
|
+
Ce as getRelativeClickPercentage,
|
|
113
|
+
et as getRootIDString,
|
|
114
|
+
oe as getTabbableBoundary,
|
|
115
|
+
re as getTabbableElements,
|
|
116
|
+
te as getTextContent,
|
|
117
|
+
H as groupBy,
|
|
118
|
+
M as insertAtIndex,
|
|
119
|
+
d as insertFrameToCache,
|
|
120
|
+
O as insertMultipleAtIndex,
|
|
121
|
+
Z as isChrome,
|
|
122
|
+
le as isCortexAdobePlugin,
|
|
123
|
+
Te as isDomElement,
|
|
124
|
+
Ie as isElementInHorizontalView,
|
|
125
|
+
J as isFirefox,
|
|
126
|
+
f as isFontFamilyAvailable,
|
|
127
|
+
x as isFormInteracted,
|
|
128
|
+
tt as isGalleryItemCardType,
|
|
129
|
+
Y as isIOS,
|
|
130
|
+
Se as isInElement,
|
|
131
|
+
u as isModKey,
|
|
132
|
+
Q as isSafari,
|
|
133
|
+
Ve as isSaveSrcValid,
|
|
134
|
+
bt as isValidUrl,
|
|
135
|
+
Ee as loadScript,
|
|
136
|
+
Ja as lockBodyScrolling,
|
|
137
|
+
ga as luminanceTextColor,
|
|
138
|
+
w as moveMultipleToIndex,
|
|
139
|
+
k as moveToIndex,
|
|
140
|
+
N as multiSelectTo,
|
|
141
|
+
A as omit,
|
|
135
142
|
C as openAssetOverview,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
143
|
+
T as openFolderOverview,
|
|
144
|
+
I as openLink,
|
|
145
|
+
st as padPath,
|
|
146
|
+
ot as parseBooleanString,
|
|
147
|
+
ca as parseBorder,
|
|
148
|
+
Sa as parseDuration,
|
|
149
|
+
S as parseJsonString,
|
|
150
|
+
da as parseLightDark,
|
|
151
|
+
E as parseListString,
|
|
152
|
+
fa as parseShadow,
|
|
153
|
+
v as pick,
|
|
154
|
+
$ as popoverSupported,
|
|
155
|
+
Ea as prefersReducedMotion,
|
|
156
|
+
y as readLocalStorageValue,
|
|
157
|
+
rt as reducePathToDirectChild,
|
|
158
|
+
Ka as registerTranslation,
|
|
159
|
+
G as removeAtIndex,
|
|
160
|
+
U as removeMultipleAtIndex,
|
|
161
|
+
Pe as resizeImage,
|
|
162
|
+
Ue as rotateBox,
|
|
163
|
+
Be as rotateImage,
|
|
164
|
+
it as safeString,
|
|
165
|
+
lt as sanitizeHTML,
|
|
166
|
+
Xe as sanitizeRotation,
|
|
167
|
+
Ya as scrollIntoView,
|
|
168
|
+
R as serialize,
|
|
169
|
+
h as shareAsset,
|
|
170
|
+
va as shimKeyframesHeightAuto,
|
|
171
|
+
ve as sortByTopPosition,
|
|
172
|
+
L as sortTypefaceVariants,
|
|
173
|
+
Ke as splitBoxValues,
|
|
174
|
+
nt as splitCamelCaseFormatted,
|
|
175
|
+
ya as stopAnimations,
|
|
176
|
+
aa as supportHLS,
|
|
177
|
+
D as testFontAvailability,
|
|
178
|
+
ha as timecodeConverter,
|
|
179
|
+
mt as toCamelCase,
|
|
180
|
+
b as toGalleryEventClick,
|
|
181
|
+
pt as toKebabCase,
|
|
182
|
+
gt as toPascalCase,
|
|
183
|
+
Ft as toRelativeUrl,
|
|
184
|
+
ct as toTitleCase,
|
|
185
|
+
X as toast,
|
|
186
|
+
dt as truncateTextMiddle,
|
|
187
|
+
Qa as unlockBodyScrolling,
|
|
188
|
+
ft as upperFirst,
|
|
189
|
+
Ga as validValidityState,
|
|
190
|
+
Ua as valueMissingValidityState,
|
|
191
|
+
Ma as waitForEvent,
|
|
192
|
+
me as watch,
|
|
193
|
+
F as writeLocalStorageValue
|
|
184
194
|
};
|
package/package.json
CHANGED
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
import { h as i, A as T, a as M } from "./endpoints.BpAhLyZw.js";
|
|
2
|
-
import { f as P, t as L } from "./toast.BXNbwZV8.js";
|
|
3
|
-
const C = "CoreField.LargeSizePreview", h = "CoreField.DocType", b = "Document.Title", j = "Document.CaptionLong", S = "Document.FileExtension", O = "CoreField.FileSize", N = "CoreField.Identifier", g = "CoreField.Keywords", R = "CoreField.MaxHeight", G = "CoreField.MaxWidth", x = "Document.RecordID", U = "CoreField.DocSubType", w = "CoreField.TitleWithFallback", I = "CoreField.OriginalFileName", F = "CoreField.UpdatedFileName", E = "CoreField.OriginalPreview";
|
|
4
|
-
function W(o) {
|
|
5
|
-
return !o || Object.keys(o).length === 0 ? {} : Object.entries(o).reduce(
|
|
6
|
-
(e, [t, r]) => !r || r.length === 0 ? e : t === "Types" ? {
|
|
7
|
-
...e,
|
|
8
|
-
SubtypeCriteria: r
|
|
9
|
-
} : {
|
|
10
|
-
...e,
|
|
11
|
-
FacetFilters: {
|
|
12
|
-
...e.FacetFilters,
|
|
13
|
-
[t]: r
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
{}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
async function H({
|
|
20
|
-
assetId: o,
|
|
21
|
-
extension: e,
|
|
22
|
-
format: t,
|
|
23
|
-
siteUrl: r,
|
|
24
|
-
token: a,
|
|
25
|
-
transformations: l,
|
|
26
|
-
useSession: s
|
|
27
|
-
}) {
|
|
28
|
-
try {
|
|
29
|
-
return (await i.request({
|
|
30
|
-
baseURL: r,
|
|
31
|
-
method: "GET",
|
|
32
|
-
params: {
|
|
33
|
-
SourceAssetFormat: t,
|
|
34
|
-
SourceAssetRecordID: o,
|
|
35
|
-
TargetExtension: e,
|
|
36
|
-
Token: a,
|
|
37
|
-
Transformations: l,
|
|
38
|
-
UseSession: s || void 0
|
|
39
|
-
},
|
|
40
|
-
/**
|
|
41
|
-
* https://link.orangelogic.com/Tasks/41S1XH
|
|
42
|
-
*/
|
|
43
|
-
timeout: 3e5,
|
|
44
|
-
// 5 minutes
|
|
45
|
-
url: T.GET_TRANSFORM_ASSET_LINK
|
|
46
|
-
})).data;
|
|
47
|
-
} catch {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
async function k({
|
|
52
|
-
extraFields: o,
|
|
53
|
-
recordIds: e
|
|
54
|
-
}) {
|
|
55
|
-
if (!Array.isArray(e) || e.length === 0)
|
|
56
|
-
return { facets: [], items: [], totalCount: 0 };
|
|
57
|
-
const t = o?.filter((r) => r && typeof r == "string") ?? [];
|
|
58
|
-
try {
|
|
59
|
-
return (await i.request({
|
|
60
|
-
method: "GET",
|
|
61
|
-
params: {
|
|
62
|
-
ExtraFilters: `RecordID:${e.join(" OR ")}`,
|
|
63
|
-
Fields: [
|
|
64
|
-
...t,
|
|
65
|
-
E,
|
|
66
|
-
F,
|
|
67
|
-
I,
|
|
68
|
-
b,
|
|
69
|
-
j
|
|
70
|
-
],
|
|
71
|
-
SeeThru: !0
|
|
72
|
-
},
|
|
73
|
-
paramsSerializer: {
|
|
74
|
-
indexes: null
|
|
75
|
-
},
|
|
76
|
-
responseType: "json",
|
|
77
|
-
transformResponse: [
|
|
78
|
-
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
79
|
-
(a) => {
|
|
80
|
-
const l = a.contentItems?.map((s) => {
|
|
81
|
-
let d = s.fields[F] ?? "";
|
|
82
|
-
return d === "" && (d = s.fields[I] ?? ""), {
|
|
83
|
-
name: d,
|
|
84
|
-
originalUrl: s.fields[E] ?? "",
|
|
85
|
-
recordId: s.recordID,
|
|
86
|
-
...t.reduce(
|
|
87
|
-
(u, c) => (u[c] = s.fields[c] ?? "", u),
|
|
88
|
-
{}
|
|
89
|
-
)
|
|
90
|
-
};
|
|
91
|
-
}) ?? [];
|
|
92
|
-
return l.sort((s, d) => {
|
|
93
|
-
const u = e.indexOf(s.recordId), c = e.indexOf(d.recordId);
|
|
94
|
-
return u - c;
|
|
95
|
-
}), {
|
|
96
|
-
facets: a.facets,
|
|
97
|
-
items: l,
|
|
98
|
-
totalCount: a.totalCount
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
url: T.GET_CONTENT_V1
|
|
103
|
-
})).data;
|
|
104
|
-
} catch {
|
|
105
|
-
return {
|
|
106
|
-
facets: [],
|
|
107
|
-
items: [],
|
|
108
|
-
totalCount: 0
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
async function q({
|
|
113
|
-
extraFields: o,
|
|
114
|
-
folderId: e,
|
|
115
|
-
limit: t,
|
|
116
|
-
limitedDocTypes: r,
|
|
117
|
-
searchTerm: a,
|
|
118
|
-
seeThrough: l,
|
|
119
|
-
selectedFacets: s,
|
|
120
|
-
sortOrder: d,
|
|
121
|
-
start: u
|
|
122
|
-
}) {
|
|
123
|
-
const c = (o?.filter((f) => f && typeof f == "string") ?? []).map((f) => f.replace("%20", " "));
|
|
124
|
-
try {
|
|
125
|
-
return (await i.request({
|
|
126
|
-
method: "GET",
|
|
127
|
-
params: {
|
|
128
|
-
Fields: [
|
|
129
|
-
...c,
|
|
130
|
-
w,
|
|
131
|
-
C,
|
|
132
|
-
E,
|
|
133
|
-
g,
|
|
134
|
-
G,
|
|
135
|
-
R,
|
|
136
|
-
O,
|
|
137
|
-
h,
|
|
138
|
-
U,
|
|
139
|
-
N,
|
|
140
|
-
S,
|
|
141
|
-
x,
|
|
142
|
-
I,
|
|
143
|
-
F
|
|
144
|
-
],
|
|
145
|
-
Limit: t,
|
|
146
|
-
LimitedToDocTypes: r.length > 0 ? r : void 0,
|
|
147
|
-
ObjectRecordID: e,
|
|
148
|
-
OrderBy: d || void 0,
|
|
149
|
-
SearchTerm: a || void 0,
|
|
150
|
-
SeeThru: l,
|
|
151
|
-
Start: u,
|
|
152
|
-
...W(s)
|
|
153
|
-
},
|
|
154
|
-
paramsSerializer: {
|
|
155
|
-
indexes: null
|
|
156
|
-
},
|
|
157
|
-
responseType: "json",
|
|
158
|
-
transformResponse: [
|
|
159
|
-
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
160
|
-
(D) => ({
|
|
161
|
-
facets: D.facets,
|
|
162
|
-
items: D.contentItems?.map((n) => {
|
|
163
|
-
let p = n.fields[S] ?? "", _ = n.fields[F] ?? "", m = n.fields[C] ?? "";
|
|
164
|
-
return p && !p.startsWith(".") && (p = "." + p), _ === "" && (_ = n.fields[I] ?? ""), p.toLowerCase() === ".gif" && (m = n.fields[E] ?? ""), {
|
|
165
|
-
docSubType: n.fields[U] ?? "",
|
|
166
|
-
docType: n.fields[h] ?? "",
|
|
167
|
-
extension: p,
|
|
168
|
-
height: n.fields[R] ?? "0",
|
|
169
|
-
id: n.recordID,
|
|
170
|
-
identifier: n.fields[N] ?? "",
|
|
171
|
-
imageUrl: m,
|
|
172
|
-
name: _ ?? "",
|
|
173
|
-
originalUrl: n.fields[E] ?? "",
|
|
174
|
-
recordId: n.fields[x] ?? "",
|
|
175
|
-
size: n.fields[O] ?? "0 MB",
|
|
176
|
-
tags: n.fields[g] ?? "",
|
|
177
|
-
width: n.fields[G] ?? "0",
|
|
178
|
-
...c.reduce(
|
|
179
|
-
(y, A) => (y[A] = n.fields[A] ?? "", y),
|
|
180
|
-
{}
|
|
181
|
-
)
|
|
182
|
-
};
|
|
183
|
-
}) ?? [],
|
|
184
|
-
totalCount: D.totalCount
|
|
185
|
-
})
|
|
186
|
-
],
|
|
187
|
-
url: T.GET_CONTENT_V2
|
|
188
|
-
})).data;
|
|
189
|
-
} catch {
|
|
190
|
-
return {
|
|
191
|
-
facets: [],
|
|
192
|
-
items: [],
|
|
193
|
-
totalCount: 0
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
async function z({
|
|
198
|
-
autoCropMode: o,
|
|
199
|
-
cropHeight: e,
|
|
200
|
-
cropWidth: t,
|
|
201
|
-
imageUrl: r,
|
|
202
|
-
useSession: a
|
|
203
|
-
}) {
|
|
204
|
-
try {
|
|
205
|
-
return (await i.request({
|
|
206
|
-
method: "GET",
|
|
207
|
-
params: {
|
|
208
|
-
AutoCropMode: o,
|
|
209
|
-
CropHeight: e,
|
|
210
|
-
CropWidth: t,
|
|
211
|
-
ImageUrl: r && new URL(r, window.location.origin).href,
|
|
212
|
-
UseSession: a || void 0
|
|
213
|
-
},
|
|
214
|
-
responseType: "json",
|
|
215
|
-
timeout: 3e5,
|
|
216
|
-
// 5 minutes
|
|
217
|
-
transformResponse: [
|
|
218
|
-
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
219
|
-
(s) => ({
|
|
220
|
-
height: s.cropHeight,
|
|
221
|
-
width: s.cropWidth,
|
|
222
|
-
x: s.cropX,
|
|
223
|
-
y: s.cropY
|
|
224
|
-
})
|
|
225
|
-
],
|
|
226
|
-
url: T.GET_CROP_ZONE_SUGGESTION
|
|
227
|
-
})).data;
|
|
228
|
-
} catch {
|
|
229
|
-
return null;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
async function V({
|
|
233
|
-
siteUrl: o
|
|
234
|
-
} = {}) {
|
|
235
|
-
try {
|
|
236
|
-
return (await i.request({
|
|
237
|
-
baseURL: o,
|
|
238
|
-
method: "GET",
|
|
239
|
-
responseType: "json",
|
|
240
|
-
transformResponse: [
|
|
241
|
-
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
242
|
-
(t) => !t || typeof t != "object" ? {
|
|
243
|
-
formatsByDocType: {
|
|
244
|
-
Audio: {},
|
|
245
|
-
Image: {},
|
|
246
|
-
Multimedia: {},
|
|
247
|
-
Video: {}
|
|
248
|
-
}
|
|
249
|
-
} : {
|
|
250
|
-
formatsByDocType: t.formatsByDocType ?? {}
|
|
251
|
-
}
|
|
252
|
-
],
|
|
253
|
-
url: M
|
|
254
|
-
})).data;
|
|
255
|
-
} catch {
|
|
256
|
-
return { formatsByDocType: {} };
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
async function K(o, e) {
|
|
260
|
-
const t = new FormData();
|
|
261
|
-
t.append("InputStream", o);
|
|
262
|
-
const r = await P(
|
|
263
|
-
T.UPLOAD_AND_GET_RESPONSE,
|
|
264
|
-
{
|
|
265
|
-
body: t,
|
|
266
|
-
method: "POST"
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
ClientFileName: o.name,
|
|
270
|
-
FolderRecordID: e?.imageUploadFolderID || ""
|
|
271
|
-
}
|
|
272
|
-
), a = r ? await r.json() : null;
|
|
273
|
-
return a ? a.downloadLink === "" ? (L(e?.errorUploadMessage || "", {
|
|
274
|
-
notificationType: "error"
|
|
275
|
-
}), "") : a.downloadLink : (L(e?.errorUploadMessage || "", {
|
|
276
|
-
notificationType: "error"
|
|
277
|
-
}), "");
|
|
278
|
-
}
|
|
279
|
-
export {
|
|
280
|
-
C as D,
|
|
281
|
-
k as a,
|
|
282
|
-
H as b,
|
|
283
|
-
z as c,
|
|
284
|
-
V as d,
|
|
285
|
-
q as e,
|
|
286
|
-
K as u
|
|
287
|
-
};
|