@orangelogic/design-system 2.138.0 → 2.140.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{asset-link-format.Cj3Jb2A9.js → asset-link-format.CoMUMoyK.js} +546 -491
- package/library/chunks/{button.C8bgBiYj.js → button.J4LDuhyW.js} +1 -1
- package/library/chunks/{color-swatch-group.CtRKXJDT.js → color-swatch-group.DedQQk4J.js} +203 -166
- package/library/chunks/{color-swatch.BPKlNXIX.js → color-swatch.DimFgBSf.js} +1 -1
- package/library/chunks/{confirm-popover.CgXY2_uO.js → confirm-popover.DV5q0KyE.js} +3 -3
- package/library/chunks/{dialog.Bs7RQgSa.js → dialog.C79Kd2S4.js} +2 -2
- package/library/chunks/{document-viewer.Bs3U0_wd.js → document-viewer.NA5cS7qW.js} +3912 -3812
- package/library/chunks/{dot-pagination.t0VzNnjC.js → dot-pagination.CoG0XmAq.js} +1 -1
- package/library/chunks/{file-on-demand.BWrBwTOn.js → file-on-demand.C3ib6J00.js} +9 -9
- package/library/chunks/focus-when-visible.jWSw9ks0.js +21 -0
- package/library/chunks/{folder-select.CItC06TB.js → folder-select.BQXuKb-8.js} +4 -4
- package/library/chunks/{header.D_TqvPdB.js → header.zCbb-t6m.js} +1 -1
- package/library/chunks/{i18n.BlLEIqQ0.js → i18n.DeUAP8n2.js} +1 -0
- package/library/chunks/{icon-button.D5sM02Cd.js → icon-button.LhIEmHNF.js} +1 -1
- package/library/chunks/{iframe.D3PpeqXx.js → iframe.c0IPEUiJ.js} +1 -1
- package/library/chunks/{image.qP6cTWCN.js → image.u2nQNoZ8.js} +1 -1
- package/library/chunks/{input.B8CV80Da.js → input.DID1aXiO.js} +1 -1
- package/library/chunks/{option.D9SqVdjL.js → option.n6PDuSs1.js} +1 -1
- package/library/chunks/{pagination.DAI32_PA.js → pagination.BNU2UmTy.js} +5 -5
- package/library/chunks/{tab-group.e83Yy-jY.js → tab-group.5O3lqvyG.js} +3 -3
- package/library/chunks/{tree.D7eyb405.js → tree.CbwFiRJI.js} +1 -1
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +3 -3
- package/library/components/atoms.js +13 -13
- package/library/components/audio.js +23 -20
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +33 -32
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +10 -10
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +202 -150
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +3 -3
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +2 -2
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +16830 -16924
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +5 -0
- package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +6 -1
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/menu-item/submenu-controller.d.ts +28 -0
- package/library/packages/hybrid/book-reader/src/react/constant.d.ts +1 -0
- package/library/packages/hybrid/book-reader/src/react/hooks/useDrawer.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-toolbar.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +16 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Validate/Validate.d.ts +10 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +0 -4
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +0 -4
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-resize/asset-link-format-resize.d.ts +0 -4
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +8 -0
- package/library/packages/types/src/table.d.ts +8 -0
- package/library/packages/utils/src/custom-element/focus-when-visible.d.ts +14 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/react-web-component.d.ts +7 -3
- package/library/utils.js +133 -131
- package/package.json +1 -1
- package/library/packages/organisms/src/_v1/comment-v1/extensions/time.d.ts +0 -63
- /package/library/packages/organisms/src/{annotator-comment → comment}/extensions/time.d.ts +0 -0
package/library/utils.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { b as V } from "./chunks/url.-WDYqplj.js";
|
|
2
|
-
import { R as Tt, U as wt, e as Ct, d as
|
|
2
|
+
import { R as Tt, U as wt, e as Ct, d as xt, a as yt, c as Mt, i as St, t as Et } from "./chunks/url.-WDYqplj.js";
|
|
3
3
|
import { j as It, f as Lt, a as Ft, b as Rt, g as bt, e as vt, i as kt, c as Vt, h as Ot, m as Yt, d as Ut, r as Nt, t as Pt } from "./chunks/toast.Bz-j7zP2.js";
|
|
4
|
-
import { e as Ht, a as Xt, f as
|
|
4
|
+
import { e as Ht, a as Xt, f as Wt, g as Bt, d as Gt, b as $t, c as zt, i as qt, p as Qt, s as Zt } from "./chunks/browser.BHOCIF_A.js";
|
|
5
5
|
import { d as Jt, C as Kt, e as te, H as ee, R as re, c as ae, h as se, f as oe, g as ne, l as ie, a as le, p as ce, b as ue } from "./chunks/color.LzSGBy7o.js";
|
|
6
6
|
import { a as fe, b as he, g as ge } from "./chunks/modal.U1QltQKe.js";
|
|
7
|
-
import { a as pe, p as De, c as Te, b as we, s as Ce, w as
|
|
8
|
-
import { t as
|
|
7
|
+
import { a as pe, p as De, c as Te, b as we, s as Ce, w as xe } from "./chunks/event.BeKOsirN.js";
|
|
8
|
+
import { t as Me } from "./chunks/converters.DkDtLstb.js";
|
|
9
9
|
import { c as Ee } from "./chunks/custom-element.L4WJXn1j.js";
|
|
10
10
|
import { d as Ie } from "./chunks/debounce.DaHuiSGU.js";
|
|
11
11
|
import { d as Fe } from "./chunks/default-value.COZopaet.js";
|
|
12
12
|
import { d as be } from "./chunks/drag.DXEXVXPv.js";
|
|
13
|
+
import { f as ke } from "./chunks/focus-when-visible.jWSw9ks0.js";
|
|
13
14
|
import { f as O } from "./chunks/form.K1XOtu3S.js";
|
|
14
|
-
import { F as
|
|
15
|
-
import { L as
|
|
16
|
-
import { c as
|
|
17
|
-
import { g as
|
|
18
|
-
import { j as
|
|
19
|
-
import { c as
|
|
20
|
-
import { H as
|
|
21
|
-
import { g as
|
|
22
|
-
import { i as
|
|
23
|
-
import { w as
|
|
24
|
-
import { C as
|
|
25
|
-
import { b as
|
|
15
|
+
import { F as Oe, c as Ye, g as Ue, v as Ne, a as Pe } from "./chunks/form.K1XOtu3S.js";
|
|
16
|
+
import { L as He, r as Xe } from "./chunks/i18n.DeUAP8n2.js";
|
|
17
|
+
import { c as Be, q as Ge } from "./chunks/math.DuKzLacZ.js";
|
|
18
|
+
import { g as ze, l as qe, s as Qe, u as Ze } from "./chunks/scroll.xtO5yojm.js";
|
|
19
|
+
import { j as M } from "./chunks/dom.acWb8KCK.js";
|
|
20
|
+
import { c as Je, d as Ke, k as tr, a as er, g as rr, h as ar, b as sr, f as or, i as nr, e as ir, l as lr, s as cr } from "./chunks/dom.acWb8KCK.js";
|
|
21
|
+
import { H as mr, a as fr, g as hr } from "./chunks/slot.j5oheLJC.js";
|
|
22
|
+
import { g as dr, a as pr } from "./chunks/tabbable.CcMz3mIL.js";
|
|
23
|
+
import { i as Tr } from "./chunks/user-agent.D9aPuOyL.js";
|
|
24
|
+
import { w as Cr } from "./chunks/watch.CThbualB.js";
|
|
25
|
+
import { C as yr } from "./chunks/calendar-grid.CvdcwfTo.js";
|
|
26
|
+
import { b as Sr, e as Er, f as Ar, g as Ir, a as Lr, i as Fr, d as Rr, c as br, n as vr, p as kr, t as Vr } from "./chunks/date.dSYNLBVO.js";
|
|
26
27
|
import { e as c, a as u, D as m } from "./chunks/date-picker.DTUICGb9.js";
|
|
27
|
-
import { f as
|
|
28
|
-
import { c as
|
|
29
|
-
import { b as
|
|
30
|
-
import { a as
|
|
31
|
-
import { s as
|
|
32
|
-
import { b as
|
|
33
|
-
import { g as
|
|
34
|
-
import { c as
|
|
35
|
-
import { b as
|
|
28
|
+
import { f as Yr } from "./chunks/content-builder.BGzxZUgi.js";
|
|
29
|
+
import { c as Nr, f as Pr, e as _r, b as Hr, g as Xr, d as Wr, i as Br, r as Gr, a as $r } from "./chunks/image.BzmclWBR.js";
|
|
30
|
+
import { b as qr, e as Qr } from "./chunks/waveform.1U9U_0rd.js";
|
|
31
|
+
import { a as jr, b as Jr, c as Kr, e as ta, d as ea, f as ra, g as aa, r as sa, s as oa } from "./chunks/number.B4PQLJIg.js";
|
|
32
|
+
import { s as ia } from "./chunks/parse.Cu5nBDTb.js";
|
|
33
|
+
import { b as ca, d as ua, e as ma, f as fa, l as ha, g as ga, k as da, p as pa, v as Da, r as Ta, a as wa, c as Ca, s as xa, q as ya, n as Ma, t as Sa, m as Ea, o as Aa, h as Ia, u as La } from "./chunks/string.CjJ09HK3.js";
|
|
34
|
+
import { g as Ra, a as ba } from "./chunks/template.ClovJacp.js";
|
|
35
|
+
import { c as ka, f as Va, a as Oa, g as Ya } from "./chunks/time.BSmpFe2G.js";
|
|
36
|
+
import { b as Na } from "./chunks/transformation.c-RS37zA.js";
|
|
36
37
|
function n(t) {
|
|
37
38
|
const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
|
|
38
39
|
return `${e}-${r}-${s}`;
|
|
@@ -288,14 +289,14 @@ function J(t, e) {
|
|
|
288
289
|
}
|
|
289
290
|
class K {
|
|
290
291
|
constructor(e) {
|
|
291
|
-
this.currentZIndex =
|
|
292
|
+
this.currentZIndex = M(), (this.host = e).addController(this);
|
|
292
293
|
}
|
|
293
294
|
hostConnected() {
|
|
294
295
|
}
|
|
295
296
|
hostDisconnected() {
|
|
296
297
|
}
|
|
297
298
|
async activatePopup() {
|
|
298
|
-
this.currentZIndex =
|
|
299
|
+
this.currentZIndex = M();
|
|
299
300
|
}
|
|
300
301
|
}
|
|
301
302
|
class tt {
|
|
@@ -522,8 +523,8 @@ async function* gt({
|
|
|
522
523
|
const T = g * i + d, D = T * s;
|
|
523
524
|
if (D >= r)
|
|
524
525
|
continue;
|
|
525
|
-
const w = d * p, C = g * l,
|
|
526
|
-
|
|
526
|
+
const w = d * p, C = g * l, x = _(t[a] ?? [], d, g), y = d === i - 1 && g === f - 1 || D + s >= r;
|
|
527
|
+
x ? yield { ...x, isLastFrame: y } : (await H(o, D, s), k.drawImage(
|
|
527
528
|
o,
|
|
528
529
|
w,
|
|
529
530
|
C,
|
|
@@ -535,7 +536,7 @@ async function* gt({
|
|
|
535
536
|
frameHeight: l,
|
|
536
537
|
frameWidth: p,
|
|
537
538
|
index: T,
|
|
538
|
-
isLastFrame:
|
|
539
|
+
isLastFrame: y,
|
|
539
540
|
row: g,
|
|
540
541
|
rows: f,
|
|
541
542
|
time: Number(D.toFixed(P)),
|
|
@@ -557,142 +558,143 @@ function dt({
|
|
|
557
558
|
}
|
|
558
559
|
export {
|
|
559
560
|
Jt as CMYK_VALIDATION_REGEX,
|
|
560
|
-
|
|
561
|
+
yr as CalendarGrid,
|
|
561
562
|
Kt as ColorType,
|
|
562
563
|
K as CortexPopupController,
|
|
563
564
|
$ as DateRangePresets,
|
|
564
565
|
tt as DragScroll,
|
|
565
|
-
|
|
566
|
+
Oe as FormControlController,
|
|
566
567
|
te as HEX_ALPHA_VALIDATION_REGEX,
|
|
567
568
|
ee as HEX_VALIDATION_REGEX,
|
|
568
|
-
|
|
569
|
+
mr as HasSlotController,
|
|
569
570
|
nt as HistoryManager,
|
|
570
571
|
N as KeyboardKey,
|
|
571
|
-
|
|
572
|
+
He as LocalizeController,
|
|
572
573
|
P as PRECISION,
|
|
573
574
|
Tt as RELATIVE_URL_REGEX,
|
|
574
575
|
re as RGB_VALIDATION_REGEX,
|
|
575
576
|
wt as URL_DOMAIN_VALIDATION_REGEX,
|
|
576
577
|
Ct as URL_PROTOCOL_VALIDATION_REGEX,
|
|
577
|
-
|
|
578
|
+
xt as URL_VALIDATION_REGEX,
|
|
578
579
|
fe as activeElements,
|
|
579
|
-
|
|
580
|
+
Sr as addMonths,
|
|
580
581
|
It as adjustRelativeValues,
|
|
581
582
|
pe as animateTo,
|
|
582
583
|
V as appendProtocol,
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
584
|
+
yt as appendQueryParam,
|
|
585
|
+
Na as buildTransformationString,
|
|
586
|
+
qr as buildWaveformPath,
|
|
587
|
+
Nr as calculateAspectRatioFit,
|
|
588
|
+
Be as clamp,
|
|
589
|
+
Pr as cleanImageFileName,
|
|
590
|
+
ka as clearZeroDurationParts,
|
|
590
591
|
ae as convertColor,
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
592
|
+
jr as convertDataUnits,
|
|
593
|
+
Jr as convertDurationToMilliseconds,
|
|
594
|
+
Kr as convertPixelsToAspectRatio,
|
|
595
|
+
_r as convertSrcToBlob,
|
|
596
|
+
Hr as cropImage,
|
|
597
|
+
Je as cssValueToPx,
|
|
597
598
|
Ee as customElement,
|
|
598
|
-
|
|
599
|
+
Ye as customErrorValidityState,
|
|
599
600
|
Ie as debounce,
|
|
600
601
|
Fe as defaultValue,
|
|
601
|
-
|
|
602
|
+
Er as displayToIso,
|
|
602
603
|
J as downloadAsset,
|
|
603
604
|
be as drag,
|
|
604
|
-
|
|
605
|
+
ca as emptyToSpace,
|
|
605
606
|
se as extractColor,
|
|
606
|
-
|
|
607
|
+
ua as extractExtension,
|
|
607
608
|
gt as extractFrames,
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
609
|
+
ma as extractRootData,
|
|
610
|
+
ta as extractValueAndUnit,
|
|
611
|
+
Qr as extractWaveformPeaks,
|
|
612
|
+
Yr as fetchCortexApi,
|
|
612
613
|
Ht as findAncestorWithBuggyStyle,
|
|
613
614
|
Xt as findContainingBlock,
|
|
614
|
-
|
|
615
|
+
Wt as findCuttingAncestor,
|
|
615
616
|
_ as findFrameByColAndRow,
|
|
616
617
|
Lt as findIndexByProp,
|
|
618
|
+
ke as focusWhenVisible,
|
|
617
619
|
O as formCollections,
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
620
|
+
ea as formatAspectRatioString,
|
|
621
|
+
Va as formatDurationPartsManually,
|
|
622
|
+
Ar as formatMonthYearLabel,
|
|
623
|
+
ra as formatNumberWithGrouping,
|
|
624
|
+
fa as formatSecondsToTime,
|
|
625
|
+
ha as formatTimeToSeconds,
|
|
626
|
+
Oa as formatWithIntlDurationFormat,
|
|
627
|
+
aa as gcd,
|
|
628
|
+
Ke as getActiveElement,
|
|
627
629
|
he as getActiveModals,
|
|
628
|
-
|
|
630
|
+
Ue as getAssociatedForm,
|
|
629
631
|
Ft as getBreakpointsFromCSS,
|
|
630
632
|
at as getBrowserFontVariants,
|
|
631
633
|
oe as getColorType,
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
634
|
+
Xr as getContainedImageSize,
|
|
635
|
+
tr as getCortexPopupLayer,
|
|
636
|
+
M as getCurrentZIndex,
|
|
635
637
|
ge as getDeepestActiveElement,
|
|
636
638
|
Rt as getDeviceType,
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
639
|
+
Ya as getDurationPartsByUnitsFormat,
|
|
640
|
+
er as getElementFromHTMLString,
|
|
641
|
+
rr as getElementFromTemplate,
|
|
642
|
+
Ir as getFirstDayOfWeek,
|
|
641
643
|
U as getFormControls,
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
644
|
+
Ra as getHighlightedTitle,
|
|
645
|
+
ba as getHighlightedTitleHtml,
|
|
646
|
+
fr as getInnerHTML,
|
|
645
647
|
dt as getInterval,
|
|
646
648
|
ne as getLightDarkCssString,
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
649
|
+
Wr as getNaturalWidthHeight,
|
|
650
|
+
ar as getNeededPaddingForBoxShadow,
|
|
651
|
+
Bt as getNextAncestor,
|
|
652
|
+
ze as getOffset,
|
|
653
|
+
sr as getRelativeClickPercentage,
|
|
654
|
+
ga as getRootIDString,
|
|
655
|
+
dr as getTabbableBoundary,
|
|
656
|
+
pr as getTabbableElements,
|
|
657
|
+
hr as getTextContent,
|
|
658
|
+
Lr as getTodayIsoDate,
|
|
657
659
|
bt as groupBy,
|
|
658
660
|
vt as insertAtIndex,
|
|
659
661
|
ht as insertFrameToCache,
|
|
660
662
|
kt as insertMultipleAtIndex,
|
|
661
663
|
Gt as isChrome,
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
664
|
+
Tr as isCortexAdobePlugin,
|
|
665
|
+
or as isDomElement,
|
|
666
|
+
nr as isElementInHorizontalView,
|
|
667
|
+
Mt as isExpiredAssetUrl,
|
|
666
668
|
$t as isFirefox,
|
|
667
669
|
rt as isFontFamilyAvailable,
|
|
668
670
|
ot as isFormInteracted,
|
|
669
|
-
|
|
671
|
+
da as isGalleryItemCardType,
|
|
670
672
|
zt as isIOS,
|
|
671
|
-
|
|
673
|
+
ir as isInElement,
|
|
672
674
|
et as isModKey,
|
|
673
675
|
qt as isSafari,
|
|
674
|
-
|
|
675
|
-
|
|
676
|
+
Br as isSaveSrcValid,
|
|
677
|
+
Fr as isValidIsoDate,
|
|
676
678
|
St as isValidUrl,
|
|
677
|
-
|
|
678
|
-
|
|
679
|
+
Rr as isoToDate,
|
|
680
|
+
br as isoToDisplay,
|
|
679
681
|
z as isoWeekNumber,
|
|
680
|
-
|
|
681
|
-
|
|
682
|
+
lr as loadScript,
|
|
683
|
+
qe as lockBodyScrolling,
|
|
682
684
|
ie as luminanceTextColor,
|
|
683
685
|
Vt as moveMultipleToIndex,
|
|
684
686
|
Ot as moveToIndex,
|
|
685
687
|
Yt as multiSelectTo,
|
|
686
|
-
|
|
688
|
+
vr as normalizeToIsoDate,
|
|
687
689
|
it as omit,
|
|
688
690
|
q as openAssetOverview,
|
|
689
691
|
Q as openFolderOverview,
|
|
690
692
|
Z as openLink,
|
|
691
|
-
|
|
692
|
-
|
|
693
|
+
pa as padPath,
|
|
694
|
+
Da as parseBooleanString,
|
|
693
695
|
le as parseBorder,
|
|
694
696
|
De as parseDuration,
|
|
695
|
-
|
|
697
|
+
kr as parseIsoDate,
|
|
696
698
|
ct as parseJsonString,
|
|
697
699
|
ce as parseLightDark,
|
|
698
700
|
ut as parseListString,
|
|
@@ -700,44 +702,44 @@ export {
|
|
|
700
702
|
lt as pick,
|
|
701
703
|
Qt as popoverSupported,
|
|
702
704
|
Te as prefersReducedMotion,
|
|
703
|
-
|
|
705
|
+
Ge as quantizeLargestRemainder,
|
|
704
706
|
mt as readLocalStorageValue,
|
|
705
|
-
|
|
706
|
-
|
|
707
|
+
Ta as reducePathToDirectChild,
|
|
708
|
+
Xe as registerTranslation,
|
|
707
709
|
Ut as removeAtIndex,
|
|
708
710
|
Nt as removeMultipleAtIndex,
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
711
|
+
Gr as resizeImage,
|
|
712
|
+
sa as rotateBox,
|
|
713
|
+
$r as rotateImage,
|
|
714
|
+
wa as safeExtension,
|
|
715
|
+
Ca as safeString,
|
|
716
|
+
xa as sanitizeHTML,
|
|
717
|
+
oa as sanitizeRotation,
|
|
718
|
+
Qe as scrollIntoView,
|
|
717
719
|
st as serialize,
|
|
718
720
|
j as shareAsset,
|
|
719
721
|
we as shimKeyframesHeightAuto,
|
|
720
|
-
|
|
722
|
+
cr as sortByTopPosition,
|
|
721
723
|
Y as sortTypefaceVariants,
|
|
722
|
-
|
|
723
|
-
|
|
724
|
+
ia as splitBoxValues,
|
|
725
|
+
ya as splitCamelCaseFormatted,
|
|
724
726
|
Ce as stopAnimations,
|
|
725
727
|
Zt as supportHLS,
|
|
726
728
|
v as testFontAvailability,
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
729
|
+
Me as timecodeConverter,
|
|
730
|
+
Ma as toCamelCase,
|
|
731
|
+
Vr as toIsoDate,
|
|
732
|
+
Sa as toKebabCase,
|
|
733
|
+
Ea as toPascalCase,
|
|
732
734
|
Et as toRelativeUrl,
|
|
733
|
-
|
|
735
|
+
Aa as toTitleCase,
|
|
734
736
|
Pt as toast,
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
737
|
+
Ia as truncateTextMiddle,
|
|
738
|
+
Ze as unlockBodyScrolling,
|
|
739
|
+
La as upperFirst,
|
|
740
|
+
Ne as validValidityState,
|
|
741
|
+
Pe as valueMissingValidityState,
|
|
742
|
+
xe as waitForEvent,
|
|
743
|
+
Cr as watch,
|
|
742
744
|
ft as writeLocalStorageValue
|
|
743
745
|
};
|
package/package.json
CHANGED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import { PluginKey } from '@tiptap/pm/state';
|
|
3
|
-
import { TimecodeMode } from '../../../../../types/src/video-editor';
|
|
4
|
-
|
|
5
|
-
export interface TimeOptions {
|
|
6
|
-
/**
|
|
7
|
-
* The HTML attributes for the time widget.
|
|
8
|
-
* @default {}
|
|
9
|
-
*/
|
|
10
|
-
HTMLAttributes: Record<string, string>;
|
|
11
|
-
/**
|
|
12
|
-
* The frame rate for the time based feature.
|
|
13
|
-
* @default 24
|
|
14
|
-
*/
|
|
15
|
-
frameRate: number;
|
|
16
|
-
/**
|
|
17
|
-
* The placeholder text for the time based feature.
|
|
18
|
-
* @default 'Enter a message...'
|
|
19
|
-
*/
|
|
20
|
-
placeholder: string;
|
|
21
|
-
/**
|
|
22
|
-
* The time values (in seconds) for the time based feature.
|
|
23
|
-
* Can be a single value or a range [start, end].
|
|
24
|
-
* @default []
|
|
25
|
-
*/
|
|
26
|
-
time: number[];
|
|
27
|
-
/**
|
|
28
|
-
* The timecode mode for the time based feature.
|
|
29
|
-
* @default TimecodeMode.Standard
|
|
30
|
-
*/
|
|
31
|
-
timecodeMode: TimecodeMode;
|
|
32
|
-
}
|
|
33
|
-
export interface TimeStorage {
|
|
34
|
-
frameRate: number;
|
|
35
|
-
placeholder: string;
|
|
36
|
-
time: number[];
|
|
37
|
-
timecodeMode: TimecodeMode;
|
|
38
|
-
}
|
|
39
|
-
declare module '@tiptap/core' {
|
|
40
|
-
interface Commands<ReturnType> {
|
|
41
|
-
time: {
|
|
42
|
-
/**
|
|
43
|
-
* Update the time decoration with new values.
|
|
44
|
-
*/
|
|
45
|
-
setTime: (options: {
|
|
46
|
-
frameRate?: number;
|
|
47
|
-
placeholder?: string;
|
|
48
|
-
time?: number[];
|
|
49
|
-
timecodeMode?: TimecodeMode;
|
|
50
|
-
}) => ReturnType;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* The plugin key for the time decoration plugin.
|
|
56
|
-
*/
|
|
57
|
-
export declare const TimePluginKey: PluginKey<any>;
|
|
58
|
-
/**
|
|
59
|
-
* This extension adds a node decoration widget at the start of the document
|
|
60
|
-
* displaying the time using cx-timecode component.
|
|
61
|
-
*/
|
|
62
|
-
export declare const Time: Extension<TimeOptions, TimeStorage>;
|
|
63
|
-
export default Time;
|
|
File without changes
|