@orangelogic/design-system 3.15.0 → 3.17.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.GZb85GYh.js → asset-link-format.FmSSysED.js} +890 -893
- package/library/chunks/{button.BQoebhw_.js → button.DCyoZrRj.js} +1 -1
- package/library/chunks/{color-swatch-group.D25fjSK-.js → color-swatch-group.CvApE9bf.js} +5 -5
- package/library/chunks/{confirm-popover.C35rVtVI.js → confirm-popover.-_1n24v-.js} +1 -1
- package/library/chunks/{document-viewer.sz5uTo3c.js → document-viewer.DY5s9zRW.js} +3 -3
- package/library/chunks/{dom.DShN_5Jh.js → dom.DL-cNKsj.js} +40 -38
- package/library/chunks/{folder-select.CHY44KlA.js → folder-select.CsuADJH9.js} +2 -2
- package/library/chunks/{form.C8LMdQB4.js → form.DN2v7-DH.js} +1 -1
- package/library/chunks/{index.D8AuAxXl.js → index.CW7LXCxo.js} +9 -9
- package/library/chunks/{input.BRZzv6Zk.js → input.Csf-S2nB.js} +1 -1
- package/library/chunks/{pagination.DtdNeZZD.js → pagination.C9NblxKt.js} +2 -2
- package/library/chunks/{tab-group.BQh_hMDd.js → tab-group.B6Aej-jM.js} +2 -2
- package/library/chunks/{types.Bc8Tgozj.js → types.BNc8NEZr.js} +10879 -10646
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +5 -5
- package/library/components/border-input-group.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/confirm-popover.js +2 -2
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +4 -4
- package/library/components/folder-select.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/molecules.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +3 -3
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +3 -3
- package/library/components/textarea.js +1 -1
- package/library/components/types.js +128 -127
- package/library/package.json +1 -1
- package/library/packages/events/src/cx-comment-task-mention-select.d.ts +13 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/organisms/src/comment/comment.d.ts +72 -0
- package/library/packages/services/src/api/asset/asset.d.ts +6 -25
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +4 -0
- package/library/packages/tools/src/tiptap/extensions/task-mention/index.d.ts +77 -0
- package/library/packages/types/src/gallery-item.d.ts +1 -0
- package/library/packages/types/src/xml-editor.d.ts +1 -1
- package/library/packages/utils/src/dom/dom.d.ts +9 -0
- package/library/react-web-component.d.ts +86 -2
- package/library/utils.js +105 -104
- package/package.json +1 -1
|
@@ -2,13 +2,13 @@ import { default as t } from "./alert.js";
|
|
|
2
2
|
import { bs as r } from "../chunks/am-chart._tN87j9G.js";
|
|
3
3
|
import { default as x } from "./animated-image.js";
|
|
4
4
|
import { C as l } from "../chunks/animation.C44TQFrM.js";
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
5
|
+
import { default as n } from "./array-line-clamp.js";
|
|
6
|
+
import { default as f } from "./audio.js";
|
|
7
7
|
import { default as d } from "./avatar.js";
|
|
8
8
|
import { default as c } from "./badge.js";
|
|
9
9
|
import { default as T } from "./breadcrumb.js";
|
|
10
10
|
import { default as I } from "./breadcrumb-item.js";
|
|
11
|
-
import { C as D } from "../chunks/button.
|
|
11
|
+
import { C as D } from "../chunks/button.DCyoZrRj.js";
|
|
12
12
|
import { default as h } from "./button-group.js";
|
|
13
13
|
import { default as F } from "./card.js";
|
|
14
14
|
import { default as P } from "./checkbox.js";
|
|
@@ -19,7 +19,7 @@ import { default as w } from "./details.js";
|
|
|
19
19
|
import { default as G } from "./diff.js";
|
|
20
20
|
import { C as N } from "../chunks/dialog.Dl9aHLD4.js";
|
|
21
21
|
import { default as U } from "./divider.js";
|
|
22
|
-
import { C as z } from "../chunks/document-viewer.
|
|
22
|
+
import { C as z } from "../chunks/document-viewer.DY5s9zRW.js";
|
|
23
23
|
import { C as K } from "../chunks/dot-pagination.BNoG-qx7.js";
|
|
24
24
|
import { default as j } from "./dot-status.js";
|
|
25
25
|
import { default as Q } from "./drawer.js";
|
|
@@ -29,8 +29,8 @@ import { default as ta } from "./element-clamp.js";
|
|
|
29
29
|
import { default as ra } from "./format-bytes.js";
|
|
30
30
|
import { default as xa } from "./format-date.js";
|
|
31
31
|
import { default as la } from "./format-number.js";
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
32
|
+
import { default as na } from "./format-time.js";
|
|
33
|
+
import { default as fa } from "./grid.js";
|
|
34
34
|
import { default as da } from "./grid-item.js";
|
|
35
35
|
import { C as ca } from "../chunks/header.v8maWlzT.js";
|
|
36
36
|
import { C as Ta } from "../chunks/hub-connection.BtevPWYb.js";
|
|
@@ -40,7 +40,7 @@ import { C as ha } from "../chunks/iframe.DOwG9Q7o.js";
|
|
|
40
40
|
import { C as Fa } from "../chunks/image.BSh7WAGF.js";
|
|
41
41
|
import { default as Pa } from "./image-comparer.js";
|
|
42
42
|
import { default as La } from "./include.js";
|
|
43
|
-
import { C as Va } from "../chunks/input.
|
|
43
|
+
import { C as Va } from "../chunks/input.Csf-S2nB.js";
|
|
44
44
|
import { default as Ma } from "./input-group.js";
|
|
45
45
|
import { default as wa } from "./line-clamp.js";
|
|
46
46
|
import { C as Ga } from "../chunks/markdown.b03AOvFT.js";
|
|
@@ -50,14 +50,14 @@ import { default as za } from "./menu-label.js";
|
|
|
50
50
|
import { default as Ka } from "./menu-section.js";
|
|
51
51
|
import { default as ja } from "./mutation-observer.js";
|
|
52
52
|
import { C as Qa } from "../chunks/option.DgxoCq1j.js";
|
|
53
|
-
import { C as Ja } from "../chunks/pagination.
|
|
53
|
+
import { C as Ja } from "../chunks/pagination.C9NblxKt.js";
|
|
54
54
|
import { default as ae } from "./popup.js";
|
|
55
55
|
import { default as te } from "./progress-bar.js";
|
|
56
56
|
import { default as re } from "./progress-ring.js";
|
|
57
57
|
import { default as xe } from "./qr-code.js";
|
|
58
58
|
import { default as le } from "./radio.js";
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
59
|
+
import { default as ne } from "./radio-button.js";
|
|
60
|
+
import { default as fe } from "./radio-card.js";
|
|
61
61
|
import { default as de } from "./radio-group.js";
|
|
62
62
|
import { default as ce } from "./range.js";
|
|
63
63
|
import { default as Te } from "./rating.js";
|
|
@@ -72,7 +72,7 @@ import { default as Me } from "./step.js";
|
|
|
72
72
|
import { default as we } from "./stepper.js";
|
|
73
73
|
import { default as Ge } from "./switch.js";
|
|
74
74
|
import { default as Ne } from "./tab.js";
|
|
75
|
-
import { C as Ue } from "../chunks/tab-group.
|
|
75
|
+
import { C as Ue } from "../chunks/tab-group.B6Aej-jM.js";
|
|
76
76
|
import { default as ze } from "./tab-panel.js";
|
|
77
77
|
import { default as Ke } from "./tag.js";
|
|
78
78
|
import { default as je } from "./textarea.js";
|
|
@@ -82,19 +82,19 @@ import { a as at, C as et } from "../chunks/tree.DKofDMGu.js";
|
|
|
82
82
|
import { C as ot } from "../chunks/typography.T72DuoCa.js";
|
|
83
83
|
import { default as st } from "./video.js";
|
|
84
84
|
import { default as it } from "./visually-hidden.js";
|
|
85
|
-
import { fontAwesomeIconNames as mt, getAnimationNames as
|
|
85
|
+
import { fontAwesomeIconNames as mt, getAnimationNames as nt, getEasingNames as pt } from "./atoms.js";
|
|
86
86
|
import { c as Ct } from "../chunks/component.styles.CAS3c9pM.js";
|
|
87
87
|
import { g as ut, a as ct, s as gt } from "../chunks/animation-registry.HmpwNuGH.js";
|
|
88
|
-
import { s as At, u as It, Y as St, v as Dt, n as bt, C as ht, m as yt, $ as Ft, a0 as Et, a1 as Pt, a3 as Rt, a2 as Lt, a4 as vt, a5 as Vt, a6 as Bt, a7 as Mt, a8 as Ot, l as wt, Z as kt, w as Gt, _ as _t, x as Nt, y as Ht, z as Ut, k as Xt, a9 as zt, B as Wt, E as Kt, G as qt, H as jt, aa as Yt, j as Qt, J as Zt, K as Jt, h as $t, V as ao, W as eo, ab as to, f as oo, L as ro, M as so, N as xo, P as io, Q as lo, R as mo, ac as
|
|
88
|
+
import { s as At, u as It, Y as St, v as Dt, n as bt, C as ht, m as yt, $ as Ft, a0 as Et, a1 as Pt, a3 as Rt, a2 as Lt, a4 as vt, a5 as Vt, a6 as Bt, a7 as Mt, a8 as Ot, l as wt, Z as kt, w as Gt, _ as _t, x as Nt, y as Ht, z as Ut, k as Xt, a9 as zt, B as Wt, E as Kt, G as qt, H as jt, aa as Yt, j as Qt, J as Zt, K as Jt, h as $t, V as ao, W as eo, ab as to, f as oo, L as ro, M as so, N as xo, P as io, Q as lo, R as mo, ac as no, ad as po, T as fo, U as Co, ae as uo, af as co, e as go, X as To, ag as Ao, ah as Io } from "../chunks/types.BNc8NEZr.js";
|
|
89
89
|
import { default as Do } from "./bicolor-picker.js";
|
|
90
90
|
import { default as ho } from "./border-input-group.js";
|
|
91
91
|
import { C as Fo } from "../chunks/color-swatch.DxxOpJXT.js";
|
|
92
|
-
import { C as Po } from "../chunks/confirm-popover
|
|
92
|
+
import { C as Po } from "../chunks/confirm-popover.-_1n24v-.js";
|
|
93
93
|
import { default as Lo } from "./corner-position-input-group.js";
|
|
94
94
|
import { default as Vo } from "./cropper.js";
|
|
95
95
|
import { default as Mo } from "./dynamic-select.js";
|
|
96
|
-
import { C as wo, e as ko, f as Go } from "../chunks/color-swatch-group.
|
|
97
|
-
import { C as No } from "../chunks/folder-select.
|
|
96
|
+
import { C as wo, e as ko, f as Go } from "../chunks/color-swatch-group.CvApE9bf.js";
|
|
97
|
+
import { C as No } from "../chunks/folder-select.CsuADJH9.js";
|
|
98
98
|
import { default as Uo } from "./masonry.js";
|
|
99
99
|
import { default as zo } from "./padding-input-group.js";
|
|
100
100
|
import { default as Ko } from "./position-picker.js";
|
|
@@ -104,11 +104,11 @@ import { default as Jo } from "./sidebar.js";
|
|
|
104
104
|
import { default as ar } from "./size-input-group.js";
|
|
105
105
|
import { default as tr } from "./stepper-wizard.js";
|
|
106
106
|
import { default as rr } from "./typeface.js";
|
|
107
|
-
import { C as xr } from "../chunks/asset-link-format.
|
|
107
|
+
import { C as xr } from "../chunks/asset-link-format.FmSSysED.js";
|
|
108
108
|
import { default as lr } from "./file-on-demand.js";
|
|
109
|
-
import { C as
|
|
109
|
+
import { C as nr, E as pr, b as fr, G as Cr, a as dr, O as ur, T as cr } from "../chunks/index.Cpamj0jB.js";
|
|
110
110
|
import { CortexPopupController as Tr, DateRangePresets as Ar, DragScroll as Ir, HistoryManager as Sr, KeyboardKey as Dr, PRECISION as br, downloadAsset as hr, extractFrames as yr, findFrameByColAndRow as Fr, getBrowserFontVariants as Er, getFontFamilyOptionValue as Pr, getFormControls as Rr, getInterval as Lr, getTypefaceOptionValue as vr, insertFrameToCache as Vr, isFontFamilyAvailable as Br, isFormInteracted as Mr, isModKey as Or, isoWeekNumber as wr, omit as kr, openAssetOverview as Gr, openFolderOverview as _r, openLink as Nr, parseJsonString as Hr, parseListString as Ur, pick as Xr, quoteFontFamily as zr, readLocalStorageValue as Wr, serialize as Kr, shareAsset as qr, sortTypefaceVariants as jr, testFontAvailability as Yr, unquoteFontFamily as Qr, writeLocalStorageValue as Zr } from "../utils.js";
|
|
111
|
-
import { j as $r, f as as, b as es, c as ts, g as os, e as rs, i as ss, a as xs, h as is, m as ls, d as ms, r as
|
|
111
|
+
import { j as $r, f as as, b as es, c as ts, g as os, e as rs, i as ss, a as xs, h as is, m as ls, d as ms, r as ns, t as ps } from "../chunks/toast.CGIDPKV8.js";
|
|
112
112
|
import { e as Cs, a as ds, f as us, g as cs, d as gs, b as Ts, c as As, i as Is, p as Ss, s as Ds } from "../chunks/browser.BHOCIF_A.js";
|
|
113
113
|
import { d as hs, C as ys, e as Fs, H as Es, R as Ps, c as Rs, h as Ls, f as vs, g as Vs, l as Bs, a as Ms, p as Os, b as ws } from "../chunks/color.LzSGBy7o.js";
|
|
114
114
|
import { a as Gs, g as _s } from "../chunks/active-elements.jTVWtBDp.js";
|
|
@@ -119,7 +119,7 @@ import { d as Js } from "../chunks/debounce.DaHuiSGU.js";
|
|
|
119
119
|
import { d as ax } from "../chunks/default-value.COZopaet.js";
|
|
120
120
|
import { d as tx } from "../chunks/drag.DenOh3AE.js";
|
|
121
121
|
import { f as rx } from "../chunks/focus-when-visible.jWSw9ks0.js";
|
|
122
|
-
import { F as xx, c as ix, f as lx, g as mx, v as
|
|
122
|
+
import { F as xx, c as ix, f as lx, g as mx, v as nx, a as px } from "../chunks/form.DN2v7-DH.js";
|
|
123
123
|
import { L as Cx, r as dx } from "../chunks/i18n.CNnI4-0K.js";
|
|
124
124
|
import { c as cx, q as gx } from "../chunks/math.DuKzLacZ.js";
|
|
125
125
|
import { g as Ax } from "../chunks/modal.Ct0bJBSe.js";
|
|
@@ -130,26 +130,26 @@ import { i as Bx } from "../chunks/user-agent.D9aPuOyL.js";
|
|
|
130
130
|
import { w as Ox } from "../chunks/watch.DJF5K-8U.js";
|
|
131
131
|
import { C as kx } from "../chunks/calendar-grid.BWjcZL5W.js";
|
|
132
132
|
import { b as _x, c as Nx, f as Hx, h as Ux, g as Xx, a as zx, i as Wx, d as Kx, n as qx, e as jx, p as Yx, t as Qx } from "../chunks/date.iWq_pkIk.js";
|
|
133
|
-
import { c as Jx, d as $x, h as ai, m as ei, k as ti, a as oi, g as ri, j as si, b as xi, f as ii, i as li, e as mi, l as pi, s as fi } from "../chunks/dom.
|
|
134
|
-
import { o as
|
|
135
|
-
import { c as
|
|
136
|
-
import { b as
|
|
137
|
-
import { c as
|
|
138
|
-
import { s as
|
|
139
|
-
import { b as
|
|
140
|
-
import { g as
|
|
141
|
-
import { c as
|
|
142
|
-
import { R as
|
|
143
|
-
import { C as
|
|
133
|
+
import { c as Jx, d as $x, h as ai, m as ei, k as ti, a as oi, g as ri, j as si, b as xi, f as ii, i as li, e as mi, l as ni, r as pi, s as fi } from "../chunks/dom.DL-cNKsj.js";
|
|
134
|
+
import { o as di, l as ui, p as ci, k as gi, a as Ti, m as Ai, b as Ii, g as Si, d as Di, f as bi, n as hi, q as yi, r as Fi, c as Ei } from "../chunks/transformation.OaRYixzE.js";
|
|
135
|
+
import { c as Ri, f as Li, e as vi, b as Vi, g as Bi, d as Mi, i as Oi, r as wi, a as ki } from "../chunks/image.Y5c_hFx8.js";
|
|
136
|
+
import { b as _i, e as Ni } from "../chunks/waveform.1U9U_0rd.js";
|
|
137
|
+
import { c as Ui, b as Xi, a as zi, e as Wi, d as Ki, f as qi, g as ji, r as Yi, s as Qi } from "../chunks/number.Cx2ncfJJ.js";
|
|
138
|
+
import { s as Ji } from "../chunks/parse.Cu5nBDTb.js";
|
|
139
|
+
import { b as al, n as el, d as tl, e as ol, f as rl, y as sl, o as xl, g as il, h as ll, l as ml, p as nl, z as pl, x as fl, a as Cl, c as dl, s as ul, w as cl, r as gl, t as Tl, q as Al, v as Il, i as Sl, m as Dl, u as bl } from "../chunks/string.Demn8Xmk.js";
|
|
140
|
+
import { g as yl, a as Fl } from "../chunks/template.ClovJacp.js";
|
|
141
|
+
import { c as Pl, f as Rl, a as Ll, g as vl } from "../chunks/time.DYWuX2id.js";
|
|
142
|
+
import { R as Bl, f as Ml, g as Ol, h as wl, U as kl, b as Gl, a as _l, d as Nl, c as Hl, i as Ul, r as Xl, t as zl, e as Wl } from "../chunks/url.CGdWC06g.js";
|
|
143
|
+
import { C as ql } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
144
144
|
export {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
di as AUTO_FALLBACK_FORMAT,
|
|
146
|
+
ui as AUTO_FORMAT_EXTENSION,
|
|
147
|
+
ci as AUTO_ORIGINAL_FORMAT_MAX_BYTES,
|
|
148
148
|
hs as CMYK_VALIDATION_REGEX,
|
|
149
149
|
kx as CalendarGrid,
|
|
150
150
|
ys as ColorType,
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
nr as CornerPosition,
|
|
152
|
+
ql as CortexElement,
|
|
153
153
|
Tr as CortexPopupController,
|
|
154
154
|
At as Cx3dViewer,
|
|
155
155
|
t as CxAlert,
|
|
@@ -158,13 +158,13 @@ export {
|
|
|
158
158
|
l as CxAnimation,
|
|
159
159
|
It as CxAnnotator,
|
|
160
160
|
St as CxAnnotatorComment,
|
|
161
|
-
|
|
161
|
+
n as CxArrayLineClamp,
|
|
162
162
|
Dt as CxAssetDataDisplay,
|
|
163
163
|
bt as CxAssetFormatPicker,
|
|
164
164
|
xr as CxAssetLinkFormat,
|
|
165
165
|
ht as CxAssetPicker,
|
|
166
166
|
yt as CxAssetTransformationDialog,
|
|
167
|
-
|
|
167
|
+
f as CxAudio,
|
|
168
168
|
d as CxAvatar,
|
|
169
169
|
c as CxBadge,
|
|
170
170
|
Ft as CxBentoGrid,
|
|
@@ -226,10 +226,10 @@ export {
|
|
|
226
226
|
ra as CxFormatBytes,
|
|
227
227
|
xa as CxFormatDate,
|
|
228
228
|
la as CxFormatNumber,
|
|
229
|
-
|
|
229
|
+
na as CxFormatTime,
|
|
230
230
|
Zt as CxGalleryItem,
|
|
231
231
|
Jt as CxGraphView,
|
|
232
|
-
|
|
232
|
+
fa as CxGrid,
|
|
233
233
|
da as CxGridItem,
|
|
234
234
|
ca as CxHeader,
|
|
235
235
|
Ta as CxHubConnection,
|
|
@@ -269,8 +269,8 @@ export {
|
|
|
269
269
|
lo as CxPublishPage,
|
|
270
270
|
xe as CxQrCode,
|
|
271
271
|
le as CxRadio,
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
ne as CxRadioButton,
|
|
273
|
+
fe as CxRadioCard,
|
|
274
274
|
de as CxRadioGroup,
|
|
275
275
|
ce as CxRange,
|
|
276
276
|
Te as CxRating,
|
|
@@ -284,11 +284,11 @@ export {
|
|
|
284
284
|
ar as CxSizeInputGroup,
|
|
285
285
|
Fe as CxSkeleton,
|
|
286
286
|
Pe as CxSpace,
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
no as CxSpaceSelector,
|
|
288
|
+
po as CxSpecialCharactersDialog,
|
|
289
289
|
Le as CxSpinner,
|
|
290
290
|
Ve as CxSplitPanel,
|
|
291
|
-
|
|
291
|
+
fo as CxStatCard,
|
|
292
292
|
Me as CxStep,
|
|
293
293
|
we as CxStepper,
|
|
294
294
|
tr as CxStepperWizard,
|
|
@@ -314,8 +314,8 @@ export {
|
|
|
314
314
|
Ao as CxXmlEditor,
|
|
315
315
|
Ar as DateRangePresets,
|
|
316
316
|
Ir as DragScroll,
|
|
317
|
-
|
|
318
|
-
|
|
317
|
+
pr as Easing,
|
|
318
|
+
fr as EasingFunction,
|
|
319
319
|
xx as FormControlController,
|
|
320
320
|
Cr as GsapEasing,
|
|
321
321
|
Fs as HEX_ALPHA_VALIDATION_REGEX,
|
|
@@ -328,37 +328,37 @@ export {
|
|
|
328
328
|
dr as ObjectFit,
|
|
329
329
|
ur as Orientation,
|
|
330
330
|
br as PRECISION,
|
|
331
|
-
|
|
331
|
+
Bl as RELATIVE_URL_REGEX,
|
|
332
332
|
Ps as RGB_VALIDATION_REGEX,
|
|
333
|
-
|
|
333
|
+
gi as SRCSET_WIDTH_LADDER,
|
|
334
334
|
cr as TransitionType,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
Ml as URL_DOMAIN_VALIDATION_REGEX,
|
|
336
|
+
Ol as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
|
|
337
|
+
wl as URL_PROTOCOL_VALIDATION_REGEX,
|
|
338
|
+
kl as URL_VALIDATION_REGEX,
|
|
339
339
|
Gs as activeElements,
|
|
340
340
|
_x as addMonths,
|
|
341
341
|
$r as adjustRelativeValues,
|
|
342
342
|
Hs as animateTo,
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
343
|
+
Gl as appendProtocol,
|
|
344
|
+
_l as appendQueryParam,
|
|
345
|
+
Ti as applyTransformationsToUrl,
|
|
346
|
+
Ai as applyWidthToAssetUrl,
|
|
347
|
+
Ii as buildAssetSrcset,
|
|
348
|
+
Si as buildSizesFromDisplayWidth,
|
|
349
|
+
Di as buildTransformationString,
|
|
350
|
+
_i as buildWaveformPath,
|
|
351
|
+
Ri as calculateAspectRatioFit,
|
|
352
352
|
cx as clamp,
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
Li as cleanImageFileName,
|
|
354
|
+
Pl as clearZeroDurationParts,
|
|
355
355
|
Ct as componentStyles,
|
|
356
356
|
Rs as convertColor,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
357
|
+
Ui as convertDataUnits,
|
|
358
|
+
Xi as convertDurationToMilliseconds,
|
|
359
|
+
zi as convertPixelsToAspectRatio,
|
|
360
|
+
vi as convertSrcToBlob,
|
|
361
|
+
Vi as cropImage,
|
|
362
362
|
Jx as cssValueToPx,
|
|
363
363
|
Qs as customElement,
|
|
364
364
|
ix as customErrorValidityState,
|
|
@@ -366,15 +366,15 @@ export {
|
|
|
366
366
|
ax as defaultValue,
|
|
367
367
|
hr as downloadAsset,
|
|
368
368
|
tx as drag,
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
al as emptyToSpace,
|
|
370
|
+
el as escapeXML,
|
|
371
371
|
Ls as extractColor,
|
|
372
|
-
|
|
372
|
+
tl as extractExtension,
|
|
373
373
|
yr as extractFrames,
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
374
|
+
ol as extractRootData,
|
|
375
|
+
Wi as extractValueAndUnit,
|
|
376
|
+
Ni as extractWaveformPeaks,
|
|
377
|
+
bi as fetchCortexApi,
|
|
378
378
|
Cs as findAncestorWithBuggyStyle,
|
|
379
379
|
ds as findContainingBlock,
|
|
380
380
|
us as findCuttingAncestor,
|
|
@@ -383,57 +383,57 @@ export {
|
|
|
383
383
|
rx as focusWhenVisible,
|
|
384
384
|
mt as fontAwesomeIconNames,
|
|
385
385
|
lx as formCollections,
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
Ki as formatAspectRatioString,
|
|
387
|
+
Rl as formatDurationPartsManually,
|
|
388
388
|
Nx as formatIsoToDisplay,
|
|
389
389
|
Hx as formatMonthYearLabel,
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
390
|
+
qi as formatNumberWithGrouping,
|
|
391
|
+
rl as formatSecondsToTime,
|
|
392
|
+
sl as formatTimeToSeconds,
|
|
393
|
+
Ll as formatWithIntlDurationFormat,
|
|
394
|
+
ji as gcd,
|
|
395
395
|
$x as getActiveElement,
|
|
396
396
|
Ax as getActiveModals,
|
|
397
397
|
ut as getAnimation,
|
|
398
|
-
|
|
398
|
+
nt as getAnimationNames,
|
|
399
399
|
mx as getAssociatedForm,
|
|
400
400
|
ai as getAttributes,
|
|
401
|
-
|
|
401
|
+
xl as getAttributesString,
|
|
402
402
|
es as getBreakpointsFromCSS,
|
|
403
403
|
Er as getBrowserFontVariants,
|
|
404
404
|
vs as getColorType,
|
|
405
|
-
|
|
405
|
+
Bi as getContainedImageSize,
|
|
406
406
|
ei as getCortexPopupLayer,
|
|
407
407
|
ti as getCurrentZIndex,
|
|
408
408
|
Ux as getDateMask,
|
|
409
409
|
_s as getDeepestActiveElement,
|
|
410
410
|
ts as getDeviceType,
|
|
411
|
-
|
|
412
|
-
|
|
411
|
+
vl as getDurationPartsByUnitsFormat,
|
|
412
|
+
pt as getEasingNames,
|
|
413
413
|
oi as getElementFromHTMLString,
|
|
414
414
|
ri as getElementFromTemplate,
|
|
415
415
|
Xx as getFirstDayOfWeek,
|
|
416
416
|
Pr as getFontFamilyOptionValue,
|
|
417
417
|
Rr as getFormControls,
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
yl as getHighlightedTitle,
|
|
419
|
+
Fl as getHighlightedTitleHtml,
|
|
420
420
|
Ex as getInnerHTML,
|
|
421
421
|
Lr as getInterval,
|
|
422
422
|
Vs as getLightDarkCssString,
|
|
423
|
-
|
|
423
|
+
Mi as getNaturalWidthHeight,
|
|
424
424
|
si as getNeededPaddingForBoxShadow,
|
|
425
425
|
cs as getNextAncestor,
|
|
426
426
|
Sx as getOffset,
|
|
427
427
|
xi as getRelativeClickPercentage,
|
|
428
|
-
|
|
428
|
+
il as getRootIDString,
|
|
429
429
|
Lx as getTabbableBoundary,
|
|
430
430
|
vx as getTabbableElements,
|
|
431
431
|
Px as getTextContent,
|
|
432
432
|
zx as getTodayIsoDate,
|
|
433
433
|
vr as getTypefaceOptionValue,
|
|
434
434
|
os as groupBy,
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
hi as hasTransformSegment,
|
|
436
|
+
ll as htmlToPlainText,
|
|
437
437
|
rs as insertAtIndex,
|
|
438
438
|
Vr as insertFrameToCache,
|
|
439
439
|
ss as insertMultipleAtIndex,
|
|
@@ -441,22 +441,22 @@ export {
|
|
|
441
441
|
Bx as isCortexAdobePlugin,
|
|
442
442
|
ii as isDomElement,
|
|
443
443
|
li as isElementInHorizontalView,
|
|
444
|
-
|
|
444
|
+
Nl as isExpiredAssetUrl,
|
|
445
445
|
Ts as isFirefox,
|
|
446
446
|
Br as isFontFamilyAvailable,
|
|
447
447
|
Mr as isFormInteracted,
|
|
448
|
-
|
|
448
|
+
ml as isGalleryItemCardType,
|
|
449
449
|
As as isIOS,
|
|
450
450
|
mi as isInElement,
|
|
451
451
|
Or as isModKey,
|
|
452
452
|
Is as isSafari,
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
Oi as isSaveSrcValid,
|
|
454
|
+
Hl as isValidDomainOrIntranetUrl,
|
|
455
455
|
Wx as isValidIsoDate,
|
|
456
|
-
|
|
456
|
+
Ul as isValidUrl,
|
|
457
457
|
Kx as isoToDate,
|
|
458
458
|
wr as isoWeekNumber,
|
|
459
|
-
|
|
459
|
+
ni as loadScript,
|
|
460
460
|
Dx as lockBodyScrolling,
|
|
461
461
|
Bs as luminanceTextColor,
|
|
462
462
|
xs as moveMultipleToIndex,
|
|
@@ -467,12 +467,12 @@ export {
|
|
|
467
467
|
Gr as openAssetOverview,
|
|
468
468
|
_r as openFolderOverview,
|
|
469
469
|
Nr as openLink,
|
|
470
|
-
|
|
470
|
+
nl as padPath,
|
|
471
471
|
pl as parseBooleanString,
|
|
472
472
|
Ms as parseBorder,
|
|
473
473
|
jx as parseDisplayToIso,
|
|
474
474
|
Us as parseDuration,
|
|
475
|
-
|
|
475
|
+
yi as parseFileSizeToBytes,
|
|
476
476
|
Yx as parseIsoDate,
|
|
477
477
|
Hr as parseJsonString,
|
|
478
478
|
Os as parseLightDark,
|
|
@@ -484,20 +484,21 @@ export {
|
|
|
484
484
|
gx as quantizeLargestRemainder,
|
|
485
485
|
zr as quoteFontFamily,
|
|
486
486
|
Wr as readLocalStorageValue,
|
|
487
|
+
pi as readSearchConsistency,
|
|
487
488
|
fl as reducePathToDirectChild,
|
|
488
489
|
dx as registerTranslation,
|
|
489
490
|
ms as removeAtIndex,
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
491
|
+
ns as removeMultipleAtIndex,
|
|
492
|
+
wi as resizeImage,
|
|
493
|
+
Fi as resolveAutoFormat,
|
|
494
|
+
Ei as resolveAutoMaxWidth,
|
|
495
|
+
Xl as resolveSpaceUrl,
|
|
496
|
+
Yi as rotateBox,
|
|
497
|
+
ki as rotateImage,
|
|
498
|
+
Cl as safeExtension,
|
|
499
|
+
dl as safeString,
|
|
500
|
+
ul as sanitizeHTML,
|
|
501
|
+
Qi as sanitizeRotation,
|
|
501
502
|
bx as scrollIntoView,
|
|
502
503
|
Kr as serialize,
|
|
503
504
|
ct as setAnimation,
|
|
@@ -506,27 +507,27 @@ export {
|
|
|
506
507
|
zs as shimKeyframesHeightAuto,
|
|
507
508
|
fi as sortByTopPosition,
|
|
508
509
|
jr as sortTypefaceVariants,
|
|
509
|
-
|
|
510
|
-
|
|
510
|
+
Ji as splitBoxValues,
|
|
511
|
+
cl as splitCamelCaseFormatted,
|
|
511
512
|
Ws as stopAnimations,
|
|
512
513
|
Ds as supportHLS,
|
|
513
514
|
Yr as testFontAvailability,
|
|
514
515
|
js as timecodeConverter,
|
|
515
|
-
|
|
516
|
+
gl as toCamelCase,
|
|
516
517
|
Qx as toIsoDate,
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
518
|
+
Tl as toKebabCase,
|
|
519
|
+
Al as toPascalCase,
|
|
520
|
+
zl as toRelativeUrl,
|
|
521
|
+
Il as toTitleCase,
|
|
522
|
+
Wl as toUrlPathKey,
|
|
523
|
+
ps as toast,
|
|
524
|
+
Sl as truncateTextMiddle,
|
|
525
|
+
Dl as unescapeXML,
|
|
525
526
|
hx as unlockBodyScrolling,
|
|
526
527
|
Qr as unquoteFontFamily,
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
528
|
+
bl as upperFirst,
|
|
529
|
+
nx as validValidityState,
|
|
530
|
+
px as valueMissingValidityState,
|
|
530
531
|
Ks as waitForEvent,
|
|
531
532
|
Ox as watch,
|
|
532
533
|
Zr as writeLocalStorageValue
|
package/library/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type CxCommentTaskMentionSelectEvent = CustomEvent<{
|
|
2
|
+
value: {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
declare global {
|
|
10
|
+
interface GlobalEventHandlersEventMap {
|
|
11
|
+
'cx-comment-task-mention-select': CxCommentTaskMentionSelectEvent;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -48,6 +48,7 @@ export * from './cx-column-resizable-change';
|
|
|
48
48
|
export * from './cx-column-scroll';
|
|
49
49
|
export * from './cx-columns-display-change';
|
|
50
50
|
export * from './cx-comment-mention-select';
|
|
51
|
+
export * from './cx-comment-task-mention-select';
|
|
51
52
|
export * from './cx-connect';
|
|
52
53
|
export * from './cx-connected';
|
|
53
54
|
export * from './cx-content-builder-gallery-change';
|
|
@@ -24,6 +24,7 @@ declare global {
|
|
|
24
24
|
* @description Replaces Cortex's current SSR comment and allows rich text editing thanks to the migration of Tiptap.
|
|
25
25
|
*
|
|
26
26
|
* @event {{ content: string }} cx-comment-change - Emitted when the editor's content changes.
|
|
27
|
+
* @event {{ value: { id: string, label: string, title?: string, type?: string } }} cx-comment-task-mention-select - Emitted when a task mention is selected from the task suggestion dropdown (triggered by `task-trigger-char`, `#` by default).
|
|
27
28
|
* @event cx-recording-started - Emitted when the screen recorder has started.
|
|
28
29
|
* @event cx-recording-stopped - Emitted when the screen recorder has stopped.
|
|
29
30
|
* @event {{ error: Error }} cx-recording-error - Emitted when the screen recorder has error.
|
|
@@ -57,6 +58,47 @@ export default class CxComment extends CortexElement {
|
|
|
57
58
|
filterName: string;
|
|
58
59
|
serviceName: string;
|
|
59
60
|
autocompletionViewstate: string;
|
|
61
|
+
/**
|
|
62
|
+
* Query module name for the task mention autocomplete. Task mentions
|
|
63
|
+
* (and task permalink paste conversion) stay disabled while unset.
|
|
64
|
+
*/
|
|
65
|
+
taskQueryName: string;
|
|
66
|
+
/**
|
|
67
|
+
* Filter module name for the task mention autocomplete.
|
|
68
|
+
*/
|
|
69
|
+
taskFilterName: string;
|
|
70
|
+
/**
|
|
71
|
+
* Optional filter module name used only to resolve pasted task permalinks,
|
|
72
|
+
* expected to match the pasted identifier exactly (unlike `task-filter-name`,
|
|
73
|
+
* whose fuzzy conditions also match title substrings). While unset, paste
|
|
74
|
+
* resolution runs through `task-filter-name` and keeps only an exact
|
|
75
|
+
* identifier match from its results.
|
|
76
|
+
*/
|
|
77
|
+
taskPasteFilterName: string;
|
|
78
|
+
/**
|
|
79
|
+
* Minimum query length for the task mention autocomplete. Defaults to 0
|
|
80
|
+
* so suggestions show as soon as the trigger character is typed.
|
|
81
|
+
*/
|
|
82
|
+
taskMinQueryLength: number;
|
|
83
|
+
/**
|
|
84
|
+
* The character that triggers the task mention autocomplete. Defaults
|
|
85
|
+
* to `#`.
|
|
86
|
+
*/
|
|
87
|
+
taskTriggerChar: string;
|
|
88
|
+
/**
|
|
89
|
+
* Format of the task mention chip text while composing, with `[IDENTIFIER]`
|
|
90
|
+
* and `[TITLE]` placeholders — the same template the host uses for the
|
|
91
|
+
* rendered mention links. Display-only: the mention is stored as the
|
|
92
|
+
* identifier alone, so the title never enters the saved comment body.
|
|
93
|
+
*/
|
|
94
|
+
taskLabelTemplate: string;
|
|
95
|
+
/**
|
|
96
|
+
* Regex source (case-insensitive, capture group 1 = identifier) matched
|
|
97
|
+
* against pasted same-origin URL paths to detect task links. Provided by
|
|
98
|
+
* the host, derived from the site's task URL template. While unset, only
|
|
99
|
+
* legacy `?TID={id}` links are detected on paste.
|
|
100
|
+
*/
|
|
101
|
+
taskUrlPattern: string;
|
|
60
102
|
maxCount: number;
|
|
61
103
|
queryDelay: number;
|
|
62
104
|
minQueryLength: number;
|
|
@@ -82,16 +124,46 @@ export default class CxComment extends CortexElement {
|
|
|
82
124
|
private handleCopy;
|
|
83
125
|
private fetchAutocompleteItems;
|
|
84
126
|
getMentionItems(queryString: string): Promise<AutocompleteItem[]>;
|
|
127
|
+
getTaskMentionItems(queryString: string, filterName?: string): Promise<AutocompleteItem[]>;
|
|
85
128
|
resetMention(): void;
|
|
86
129
|
protected handleMenuItemClick(): void;
|
|
87
130
|
private handleFullscreenClick;
|
|
88
131
|
toggleFullscreen(): void;
|
|
132
|
+
/**
|
|
133
|
+
* Both mention kinds debounce their autocomplete identically; only the
|
|
134
|
+
* items getter differs. Kept as field initializers so the debounce wait
|
|
135
|
+
* captures `queryDelay` at construction time, exactly like the previous
|
|
136
|
+
* inline `_debounce` fields did.
|
|
137
|
+
*/
|
|
138
|
+
private createDebouncedMentionFetch;
|
|
89
139
|
private readonly debouncedFetch;
|
|
140
|
+
private readonly debouncedTaskFetch;
|
|
90
141
|
private fetchItems;
|
|
142
|
+
private fetchTaskItems;
|
|
91
143
|
private handleMentionSelect;
|
|
144
|
+
/**
|
|
145
|
+
* Shared activation for both suggestion kinds: anchors the shared
|
|
146
|
+
* cx-mentions popup on the suggestion decoration and wires selection.
|
|
147
|
+
* `resetAnchor` re-anchors even when an anchor is already set (contact
|
|
148
|
+
* mention start); the other paths keep the existing anchor (`??=`) so the
|
|
149
|
+
* popup does not jump while typing, relying on `onExit` → `resetMention`
|
|
150
|
+
* to clear it between suggestions.
|
|
151
|
+
*/
|
|
152
|
+
private activateMention;
|
|
92
153
|
private handleMentionStart;
|
|
93
154
|
private handleMentionUpdate;
|
|
155
|
+
private handleTaskMentionActivate;
|
|
94
156
|
private handleMentionKeyDown;
|
|
157
|
+
/**
|
|
158
|
+
* The task mention extension is created per editor init (not in the static
|
|
159
|
+
* `extensions` field) so its options read the host-applied properties
|
|
160
|
+
* (trigger char, label template, URL pattern). It is always registered —
|
|
161
|
+
* keeping the node in the schema means stored task mentions round-trip
|
|
162
|
+
* unchanged even where the feature is off — while suggestions and paste
|
|
163
|
+
* conversion stay inert until the host opts in via `task-query-name`.
|
|
164
|
+
*/
|
|
165
|
+
private getTaskMentionExtension;
|
|
166
|
+
private getEditorExtensions;
|
|
95
167
|
private initEditor;
|
|
96
168
|
/**
|
|
97
169
|
* First init must happen here: on Cortex ajax refresh the element renders while
|