@orangelogic/design-system 2.0.0-29DUO2-beta-2 → 2.0.0-29IORR-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{AxisLabelRadial.CgPb7ghO.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.B6rG-Ylz.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.C-YfO-57.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.DhoXSsjo.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.CZi2LBZ2.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CykTMTsG.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.BlQ7B4D0.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BQ0JzFEe.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.DuVS2EHe.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.DRO0jnR6.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.DEO3f_qs.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.Bryx2w1J.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.TyXECvYG.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.DK48nKk4.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.DbXRplXx.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.B27osQYu.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.C4wFzD_x.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BEmFiHyd.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.CBqjLDqb.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
- package/library/chunks/{am-chart.B_OdX4Q-.js → am-chart.H2jnOzFc.js} +254 -262
- package/library/chunks/{animation.DfUHRQry.js → animation.7ifl4x2S.js} +4 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.D7E0-cUV.js +460 -0
- package/library/chunks/{button.KnE3mcyM.js → button.CauAHfdl.js} +10 -45
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
- package/library/chunks/{color-swatch-group.p3Sdqlat.js → color-swatch-group.BoVb3qVt.js} +50 -220
- package/library/chunks/{color-swatch.C0oPHfOu.js → color-swatch.2HS4bc3N.js} +20 -204
- package/library/chunks/{colorPicker.CJwbdhtn.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.DmGAMS8X.js +121 -0
- package/library/chunks/{cropper.tSDgXKqJ.js → cropper.ZU2Dy-MM.js} +8182 -8540
- package/library/chunks/{dialog.CKP1W_u1.js → dialog.2UW1LNm1.js} +117 -314
- package/library/chunks/{dom.BQVKDNd8.js → dom.BslZF2Y_.js} +1 -1
- package/library/chunks/dot-pagination.DsAfSNzr.js +204 -0
- package/library/chunks/{endpoints.B7lcoc1N.js → endpoints.Fpyb8xvv.js} +214 -203
- package/library/chunks/{exporting.DCqJtW6l.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.Dig_iVvx.js +1956 -0
- package/library/chunks/{flow.Ch1rU01m.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/folder-select.BT1drT8C.js +775 -0
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{form.DgwYWi0O.js → form.CFc09rKh.js} +1 -1
- package/library/chunks/{gantt.rWdF_jmG.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.BePZwMCQ.js +170 -0
- package/library/chunks/{hierarchy.HoRJAu6S.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
- package/library/chunks/{i18n.C0iakJkV.js → i18n.BFqTRDCA.js} +19 -12
- package/library/chunks/icon-button.rKe0N4VB.js +149 -0
- package/library/chunks/iframe.DznmlYpV.js +73 -0
- package/library/chunks/{image.C9avagDq.js → image.CEtCGsNL.js} +275 -488
- package/library/chunks/{index.D2JPKXqq.js → index.C9khsiad.js} +17 -17
- package/library/chunks/isObjectLike.z36Fu426.js +34 -0
- package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
- package/library/chunks/{json.DHNMAC-m.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.C-0PQZX9.js → list-editor.xBvtJqdy.js} +58 -372
- package/library/chunks/{map.BHmZ4Crx.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/{modal.CG-kZq41.js → modal.U1QltQKe.js} +1 -1
- package/library/chunks/option.COnEtd3X.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/pagination.DaD9Yul6.js +334 -0
- package/library/chunks/{percent.CM9cr1H3.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.CQUnnhGk.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{responsive.CrX-HUow.js → responsive.BndCeSg0.js} +1 -1
- package/library/chunks/{sliceGrouper.iv1p8MAK.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.CU0y6a5P.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/string.BigZhczf.js +185 -0
- package/library/chunks/{tab-group.05PY0smt.js → tab-group.0Po0eoxR.js} +33 -584
- package/library/chunks/{tabbable.BwnZBHrm.js → tabbable.CcMz3mIL.js} +2 -2
- package/library/chunks/{table.DNTm_GMS.js → table.Cs5a0duW.js} +2903 -4591
- package/library/chunks/{timeline.yzdwtGKM.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
- package/library/chunks/toast.B2cJgW5u.js +71 -0
- package/library/chunks/transformation.CzBptarI.js +140 -0
- package/library/chunks/{tree.CeMLCbs-.js → tree.QCQd_cuc.js} +32 -400
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/url.Cj9cIQXJ.js +27 -0
- package/library/chunks/{venn.BOEi13la.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/watch.BCJD77bD.js +547 -0
- package/library/chunks/{wc.V-lq02JF.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.Df1hy9ac.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +11 -179
- package/library/components/am-chart.js +3 -3
- package/library/components/animated-image.js +13 -101
- package/library/components/animation.js +3 -3
- package/library/components/array-line-clamp.js +8 -89
- package/library/components/asset-link-format.js +718 -1380
- package/library/components/atoms.js +18 -18
- package/library/components/avatar.js +6 -95
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +5 -26
- package/library/components/breadcrumb-item.js +25 -156
- package/library/components/breadcrumb.js +4 -22
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +6 -6
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +13 -254
- package/library/components/color-picker.js +57 -728
- package/library/components/color-swatch-group.js +9 -9
- package/library/components/color-swatch.js +5 -5
- package/library/components/confirm-popover.js +6 -6
- package/library/components/copy-button.js +11 -256
- package/library/components/corner-position-input-group.js +5 -58
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +7 -7
- package/library/components/divider.js +6 -68
- package/library/components/dot-pagination.js +4 -4
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +12 -243
- package/library/components/dropdown.js +50 -152
- package/library/components/dynamic-select.js +10 -75
- package/library/components/e-chart.js +493 -534
- package/library/components/element-clamp.js +7 -80
- package/library/components/file-on-demand.js +13 -13
- package/library/components/folder-select.js +9 -7
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +3 -7
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +4 -14
- package/library/components/grid-item.js +5 -172
- package/library/components/grid.js +5 -41
- package/library/components/header.js +4 -4
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +14 -679
- package/library/components/icon.js +9 -2449
- package/library/components/iframe.js +4 -4
- package/library/components/image-comparer.js +9 -129
- package/library/components/image.js +4 -4
- package/library/components/include.js +3 -7
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +358 -966
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +9 -9
- package/library/components/markdown.js +2 -4
- package/library/components/masonry.js +24 -223
- package/library/components/menu-item.js +155 -445
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +5 -113
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +3 -7
- package/library/components/option.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +10 -8
- package/library/components/popup.js +385 -682
- package/library/components/position-picker.js +4 -94
- package/library/components/progress-bar.js +19 -136
- package/library/components/progress-ring.js +4 -95
- package/library/components/qr-code.js +5 -17
- package/library/components/radio-button.js +5 -25
- package/library/components/radio-card.js +8 -176
- package/library/components/radio-group.js +22 -153
- package/library/components/radio.js +14 -171
- package/library/components/range.js +123 -660
- package/library/components/rating.js +58 -238
- package/library/components/relative-time.js +3 -13
- package/library/components/resize-observer.js +4 -8
- package/library/components/select.js +305 -1012
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +21 -313
- package/library/components/sidebar.js +15 -221
- package/library/components/size-input-group.js +12 -77
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +7 -76
- package/library/components/split-panel.js +18 -125
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +17 -34
- package/library/components/switch.js +13 -276
- package/library/components/tab-group.js +7 -7
- package/library/components/tab-panel.js +5 -32
- package/library/components/tab.js +11 -257
- package/library/components/table.js +8 -8
- package/library/components/tag.js +15 -166
- package/library/components/textarea.js +183 -504
- package/library/components/timecode.js +6 -25
- package/library/components/tooltip.js +10 -94
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +4 -4
- package/library/components/typeface.js +24 -123
- package/library/components/types.js +35172 -45146
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3875 -6263
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +10 -0
- package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +2 -1
- package/library/packages/atoms/src/components/image/image.d.ts +15 -1
- package/library/packages/atoms/src/components/input/auto-grow-controller.d.ts +23 -0
- package/library/packages/atoms/src/components/input/input.d.ts +10 -2
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +4 -0
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +32 -2
- package/library/packages/atoms/src/components/popup/overlay/Overlay.d.ts +10 -0
- package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/table.d.ts +42 -8
- package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +40 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts +8 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupComponent.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupLoadMore.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupRows.d.ts +2 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Page/Page.d.ts +2 -2
- package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
- package/library/packages/atoms/src/components/video/video.d.ts +3 -1
- package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
- package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
- package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
- package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
- package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
- package/library/packages/events/src/cx-unauthorized.d.ts +10 -0
- package/library/packages/events/src/cx-video-format-picker-delete.d.ts +6 -0
- package/library/packages/events/src/cx-video-format-picker-select.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +11 -1
- package/library/packages/molecules/src/cropper/cropper.d.ts +2 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +2 -0
- package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.d.ts +3 -2
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +26 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +46 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +25 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/storybook/storybook.d.ts +60 -23
- package/library/packages/molecules/src/timeline/timeline.d.ts +14 -0
- package/library/packages/molecules/src/video-format-picker/video-format-picker.d.ts +55 -0
- package/library/packages/molecules/src/video-format-picker/video-format-picker.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -1
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +95 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
- package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +5 -1
- package/library/packages/organisms/src/comment/comment.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +20 -2
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
- package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
- package/library/packages/services/src/api/asset/asset.d.ts +3 -2
- package/library/packages/services/src/api/asset/asset.types.d.ts +84 -0
- package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
- package/library/packages/services/src/api/endpoints.d.ts +1 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +17 -5
- package/library/packages/types/src/asset-click-action.d.ts +3 -1
- package/library/packages/types/src/bento-grid.d.ts +37 -0
- package/library/packages/types/src/content-builder.d.ts +27 -1
- package/library/packages/types/src/gallery.d.ts +0 -6
- package/library/packages/types/src/icon-button.d.ts +7 -0
- package/library/packages/types/src/menu-item.d.ts +33 -0
- package/library/packages/types/src/storybook.d.ts +19 -0
- package/library/packages/types/src/table.d.ts +37 -1
- package/library/packages/types/src/textarea.d.ts +4 -0
- package/library/packages/types/src/video-format-picker.d.ts +11 -0
- package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +10 -3
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/string/string.d.ts +33 -0
- package/library/packages/utils/src/transformation/index.d.ts +1 -0
- package/library/packages/utils/src/url/url.d.ts +9 -0
- package/library/react-web-component.d.ts +289 -29
- package/library/utils.js +483 -178
- package/package.json +4 -1
- package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
- package/library/chunks/asset.CG_yXtWK.js +0 -288
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.DlN4hgLS.js +0 -288
- package/library/chunks/content-builder.D_phDrlo.js +0 -127
- package/library/chunks/dot-pagination.COBkyhoJ.js +0 -325
- package/library/chunks/file-on-demand.DZtadqgL.js +0 -3740
- package/library/chunks/folder-select.Bl_WkhVE.js +0 -844
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.BduX6KJP.js +0 -777
- package/library/chunks/identity.ByMq8VxU.js +0 -6
- package/library/chunks/iframe.BPKV2K7z.js +0 -160
- package/library/chunks/index.CwrqgSke.js +0 -373
- package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
- package/library/chunks/option.DnpkE8Xi.js +0 -296
- package/library/chunks/pagination.C30LoTya.js +0 -341
- package/library/chunks/string.B_rEG27K.js +0 -160
- package/library/chunks/toast.BXNbwZV8.js +0 -25
- package/library/chunks/typography.oDzoLbZS.js +0 -149
- package/library/chunks/url.LjsR2sB5.js +0 -15
- package/library/chunks/watch.q1sEjPWL.js +0 -501
- /package/library/packages/{organisms/src/asset-link-format/asset-link-format.utils.d.ts → utils/src/transformation/transformation.d.ts} +0 -0
package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts
CHANGED
|
@@ -40,7 +40,10 @@ import { default as CxPaddingInputGroup } from '../../../../../molecules/src/pad
|
|
|
40
40
|
import { default as CxPositionPicker } from '../../../../../molecules/src/position-picker/position-picker.ts';
|
|
41
41
|
import { default as CxShadowInputGroup } from '../../../../../molecules/src/shadow-input-group/shadow-input-group.ts';
|
|
42
42
|
import { default as CxSizeInputGroup } from '../../../../../molecules/src/size-input-group/size-input-group.ts';
|
|
43
|
+
import { default as CxVideoFormatPicker } from '../../../../../molecules/src/video-format-picker/video-format-picker.ts';
|
|
44
|
+
import { default as CxAssetTransformationDialog } from '../../../asset-transformation-dialog/asset-transformation-dialog.ts';
|
|
43
45
|
import { Asset, AssetTypeString, EditorMode, PropertyConfig } from '../../../../../types/src/content-builder';
|
|
46
|
+
import { VideoFormatValue } from '../../../../../types/src/video-format-picker';
|
|
44
47
|
import { StyleProps } from 'grapesjs';
|
|
45
48
|
import { CxColorSwatchPicker } from '../color-swatch-picker';
|
|
46
49
|
import { CxFolderPicker } from '../folder-picker';
|
|
@@ -73,6 +76,7 @@ export default class CxConfigForm extends CortexElement {
|
|
|
73
76
|
static readonly styles: import('lit').CSSResult[];
|
|
74
77
|
static readonly dependencies: {
|
|
75
78
|
'cx-asset-picker': typeof CxAssetPicker;
|
|
79
|
+
'cx-asset-transformation-dialog': typeof CxAssetTransformationDialog;
|
|
76
80
|
'cx-bicolor-picker': typeof CxBicolorPicker;
|
|
77
81
|
'cx-border-input-group': typeof CxBorderInputGroup;
|
|
78
82
|
'cx-button': typeof CxButton;
|
|
@@ -116,6 +120,7 @@ export default class CxConfigForm extends CortexElement {
|
|
|
116
120
|
'cx-textarea': typeof CxTextarea;
|
|
117
121
|
'cx-tooltip': typeof CxTooltip;
|
|
118
122
|
'cx-typography': typeof CxTypography;
|
|
123
|
+
'cx-video-format-picker': typeof CxVideoFormatPicker;
|
|
119
124
|
'cx-visually-hidden': typeof CxVisuallyHidden;
|
|
120
125
|
};
|
|
121
126
|
private readonly localize;
|
|
@@ -192,6 +197,10 @@ export default class CxConfigForm extends CortexElement {
|
|
|
192
197
|
* @returns A promise that resolves to an Asset object.
|
|
193
198
|
* @default undefined
|
|
194
199
|
*/
|
|
200
|
+
/** Base URL passed through to cx-asset-transformation-dialog for asset fetching. */
|
|
201
|
+
baseUrl: string;
|
|
202
|
+
/** Auth token passed through to cx-asset-transformation-dialog for asset fetching. */
|
|
203
|
+
token: string;
|
|
195
204
|
onRequestAsset: ((type: AssetTypeString, multiple?: boolean, accepts?: string[]) => Promise<Asset | Record<string, Asset>>) | undefined;
|
|
196
205
|
/**
|
|
197
206
|
* Function to request a download format.
|
|
@@ -202,6 +211,8 @@ export default class CxConfigForm extends CortexElement {
|
|
|
202
211
|
* @default undefined
|
|
203
212
|
*/
|
|
204
213
|
onRequestDownloadFormat: ((assetIds: string[], formats?: Record<string, string[]>) => Promise<Record<string, string[]>>) | undefined;
|
|
214
|
+
/** Callback invoked when a video format needs to be selected via an external popup. */
|
|
215
|
+
onRequestVideoFormat: ((assetId: string, value?: VideoFormatValue) => Promise<VideoFormatValue | null | undefined>) | undefined;
|
|
205
216
|
/**
|
|
206
217
|
* The attributes of the component.
|
|
207
218
|
* This is used to store the attributes of the block being configured.
|
package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
2
2
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
3
3
|
import { Asset, AssetTypeString, EditorMode, PropertyConfig } from '../../../../../types/src/content-builder';
|
|
4
|
+
import { VideoFormatValue } from '../../../../../types/src/video-format-picker';
|
|
4
5
|
import { Component, DataRecord, StyleProps } from 'grapesjs';
|
|
5
6
|
import { CxConfigForm } from '../config-form';
|
|
6
7
|
|
|
@@ -53,6 +54,13 @@ export default class CxConfigManager extends CortexElement {
|
|
|
53
54
|
* @default EditorMode.Template
|
|
54
55
|
*/
|
|
55
56
|
mode: EditorMode;
|
|
57
|
+
/**
|
|
58
|
+
* Whether to expose asset format / transformation / download-format /
|
|
59
|
+
* video-format-picker controls for image, video, gallery, carousel,
|
|
60
|
+
* and timeline blocks.
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
enableAssetFormatControls: boolean;
|
|
56
64
|
/**
|
|
57
65
|
* A list of properties that are not shown in the configuration manager if mode is EditorMode.Content.
|
|
58
66
|
* @default []
|
|
@@ -100,6 +108,8 @@ export default class CxConfigManager extends CortexElement {
|
|
|
100
108
|
* @default undefined
|
|
101
109
|
*/
|
|
102
110
|
onRequestDownloadFormat: ((assetIds: string[]) => Promise<Asset[]>) | undefined;
|
|
111
|
+
/** Callback forwarded to `cx-config-form` → `cx-video-format-picker` for video format selection. */
|
|
112
|
+
onRequestVideoFormat: ((assetId: string, value?: VideoFormatValue) => Promise<VideoFormatValue | null | undefined>) | undefined;
|
|
103
113
|
/**
|
|
104
114
|
* The attributes of the component.
|
|
105
115
|
* This is used to store the attributes of the block being configured.
|
package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts
CHANGED
|
@@ -37,6 +37,12 @@ export default class CxFolderPicker extends CortexElement {
|
|
|
37
37
|
value: string;
|
|
38
38
|
variant: FolderSelectVariant;
|
|
39
39
|
useFullPath: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Allows selecting multiple folders. Only applies when `variant` is `select`.
|
|
42
|
+
* When enabled, `cx-content-builder-folder-change` emits `detail.id` as a space-separated
|
|
43
|
+
* list of selected folder ids and `detail.representativeAssetId` from the first selected folder.
|
|
44
|
+
*/
|
|
45
|
+
multiple: boolean;
|
|
40
46
|
/**
|
|
41
47
|
* The select's required attribute.
|
|
42
48
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Easing, TransitionType } from '../../../../types/src/index.ts';
|
|
2
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
3
3
|
import { ContentType, SourceVariant } from '../../../../types/src/gallery';
|
|
4
4
|
import { GalleryItemCardType, GalleryItemContentPosition, GalleryItemContentVariant, GalleryItemEffect, GalleryItemTextRevealStyle, GalleryItemZoomStyle } from '../../../../types/src/gallery-item';
|
|
5
5
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
@@ -17,8 +17,10 @@ type Attributes = {
|
|
|
17
17
|
'content-variant': GalleryItemContentVariant;
|
|
18
18
|
'data-constraints': boolean;
|
|
19
19
|
'details-source-field': string;
|
|
20
|
+
'download-format': string;
|
|
20
21
|
easing: Easing;
|
|
21
22
|
effect: GalleryItemEffect;
|
|
23
|
+
format: string;
|
|
22
24
|
'header-source-field': string;
|
|
23
25
|
'highlight-border': boolean;
|
|
24
26
|
'highlight-color-overlay': boolean;
|
|
@@ -34,12 +36,14 @@ type Attributes = {
|
|
|
34
36
|
'source-variant': SourceVariant;
|
|
35
37
|
src: string;
|
|
36
38
|
'text-reveal-style': GalleryItemTextRevealStyle;
|
|
39
|
+
'transformation-record-id': string;
|
|
40
|
+
transformations: string;
|
|
37
41
|
'transition-type': TransitionType;
|
|
38
42
|
variant: string;
|
|
39
43
|
'zoom-style': GalleryItemZoomStyle;
|
|
40
44
|
};
|
|
41
45
|
declare const _default: {
|
|
42
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attributes>>;
|
|
46
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attributes>>;
|
|
43
47
|
defaultValue: Partial<Attributes>;
|
|
44
48
|
stylable: string[];
|
|
45
49
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Easing, Orientation } from '../../../../types/src/index.ts';
|
|
2
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
3
3
|
import { ContentType, GalleryVariant, OverflowBehavior, SourceVariant } from '../../../../types/src/gallery';
|
|
4
4
|
import { GalleryItemCardType, GalleryItemContentPosition, GalleryItemContentVariant, GalleryItemEffect, GalleryItemShowContentType, GalleryItemTextRevealStyle, GalleryItemZoomStyle } from '../../../../types/src/gallery-item';
|
|
5
5
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
@@ -17,8 +17,10 @@ type Attribute = {
|
|
|
17
17
|
'content-type': ContentType;
|
|
18
18
|
'content-variant': GalleryItemContentVariant;
|
|
19
19
|
'details-source-field': string;
|
|
20
|
+
'download-format': string;
|
|
20
21
|
easing: Easing;
|
|
21
22
|
effect: GalleryItemEffect;
|
|
23
|
+
format: string;
|
|
22
24
|
'header-source-field': string;
|
|
23
25
|
'highlight-background': boolean;
|
|
24
26
|
'highlight-border': boolean;
|
|
@@ -40,11 +42,13 @@ type Attribute = {
|
|
|
40
42
|
'source-variant': SourceVariant;
|
|
41
43
|
src: string;
|
|
42
44
|
'text-reveal-style': GalleryItemTextRevealStyle;
|
|
45
|
+
'transformation-record-id': string;
|
|
46
|
+
transformations: string;
|
|
43
47
|
variant: GalleryVariant;
|
|
44
48
|
'zoom-style': GalleryItemZoomStyle;
|
|
45
49
|
};
|
|
46
50
|
declare const _default: {
|
|
47
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attribute>>;
|
|
51
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attribute>>;
|
|
48
52
|
defaultValue: Partial<Attribute>;
|
|
49
53
|
stylable: string[];
|
|
50
54
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
1
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
2
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
3
3
|
import { default as CxImage } from '../blocks/image/image';
|
|
4
4
|
|
|
@@ -21,8 +21,10 @@ type Attribute = {
|
|
|
21
21
|
'download-id'?: CxImage['downloadId'];
|
|
22
22
|
'download-names'?: CxImage['downloadNames'];
|
|
23
23
|
'download-src'?: CxImage['downloadSrc'];
|
|
24
|
-
easing
|
|
25
|
-
effect
|
|
24
|
+
easing: CxImage['easing'];
|
|
25
|
+
effect: CxImage['effect'];
|
|
26
|
+
format: CxImage['format'];
|
|
27
|
+
'format-dark-mode': CxImage['formatDarkMode'];
|
|
26
28
|
'header-source-field': CxImage['headerSourceField'];
|
|
27
29
|
height: CxImage['height'];
|
|
28
30
|
'height-mode': CxImage['heightMode'];
|
|
@@ -41,12 +43,13 @@ type Attribute = {
|
|
|
41
43
|
src: CxImage['src'];
|
|
42
44
|
'src-dark-mode': CxImage['srcDarkMode'];
|
|
43
45
|
'text-reveal-style'?: CxImage['textRevealStyle'];
|
|
46
|
+
transformations: string;
|
|
44
47
|
'transition-type'?: string;
|
|
45
48
|
width: CxImage['width'];
|
|
46
49
|
'zoom-style'?: CxImage['zoomStyle'];
|
|
47
50
|
};
|
|
48
51
|
declare const _default: {
|
|
49
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attribute>>;
|
|
52
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attribute>>;
|
|
50
53
|
defaultValue: Attribute;
|
|
51
54
|
stylable: string[];
|
|
52
55
|
};
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
1
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
2
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
3
3
|
|
|
4
4
|
type Attributes = {
|
|
5
5
|
data: string;
|
|
6
|
+
format: string;
|
|
6
7
|
'min-tab-width': string;
|
|
7
8
|
'multi-language': boolean;
|
|
8
9
|
'navigation-arrows': boolean;
|
|
9
10
|
'show-thumbnails': boolean;
|
|
10
11
|
'tabs-per-page': number;
|
|
12
|
+
'transformation-record-id': string;
|
|
13
|
+
transformations: string;
|
|
11
14
|
};
|
|
12
15
|
declare const _default: {
|
|
13
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attributes>>;
|
|
16
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attributes>>;
|
|
14
17
|
defaultValue: Attributes;
|
|
15
18
|
stylable: string[];
|
|
16
19
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ClickAction } from '../../../../types/src/asset-click-action';
|
|
2
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
3
|
+
import { AssetVersion } from '../../../../types/src/video-format-picker';
|
|
3
4
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
4
5
|
import { default as CxVideo } from '../blocks/video/video';
|
|
5
6
|
|
|
6
7
|
type Attribute = {
|
|
7
8
|
'additional-fields': string;
|
|
9
|
+
'asset-version': AssetVersion;
|
|
8
10
|
autoplay: CxVideo['autoplay'];
|
|
9
11
|
'click-action': ClickAction;
|
|
10
12
|
'click-link'?: CxVideo['clickLink'];
|
|
@@ -22,6 +24,9 @@ type Attribute = {
|
|
|
22
24
|
'download-id'?: CxVideo['downloadId'];
|
|
23
25
|
'download-names'?: CxVideo['downloadNames'];
|
|
24
26
|
'download-src'?: CxVideo['downloadSrc'];
|
|
27
|
+
'format': string;
|
|
28
|
+
'format-label'?: string;
|
|
29
|
+
'format-src': string;
|
|
25
30
|
'header-source-field': CxVideo['headerSourceField'];
|
|
26
31
|
height: CxVideo['height'];
|
|
27
32
|
'height-mode': CxVideo['heightMode'];
|
|
@@ -38,10 +43,14 @@ type Attribute = {
|
|
|
38
43
|
'share-src'?: CxVideo['shareSrc'];
|
|
39
44
|
'show-controls': CxVideo['showControls'];
|
|
40
45
|
src: CxVideo['src'];
|
|
46
|
+
'thumbnail-format'?: string;
|
|
47
|
+
'thumbnail-record-id'?: string;
|
|
48
|
+
'thumbnail-transformations'?: string;
|
|
49
|
+
'version-label'?: string;
|
|
41
50
|
width: CxVideo['width'];
|
|
42
51
|
};
|
|
43
52
|
declare const _default: {
|
|
44
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attribute>>;
|
|
53
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attribute>>;
|
|
45
54
|
defaultValue: Partial<Attribute>;
|
|
46
55
|
stylable: string[];
|
|
47
56
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BlockType } from '../../../types/src/content-builder';
|
|
1
|
+
import { BlockType, ConfigsOptions } from '../../../types/src/content-builder';
|
|
2
2
|
import { LocalizeController } from '../../../utils/src/custom-element/i18n';
|
|
3
3
|
|
|
4
4
|
export default class ConfigsController {
|
|
5
5
|
private readonly localize;
|
|
6
6
|
constructor(localize: LocalizeController);
|
|
7
|
-
getConfigs(type: BlockType): import('../../../types/src/content-builder').PropertyConfig<{
|
|
7
|
+
getConfigs(type: BlockType, options?: ConfigsOptions): import('../../../types/src/content-builder').PropertyConfig<{
|
|
8
8
|
data: string;
|
|
9
9
|
'data-constraints': boolean;
|
|
10
10
|
'default-open-indexes': string;
|
|
@@ -46,8 +46,10 @@ export default class ConfigsController {
|
|
|
46
46
|
'content-variant': import('../../../types/src/gallery-item').GalleryItemContentVariant;
|
|
47
47
|
'data-constraints': boolean;
|
|
48
48
|
'details-source-field': string;
|
|
49
|
+
'download-format': string;
|
|
49
50
|
easing: import('../../../types/src/index.ts').Easing;
|
|
50
51
|
effect: import('../../../types/src/highlightable-element').HighlightableElementEffect;
|
|
52
|
+
format: string;
|
|
51
53
|
'header-source-field': string;
|
|
52
54
|
'highlight-border': boolean;
|
|
53
55
|
'highlight-color-overlay': boolean;
|
|
@@ -63,6 +65,8 @@ export default class ConfigsController {
|
|
|
63
65
|
'source-variant': import('../../../types/src/gallery').SourceVariant;
|
|
64
66
|
src: string;
|
|
65
67
|
'text-reveal-style': import('../../../types/src/highlightable-element').HighlightableElementTextRevealStyle;
|
|
68
|
+
'transformation-record-id': string;
|
|
69
|
+
transformations: string;
|
|
66
70
|
'transition-type': import('../../../types/src/index.ts').TransitionType;
|
|
67
71
|
variant: string;
|
|
68
72
|
'zoom-style': import('../../../types/src/highlightable-element').HighlightableElementZoomStyle;
|
|
@@ -111,8 +115,10 @@ export default class ConfigsController {
|
|
|
111
115
|
'content-type': import('../../../types/src/gallery').ContentType;
|
|
112
116
|
'content-variant': import('../../../types/src/gallery-item').GalleryItemContentVariant;
|
|
113
117
|
'details-source-field': string;
|
|
118
|
+
'download-format': string;
|
|
114
119
|
easing: import('../../../types/src/index.ts').Easing;
|
|
115
120
|
effect: import('../../../types/src/highlightable-element').HighlightableElementEffect;
|
|
121
|
+
format: string;
|
|
116
122
|
'header-source-field': string;
|
|
117
123
|
'highlight-background': boolean;
|
|
118
124
|
'highlight-border': boolean;
|
|
@@ -134,6 +140,8 @@ export default class ConfigsController {
|
|
|
134
140
|
'source-variant': import('../../../types/src/gallery').SourceVariant;
|
|
135
141
|
src: string;
|
|
136
142
|
'text-reveal-style': import('../../../types/src/highlightable-element').HighlightableElementTextRevealStyle;
|
|
143
|
+
'transformation-record-id': string;
|
|
144
|
+
transformations: string;
|
|
137
145
|
variant: import('../../../types/src/gallery').GalleryVariant;
|
|
138
146
|
'zoom-style': import('../../../types/src/highlightable-element').HighlightableElementZoomStyle;
|
|
139
147
|
}>[] | import('../../../types/src/content-builder').PropertyConfig<{
|
|
@@ -167,8 +175,10 @@ export default class ConfigsController {
|
|
|
167
175
|
'download-id'?: import('./blocks/image/image').default["downloadId"];
|
|
168
176
|
'download-names'?: import('./blocks/image/image').default["downloadNames"];
|
|
169
177
|
'download-src'?: import('./blocks/image/image').default["downloadSrc"];
|
|
170
|
-
easing
|
|
171
|
-
effect
|
|
178
|
+
easing: import('./blocks/image/image').default["easing"];
|
|
179
|
+
effect: import('./blocks/image/image').default["effect"];
|
|
180
|
+
format: import('./blocks/image/image').default["format"];
|
|
181
|
+
'format-dark-mode': import('./blocks/image/image').default["formatDarkMode"];
|
|
172
182
|
'header-source-field': import('./blocks/image/image').default["headerSourceField"];
|
|
173
183
|
height: import('./blocks/image/image').default["height"];
|
|
174
184
|
'height-mode': import('./blocks/image/image').default["heightMode"];
|
|
@@ -187,6 +197,7 @@ export default class ConfigsController {
|
|
|
187
197
|
src: import('./blocks/image/image').default["src"];
|
|
188
198
|
'src-dark-mode': import('./blocks/image/image').default["srcDarkMode"];
|
|
189
199
|
'text-reveal-style'?: import('./blocks/image/image').default["textRevealStyle"];
|
|
200
|
+
transformations: string;
|
|
190
201
|
'transition-type'?: string;
|
|
191
202
|
width: import('./blocks/image/image').default["width"];
|
|
192
203
|
'zoom-style'?: import('./blocks/image/image').default["zoomStyle"];
|
|
@@ -207,13 +218,17 @@ export default class ConfigsController {
|
|
|
207
218
|
'data-constraints': boolean;
|
|
208
219
|
}>[] | import('../../../types/src/content-builder').PropertyConfig<{
|
|
209
220
|
data: string;
|
|
221
|
+
format: string;
|
|
210
222
|
'min-tab-width': string;
|
|
211
223
|
'multi-language': boolean;
|
|
212
224
|
'navigation-arrows': boolean;
|
|
213
225
|
'show-thumbnails': boolean;
|
|
214
226
|
'tabs-per-page': number;
|
|
227
|
+
'transformation-record-id': string;
|
|
228
|
+
transformations: string;
|
|
215
229
|
}>[] | import('../../../types/src/content-builder').PropertyConfig<{
|
|
216
230
|
'additional-fields': string;
|
|
231
|
+
'asset-version': import('../../../types/src/video-format-picker').AssetVersion;
|
|
217
232
|
autoplay: import('./blocks/video/video').default["autoplay"];
|
|
218
233
|
'click-action': import('../../../types/src/asset-click-action').ClickAction;
|
|
219
234
|
'click-link'?: import('./blocks/video/video').default["clickLink"];
|
|
@@ -231,6 +246,9 @@ export default class ConfigsController {
|
|
|
231
246
|
'download-id'?: import('./blocks/video/video').default["downloadId"];
|
|
232
247
|
'download-names'?: import('./blocks/video/video').default["downloadNames"];
|
|
233
248
|
'download-src'?: import('./blocks/video/video').default["downloadSrc"];
|
|
249
|
+
format: string;
|
|
250
|
+
'format-label'?: string;
|
|
251
|
+
'format-src': string;
|
|
234
252
|
'header-source-field': import('./blocks/video/video').default["headerSourceField"];
|
|
235
253
|
height: import('./blocks/video/video').default["height"];
|
|
236
254
|
'height-mode': import('./blocks/video/video').default["heightMode"];
|
|
@@ -247,6 +265,10 @@ export default class ConfigsController {
|
|
|
247
265
|
'share-src'?: import('./blocks/video/video').default["shareSrc"];
|
|
248
266
|
'show-controls': import('./blocks/video/video').default["showControls"];
|
|
249
267
|
src: import('./blocks/video/video').default["src"];
|
|
268
|
+
'thumbnail-format'?: string;
|
|
269
|
+
'thumbnail-record-id'?: string;
|
|
270
|
+
'thumbnail-transformations'?: string;
|
|
271
|
+
'version-label'?: string;
|
|
250
272
|
width: import('./blocks/video/video').default["width"];
|
|
251
273
|
}>[];
|
|
252
274
|
getName(type: BlockType): string;
|
|
@@ -287,8 +309,10 @@ export default class ConfigsController {
|
|
|
287
309
|
'content-variant': import('../../../types/src/gallery-item').GalleryItemContentVariant;
|
|
288
310
|
'data-constraints': boolean;
|
|
289
311
|
'details-source-field': string;
|
|
312
|
+
'download-format': string;
|
|
290
313
|
easing: import('../../../types/src/index.ts').Easing;
|
|
291
314
|
effect: import('../../../types/src/highlightable-element').HighlightableElementEffect;
|
|
315
|
+
format: string;
|
|
292
316
|
'header-source-field': string;
|
|
293
317
|
'highlight-border': boolean;
|
|
294
318
|
'highlight-color-overlay': boolean;
|
|
@@ -304,6 +328,8 @@ export default class ConfigsController {
|
|
|
304
328
|
'source-variant': import('../../../types/src/gallery').SourceVariant;
|
|
305
329
|
src: string;
|
|
306
330
|
'text-reveal-style': import('../../../types/src/highlightable-element').HighlightableElementTextRevealStyle;
|
|
331
|
+
'transformation-record-id': string;
|
|
332
|
+
transformations: string;
|
|
307
333
|
'transition-type': import('../../../types/src/index.ts').TransitionType;
|
|
308
334
|
variant: string;
|
|
309
335
|
'zoom-style': import('../../../types/src/highlightable-element').HighlightableElementZoomStyle;
|
|
@@ -349,8 +375,10 @@ export default class ConfigsController {
|
|
|
349
375
|
'content-type': import('../../../types/src/gallery').ContentType;
|
|
350
376
|
'content-variant': import('../../../types/src/gallery-item').GalleryItemContentVariant;
|
|
351
377
|
'details-source-field': string;
|
|
378
|
+
'download-format': string;
|
|
352
379
|
easing: import('../../../types/src/index.ts').Easing;
|
|
353
380
|
effect: import('../../../types/src/highlightable-element').HighlightableElementEffect;
|
|
381
|
+
format: string;
|
|
354
382
|
'header-source-field': string;
|
|
355
383
|
'highlight-background': boolean;
|
|
356
384
|
'highlight-border': boolean;
|
|
@@ -372,6 +400,8 @@ export default class ConfigsController {
|
|
|
372
400
|
'source-variant': import('../../../types/src/gallery').SourceVariant;
|
|
373
401
|
src: string;
|
|
374
402
|
'text-reveal-style': import('../../../types/src/highlightable-element').HighlightableElementTextRevealStyle;
|
|
403
|
+
'transformation-record-id': string;
|
|
404
|
+
transformations: string;
|
|
375
405
|
variant: import('../../../types/src/gallery').GalleryVariant;
|
|
376
406
|
'zoom-style': import('../../../types/src/highlightable-element').HighlightableElementZoomStyle;
|
|
377
407
|
}> | {
|
|
@@ -387,13 +417,17 @@ export default class ConfigsController {
|
|
|
387
417
|
'data-constraints': boolean;
|
|
388
418
|
} | {
|
|
389
419
|
data: string;
|
|
420
|
+
format: string;
|
|
390
421
|
'min-tab-width': string;
|
|
391
422
|
'multi-language': boolean;
|
|
392
423
|
'navigation-arrows': boolean;
|
|
393
424
|
'show-thumbnails': boolean;
|
|
394
425
|
'tabs-per-page': number;
|
|
426
|
+
'transformation-record-id': string;
|
|
427
|
+
transformations: string;
|
|
395
428
|
} | Partial<{
|
|
396
429
|
'additional-fields': string;
|
|
430
|
+
'asset-version': import('../../../types/src/video-format-picker').AssetVersion;
|
|
397
431
|
autoplay: import('./blocks/video/video').default["autoplay"];
|
|
398
432
|
'click-action': import('../../../types/src/asset-click-action').ClickAction;
|
|
399
433
|
'click-link'?: import('./blocks/video/video').default["clickLink"];
|
|
@@ -411,6 +445,9 @@ export default class ConfigsController {
|
|
|
411
445
|
'download-id'?: import('./blocks/video/video').default["downloadId"];
|
|
412
446
|
'download-names'?: import('./blocks/video/video').default["downloadNames"];
|
|
413
447
|
'download-src'?: import('./blocks/video/video').default["downloadSrc"];
|
|
448
|
+
format: string;
|
|
449
|
+
'format-label'?: string;
|
|
450
|
+
'format-src': string;
|
|
414
451
|
'header-source-field': import('./blocks/video/video').default["headerSourceField"];
|
|
415
452
|
height: import('./blocks/video/video').default["height"];
|
|
416
453
|
'height-mode': import('./blocks/video/video').default["heightMode"];
|
|
@@ -427,6 +464,10 @@ export default class ConfigsController {
|
|
|
427
464
|
'share-src'?: import('./blocks/video/video').default["shareSrc"];
|
|
428
465
|
'show-controls': import('./blocks/video/video').default["showControls"];
|
|
429
466
|
src: import('./blocks/video/video').default["src"];
|
|
467
|
+
'thumbnail-format'?: string;
|
|
468
|
+
'thumbnail-record-id'?: string;
|
|
469
|
+
'thumbnail-transformations'?: string;
|
|
470
|
+
'version-label'?: string;
|
|
430
471
|
width: import('./blocks/video/video').default["width"];
|
|
431
472
|
}>;
|
|
432
473
|
getStylable(type: BlockType): string[];
|
|
@@ -4,6 +4,7 @@ import { default as CxPopup } from '../../../atoms/src/components/popup/popup.ts
|
|
|
4
4
|
import { default as CxSpinner } from '../../../atoms/src/components/spinner/spinner.ts';
|
|
5
5
|
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
6
6
|
import { Asset, AssetTypeString, Device, EditorMode, TeamSpaceRole } from '../../../types/src/content-builder';
|
|
7
|
+
import { VideoFormatValue } from '../../../types/src/video-format-picker';
|
|
7
8
|
import { Component, Editor, StyleProps } from 'grapesjs';
|
|
8
9
|
import { TemplateResult } from 'lit';
|
|
9
10
|
import { CxBlockPicker } from './components/block-picker';
|
|
@@ -13,6 +14,10 @@ import { CxRTEBubbleMenu, CxRTETableGenerator } from './plugins';
|
|
|
13
14
|
/**
|
|
14
15
|
* @summary The `cx-content-builder` component is used to create and manage content blocks in a CMS.
|
|
15
16
|
*
|
|
17
|
+
* Set `enable-asset-format-controls` to expose the asset format, transformation,
|
|
18
|
+
* download-format, and video-format-picker controls on image, video, gallery,
|
|
19
|
+
* carousel, and timeline blocks. Off by default.
|
|
20
|
+
*
|
|
16
21
|
* @event cx-change - Emitted when the content builder changes.
|
|
17
22
|
*/
|
|
18
23
|
export default class CxContentBuilder extends CortexElement {
|
|
@@ -93,6 +98,13 @@ export default class CxContentBuilder extends CortexElement {
|
|
|
93
98
|
* @default false
|
|
94
99
|
*/
|
|
95
100
|
allowDuplicateBlocks: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Whether to expose the asset format / transformation / download-format /
|
|
103
|
+
* video-format-picker controls in the per-block config sidebar for
|
|
104
|
+
* image, video, gallery, carousel, and timeline blocks.
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
enableAssetFormatControls: boolean;
|
|
96
108
|
/**
|
|
97
109
|
* The default language of the content builder.
|
|
98
110
|
* This is the language that will be used to store the translatable texts.
|
|
@@ -248,6 +260,7 @@ export default class CxContentBuilder extends CortexElement {
|
|
|
248
260
|
handleBuilderPropsChange(): void;
|
|
249
261
|
onRequestAsset(type: AssetTypeString): Promise<Asset>;
|
|
250
262
|
onRequestDownloadFormat(assetIds: string[], formats?: Record<string, string[]>): Promise<{}>;
|
|
263
|
+
onRequestVideoFormat(_assetId: string, _value?: VideoFormatValue): Promise<VideoFormatValue | null | undefined>;
|
|
251
264
|
/**
|
|
252
265
|
* This method retrieves all the components of the specified component.
|
|
253
266
|
* It recursively traverses the component's children and adds them to the list.
|
|
@@ -16,9 +16,9 @@ export default class StyleController {
|
|
|
16
16
|
id: string;
|
|
17
17
|
unit?: string | undefined;
|
|
18
18
|
attributes?: Record<string, any> | undefined;
|
|
19
|
+
default?: any;
|
|
19
20
|
max?: number | undefined;
|
|
20
21
|
min?: number | undefined;
|
|
21
|
-
default?: any;
|
|
22
22
|
text?: string | undefined;
|
|
23
23
|
placeholder?: string;
|
|
24
24
|
category?: (string | import('grapesjs').BlockCategoryProperties) | undefined;
|
|
@@ -45,6 +45,14 @@ export default class StyleController {
|
|
|
45
45
|
full?: boolean | undefined;
|
|
46
46
|
accept?: string;
|
|
47
47
|
api?: () => Promise<import('../../../types/src/content-builder').Option[]> | import('../../../types/src/folder-select').FolderSelectApi;
|
|
48
|
+
assetTransformationConfigs?: {
|
|
49
|
+
assetIdKey?: string;
|
|
50
|
+
formatKey?: string;
|
|
51
|
+
multiple?: boolean;
|
|
52
|
+
noCrop?: boolean;
|
|
53
|
+
noResize?: boolean;
|
|
54
|
+
noRotate?: boolean;
|
|
55
|
+
};
|
|
48
56
|
callback?: ((params: {
|
|
49
57
|
extraValue?: Record<string, unknown>;
|
|
50
58
|
record: Record<string, any>;
|
|
@@ -53,7 +61,7 @@ export default class StyleController {
|
|
|
53
61
|
checkedValue?: string | boolean;
|
|
54
62
|
children?: import('../../../types/src/content-builder').PropertyConfig[];
|
|
55
63
|
clearable?: boolean;
|
|
56
|
-
controlType: "bicolor-picker" | "border-input-group" | "button-group" | "checkbox" | "checkbox-group" | "color-swatch-picker" | "corner-position-input-group" | "download-format-picker" | "file" | "folder-picker" | "gallery-picker" | "group" | "group-heading" | "icon-picker" | "image-picker" | "input" | "list-editor" | "all-picker" | "other-picker" | "padding-input-group" | "page-picker" | "placeholder" | "position-picker" | "radio-card-group" | "radio-group" | "select" | "shadow-input-group" | "size-input-group" | "switch" | "table" | "text" | "video-picker";
|
|
64
|
+
controlType: "asset-transformation" | "bicolor-picker" | "border-input-group" | "button-group" | "checkbox" | "checkbox-group" | "color-swatch-picker" | "corner-position-input-group" | "download-format-picker" | "file" | "folder-picker" | "gallery-picker" | "group" | "group-heading" | "icon-picker" | "image-picker" | "input" | "list-editor" | "all-picker" | "other-picker" | "padding-input-group" | "page-picker" | "placeholder" | "position-picker" | "radio-card-group" | "radio-group" | "select" | "shadow-input-group" | "size-input-group" | "switch" | "table" | "text" | "video-format-picker" | "video-picker";
|
|
57
65
|
cornerStyleKey?: {
|
|
58
66
|
offsetX: string;
|
|
59
67
|
offsetY: string;
|
|
@@ -63,12 +71,15 @@ export default class StyleController {
|
|
|
63
71
|
disabledTooltip?: string;
|
|
64
72
|
downloadFormatPickerConfigs?: {
|
|
65
73
|
assetIdsKey?: string;
|
|
74
|
+
isObjectFormat?: boolean;
|
|
75
|
+
objectIdKey?: string;
|
|
66
76
|
};
|
|
67
77
|
folderPickerConfigs?: {
|
|
68
78
|
useFullPath: boolean;
|
|
69
79
|
};
|
|
70
80
|
galleryPickerConfigs?: {
|
|
71
81
|
dialog: import('../../../types/src/content-builder').DialogType;
|
|
82
|
+
transformationRecordIdKey?: string;
|
|
72
83
|
};
|
|
73
84
|
groupConfigs?: {
|
|
74
85
|
columnGap?: string;
|
|
@@ -124,6 +135,13 @@ export default class StyleController {
|
|
|
124
135
|
type: "attribute" | "property" | "style" | "decorative";
|
|
125
136
|
uncheckedValue?: string | boolean;
|
|
126
137
|
useSearchTerm?: boolean;
|
|
138
|
+
videoFormatPickerConfigs?: {
|
|
139
|
+
assetIdKey?: string;
|
|
140
|
+
assetVersionKey?: string;
|
|
141
|
+
formatLabelKey?: string;
|
|
142
|
+
formatSrcKey?: string;
|
|
143
|
+
versionLabelKey?: string;
|
|
144
|
+
};
|
|
127
145
|
width?: ((record: Record<string, unknown>) => string | number) | string | number;
|
|
128
146
|
};
|
|
129
147
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as CxAssetLinkFormat } from './asset-link-format/asset-link-format';
|
|
2
|
+
export { default as CxAssetTransformationDialog } from './asset-transformation-dialog/asset-transformation-dialog';
|
|
2
3
|
export { default as CxDashboardFilter } from './dashboard-filter/dashboard-filter';
|
|
3
4
|
export { default as CxDashboardTable } from './dashboard-table/dashboard-table';
|
|
4
5
|
export { default as CxBentoGrid } from './bento-grid/bento-grid';
|
|
@@ -11,6 +12,7 @@ export { default as CxComment } from './comment/comment';
|
|
|
11
12
|
export { default as CxContentBuilder } from './content-builder/content-builder';
|
|
12
13
|
export { default as CxDownloader } from './downloader/downloader';
|
|
13
14
|
export { default as CxFileOnDemand } from './file-on-demand/file-on-demand';
|
|
15
|
+
export { default as CxLightbox } from './lightbox/lightbox';
|
|
14
16
|
export { default as CxMultiSelect } from './multi-select/multi-select';
|
|
15
17
|
export { default as CxTemplateSwitcher } from './template-switcher/template-switcher';
|
|
16
18
|
export { default as CxTextToSpeech } from './text-to-speech/text-to-speech';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { default as CxButton } from '../../../atoms/src/components/button/button.ts';
|
|
2
|
+
import { default as CxDialog } from '../../../atoms/src/components/dialog/dialog.ts';
|
|
3
|
+
import { default as CxIcon } from '../../../atoms/src/components/icon/icon.ts';
|
|
4
|
+
import { default as CxTooltip } from '../../../atoms/src/components/tooltip/tooltip.ts';
|
|
5
|
+
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
6
|
+
import { default as CxCarousel } from '../carousel/carousel.ts';
|
|
7
|
+
import { GalleryItem } from '../../../types/src/gallery-item';
|
|
8
|
+
import { TemplateResult } from 'lit';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @summary A fullscreen lightbox that wraps a dialog and carousel for browsing gallery items.
|
|
12
|
+
* Supports download, keyboard/click-to-close, and lazy loading via chunk-based data fetching.
|
|
13
|
+
*
|
|
14
|
+
* @csspart base - The outer lightbox wrapper inside the dialog body.
|
|
15
|
+
* @csspart toolbar - The top-right action toolbar.
|
|
16
|
+
* @csspart counter - The slide counter label.
|
|
17
|
+
*
|
|
18
|
+
* @event cx-lightbox-close - Emitted when the lightbox is closed. Detail: `{ index: number }`
|
|
19
|
+
* @event cx-lightbox-download - Emitted when the download button is clicked. Detail: `{ index: number; item: GalleryItem }`
|
|
20
|
+
* @event cx-slide-change - Re-emitted from the internal carousel when the active slide changes.
|
|
21
|
+
* @event cx-gallery-chunk-request - Re-emitted from the internal carousel when more data is needed.
|
|
22
|
+
*/
|
|
23
|
+
export default class CxLightbox extends CortexElement {
|
|
24
|
+
static readonly styles: import('lit').CSSResult[];
|
|
25
|
+
static readonly dependencies: {
|
|
26
|
+
'cx-button': typeof CxButton;
|
|
27
|
+
'cx-carousel': typeof CxCarousel;
|
|
28
|
+
'cx-dialog': typeof CxDialog;
|
|
29
|
+
'cx-icon': typeof CxIcon;
|
|
30
|
+
'cx-tooltip': typeof CxTooltip;
|
|
31
|
+
};
|
|
32
|
+
private readonly localize;
|
|
33
|
+
private carouselEl?;
|
|
34
|
+
/**
|
|
35
|
+
* Controls visibility of the lightbox.
|
|
36
|
+
*/
|
|
37
|
+
open: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Array of slide items to display.
|
|
40
|
+
*/
|
|
41
|
+
data: GalleryItem[];
|
|
42
|
+
/**
|
|
43
|
+
* Total number of items (used for the counter and carousel chunking).
|
|
44
|
+
*/
|
|
45
|
+
totalData: number;
|
|
46
|
+
/**
|
|
47
|
+
* Loaded data range passed through to the carousel for lazy loading.
|
|
48
|
+
*/
|
|
49
|
+
chunk: [number, number];
|
|
50
|
+
/**
|
|
51
|
+
* The slide index to jump to when the lightbox opens.
|
|
52
|
+
*/
|
|
53
|
+
startIndex: number;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the carousel loops back to the start after the last slide.
|
|
56
|
+
*/
|
|
57
|
+
loop: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Show the download button in the toolbar.
|
|
60
|
+
*/
|
|
61
|
+
canDownload: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Current active slide index, synced from internal carousel.
|
|
64
|
+
*/
|
|
65
|
+
private activeIndex;
|
|
66
|
+
mappedData: GalleryItem[];
|
|
67
|
+
handleOpenChange(): Promise<void>;
|
|
68
|
+
handleDataChange(): void;
|
|
69
|
+
private handleRequestClose;
|
|
70
|
+
private handleSlideChange;
|
|
71
|
+
private handleDownload;
|
|
72
|
+
private renderToolbar;
|
|
73
|
+
render(): TemplateResult;
|
|
74
|
+
}
|
|
75
|
+
declare global {
|
|
76
|
+
interface HTMLElementTagNameMap {
|
|
77
|
+
'cx-lightbox': CxLightbox;
|
|
78
|
+
}
|
|
79
|
+
}
|