@orangelogic/design-system 4.36.0 → 4.37.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/{block-width.D0bs6gN9.js → block-width.DeMzy9kI.js} +7 -7
- package/library/chunks/{config-manager.CjIWuEoQ.js → config-manager.CGxZPmaa.js} +5 -5
- package/library/components/molecules.js +3 -3
- package/library/components/types.js +26 -16
- package/library/package.json +1 -1
- package/library/packages/hybrid/video-advanced/src/react/plugins/CommentLine/CommentLine.d.ts +2 -2
- package/library/packages/hybrid/video-advanced/src/react/type.d.ts +11 -12
- package/library/packages/hybrid/video-advanced/src/video-advanced/video-advanced.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +6 -1
- package/package.json +1 -1
|
@@ -67,8 +67,8 @@ import { t as bt } from "./switch.CBho2RVW.js";
|
|
|
67
67
|
import { t as xt } from "./v4.JyXW8GUB.js";
|
|
68
68
|
import { t as St } from "./bicolor-picker.CoEkuFFa.js";
|
|
69
69
|
import { t as Ct } from "./border-input-group.B7tkimlE.js";
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
70
|
+
import { n as wt, t as Tt } from "./confirm-popover.CNgNi7H6.js";
|
|
71
|
+
import { t as Et } from "./corner-position-input-group.Cc0hzrPR.js";
|
|
72
72
|
import { t as Dt } from "./cropper.D4ymxgab.js";
|
|
73
73
|
import { t as Ot } from "./dynamic-select.wu648W9-.js";
|
|
74
74
|
import { i as kt, n as M, r as At, t as N } from "./folder-select.CQllI-Id.js";
|
|
@@ -42528,8 +42528,8 @@ var oi = class {
|
|
|
42528
42528
|
"cx-card": ye,
|
|
42529
42529
|
"cx-checkbox": be,
|
|
42530
42530
|
"cx-color-swatch-picker": jr,
|
|
42531
|
-
"cx-confirm-popover":
|
|
42532
|
-
"cx-corner-position-input-group":
|
|
42531
|
+
"cx-confirm-popover": Tt,
|
|
42532
|
+
"cx-corner-position-input-group": Et,
|
|
42533
42533
|
"cx-dialog": k,
|
|
42534
42534
|
"cx-divider": tt,
|
|
42535
42535
|
"cx-download-format-picker": Fn,
|
|
@@ -42884,7 +42884,7 @@ var di = Q, fi = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
42884
42884
|
static #t = this.dependencies = {
|
|
42885
42885
|
"cx-button": b,
|
|
42886
42886
|
"cx-checkbox": be,
|
|
42887
|
-
"cx-confirm-popover":
|
|
42887
|
+
"cx-confirm-popover": Tt,
|
|
42888
42888
|
"cx-dialog": k,
|
|
42889
42889
|
"cx-dropdown": w,
|
|
42890
42890
|
"cx-dynamic-select": Ot,
|
|
@@ -43277,7 +43277,7 @@ var di = Q, fi = r`:host{display:block}.editor{gap:var(--cx-spacing-small);flex-
|
|
|
43277
43277
|
render() {
|
|
43278
43278
|
let e = this.isAdding ? this.localize.term("newCustomButton") : this.localize.term("editCustomButton");
|
|
43279
43279
|
return n`<div class="editor"><cx-list-editor part="list" use-events sortable .columns=${this.columns} .data=${this.data} .boundary=${this.boundary} @cx-list-editor-edit=${this.handleListEditorEdit} @cx-list-editor-delete=${this.handleListEditorDelete} @cx-list-editor-change=${this.handleListEditorReorder}></cx-list-editor><cx-dropdown class="editor__add-button" data-testid="add-button" stay-open-on-select hoist><cx-button slot="trigger" variant="default" size="medium" caret>${this.localize.term("addButton")}</cx-button><div class="add-button-panel"><cx-dynamic-select hoist free-width placement="bottom-start" icon-name="search" custom-change-event="cx-available-button-select" .api=${this.availableButtonsApi} .columns=${this.addSelectColumns} @cx-available-button-select=${this.handleAvailableButtonSelect}></cx-dynamic-select><cx-button class="add-button-panel__create-new" variant="text" @click=${this.handleCreateNewClick}>${this.localize.term("createNew")}</cx-button></div></cx-dropdown></div><cx-dialog part="dialog" class="editor__dialog" divider-position=${Qe.Both} use-overlay-scrollbar strategy="fixed" ?open=${!!this.editedItem} .boundary=${this.boundary} @cx-request-close=${this.handleRequestClose} @cx-asset-request-status=${this.handleAssetRequestStatus}><cx-typography slot="label" variant="h4">${e}</cx-typography><form class="dialog__form" @submit=${this.handleDialogFormSubmit}>${y(this.editedItem, () => n`<div class="dialog__body">${this.renderGeneralSection()}
|
|
43280
|
-
${this.renderVisibilitySection()}</div>`)}</form><cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button data-testid="cancel-button" variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button data-testid="save-button" variant="primary" size="medium" @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button></cx-space></cx-dialog><cx-confirm-popover class="editor__confirm-popover" divider-position=${Qe.Both} buttons-direction=${
|
|
43280
|
+
${this.renderVisibilitySection()}</div>`)}</form><cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button data-testid="cancel-button" variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button data-testid="save-button" variant="primary" size="medium" @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button></cx-space></cx-dialog><cx-confirm-popover class="editor__confirm-popover" divider-position=${Qe.Both} buttons-direction=${wt.HorizontalReverse} dialog-label=${this.localize.term("dismissChanges")} confirm-text=${this.localize.term("dismissChanges")} .boundary=${this.boundary} variant="dialog" @cx-confirm=${this.handleConfirmClose}><cx-typography variant="body2" slot="footer">${this.localize.term("doYouWantToCloseThisDialogChangesWillBeDismissed")}</cx-typography></cx-confirm-popover>`;
|
|
43281
43281
|
}
|
|
43282
43282
|
};
|
|
43283
43283
|
l([s({
|
|
@@ -43304,7 +43304,7 @@ l([s({
|
|
|
43304
43304
|
}), u("design:type", String)], $.prototype, "teamspaceModule", void 0), l([s({ type: Object }), u("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "boundary", void 0), l([s({
|
|
43305
43305
|
attribute: "on-configure-workflow",
|
|
43306
43306
|
type: Function
|
|
43307
|
-
}), u("design:type", Object)], $.prototype, "onConfigureWorkflow", void 0), l([c(), u("design:type", Object)], $.prototype, "editedItem", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isAdding", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], $.prototype, "subTypesData", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isLoadingSubTypes", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isAssetRequestBusy", void 0), l([f("cx-dropdown"), u("design:type", w === void 0 ? Object : w)], $.prototype, "addDropdownEl", void 0), l([f(".add-button-panel cx-dynamic-select cx-select"), u("design:type", O === void 0 ? Object : O)], $.prototype, "addButtonSelectEl", void 0), l([f("form.dialog__form"), u("design:type", typeof HTMLFormElement > "u" ? Object : HTMLFormElement)], $.prototype, "dialogForm", void 0), l([f("cx-confirm-popover"), u("design:type",
|
|
43307
|
+
}), u("design:type", Object)], $.prototype, "onConfigureWorkflow", void 0), l([c(), u("design:type", Object)], $.prototype, "editedItem", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isAdding", void 0), l([c(), u("design:type", typeof Record > "u" ? Object : Record)], $.prototype, "subTypesData", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isLoadingSubTypes", void 0), l([c(), u("design:type", Boolean)], $.prototype, "isAssetRequestBusy", void 0), l([f("cx-dropdown"), u("design:type", w === void 0 ? Object : w)], $.prototype, "addDropdownEl", void 0), l([f(".add-button-panel cx-dynamic-select cx-select"), u("design:type", O === void 0 ? Object : O)], $.prototype, "addButtonSelectEl", void 0), l([f("form.dialog__form"), u("design:type", typeof HTMLFormElement > "u" ? Object : HTMLFormElement)], $.prototype, "dialogForm", void 0), l([f("cx-confirm-popover"), u("design:type", Tt === void 0 ? Object : Tt)], $.prototype, "confirmPopover", void 0), l([
|
|
43308
43308
|
g("editedItem"),
|
|
43309
43309
|
u("design:type", Function),
|
|
43310
43310
|
u("design:paramtypes", []),
|
|
@@ -14,7 +14,7 @@ import { t as b } from "./style-map.DPGQIxip.js";
|
|
|
14
14
|
import { t as x } from "./button.BlhGCsjP.js";
|
|
15
15
|
import { t as ee } from "./tooltip.GjnTzFeL.js";
|
|
16
16
|
import { t as te } from "./line-clamp.CgiUerew.js";
|
|
17
|
-
import { C as ne, D as re, E as ie, O as ae, S as oe, T as se, _ as ce, a as le, b as ue, c as de, g as fe, i as pe, l as me, n as he, o as ge, s as S, t as C, v as w, w as T, x as E, y as D } from "./block-width.
|
|
17
|
+
import { C as ne, D as re, E as ie, O as ae, S as oe, T as se, _ as ce, a as le, b as ue, c as de, g as fe, i as pe, l as me, n as he, o as ge, s as S, t as C, v as w, w as T, x as E, y as D } from "./block-width.DeMzy9kI.js";
|
|
18
18
|
import { t as O } from "./typography.B0mkhqTB.js";
|
|
19
19
|
import { t as k } from "./button-group.CPfXrqyq.js";
|
|
20
20
|
import { t as A } from "./card.3c-X4hqR.js";
|
|
@@ -49,8 +49,8 @@ import { t as Be } from "./radio-group.DSnDDjKe.js";
|
|
|
49
49
|
import { t as Ve } from "./switch.CBho2RVW.js";
|
|
50
50
|
import { t as He } from "./bicolor-picker.CoEkuFFa.js";
|
|
51
51
|
import { t as Ue } from "./border-input-group.B7tkimlE.js";
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
52
|
+
import { n as We, t as U } from "./confirm-popover.CNgNi7H6.js";
|
|
53
|
+
import { t as Ge } from "./corner-position-input-group.Cc0hzrPR.js";
|
|
54
54
|
import { t as W } from "./_baseIteratee.DWc2-Bvm.js";
|
|
55
55
|
import { t as Ke } from "./dynamic-select.wu648W9-.js";
|
|
56
56
|
import { r as G } from "./folder-select.CQllI-Id.js";
|
|
@@ -450,7 +450,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, X = g(class extends h {
|
|
|
450
450
|
"cx-checkbox": j,
|
|
451
451
|
"cx-color-swatch-picker": D,
|
|
452
452
|
"cx-confirm-popover": U,
|
|
453
|
-
"cx-corner-position-input-group":
|
|
453
|
+
"cx-corner-position-input-group": Ge,
|
|
454
454
|
"cx-dam-custom-toolbar-buttons-editor": ge,
|
|
455
455
|
"cx-dialog": V,
|
|
456
456
|
"cx-divider": Me,
|
|
@@ -577,7 +577,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, X = g(class extends h {
|
|
|
577
577
|
render() {
|
|
578
578
|
return t`<cx-dialog class="config-form" use-overlay-scrollbar divider-position=${B.Footer} .boundary=${this.boundary} @cx-after-show=${this.handleAfterShow} @cx-after-hide=${this.handleAfterHide} @cx-request-close=${this.handleRequestClose} @cx-asset-request-status=${this.handleAssetRequestStatus}><cx-space slot="label" direction="vertical" spacing="2x-small"><cx-typography variant="h4">${v(this.dialogTitle, () => t`<cx-line-clamp lines="1">${this.dialogTitle}</cx-line-clamp>`, () => t`${this.localize.term("settingsTitle", this.blockName)}`)}</cx-typography>${v(this.templateName, () => t`<cx-typography variant="body3"><cx-line-clamp lines="1">${this.templateName}</cx-line-clamp></cx-typography>`)}</cx-space>${Fe(this.formKey, t`<form id="config-form" @submit=${this.handleFormSubmit}>${X(v(this.isEditingTemplateSettings, () => v(this.isTemplateEditable, () => t`<cx-tab-group class="config-form__tab-group" placement="top"><cx-tab slot="nav" panel="template" active>${this.localize.term("template")}</cx-tab><cx-tab-panel name="template" active><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderTemplateForm()}</cx-space></cx-tab-panel></cx-tab-group>`), () => v(!at(this.traits) && this.tabs.length >= 1, () => t`<cx-tab-group class="config-form__tab-group" placement="top">${v(this.showTemplateTab, () => t`<cx-tab slot="nav" panel="template" active>${this.localize.term("template")}</cx-tab><cx-tab-panel name="template" active><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderTemplateForm()}</cx-space></cx-tab-panel>`)}
|
|
579
579
|
${R(this.tabs.filter((e) => !this.showTemplateTab || e === "appearance" || e === "effects" || e === "sidePanels" || e === "styling"), (e) => e, (e, n) => t`<cx-tab slot="nav" panel=${e} ?active=${!this.showTemplateTab && n === 0}>${this.localize.term(e)}</cx-tab><cx-tab-panel name=${e} ?active=${!this.showTemplateTab && n === 0}><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderBasicControls(this.traits, void 0, e)}</cx-space></cx-tab-panel>`)}
|
|
580
|
-
${v(this.translatableControls.length > 0, () => t`<cx-tab slot="nav" panel="Translation">${this.localize.term("translation")}</cx-tab><cx-tab-panel name="Translation"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderTranslationControls()}</cx-space></cx-tab-panel>`)}</cx-tab-group>`, () => t`<cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderBasicControls(this.traits, void 0, this.tabs[0])}</cx-space>`)))}</form>`)}<cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button-group><cx-button type="submit" variant="primary" size="medium" ?loading=${this.loading} @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button>${v(this.isTemplateEditable && !this.isEditingTemplateSettings && !this.showTemplateTab, () => t`<cx-dropdown class="config-form__dropdown" placement="bottom-end" hoist @cx-select=${this.handleDropdownSelect}><cx-button slot="trigger" type="submit" variant="primary" caret><cx-visually-hidden>${this.localize.term("moreOptions")}</cx-visually-hidden></cx-button><cx-menu class="config-form__dropdown-menu"><cx-menu-item value="save-as-new-template"><cx-button type="submit" variant="text">${this.localize.term("saveAsNewTemplate")}</cx-button></cx-menu-item>${v(this.templateId, () => t`<cx-menu-item value="detach-template"><cx-button type="submit" variant="text">${this.localize.term("detachTemplate")}</cx-button></cx-menu-item>`)}</cx-menu></cx-dropdown>`)}</cx-button-group></cx-space></cx-dialog><cx-confirm-popover class="config-form__confirm-popover" divider-position=${B.Both} buttons-direction=${
|
|
580
|
+
${v(this.translatableControls.length > 0, () => t`<cx-tab slot="nav" panel="Translation">${this.localize.term("translation")}</cx-tab><cx-tab-panel name="Translation"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderTranslationControls()}</cx-space></cx-tab-panel>`)}</cx-tab-group>`, () => t`<cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderBasicControls(this.traits, void 0, this.tabs[0])}</cx-space>`)))}</form>`)}<cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button-group><cx-button type="submit" variant="primary" size="medium" ?loading=${this.loading} @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button>${v(this.isTemplateEditable && !this.isEditingTemplateSettings && !this.showTemplateTab, () => t`<cx-dropdown class="config-form__dropdown" placement="bottom-end" hoist @cx-select=${this.handleDropdownSelect}><cx-button slot="trigger" type="submit" variant="primary" caret><cx-visually-hidden>${this.localize.term("moreOptions")}</cx-visually-hidden></cx-button><cx-menu class="config-form__dropdown-menu"><cx-menu-item value="save-as-new-template"><cx-button type="submit" variant="text">${this.localize.term("saveAsNewTemplate")}</cx-button></cx-menu-item>${v(this.templateId, () => t`<cx-menu-item value="detach-template"><cx-button type="submit" variant="text">${this.localize.term("detachTemplate")}</cx-button></cx-menu-item>`)}</cx-menu></cx-dropdown>`)}</cx-button-group></cx-space></cx-dialog><cx-confirm-popover class="config-form__confirm-popover" divider-position=${B.Both} buttons-direction=${We.HorizontalReverse} dialog-label=${this.localize.term("dismissChanges")} confirm-text=${this.localize.term("dismissChanges")} .boundary=${this.boundary} variant="dialog" @cx-confirm=${this.hide}><cx-typography variant="body2" slot="footer" class="confirm-popover__footer">${this.localize.term("doYouWantToCloseThisDialogChangesWillBeDismissed")}</cx-typography></cx-confirm-popover>`;
|
|
581
581
|
}
|
|
582
582
|
};
|
|
583
583
|
s([u(".config-form"), c("design:type", V === void 0 ? Object : V)], Z.prototype, "dialog", void 0), s([u("#config-form"), c("design:type", typeof HTMLFormElement > "u" ? Object : HTMLFormElement)], Z.prototype, "form", void 0), s([u("cx-confirm-popover"), c("design:type", U === void 0 ? Object : U)], Z.prototype, "confirmPopover", void 0), s([u(".config-form__tab-group"), c("design:type", z === void 0 ? Object : z)], Z.prototype, "tabGroup", void 0), s([a({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../chunks/bicolor-picker.CoEkuFFa.js";
|
|
2
2
|
import { t } from "../chunks/border-input-group.B7tkimlE.js";
|
|
3
3
|
import { t as n } from "../chunks/color-swatch.By2bJtpB.js";
|
|
4
|
-
import { t as r } from "../chunks/
|
|
5
|
-
import { t as i } from "../chunks/
|
|
4
|
+
import { t as r } from "../chunks/confirm-popover.CNgNi7H6.js";
|
|
5
|
+
import { t as i } from "../chunks/corner-position-input-group.Cc0hzrPR.js";
|
|
6
6
|
import { t as a } from "../chunks/cropper.D4ymxgab.js";
|
|
7
7
|
import { t as o } from "../chunks/dynamic-select.wu648W9-.js";
|
|
8
8
|
import { t as s } from "../chunks/folder-select.CQllI-Id.js";
|
|
@@ -15,4 +15,4 @@ import { t as p } from "../chunks/sidebar.B1MjUxBY.js";
|
|
|
15
15
|
import { t as m } from "../chunks/size-input-group.CR0wHbEO.js";
|
|
16
16
|
import { t as h } from "../chunks/stepper-wizard.D7XpenfO.js";
|
|
17
17
|
import { t as g } from "../chunks/typeface.CHo-Lj6f.js";
|
|
18
|
-
export { e as CxBicolorPicker, t as CxBorderInputGroup, n as CxColorSwatch,
|
|
18
|
+
export { e as CxBicolorPicker, t as CxBorderInputGroup, n as CxColorSwatch, r as CxConfirmPopover, i as CxCornerPositionInputGroup, a as CxCropper, o as CxDynamicSelect, s as CxFolderSelect, c as CxMasonry, l as CxPaddingInputGroup, u as CxPositionPicker, d as CxShadowInputGroup, f as CxShareOptionList, p as CxSidebar, m as CxSizeInputGroup, h as CxStepperWizard, g as CxTypeface };
|
|
@@ -38,7 +38,7 @@ import { t as kt } from "../chunks/resize-observer.D9EHlnZI.js";
|
|
|
38
38
|
import { t as At } from "../chunks/line-clamp.CgiUerew.js";
|
|
39
39
|
import { t as jt } from "../chunks/tag.V9YP_T0h.js";
|
|
40
40
|
import { t as Mt } from "../chunks/array-line-clamp.DSzPRb_y.js";
|
|
41
|
-
import { A as Nt, C as Pt, D as Ft, E as It, O as Lt, S as Rt, T as zt, d as Bt, f as Vt, h as Ht, k as Ut, m as Wt, o as Gt, p as Kt, r as qt, s as Jt, t as Yt, u as Xt, w as Zt, x as Qt } from "../chunks/block-width.
|
|
41
|
+
import { A as Nt, C as Pt, D as Ft, E as It, O as Lt, S as Rt, T as zt, d as Bt, f as Vt, h as Ht, k as Ut, m as Wt, o as Gt, p as Kt, r as qt, s as Jt, t as Yt, u as Xt, w as Zt, x as Qt } from "../chunks/block-width.DeMzy9kI.js";
|
|
42
42
|
import { n as $t, t as en } from "../chunks/position-picker.dY_vgF_H.js";
|
|
43
43
|
import { a as tn, i as nn, n as rn, o as an, r as on, s as sn, t as cn } from "../chunks/src.BJhIYoMP.js";
|
|
44
44
|
import { a as ln, c as un, i as dn, n as fn, o as pn, r as mn, t as hn, u as gn } from "../chunks/time.p1t0NCwj.js";
|
|
@@ -147,8 +147,8 @@ import { n as Fs, t as Is } from "../chunks/video.DFfkHdKQ.js";
|
|
|
147
147
|
import { t as Ls } from "../chunks/bicolor-picker.CoEkuFFa.js";
|
|
148
148
|
import { t as Rs } from "../chunks/border-input-group.B7tkimlE.js";
|
|
149
149
|
import { t as zs } from "../chunks/color-swatch.By2bJtpB.js";
|
|
150
|
-
import { t as Bs } from "../chunks/
|
|
151
|
-
import { t as Vs } from "../chunks/
|
|
150
|
+
import { t as Bs } from "../chunks/confirm-popover.CNgNi7H6.js";
|
|
151
|
+
import { t as Vs } from "../chunks/corner-position-input-group.Cc0hzrPR.js";
|
|
152
152
|
import { t as Hs } from "../chunks/cropper.D4ymxgab.js";
|
|
153
153
|
import { t as Us } from "../chunks/toNumber.BBjIwSoo.js";
|
|
154
154
|
import { t as Ws } from "../chunks/debounce.DrhImrNP.js";
|
|
@@ -39270,7 +39270,7 @@ var HR = VR, UR = {
|
|
|
39270
39270
|
"cx-chatbot-footer": HR,
|
|
39271
39271
|
"cx-chatbot-popup": zR,
|
|
39272
39272
|
"cx-checkbox": qn,
|
|
39273
|
-
"cx-confirm-popover":
|
|
39273
|
+
"cx-confirm-popover": Bs,
|
|
39274
39274
|
"cx-divider": ja,
|
|
39275
39275
|
"cx-dropdown": ur,
|
|
39276
39276
|
"cx-icon-button": oe,
|
|
@@ -95056,7 +95056,7 @@ var j5 = class extends d {
|
|
|
95056
95056
|
return this.mappedSupportedLanguages.length > 1;
|
|
95057
95057
|
}
|
|
95058
95058
|
ensureConfigUi() {
|
|
95059
|
-
return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.
|
|
95059
|
+
return this.configUiPromise ??= Promise.all([import("../chunks/config-manager.CGxZPmaa.js"), import("../chunks/configs-controller.saCTvDW1.js").then((e) => e.n)]).then(async ([, e]) => {
|
|
95060
95060
|
this.configsController ??= new e.default(this.localize), await customElements.whenDefined("cx-config-manager"), await this.configManager?.updateComplete;
|
|
95061
95061
|
});
|
|
95062
95062
|
}
|
|
@@ -95083,26 +95083,34 @@ var j5 = class extends d {
|
|
|
95083
95083
|
let n = `${e}_${this.mappedDefaultLanguage}`;
|
|
95084
95084
|
return t.getRecords().some((e) => String(e.id).toLowerCase() === n);
|
|
95085
95085
|
}
|
|
95086
|
+
canBackfillDefaultLanguageTextRecord(e) {
|
|
95087
|
+
let t = this.dsm?.get(go.TranslatableTexts);
|
|
95088
|
+
if (!t) return !0;
|
|
95089
|
+
let n = `${e}_${this.mappedDefaultLanguage}`, r = t.getRecords().find((e) => String(e.id).toLowerCase() === n);
|
|
95090
|
+
return !r || r.get("isAutoBackfilled") === !0;
|
|
95091
|
+
}
|
|
95086
95092
|
hasDefaultLanguageAttributeRecord(e) {
|
|
95087
95093
|
let t = this.dsm?.get(go.TranslatableAttributes);
|
|
95088
95094
|
if (!t) return !1;
|
|
95089
95095
|
let n = `${e}_${this.mappedDefaultLanguage}`;
|
|
95090
95096
|
return t.getRecords().some((e) => String(e.id).toLowerCase() === n);
|
|
95091
95097
|
}
|
|
95092
|
-
storeTranslatableText(e, t) {
|
|
95098
|
+
storeTranslatableText(e, t, n = {}) {
|
|
95093
95099
|
if (!this.dsm) return;
|
|
95094
|
-
let
|
|
95095
|
-
if (
|
|
95096
|
-
let
|
|
95097
|
-
|
|
95100
|
+
let r = this.dsm.get(go.TranslatableTexts);
|
|
95101
|
+
if (r) {
|
|
95102
|
+
let i = r.getRecords().find((t) => t.id === e);
|
|
95103
|
+
i ? (i.set("content", t), n.isAutoBackfilled === !0 ? i.set("isAutoBackfilled", !0) : n.isAutoBackfilled === !1 && i.unset("isAutoBackfilled")) : r.addRecord({
|
|
95098
95104
|
content: t,
|
|
95099
|
-
id: e
|
|
95105
|
+
id: e,
|
|
95106
|
+
...n.isAutoBackfilled === !0 ? { isAutoBackfilled: !0 } : {}
|
|
95100
95107
|
});
|
|
95101
95108
|
} else this.dsm.add({
|
|
95102
95109
|
id: go.TranslatableTexts,
|
|
95103
95110
|
records: [{
|
|
95104
95111
|
content: t,
|
|
95105
|
-
id: e
|
|
95112
|
+
id: e,
|
|
95113
|
+
...n.isAutoBackfilled === !0 ? { isAutoBackfilled: !0 } : {}
|
|
95106
95114
|
}]
|
|
95107
95115
|
});
|
|
95108
95116
|
}
|
|
@@ -95945,9 +95953,11 @@ var j5 = class extends d {
|
|
|
95945
95953
|
}), this.contentBuilder?.on("custom:child-selected", (e) => {
|
|
95946
95954
|
this.childSelected = e;
|
|
95947
95955
|
}), this.contentBuilder?.on("custom:backfill-translatable-text", ({ content: e, id: t }) => {
|
|
95948
|
-
t && this.mappedDefaultLanguage && this.lang.toLowerCase() !== this.mappedDefaultLanguage && !this.hasDefaultLanguageTextRecord(t) && this.storeTranslatableText(`${t}_${this.mappedDefaultLanguage}`, e);
|
|
95956
|
+
t && this.mappedDefaultLanguage && this.lang.toLowerCase() !== this.mappedDefaultLanguage && !this.hasDefaultLanguageTextRecord(t) && this.storeTranslatableText(`${t}_${this.mappedDefaultLanguage}`, e, { isAutoBackfilled: !0 });
|
|
95949
95957
|
}), this.contentBuilder?.on("custom:save-translatable-text", ({ content: e, id: t }) => {
|
|
95950
|
-
|
|
95958
|
+
if (!t) return;
|
|
95959
|
+
let n = this.lang.toLowerCase();
|
|
95960
|
+
this.storeTranslatableText(`${t}_${n}`, e, n === this.mappedDefaultLanguage ? { isAutoBackfilled: !1 } : void 0), n !== this.mappedDefaultLanguage && this.canBackfillDefaultLanguageTextRecord(t) && this.storeTranslatableText(`${t}_${this.mappedDefaultLanguage}`, e, { isAutoBackfilled: !0 });
|
|
95951
95961
|
}), this.contentBuilder?.on("custom:save-translatable-attribute", ({ content: e, id: t }) => {
|
|
95952
95962
|
t && this.storeTranslatableAttribute(t, e);
|
|
95953
95963
|
});
|
|
@@ -103671,7 +103681,7 @@ var t9 = {
|
|
|
103671
103681
|
"cx-badge": Vn,
|
|
103672
103682
|
"cx-button": ve,
|
|
103673
103683
|
"cx-checkbox": qn,
|
|
103674
|
-
"cx-confirm-popover":
|
|
103684
|
+
"cx-confirm-popover": Bs,
|
|
103675
103685
|
"cx-dialog": ka,
|
|
103676
103686
|
"cx-divider": ja,
|
|
103677
103687
|
"cx-dropdown": ur,
|
|
@@ -111649,4 +111659,4 @@ l([s({ type: String }), u("design:type", Object)], $9.prototype, "value", void 0
|
|
|
111649
111659
|
], $9.prototype, "handleValueChange", null), $9 = Q9 = l([C("cx-xml-editor")], $9);
|
|
111650
111660
|
var Bke = $9;
|
|
111651
111661
|
//#endregion
|
|
111652
|
-
export { la as AUTO_FALLBACK_FORMAT, ga as AUTO_FORMAT_EXTENSION, Wi as AUTO_ORIGINAL_FORMAT_MAX_BYTES, uo as CMYK_VALIDATION_REGEX, li as CalendarGrid, ao as ColorType, cn as CornerPosition, d as CortexElement, Ai as CortexPopupController, kee as Cx3dViewer, ue as CxAlert, de as CxAmChart, fe as CxAnimatedImage, I as CxAnimation, Hu as CxAnnotator, wle as CxAnnotatorComment, Mt as CxArrayLineClamp, Yu as CxAssetDataDisplay, Pt as CxAssetFormatPicker, vc as CxAssetLinkFormat, Lt as CxAssetPicker, Rt as CxAssetTransformationDialog, zn as CxAudio, Bn as CxAvatar, Vn as CxBadge, Hle as CxBentoGrid, Ls as CxBicolorPicker, Rs as CxBorderInputGroup, Hn as CxBox, Un as CxBreadcrumb, Wn as CxBreadcrumbItem, ve as CxButton, Gn as CxButtonGroup, $le as CxCapacityPlanner, Kn as CxCard, eF as CxCarousel, kz as CxChartPlanBuilder, GR as CxChatbot, qn as CxCheckbox, Fz as CxClusterManagement, Ur as CxColorPicker, zs as CxColorSwatch, tee as CxColorSwatchGroup, lP as CxComment, zz as CxCommentV1,
|
|
111662
|
+
export { la as AUTO_FALLBACK_FORMAT, ga as AUTO_FORMAT_EXTENSION, Wi as AUTO_ORIGINAL_FORMAT_MAX_BYTES, uo as CMYK_VALIDATION_REGEX, li as CalendarGrid, ao as ColorType, cn as CornerPosition, d as CortexElement, Ai as CortexPopupController, kee as Cx3dViewer, ue as CxAlert, de as CxAmChart, fe as CxAnimatedImage, I as CxAnimation, Hu as CxAnnotator, wle as CxAnnotatorComment, Mt as CxArrayLineClamp, Yu as CxAssetDataDisplay, Pt as CxAssetFormatPicker, vc as CxAssetLinkFormat, Lt as CxAssetPicker, Rt as CxAssetTransformationDialog, zn as CxAudio, Bn as CxAvatar, Vn as CxBadge, Hle as CxBentoGrid, Ls as CxBicolorPicker, Rs as CxBorderInputGroup, Hn as CxBox, Un as CxBreadcrumb, Wn as CxBreadcrumbItem, ve as CxButton, Gn as CxButtonGroup, $le as CxCapacityPlanner, Kn as CxCard, eF as CxCarousel, kz as CxChartPlanBuilder, GR as CxChatbot, qn as CxCheckbox, Fz as CxClusterManagement, Ur as CxColorPicker, zs as CxColorSwatch, tee as CxColorSwatchGroup, lP as CxComment, zz as CxCommentV1, Bs as CxConfirmPopover, hEe as CxContentBuilder, TEe as CxContentBuilderViewer, Wr as CxCopyButton, Vs as CxCornerPositionInputGroup, Hs as CxCropper, Gt as CxDamCustomToolbarButtonsEditor, Ele as CxDashboardFilter, Qu as CxDashboardIframe, jle as CxDashboardTable, td as CxDataTabGroup, Da as CxDateCalendar, Oa as CxDetails, ad as CxDetailsGroup, ka as CxDialog, Ma as CxDiff, ja as CxDivider, dd as CxDocsExample, Ia as CxDocumentViewer, Vo as CxDotPagination, Ho as CxDotStatus, Ft as CxDownloadFormatPicker, rOe as CxDownloader, Pa as CxDrawer, ur as CxDropdown, Gs as CxDynamicSelect, Uo as CxEChart, Wo as CxElementClamp, gd as CxEstimatedReadingTime, Sd as CxFacetDatePicker, Od as CxFacetDateRange, eee as CxFacetedFilter, Nd as CxFacetedFilterFacet, Ec as CxFileOnDemand, aOe as CxFindAndReplace, Ys as CxFolderSelect, It as CxFontPicker, Go as CxFormatBytes, Ko as CxFormatDate, qo as CxFormatNumber, Jo as CxFormatTime, Ld as CxGalleryItem, I_ as CxGraphView, Yo as CxGrid, Xo as CxGridItem, Zo as CxHeader, es as CxHubConnection, ce as CxIcon, oe as CxIconButton, zt as CxIconPicker, ns as CxIframe, Lo as CxImage, rs as CxImageComparer, is as CxInclude, hr as CxInput, yd as CxInputDatePicker, Td as CxInputDateRangePicker, as as CxInputGroup, sOe as CxLightbox, At as CxLineClamp, Jt as CxListEditor, fs as CxMarkdown, Cse as CxMarkdownViewer, Zs as CxMasonry, uO as CxMentions, gr as CxMenu, yr as CxMenuItem, ps as CxMenuLabel, ms as CxMenuSection, Sc as CxMultiSelect, hs as CxMutationObserver, Cr as CxOption, Qs as CxPaddingInputGroup, Ese as CxPageOutline, gs as CxPagination, Fse as CxPdfViewerToolbar, h as CxPopup, $s as CxPositionPicker, Fa as CxProgressBar, _s as CxProgressRing, Lse as CxPublishPage, vs as CxQrCode, ys as CxRadio, bs as CxRadioButton, xs as CxRadioCard, Ss as CxRadioGroup, Cs as CxRange, ws as CxRating, Ts as CxRelativeTime, kt as CxResizeObserver, fOe as CxSearchBox, jr as CxSelect, ec as CxShadowInputGroup, tc as CxShareOptionList, nc as CxSidebar, rc as CxSizeInputGroup, zo as CxSkeleton, wr as CxSpace, mOe as CxSpaceSelector, I3 as CxSpecialCharactersDialog, le as CxSpinner, Es as CxSplitPanel, zse as CxStatCard, Ds as CxStep, Os as CxStepper, ic as CxStepperWizard, Hse as CxStorybook, ks as CxSwitch, Mr as CxTab, Lr as CxTabGroup, Vr as CxTabPanel, jt as CxTag, xOe as CxTemplateSwitcher, Dke as CxTextToSpeech, Sr as CxTextarea, As as CxTimecode, Ot as CxTooltip, Ms as CxTree, js as CxTreeItem, Zt as CxTypeSubtypeSelect, ac as CxTypeface, Rn as CxTypography, Fs as CxVideo, PO as CxViewAndSort, Hr as CxVisuallyHidden, Bke as CxXmlEditor, To as DEFAULT_BREAKPOINTS, ci as DateRangePresets, zi as DragScroll, rn as Easing, on as EasingFunction, _t as FormControlController, nn as GsapEasing, co as HEX_ALPHA_VALIDATION_REGEX, no as HEX_VALIDATION_REGEX, O as HasSlotController, Si as HistoryManager, Nt as IconPickerVariant, yi as KeyboardKey, T as LocalizeController, rr as MIN_GRADIENT_STOPS, en as OBJECT_POSITION_BY_CROP_FOCUS, ra as ORIGINAL_FORMAT, tn as ObjectFit, an as Orientation, va as PRECISION, $t as PositionPickerValue, Ya as RELATIVE_URL_REGEX, Za as RGB_VALIDATION_REGEX, ba as SRCSET_WIDTH_LADDER, sn as TransitionType, Wa as URL_DOMAIN_VALIDATION_REGEX, qa as URL_INTRANET_DOMAIN_VALIDATION_REGEX, Va as URL_PROTOCOL_VALIDATION_REGEX, La as URL_VALIDATION_REGEX, lr as activeElements, Xr as addMonths, pi as adjustRelativeValues, y as animateTo, Ga as appendProtocol, Ja as appendQueryParam, Ki as applyTransformationsToUrl, Yi as applyWidthToAssetUrl, da as buildAssetSrcset, aa as buildSizesFromDisplayWidth, Qi as buildTransformationString, In as buildWaveformPath, Pn as calculateAspectRatioFit, or as clamp, An as cleanImageFileName, hn as clearZeroDurationParts, g as componentStyles, oo as convertColor, Tn as convertDataUnits, xn as convertDurationToMilliseconds, Cn as convertPixelsToAspectRatio, Mn as convertSrcToBlob, $n as createStopId, On as cropImage, ut as cssValueToPx, C as customElement, mt as customErrorValidityState, Dt as debounce, Jn as defaultValue, ia as downloadAsset, ir as drag, Ge as emptyToSpace, Be as escapeXML, lo as extractColor, Ue as extractExtension, sa as extractFrames, Le as extractRootData, yn as extractValueAndUnit, Fn as extractWaveformPeaks, Ri as fetchCortexApi, Tt as findAncestorWithBuggyStyle, xt as findContainingBlock, Ct as findCuttingAncestor, ma as findFrameByColAndRow, Ji as findIndexByProp, dr as focusWhenVisible, he as fontAwesomeIconNames, gt as formCollections, _n as formatAspectRatioString, Qa as formatColorCodeSeparator, fn as formatDurationPartsManually, ro as formatHexCode, Zr as formatIsoToDisplay, ai as formatMonthYearLabel, Sn as formatNumberWithGrouping, Me as formatSecondsToTime, Ve as formatTimeToSeconds, mn as formatWithIntlDurationFormat, wn as gcd, at as getActiveElement, Aa as getActiveModals, ie as getAnimation, pe as getAnimationNames, pt as getAssociatedForm, ct as getAttributes, We as getAttributesString, xo as getBreakpointsFromCSS, hi as getBrowserFontVariants, fo as getColorType, En as getContainedImageSize, nt as getCortexPopupLayer, Ze as getCurrentZIndex, ni as getDateMask, cr as getDeepestActiveElement, Co as getDeviceType, dn as getDurationPartsByUnitsFormat, me as getEasingNames, ot as getElementFromHTMLString, lt as getElementFromTemplate, $r as getFirstDayOfWeek, Fi as getFontFamilyOptionValue, xi as getFontFamilyVariants, Ti as getFormControls, ko as getHighlightedTitle, Oo as getHighlightedTitleHtml, E as getInnerHTML, $i as getInterval, $a as getLightDarkCssString, jn as getNaturalWidthHeight, Qe as getNeededPaddingForBoxShadow, yt as getNextAncestor, Tr as getOffset, rt as getRelativeClickPercentage, L as getRootIDString, pr as getTabbableBoundary, fr as getTabbableElements, D as getTextContent, Qr as getTodayIsoDate, Pi as getTypefaceOptionValue, ya as groupBy, Zi as hasTransformSegment, Re as htmlToPlainText, ca as insertAtIndex, Vi as insertFrameToCache, ha as insertMultipleAtIndex, tr as interpolateStopColor, vt as isChrome, kr as isCortexAdobePlugin, dt as isDomElement, $e as isElementInHorizontalView, Ra as isExpiredAssetUrl, St as isFirefox, Ii as isFontFamilyAvailable, ji as isFormInteracted, Ke as isGalleryItemCardType, Zn as isGradientString, wt as isIOS, et as isInElement, Li as isModKey, z as isSafari, Nn as isSaveSrcValid, Ha as isValidDomainOrIntranetUrl, Kr as isValidIsoDate, Xa as isValidUrl, ui as isoToDate, oa as isoWeekNumber, st as loadScript, Or as lockBodyScrolling, eo as luminanceTextColor, ea as moveMultipleToIndex, Hi as moveToIndex, ua as multiSelectTo, Yn as normalizeAngle, fi as normalizeToIsoDate, ta as omit, xa as openAssetOverview, qi as openFolderOverview, Xi as openLink, Pe as padPath, Fe as parseBooleanString, so as parseBorder, Jr as parseDisplayToIso, x as parseDuration, Bi as parseFileSizeToBytes, er as parseGradient, di as parseIsoDate, Ei as parseJsonString, io as parseLightDark, Di as parseListString, to as parseShadow, Sa as parseTransformations, ki as pick, bt as popoverSupported, v as prefersReducedMotion, ar as quantizeLargestRemainder, bi as quoteFontFamily, za as readAssetTokenExpiry, na as readLocalStorageValue, it as readSearchConsistency, He as reducePathToDirectChild, w as registerTranslation, _a as removeAtIndex, Gi as removeMultipleAtIndex, Dn as resizeImage, Ta as resolveAutoFormat, Ui as resolveAutoMaxWidth, Ba as resolveSpaceUrl, vn as rotateBox, kn as rotateImage, ze as safeExtension, R as safeString, Ie as sanitizeHTML, bn as sanitizeRotation, Er as scrollIntoView, Ea as serialize, nr as serializeGradient, M as setAnimation, re as setDefaultAnimation, fa as shareAsset, _ as shimKeyframesHeightAuto, tt as sortByTopPosition, Xn as sortStops, wi as sortTypefaceVariants, Rr as splitBoxValues, je as splitCamelCaseFormatted, Qn as splitTopLevel, b as stopAnimations, Et as supportHLS, pa as testFontAvailability, po as timecodeConverter, qe as toCamelCase, Gr as toIsoDate, Xe as toKebabCase, Ne as toPascalCase, Ka as toRelativeUrl, Ye as toTitleCase, Ua as toUrlPathKey, Oi as toast, ke as truncateTextMiddle, Te as unescapeXML, Dr as unlockBodyScrolling, Ci as unquoteFontFamily, Je as upperFirst, ft as validValidityState, ht as valueMissingValidityState, S as waitForEvent, A as watch, mi as writeLocalStorageValue };
|
package/library/package.json
CHANGED
package/library/packages/hybrid/video-advanced/src/react/plugins/CommentLine/CommentLine.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ interface ICommentLineProps {
|
|
|
3
3
|
comments: IComment[];
|
|
4
4
|
onCommentClick: (args: {
|
|
5
5
|
id: string;
|
|
6
|
-
}) => void;
|
|
6
|
+
}, marker: HTMLElement) => void;
|
|
7
7
|
onCommentMouseLeave: (args: {
|
|
8
8
|
id: string;
|
|
9
9
|
}) => void;
|
|
10
10
|
onCommentMouseOver: (args: {
|
|
11
11
|
id: string;
|
|
12
|
-
}) => void;
|
|
12
|
+
}, marker: HTMLElement) => void;
|
|
13
13
|
seekToTime: (time: number) => void;
|
|
14
14
|
}
|
|
15
15
|
declare const _default: import('react').NamedExoticComponent<ICommentLineProps>;
|
|
@@ -21,6 +21,13 @@ export interface IComment {
|
|
|
21
21
|
export type TimelineMarker = IComment & {
|
|
22
22
|
occurrenceId: string;
|
|
23
23
|
};
|
|
24
|
+
export type CommentMarkerEventArgs = {
|
|
25
|
+
id: string;
|
|
26
|
+
markerCenterX?: number;
|
|
27
|
+
markerTop?: number;
|
|
28
|
+
timelineLeft?: number;
|
|
29
|
+
timelineRight?: number;
|
|
30
|
+
};
|
|
24
31
|
export type EnterPointRangeModePayload = {
|
|
25
32
|
endTime?: number;
|
|
26
33
|
startTime?: number;
|
|
@@ -233,12 +240,8 @@ export type Context = {
|
|
|
233
240
|
onFired: (handler: (args: any) => void) => () => void;
|
|
234
241
|
};
|
|
235
242
|
commentClickEvent: {
|
|
236
|
-
fire: (args:
|
|
237
|
-
|
|
238
|
-
}) => void;
|
|
239
|
-
onFired: (handler: (args: {
|
|
240
|
-
id: string;
|
|
241
|
-
}) => void) => () => void;
|
|
243
|
+
fire: (args: CommentMarkerEventArgs) => void;
|
|
244
|
+
onFired: (handler: (args: CommentMarkerEventArgs) => void) => () => void;
|
|
242
245
|
};
|
|
243
246
|
commentMouseLeaveEvent: {
|
|
244
247
|
fire: (args: {
|
|
@@ -249,12 +252,8 @@ export type Context = {
|
|
|
249
252
|
}) => void) => () => void;
|
|
250
253
|
};
|
|
251
254
|
commentMouseOverEvent: {
|
|
252
|
-
fire: (args:
|
|
253
|
-
|
|
254
|
-
}) => void;
|
|
255
|
-
onFired: (handler: (args: {
|
|
256
|
-
id: string;
|
|
257
|
-
}) => void) => () => void;
|
|
255
|
+
fire: (args: CommentMarkerEventArgs) => void;
|
|
256
|
+
onFired: (handler: (args: CommentMarkerEventArgs) => void) => () => void;
|
|
258
257
|
};
|
|
259
258
|
editorAddTracksEvent: {
|
|
260
259
|
execute: () => void;
|
|
@@ -46,8 +46,8 @@ import { default as CxVideoEditor } from '../video-editor/video-editor';
|
|
|
46
46
|
* @event cx-video-prev-frame - Fired when stepping to the previous frame.
|
|
47
47
|
* @event cx-video-enter-fullscreen - Fired when entering fullscreen.
|
|
48
48
|
* @event cx-video-exit-fullscreen - Fired when exiting fullscreen.
|
|
49
|
-
* @event {{ id: string }} cx-video-comment-click - Fired when a comment is clicked.
|
|
50
|
-
* @event {{ id: string }} cx-video-comment-mouseover - Fired when hovering a comment marker.
|
|
49
|
+
* @event {{ id: string; markerCenterX?: number; markerTop?: number; timelineLeft?: number; timelineRight?: number }} cx-video-comment-click - Fired when a comment is clicked.
|
|
50
|
+
* @event {{ id: string; markerCenterX?: number; markerTop?: number; timelineLeft?: number; timelineRight?: number }} cx-video-comment-mouseover - Fired when hovering a comment marker.
|
|
51
51
|
* @event {{ id: string }} cx-video-comment-mouseleave - Fired when leaving a comment marker.
|
|
52
52
|
* @event {{ name: string; data: unknown }} cx-video-event - Generic player event bridge.
|
|
53
53
|
* @event {{ layer: HTMLElement | null }} cx-video-annotation-layer-change - Fired when the player (re)mounts its annotation layer div; hosts mount annotators into this element.
|
|
@@ -10,6 +10,9 @@ import { TemplateResult } from 'lit';
|
|
|
10
10
|
import { CxBlockPicker } from './components/block-picker';
|
|
11
11
|
import { CxConfigManager } from './components/config-manager';
|
|
12
12
|
import { CxRTEBubbleMenu, CxRTETableGenerator } from './plugins';
|
|
13
|
+
type TranslatableTextRecordOptions = {
|
|
14
|
+
isAutoBackfilled?: boolean;
|
|
15
|
+
};
|
|
13
16
|
/**
|
|
14
17
|
* @summary The `cx-content-builder` component is used to create and manage content blocks in a CMS.
|
|
15
18
|
*
|
|
@@ -359,8 +362,9 @@ export default class CxContentBuilder extends CortexElement {
|
|
|
359
362
|
private ensureConfigUi;
|
|
360
363
|
storeTemplate(id: string, data: Record<string, any>, update?: boolean): void;
|
|
361
364
|
private hasDefaultLanguageTextRecord;
|
|
365
|
+
private canBackfillDefaultLanguageTextRecord;
|
|
362
366
|
private hasDefaultLanguageAttributeRecord;
|
|
363
|
-
storeTranslatableText(id: string, data: string): void;
|
|
367
|
+
storeTranslatableText(id: string, data: string, options?: TranslatableTextRecordOptions): void;
|
|
364
368
|
storeTranslatableAttribute(id: string, data: Record<string, Record<string, string>>): void;
|
|
365
369
|
private updateFrameSize;
|
|
366
370
|
handleSupportedLanguagesChange(): void;
|
|
@@ -740,3 +744,4 @@ declare global {
|
|
|
740
744
|
'cx-content-builder': CxContentBuilder;
|
|
741
745
|
}
|
|
742
746
|
}
|
|
747
|
+
export {};
|