@epam/ai-dial-share 1.2.0-dev.6 → 1.2.0-dev.61
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/components/SharePopover/SharePopover.d.ts.map +1 -1
- package/constants/public-class-names.d.ts +5 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +107 -107
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharePopover.d.ts","sourceRoot":"","sources":["../../../src/components/SharePopover/SharePopover.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SharePopover.d.ts","sourceRoot":"","sources":["../../../src/components/SharePopover/SharePopover.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;;AAuT1E,wBAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-class-names.d.ts","sourceRoot":"","sources":["../../src/constants/public-class-names.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW;IACtB,kFAAkF;;CAE1E,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
._accessTriggerBtn_1ryi2_1{background-color:var(--shp-access-trigger-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--shp-access-trigger-border,transparent)}@media (hover:hover){button._accessTriggerBtn_1ryi2_1:hover{border-color:var(--shp-access-trigger-border-hover,var(--stroke-accent,#1d4ed8))}}button._accessTriggerBtn_1ryi2_1:focus-visible{outline:1px solid var(--shp-access-trigger-border-focus,var(--stroke-accent,#1d4ed8));outline-offset:-1px;border-color:#0000}._accessTriggerBtnOpen_1ryi2_17{border-color:var(--shp-access-trigger-border-focus,var(--stroke-accent,#1d4ed8))}._accessTriggerLabel_1ryi2_21{color:var(--shp-access-trigger-text,var(--text-primary,#161b2d))}._title_1ryi2_25{color:var(--shp-title-text,var(--text-primary,#161b2d))}._linkIconBadge_1ryi2_29{background:var(--shp-link-icon-bg,var(--bg-control-accent-alpha-active,#2764d933));color:var(--shp-link-icon-text,var(--text-accent,#1d4ed8))}._anyoneWithLinkTitle_1ryi2_34{color:var(--shp-anyone-title,var(--text-primary,#161b2d))}._anyoneWithLinkSubtitle_1ryi2_38{color:var(--shp-anyone-subtitle,var(--text-secondary,#57647a))}._accessTriggerChevron_1ryi2_42{color:var(--shp-access-chevron,var(--text-tertiary,#848e9c));transition:transform .15s}@media (prefers-reduced-motion:reduce){._accessTriggerChevron_1ryi2_42{transition:none}}._accessMenuItemLabel_1ryi2_55{color:var(--shp-menu-item-label,var(--text-primary,#161b2d))}._linkRow_1ryi2_59{background:var(--shp-link-row-bg,var(--bg-layer-base,#f5f7fa))}._linkRow_1ryi2_59 input{color:var(--shp-link-text,var(--text-primary,#161b2d))!important}._errorText_1ryi2_66{color:var(--shp-error-text,var(--text-error,#ae2f2f))}._note_1ryi2_70{color:var(--shp-note-text,var(--text-secondary,#57647a))}._divider_1ryi2_74{background:var(--shp-divider,var(--stroke-tertiary,#e0e6f0))}._container_hzzl6_1{border-color:var(--qr-border,var(--stroke-tertiary,#e0e6f0));background:var(--qr-bg,var(--bg-layer-sunken,#eef1f7))}._qrColor_hzzl6_6{color:var(--qr-color,var(--text-primary,#161b2d))}
|
|
2
|
-
/*$vite$:1
|
|
2
|
+
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.static{position:static}.-mt-1{margin-top:-.25rem}.-mt-1\.5{margin-top:-.375rem}.ms-auto{margin-inline-start:auto}.flex{display:flex}.size-40{height:10rem;width:10rem}.size-8{height:2rem;width:2rem}.size-full{height:100%;width:100%}.h-10{height:2.5rem}.h-px{height:1px}.w-96{width:24rem}.w-full{width:100%}.min-w-0{min-width:0}.min-w-\[160px\]{min-width:160px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.self-center{align-self:center}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0}.bg-layer-raised{background-color:var(--bg-layer-raised,#fcfcfc)}.bg-transparent{background-color:transparent}.p-3{padding:.75rem}.px-0{padding-left:0;padding-right:0}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-6{padding-top:1.5rem}.pb-6,.py-6{padding-bottom:1.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.shadow-lg{--tw-shadow:0 8px 44px 0 var(--shadow-lg,#2764d914);--tw-shadow-colored:0 8px 44px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.rtl\:scale-x-\[-1\]:where([dir=rtl],[dir=rtl] *){--tw-scale-x:-1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}
|
package/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export { QrCode } from './components/QrCode/QrCode';
|
|
|
4
4
|
export type { QrCodeColors, QrCodeLabels, QrCodeProps, QrCodeStyles, } from './components/QrCode/QrCode';
|
|
5
5
|
export type { ShareLinkData } from './models/share-link-data';
|
|
6
6
|
export { ShareLinkAccess, SharePopoverView } from './types/share';
|
|
7
|
+
export { SHARE_CLASS } from './constants/public-class-names';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACjF,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,YAAY,GACb,MAAM,4BAA4B,CAAC;AACpC,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACjF,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,YAAY,GACb,MAAM,4BAA4B,CAAC;AACpC,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
|
package/index.js
CHANGED
|
@@ -13,14 +13,14 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
13
13
|
}, ee = (e, t, n) => (n = e == null ? {} : O(M(e)), F(t || !e || !e.__esModule ? k(n, "default", {
|
|
14
14
|
value: e,
|
|
15
15
|
enumerable: !0
|
|
16
|
-
}) : n, e)), I = /* @__PURE__ */ function(e) {
|
|
16
|
+
}) : n, e)), I = { popover: "dial-share-popover" }, L = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.View = "view", e.Edit = "edit", e;
|
|
18
|
-
}({}),
|
|
18
|
+
}({}), R = /* @__PURE__ */ function(e) {
|
|
19
19
|
return e.Link = "link", e.Qr = "qr", e;
|
|
20
20
|
}({}), te = "button:not(:disabled), input:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", ne = (e) => Array.from(e?.querySelectorAll(te) ?? []), re = (e) => {
|
|
21
21
|
let [t] = ne(e);
|
|
22
22
|
(t ?? e)?.focus();
|
|
23
|
-
},
|
|
23
|
+
}, z = {
|
|
24
24
|
skeletonColor: "var(--shp-skeleton-color, var(--bg-layer-sunken, #eef1f7))",
|
|
25
25
|
accessTriggerBtn: "_accessTriggerBtn_1ryi2_1",
|
|
26
26
|
accessTriggerBtnOpen: "_accessTriggerBtnOpen_1ryi2_17",
|
|
@@ -37,17 +37,17 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
37
37
|
divider: "_divider_1ryi2_74"
|
|
38
38
|
}, ie = ({ anyoneWithLinkTitle: e, anyoneWithLinkSubtitle: n, access: r, canEditAccess: i, accessViewLabel: a, accessEditLabel: o, accessAriaLabel: s, isOpen: c, onOpenChange: f, onAccessChange: p, onMenuKeyDown: m, triggerRef: _, menuRef: v, titleClassName: y = "dial-small-semi-text", subtitleClassName: x = "dial-small-text", accessTriggerLabelClassName: S = "dial-small-semi-text", accessMenuItemLabelClassName: C = "dial-small-text" }) => {
|
|
39
39
|
let T = [{
|
|
40
|
-
value:
|
|
40
|
+
value: L.View,
|
|
41
41
|
label: a
|
|
42
42
|
}, {
|
|
43
|
-
value:
|
|
43
|
+
value: L.Edit,
|
|
44
44
|
label: o
|
|
45
|
-
}], O = r.includes(
|
|
45
|
+
}], O = r.includes(L.Edit) ? L.Edit : L.View;
|
|
46
46
|
return /* @__PURE__ */ D("div", {
|
|
47
47
|
className: "flex items-center gap-2.5",
|
|
48
48
|
children: [
|
|
49
49
|
/* @__PURE__ */ E("span", {
|
|
50
|
-
className: t("flex size-8 shrink-0 items-center justify-center rounded-full",
|
|
50
|
+
className: t("flex size-8 shrink-0 items-center justify-center rounded-full", z.linkIconBadge),
|
|
51
51
|
children: /* @__PURE__ */ E(w, {
|
|
52
52
|
size: l.MD,
|
|
53
53
|
"aria-hidden": !0,
|
|
@@ -57,10 +57,10 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
57
57
|
/* @__PURE__ */ D("div", {
|
|
58
58
|
className: "min-w-0 flex-1",
|
|
59
59
|
children: [/* @__PURE__ */ E("p", {
|
|
60
|
-
className: t(y, "truncate",
|
|
60
|
+
className: t(y, "truncate", z.anyoneWithLinkTitle),
|
|
61
61
|
children: e
|
|
62
62
|
}), /* @__PURE__ */ E("p", {
|
|
63
|
-
className: t(x,
|
|
63
|
+
className: t(x, z.anyoneWithLinkSubtitle),
|
|
64
64
|
children: n
|
|
65
65
|
})]
|
|
66
66
|
}),
|
|
@@ -84,9 +84,9 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
84
84
|
mark: g.Check,
|
|
85
85
|
selected: n,
|
|
86
86
|
label: e.label,
|
|
87
|
-
labelClassName: t(C,
|
|
87
|
+
labelClassName: t(C, z.accessMenuItemLabel),
|
|
88
88
|
onClick: () => {
|
|
89
|
-
p(e.value ===
|
|
89
|
+
p(e.value === L.Edit ? [L.View, L.Edit] : [L.View]), f(!1);
|
|
90
90
|
}
|
|
91
91
|
}, e.value);
|
|
92
92
|
})
|
|
@@ -96,29 +96,29 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
96
96
|
type: "button",
|
|
97
97
|
"aria-haspopup": "menu",
|
|
98
98
|
"aria-expanded": c,
|
|
99
|
-
className: t("flex h-10 shrink-0 cursor-pointer items-center gap-1.5 whitespace-nowrap rounded-full border px-3 outline-none",
|
|
99
|
+
className: t("flex h-10 shrink-0 cursor-pointer items-center gap-1.5 whitespace-nowrap rounded-full border px-3 outline-none", z.accessTriggerBtn, c && z.accessTriggerBtnOpen),
|
|
100
100
|
children: [/* @__PURE__ */ E("span", {
|
|
101
|
-
className: t(
|
|
101
|
+
className: t(z.accessTriggerLabel, S),
|
|
102
102
|
children: T.find((e) => e.value === O)?.label
|
|
103
103
|
}), /* @__PURE__ */ E(b, {
|
|
104
104
|
size: l.MD,
|
|
105
105
|
stroke: u,
|
|
106
|
-
className: t("shrink-0 transition-transform duration-150 rtl:scale-x-[-1]",
|
|
106
|
+
className: t("shrink-0 transition-transform duration-150 rtl:scale-x-[-1]", z.accessTriggerChevron, c && "rotate-180"),
|
|
107
107
|
"aria-hidden": !0
|
|
108
108
|
})]
|
|
109
109
|
})
|
|
110
110
|
}) : /* @__PURE__ */ E("span", {
|
|
111
111
|
"aria-label": s,
|
|
112
|
-
className: t("flex h-10 shrink-0 items-center whitespace-nowrap rounded-full px-3",
|
|
112
|
+
className: t("flex h-10 shrink-0 items-center whitespace-nowrap rounded-full px-3", z.accessTriggerBtn),
|
|
113
113
|
children: /* @__PURE__ */ E("span", {
|
|
114
|
-
className: t(
|
|
114
|
+
className: t(z.accessTriggerLabel, S),
|
|
115
115
|
children: a
|
|
116
116
|
})
|
|
117
117
|
})
|
|
118
118
|
]
|
|
119
119
|
});
|
|
120
120
|
}, ae = ({ url: e, linkAriaLabel: n, isCopied: r, copyButtonLabel: i, copiedButtonLabel: a, onCopy: o }) => /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ D("div", {
|
|
121
|
-
className: t("flex items-center gap-3 rounded-full px-4 py-2",
|
|
121
|
+
className: t("flex items-center gap-3 rounded-full px-4 py-2", z.linkRow),
|
|
122
122
|
children: [/* @__PURE__ */ E(m, {
|
|
123
123
|
readOnly: !0,
|
|
124
124
|
value: e,
|
|
@@ -196,7 +196,7 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
196
196
|
}, e.isValidElementType = function(e) {
|
|
197
197
|
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
|
|
198
198
|
}, e.typeOf = b;
|
|
199
|
-
})),
|
|
199
|
+
})), B = /* @__PURE__ */ P(((e) => {
|
|
200
200
|
process.env.NODE_ENV !== "production" && (function() {
|
|
201
201
|
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
202
202
|
function b(e) {
|
|
@@ -240,28 +240,28 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
240
240
|
function L(e) {
|
|
241
241
|
return x(e) === c;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function R(e) {
|
|
244
244
|
return x(e) === s;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function te(e) {
|
|
247
247
|
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function ne(e) {
|
|
250
250
|
return x(e) === d;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function re(e) {
|
|
253
253
|
return x(e) === i;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function z(e) {
|
|
256
256
|
return x(e) === h;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function ie(e) {
|
|
259
259
|
return x(e) === m;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function ae(e) {
|
|
262
262
|
return x(e) === r;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function oe(e) {
|
|
265
265
|
return x(e) === o;
|
|
266
266
|
}
|
|
267
267
|
function B(e) {
|
|
@@ -270,11 +270,11 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
270
270
|
function V(e) {
|
|
271
271
|
return x(e) === f;
|
|
272
272
|
}
|
|
273
|
-
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = ee, e.isConcurrentMode = I, e.isContextConsumer = L, e.isContextProvider =
|
|
273
|
+
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = ee, e.isConcurrentMode = I, e.isContextConsumer = L, e.isContextProvider = R, e.isElement = te, e.isForwardRef = ne, e.isFragment = re, e.isLazy = z, e.isMemo = ie, e.isPortal = ae, e.isProfiler = oe, e.isStrictMode = B, e.isSuspense = V, e.isValidElementType = b, e.typeOf = x;
|
|
274
274
|
})();
|
|
275
|
-
})), B = /* @__PURE__ */ P(((e, t) => {
|
|
276
|
-
process.env.NODE_ENV === "production" ? t.exports = oe() : t.exports = z();
|
|
277
275
|
})), V = /* @__PURE__ */ P(((e, t) => {
|
|
276
|
+
process.env.NODE_ENV === "production" ? t.exports = oe() : t.exports = B();
|
|
277
|
+
})), se = /* @__PURE__ */ P(((e, t) => {
|
|
278
278
|
var n = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
279
279
|
function a(e) {
|
|
280
280
|
if (e == null) throw TypeError("Object.assign cannot be called with null or undefined");
|
|
@@ -347,8 +347,8 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
347
347
|
o.resetWarningCache = function() {
|
|
348
348
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
349
349
|
}, t.exports = o;
|
|
350
|
-
})),
|
|
351
|
-
var n =
|
|
350
|
+
})), ce = /* @__PURE__ */ P(((e, t) => {
|
|
351
|
+
var n = V(), r = se(), i = H(), a = U(), o = W(), s = function() {};
|
|
352
352
|
process.env.NODE_ENV !== "production" && (s = function(e) {
|
|
353
353
|
var t = "Warning: " + e;
|
|
354
354
|
typeof console < "u" && console.error(t);
|
|
@@ -606,7 +606,7 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
606
606
|
}
|
|
607
607
|
return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
|
|
608
608
|
};
|
|
609
|
-
})),
|
|
609
|
+
})), le = /* @__PURE__ */ P(((e, t) => {
|
|
610
610
|
var n = H();
|
|
611
611
|
function r() {}
|
|
612
612
|
function i() {}
|
|
@@ -648,9 +648,9 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
648
648
|
};
|
|
649
649
|
})), G = /* @__PURE__ */ ee((/* @__PURE__ */ P(((e, t) => {
|
|
650
650
|
if (process.env.NODE_ENV !== "production") {
|
|
651
|
-
var n =
|
|
652
|
-
t.exports =
|
|
653
|
-
} else t.exports =
|
|
651
|
+
var n = V();
|
|
652
|
+
t.exports = ce()(n.isElement, !0);
|
|
653
|
+
} else t.exports = le()();
|
|
654
654
|
})))(), 1), K = function(e, t) {
|
|
655
655
|
let n = e, r = J[t], i = null, a = 0, o = null, s = [], c = {}, l = function(e, t) {
|
|
656
656
|
a = n * 4 + 17, i = function(e) {
|
|
@@ -734,7 +734,7 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
734
734
|
for (let e = 0; e < i; e += 1) for (let n = 0; n < t.length; n += 1) e < o[n].length && (c[l] = o[n][e], l += 1);
|
|
735
735
|
return c;
|
|
736
736
|
}, v = function(e, t, n) {
|
|
737
|
-
let r =
|
|
737
|
+
let r = ue.getRSBlocks(e, t), i = de();
|
|
738
738
|
for (let t = 0; t < n.length; t += 1) {
|
|
739
739
|
let r = n[t];
|
|
740
740
|
i.put(r.getMode(), 4), i.put(r.getLength(), X.getLengthInBits(r.getMode(), e)), r.write(i);
|
|
@@ -751,16 +751,16 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
751
751
|
let n = null;
|
|
752
752
|
switch (t) {
|
|
753
753
|
case "Numeric":
|
|
754
|
-
n =
|
|
754
|
+
n = fe(e);
|
|
755
755
|
break;
|
|
756
756
|
case "Alphanumeric":
|
|
757
|
-
n =
|
|
757
|
+
n = pe(e);
|
|
758
758
|
break;
|
|
759
759
|
case "Byte":
|
|
760
|
-
n =
|
|
760
|
+
n = me(e);
|
|
761
761
|
break;
|
|
762
762
|
case "Kanji":
|
|
763
|
-
n =
|
|
763
|
+
n = he(e);
|
|
764
764
|
break;
|
|
765
765
|
default: throw "mode:" + t;
|
|
766
766
|
}
|
|
@@ -774,7 +774,7 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
774
774
|
if (n < 1) {
|
|
775
775
|
let e = 1;
|
|
776
776
|
for (; e < 40; e++) {
|
|
777
|
-
let t =
|
|
777
|
+
let t = ue.getRSBlocks(e, r), n = de();
|
|
778
778
|
for (let t = 0; t < s.length; t++) {
|
|
779
779
|
let r = s[t];
|
|
780
780
|
n.put(r.getMode(), 4), n.put(r.getLength(), X.getLengthInBits(r.getMode(), e)), r.write(n);
|
|
@@ -805,7 +805,7 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
805
805
|
}, c.createDataURL = function(e, t) {
|
|
806
806
|
e ||= 2, t = t === void 0 ? e * 4 : t;
|
|
807
807
|
let n = c.getModuleCount() * e + t * 2, r = t, i = n - t;
|
|
808
|
-
return
|
|
808
|
+
return be(n, n, function(t, n) {
|
|
809
809
|
if (r <= t && t < i && r <= n && n < i) {
|
|
810
810
|
let i = Math.floor((t - r) / e), a = Math.floor((n - r) / e);
|
|
811
811
|
return +!c.isDark(a, i);
|
|
@@ -882,7 +882,7 @@ K.stringToBytes = function(e) {
|
|
|
882
882
|
return t;
|
|
883
883
|
}, K.createStringToBytes = function(e, t) {
|
|
884
884
|
let n = function() {
|
|
885
|
-
let n =
|
|
885
|
+
let n = ve(e), r = function() {
|
|
886
886
|
let e = n.read();
|
|
887
887
|
if (e == -1) throw "eof";
|
|
888
888
|
return e;
|
|
@@ -1298,7 +1298,7 @@ var q = {
|
|
|
1298
1298
|
for (let r = 0; r < e.getLength(); r += 1) n[r] ^= Z.gexp(Z.glog(e.getAt(r)) + t);
|
|
1299
1299
|
return Q(n, 0).mod(e);
|
|
1300
1300
|
}, r;
|
|
1301
|
-
},
|
|
1301
|
+
}, ue = function() {
|
|
1302
1302
|
let e = [
|
|
1303
1303
|
[
|
|
1304
1304
|
1,
|
|
@@ -2506,7 +2506,7 @@ var q = {
|
|
|
2506
2506
|
}
|
|
2507
2507
|
return o;
|
|
2508
2508
|
}, n;
|
|
2509
|
-
}(),
|
|
2509
|
+
}(), de = function() {
|
|
2510
2510
|
let e = [], t = 0, n = {};
|
|
2511
2511
|
return n.getBuffer = function() {
|
|
2512
2512
|
return e;
|
|
@@ -2520,7 +2520,7 @@ var q = {
|
|
|
2520
2520
|
let r = Math.floor(t / 8);
|
|
2521
2521
|
e.length <= r && e.push(0), n && (e[r] |= 128 >>> t % 8), t += 1;
|
|
2522
2522
|
}, n;
|
|
2523
|
-
},
|
|
2523
|
+
}, fe = function(e) {
|
|
2524
2524
|
let t = q.MODE_NUMBER, n = e, r = {};
|
|
2525
2525
|
r.getMode = function() {
|
|
2526
2526
|
return t;
|
|
@@ -2540,7 +2540,7 @@ var q = {
|
|
|
2540
2540
|
throw "illegal char :" + e;
|
|
2541
2541
|
};
|
|
2542
2542
|
return r;
|
|
2543
|
-
},
|
|
2543
|
+
}, pe = function(e) {
|
|
2544
2544
|
let t = q.MODE_ALPHA_NUM, n = e, r = {};
|
|
2545
2545
|
r.getMode = function() {
|
|
2546
2546
|
return t;
|
|
@@ -2568,7 +2568,7 @@ var q = {
|
|
|
2568
2568
|
}
|
|
2569
2569
|
};
|
|
2570
2570
|
return r;
|
|
2571
|
-
},
|
|
2571
|
+
}, me = function(e) {
|
|
2572
2572
|
let t = q.MODE_8BIT_BYTE, n = K.stringToBytes(e), r = {};
|
|
2573
2573
|
return r.getMode = function() {
|
|
2574
2574
|
return t;
|
|
@@ -2577,7 +2577,7 @@ var q = {
|
|
|
2577
2577
|
}, r.write = function(e) {
|
|
2578
2578
|
for (let t = 0; t < n.length; t += 1) e.put(n[t], 8);
|
|
2579
2579
|
}, r;
|
|
2580
|
-
},
|
|
2580
|
+
}, he = function(e) {
|
|
2581
2581
|
let t = q.MODE_KANJI, n = K.stringToBytes;
|
|
2582
2582
|
(function(e, t) {
|
|
2583
2583
|
let r = n(e);
|
|
@@ -2599,7 +2599,7 @@ var q = {
|
|
|
2599
2599
|
}
|
|
2600
2600
|
if (n < t.length) throw "illegal char at " + (n + 1);
|
|
2601
2601
|
}, i;
|
|
2602
|
-
},
|
|
2602
|
+
}, ge = function() {
|
|
2603
2603
|
let e = [], t = {};
|
|
2604
2604
|
return t.writeByte = function(t) {
|
|
2605
2605
|
e.push(t & 255);
|
|
@@ -2618,7 +2618,7 @@ var q = {
|
|
|
2618
2618
|
for (let n = 0; n < e.length; n += 1) n > 0 && (t += ","), t += e[n];
|
|
2619
2619
|
return t += "]", t;
|
|
2620
2620
|
}, t;
|
|
2621
|
-
},
|
|
2621
|
+
}, _e = function() {
|
|
2622
2622
|
let e = 0, t = 0, n = 0, r = "", i = {}, a = function(e) {
|
|
2623
2623
|
r += String.fromCharCode(o(e & 63));
|
|
2624
2624
|
}, o = function(e) {
|
|
@@ -2640,7 +2640,7 @@ var q = {
|
|
|
2640
2640
|
}, i.toString = function() {
|
|
2641
2641
|
return r;
|
|
2642
2642
|
}, i;
|
|
2643
|
-
},
|
|
2643
|
+
}, ve = function(e) {
|
|
2644
2644
|
let t = e, n = 0, r = 0, i = 0, a = {};
|
|
2645
2645
|
a.read = function() {
|
|
2646
2646
|
for (; i < 8;) {
|
|
@@ -2664,7 +2664,7 @@ var q = {
|
|
|
2664
2664
|
throw "c:" + e;
|
|
2665
2665
|
};
|
|
2666
2666
|
return a;
|
|
2667
|
-
},
|
|
2667
|
+
}, ye = function(e, t) {
|
|
2668
2668
|
let n = e, r = t, i = Array(e * t), a = {};
|
|
2669
2669
|
a.setPixel = function(e, t, r) {
|
|
2670
2670
|
i[t * n + e] = r;
|
|
@@ -2689,7 +2689,7 @@ var q = {
|
|
|
2689
2689
|
let t = 1 << e, n = (1 << e) + 1, r = e + 1, a = c();
|
|
2690
2690
|
for (let e = 0; e < t; e += 1) a.add(String.fromCharCode(e));
|
|
2691
2691
|
a.add(String.fromCharCode(t)), a.add(String.fromCharCode(n));
|
|
2692
|
-
let s =
|
|
2692
|
+
let s = ge(), l = o(s);
|
|
2693
2693
|
l.write(t, r);
|
|
2694
2694
|
let u = 0, d = String.fromCharCode(i[u]);
|
|
2695
2695
|
for (u += 1; u < i.length;) {
|
|
@@ -2711,12 +2711,12 @@ var q = {
|
|
|
2711
2711
|
}, n;
|
|
2712
2712
|
};
|
|
2713
2713
|
return a;
|
|
2714
|
-
},
|
|
2715
|
-
let r =
|
|
2714
|
+
}, be = function(e, t, n) {
|
|
2715
|
+
let r = ye(e, t);
|
|
2716
2716
|
for (let i = 0; i < t; i += 1) for (let t = 0; t < e; t += 1) r.setPixel(t, i, n(t, i));
|
|
2717
|
-
let i =
|
|
2717
|
+
let i = ge();
|
|
2718
2718
|
r.write(i);
|
|
2719
|
-
let a =
|
|
2719
|
+
let a = _e(), o = i.toByteArray();
|
|
2720
2720
|
for (let e = 0; e < o.length; e += 1) a.writeByte(o[e]);
|
|
2721
2721
|
return a.flush(), "data:image/gif;base64," + a;
|
|
2722
2722
|
};
|
|
@@ -2732,16 +2732,16 @@ function $() {
|
|
|
2732
2732
|
return e;
|
|
2733
2733
|
}, $.apply(null, arguments);
|
|
2734
2734
|
}
|
|
2735
|
-
function
|
|
2735
|
+
function xe(e, t) {
|
|
2736
2736
|
if (e == null) return {};
|
|
2737
|
-
var n, r, i =
|
|
2737
|
+
var n, r, i = Se(e, t);
|
|
2738
2738
|
if (Object.getOwnPropertySymbols) {
|
|
2739
2739
|
var a = Object.getOwnPropertySymbols(e);
|
|
2740
2740
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
2741
2741
|
}
|
|
2742
2742
|
return i;
|
|
2743
2743
|
}
|
|
2744
|
-
function
|
|
2744
|
+
function Se(e, t) {
|
|
2745
2745
|
if (e == null) return {};
|
|
2746
2746
|
var n = {};
|
|
2747
2747
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -2750,7 +2750,7 @@ function xe(e, t) {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
return n;
|
|
2752
2752
|
}
|
|
2753
|
-
var
|
|
2753
|
+
var Ce = [
|
|
2754
2754
|
"bgColor",
|
|
2755
2755
|
"bgD",
|
|
2756
2756
|
"fgD",
|
|
@@ -2759,7 +2759,7 @@ var Se = [
|
|
|
2759
2759
|
"title",
|
|
2760
2760
|
"viewBoxSize",
|
|
2761
2761
|
"xmlns"
|
|
2762
|
-
],
|
|
2762
|
+
], we = {
|
|
2763
2763
|
bgColor: G.default.oneOfType([G.default.object, G.default.string]).isRequired,
|
|
2764
2764
|
bgD: G.default.string.isRequired,
|
|
2765
2765
|
fgColor: G.default.oneOfType([G.default.object, G.default.string]).isRequired,
|
|
@@ -2768,8 +2768,8 @@ var Se = [
|
|
|
2768
2768
|
title: G.default.string,
|
|
2769
2769
|
viewBoxSize: G.default.number.isRequired,
|
|
2770
2770
|
xmlns: G.default.string
|
|
2771
|
-
},
|
|
2772
|
-
var n = e.bgColor, i = e.bgD, a = e.fgD, o = e.fgColor, s = e.size, c = e.title, l = e.viewBoxSize, u = e.xmlns, d = u === void 0 ? "http://www.w3.org/2000/svg" : u, f =
|
|
2771
|
+
}, Te = /*#__PURE__*/ i(function(e, t) {
|
|
2772
|
+
var n = e.bgColor, i = e.bgD, a = e.fgD, o = e.fgColor, s = e.size, c = e.title, l = e.viewBoxSize, u = e.xmlns, d = u === void 0 ? "http://www.w3.org/2000/svg" : u, f = xe(e, Ce);
|
|
2773
2773
|
return /*#__PURE__*/ r.createElement("svg", $({}, f, {
|
|
2774
2774
|
height: s,
|
|
2775
2775
|
ref: t,
|
|
@@ -2784,8 +2784,8 @@ var Se = [
|
|
|
2784
2784
|
fill: o
|
|
2785
2785
|
}));
|
|
2786
2786
|
});
|
|
2787
|
-
|
|
2788
|
-
var
|
|
2787
|
+
Te.displayName = "QRCodeSvg", Te.propTypes = we;
|
|
2788
|
+
var Ee = [
|
|
2789
2789
|
"bgColor",
|
|
2790
2790
|
"fgColor",
|
|
2791
2791
|
"level",
|
|
@@ -2795,21 +2795,21 @@ var Te = [
|
|
|
2795
2795
|
K.stringToBytes = function(e) {
|
|
2796
2796
|
return Array.from(new TextEncoder().encode(e));
|
|
2797
2797
|
};
|
|
2798
|
-
var
|
|
2798
|
+
var De = {
|
|
2799
2799
|
bgColor: G.default.oneOfType([G.default.object, G.default.string]),
|
|
2800
2800
|
fgColor: G.default.oneOfType([G.default.object, G.default.string]),
|
|
2801
2801
|
level: G.default.string,
|
|
2802
2802
|
size: G.default.number,
|
|
2803
2803
|
value: G.default.string.isRequired
|
|
2804
|
-
},
|
|
2805
|
-
var n = e.bgColor, i = n === void 0 ? "#FFFFFF" : n, a = e.fgColor, o = a === void 0 ? "#000000" : a, s = e.level, c = s === void 0 ? "L" : s, l = e.size, u = l === void 0 ? 256 : l, d = e.value, f =
|
|
2804
|
+
}, Oe = /*#__PURE__*/ i(function(e, t) {
|
|
2805
|
+
var n = e.bgColor, i = n === void 0 ? "#FFFFFF" : n, a = e.fgColor, o = a === void 0 ? "#000000" : a, s = e.level, c = s === void 0 ? "L" : s, l = e.size, u = l === void 0 ? 256 : l, d = e.value, f = xe(e, Ee), p = K(0, c);
|
|
2806
2806
|
p.addData(d), p.make();
|
|
2807
2807
|
var m = p.getModuleCount(), h = Array.from({ length: m }, function(e, t) {
|
|
2808
2808
|
return Array.from({ length: m }, function(e, n) {
|
|
2809
2809
|
return p.isDark(t, n);
|
|
2810
2810
|
});
|
|
2811
2811
|
});
|
|
2812
|
-
return /*#__PURE__*/ r.createElement(
|
|
2812
|
+
return /*#__PURE__*/ r.createElement(Te, $({}, f, {
|
|
2813
2813
|
bgColor: i,
|
|
2814
2814
|
bgD: h.map(function(e, t) {
|
|
2815
2815
|
return e.map(function(e, n) {
|
|
@@ -2827,11 +2827,11 @@ var Ee = {
|
|
|
2827
2827
|
viewBoxSize: m
|
|
2828
2828
|
}));
|
|
2829
2829
|
});
|
|
2830
|
-
|
|
2831
|
-
var
|
|
2830
|
+
Oe.displayName = "QRCode", Oe.propTypes = De;
|
|
2831
|
+
var ke = {
|
|
2832
2832
|
container: "_container_hzzl6_1",
|
|
2833
2833
|
qrColor: "_qrColor_hzzl6_6"
|
|
2834
|
-
},
|
|
2834
|
+
}, Ae = ({ value: n, labels: r, styles: i }) => {
|
|
2835
2835
|
let { colors: a } = i ?? {}, o = e({
|
|
2836
2836
|
"--qr-border": a?.borderColor,
|
|
2837
2837
|
"--qr-bg": a?.backgroundColor,
|
|
@@ -2841,17 +2841,17 @@ var Oe = {
|
|
|
2841
2841
|
role: "img",
|
|
2842
2842
|
"aria-label": r.ariaLabel,
|
|
2843
2843
|
style: o,
|
|
2844
|
-
className: t("flex size-40 items-center justify-center self-center rounded-lg border p-3",
|
|
2845
|
-
children: /* @__PURE__ */ E(
|
|
2844
|
+
className: t("flex size-40 items-center justify-center self-center rounded-lg border p-3", ke.container),
|
|
2845
|
+
children: /* @__PURE__ */ E(Oe, {
|
|
2846
2846
|
value: n,
|
|
2847
2847
|
size: 128,
|
|
2848
2848
|
bgColor: "transparent",
|
|
2849
2849
|
fgColor: "currentColor",
|
|
2850
2850
|
"aria-hidden": !0,
|
|
2851
|
-
className: t("size-full",
|
|
2851
|
+
className: t("size-full", ke.qrColor)
|
|
2852
2852
|
})
|
|
2853
2853
|
});
|
|
2854
|
-
},
|
|
2854
|
+
}, je = ({ ariaLabel: e, skeletonColor: t = z.skeletonColor }) => /* @__PURE__ */ D("div", {
|
|
2855
2855
|
role: "status",
|
|
2856
2856
|
"aria-label": e,
|
|
2857
2857
|
className: "flex flex-col gap-3",
|
|
@@ -2918,13 +2918,13 @@ var Oe = {
|
|
|
2918
2918
|
color: t
|
|
2919
2919
|
})
|
|
2920
2920
|
]
|
|
2921
|
-
}),
|
|
2921
|
+
}), Me = "share-popover-qr-button", Ne = "share-popover-back-button", Pe = ({ title: e, view: n, qrButtonLabel: r, linkLabel: i, onViewChange: a, titleClassName: o = "dial-h3-text" }) => /* @__PURE__ */ D("div", {
|
|
2922
2922
|
className: "flex items-center gap-2",
|
|
2923
2923
|
children: [/* @__PURE__ */ E("span", {
|
|
2924
|
-
className: t(o,
|
|
2924
|
+
className: t(o, z.title),
|
|
2925
2925
|
children: e
|
|
2926
|
-
}), n ===
|
|
2927
|
-
id:
|
|
2926
|
+
}), n === R.Link ? /* @__PURE__ */ E(f, {
|
|
2927
|
+
id: Me,
|
|
2928
2928
|
label: r,
|
|
2929
2929
|
iconBefore: /* @__PURE__ */ E(C, {
|
|
2930
2930
|
size: l.SM,
|
|
@@ -2932,9 +2932,9 @@ var Oe = {
|
|
|
2932
2932
|
stroke: u
|
|
2933
2933
|
}),
|
|
2934
2934
|
className: "ms-auto",
|
|
2935
|
-
onClick: () => a(
|
|
2935
|
+
onClick: () => a(R.Qr)
|
|
2936
2936
|
}) : /* @__PURE__ */ E(f, {
|
|
2937
|
-
id:
|
|
2937
|
+
id: Ne,
|
|
2938
2938
|
label: i,
|
|
2939
2939
|
iconBefore: /* @__PURE__ */ E(S, {
|
|
2940
2940
|
size: l.SM,
|
|
@@ -2942,9 +2942,9 @@ var Oe = {
|
|
|
2942
2942
|
stroke: u
|
|
2943
2943
|
}),
|
|
2944
2944
|
className: "ms-auto",
|
|
2945
|
-
onClick: () => a(
|
|
2945
|
+
onClick: () => a(R.Link)
|
|
2946
2946
|
})]
|
|
2947
|
-
}),
|
|
2947
|
+
}), Fe = a(({ url: r, isLoading: i, error: a, access: l, canEditAccess: u, onAccessChange: d, onClose: f, labels: p, className: m, styles: h }) => {
|
|
2948
2948
|
let g = h?.colors, _ = h?.typography, v = e({
|
|
2949
2949
|
"--shp-access-trigger-bg": g?.accessTriggerBackground,
|
|
2950
2950
|
"--shp-access-trigger-border": g?.accessTriggerBorder,
|
|
@@ -2964,8 +2964,8 @@ var Oe = {
|
|
|
2964
2964
|
"--shp-note-text": g?.noteText,
|
|
2965
2965
|
"--shp-divider": g?.divider,
|
|
2966
2966
|
"--shp-skeleton-color": g?.skeletonColor
|
|
2967
|
-
}), { title: y = "Share", qrButtonLabel: b = "QR", linkLabel: x = "Link", anyoneWithLinkTitle: S = "Anyone with the link", anyoneWithLinkSubtitle: C = "in your organization", accessAriaLabel: w = "Link access level", accessViewLabel: O = "Can view", accessEditLabel: k = "Can edit", visibilityNote: A = "This deployment and its updates will be visible to users with the link.", visibilityNoteEdit: j = "Anyone with the link will be able to view and edit this deployment.", copyButtonLabel: M = "Copy", copiedButtonLabel: N = "Copied", linkAriaLabel: P = "Share link", expiryNote: F, qrCodeAriaLabel: ee = "QR code for the share link", loadingLabel: te = "Creating share link…", errorTitle: oe = "Couldn’t create the share link. Please try again.", nestedItemsNote:
|
|
2968
|
-
|
|
2967
|
+
}), { title: y = "Share", qrButtonLabel: b = "QR", linkLabel: x = "Link", anyoneWithLinkTitle: S = "Anyone with the link", anyoneWithLinkSubtitle: C = "in your organization", accessAriaLabel: w = "Link access level", accessViewLabel: O = "Can view", accessEditLabel: k = "Can edit", visibilityNote: A = "This deployment and its updates will be visible to users with the link.", visibilityNoteEdit: j = "Anyone with the link will be able to view and edit this deployment.", copyButtonLabel: M = "Copy", copiedButtonLabel: N = "Copied", linkAriaLabel: P = "Share link", expiryNote: F, qrCodeAriaLabel: ee = "QR code for the share link", loadingLabel: te = "Creating share link…", errorTitle: oe = "Couldn’t create the share link. Please try again.", nestedItemsNote: B } = p ?? {}, [V, se] = c(R.Link), { isCopied: H, copy: U } = n(r ?? ""), [W, ce] = c(!1), le = s(null), G = s(null), K = (e) => {
|
|
2968
|
+
ce(e), e || le.current?.focus();
|
|
2969
2969
|
};
|
|
2970
2970
|
o(() => {
|
|
2971
2971
|
W && G.current?.querySelector("[aria-checked=\"true\"]")?.focus();
|
|
@@ -2984,9 +2984,9 @@ var Oe = {
|
|
|
2984
2984
|
J.current = !1;
|
|
2985
2985
|
return;
|
|
2986
2986
|
}
|
|
2987
|
-
let e =
|
|
2987
|
+
let e = V === R.Qr ? Ne : Me;
|
|
2988
2988
|
document.getElementById(e)?.focus();
|
|
2989
|
-
}, [
|
|
2989
|
+
}, [V]);
|
|
2990
2990
|
let Y = (e) => {
|
|
2991
2991
|
let t = W ? Array.from(G.current?.querySelectorAll("[role=\"menuitemradio\"]") ?? []) : ne(q.current);
|
|
2992
2992
|
if (t.length === 0) return;
|
|
@@ -3000,7 +3000,7 @@ var Oe = {
|
|
|
3000
3000
|
"aria-label": y,
|
|
3001
3001
|
tabIndex: -1,
|
|
3002
3002
|
style: v,
|
|
3003
|
-
className: t("flex w-96 flex-col gap-3 rounded-xl bg-layer-raised px-6 pb-6 pt-4 shadow-lg outline-none", m),
|
|
3003
|
+
className: t("flex w-96 flex-col gap-3 rounded-xl bg-layer-raised px-6 pb-6 pt-4 shadow-lg outline-none", m, I.popover),
|
|
3004
3004
|
onKeyDownCapture: (e) => {
|
|
3005
3005
|
if (e.key === "Tab") {
|
|
3006
3006
|
Y(e);
|
|
@@ -3011,25 +3011,25 @@ var Oe = {
|
|
|
3011
3011
|
e.preventDefault(), K(!1);
|
|
3012
3012
|
return;
|
|
3013
3013
|
}
|
|
3014
|
-
|
|
3014
|
+
V === R.Qr ? (e.preventDefault(), se(R.Link)) : f();
|
|
3015
3015
|
}
|
|
3016
3016
|
},
|
|
3017
3017
|
children: [
|
|
3018
|
-
/* @__PURE__ */ E(
|
|
3018
|
+
/* @__PURE__ */ E(Pe, {
|
|
3019
3019
|
title: y,
|
|
3020
|
-
view:
|
|
3020
|
+
view: V,
|
|
3021
3021
|
qrButtonLabel: b,
|
|
3022
3022
|
linkLabel: x,
|
|
3023
|
-
onViewChange:
|
|
3023
|
+
onViewChange: se
|
|
3024
3024
|
}),
|
|
3025
|
-
/* @__PURE__ */ E("div", { className: t("-mt-1.5 h-px w-full",
|
|
3026
|
-
i && /* @__PURE__ */ E(
|
|
3025
|
+
/* @__PURE__ */ E("div", { className: t("-mt-1.5 h-px w-full", z.divider) }),
|
|
3026
|
+
i && /* @__PURE__ */ E(je, {
|
|
3027
3027
|
ariaLabel: te,
|
|
3028
3028
|
skeletonColor: g?.skeletonColor
|
|
3029
3029
|
}),
|
|
3030
3030
|
!i && a != null && /* @__PURE__ */ E("p", {
|
|
3031
3031
|
role: "alert",
|
|
3032
|
-
className: t(_?.errorClassName ?? "dial-tiny-text", "py-6 text-center",
|
|
3032
|
+
className: t(_?.errorClassName ?? "dial-tiny-text", "py-6 text-center", z.errorText),
|
|
3033
3033
|
children: oe
|
|
3034
3034
|
}),
|
|
3035
3035
|
!i && a == null && r != null && /* @__PURE__ */ D(T, { children: [
|
|
@@ -3050,21 +3050,21 @@ var Oe = {
|
|
|
3050
3050
|
let t = Array.from(G.current?.querySelectorAll("[role=\"menuitemradio\"]") ?? []);
|
|
3051
3051
|
t.length !== 0 && t[(t.indexOf(document.activeElement) + (e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length]?.focus();
|
|
3052
3052
|
},
|
|
3053
|
-
triggerRef:
|
|
3053
|
+
triggerRef: le,
|
|
3054
3054
|
menuRef: G,
|
|
3055
3055
|
titleClassName: _?.anyoneTitleClassName,
|
|
3056
3056
|
subtitleClassName: _?.anyoneSubtitleClassName,
|
|
3057
3057
|
accessTriggerLabelClassName: _?.accessTriggerLabelClassName
|
|
3058
3058
|
}),
|
|
3059
3059
|
/* @__PURE__ */ E("p", {
|
|
3060
|
-
className: t(_?.noteClassName ?? "dial-tiny-text",
|
|
3061
|
-
children: u && l.includes(
|
|
3060
|
+
className: t(_?.noteClassName ?? "dial-tiny-text", z.note),
|
|
3061
|
+
children: u && l.includes(L.Edit) ? j : A
|
|
3062
3062
|
}),
|
|
3063
|
-
|
|
3064
|
-
className: t(_?.nestedItemsNoteClassName ?? "dial-tiny-semi-text",
|
|
3065
|
-
children:
|
|
3063
|
+
B != null && /* @__PURE__ */ E("p", {
|
|
3064
|
+
className: t(_?.nestedItemsNoteClassName ?? "dial-tiny-semi-text", z.note),
|
|
3065
|
+
children: B
|
|
3066
3066
|
}),
|
|
3067
|
-
|
|
3067
|
+
V === R.Qr ? /* @__PURE__ */ E(Ae, {
|
|
3068
3068
|
value: r,
|
|
3069
3069
|
labels: { ariaLabel: ee }
|
|
3070
3070
|
}) : /* @__PURE__ */ E(ae, {
|
|
@@ -3076,7 +3076,7 @@ var Oe = {
|
|
|
3076
3076
|
onCopy: U
|
|
3077
3077
|
}),
|
|
3078
3078
|
F != null && /* @__PURE__ */ E("p", {
|
|
3079
|
-
className: t(_?.noteClassName ?? "dial-tiny-text",
|
|
3079
|
+
className: t(_?.noteClassName ?? "dial-tiny-text", z.note),
|
|
3080
3080
|
children: F
|
|
3081
3081
|
})
|
|
3082
3082
|
] })
|
|
@@ -3084,4 +3084,4 @@ var Oe = {
|
|
|
3084
3084
|
});
|
|
3085
3085
|
});
|
|
3086
3086
|
//#endregion
|
|
3087
|
-
export {
|
|
3087
|
+
export { Ae as QrCode, I as SHARE_CLASS, L as ShareLinkAccess, Fe as SharePopover, R as SharePopoverView };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-share",
|
|
3
3
|
"description": "Share popover UI component and share-link types for AI DIAL catalog deployments",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.61",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"react-qr-code": "^2.2.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
24
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.61",
|
|
25
25
|
"react": "^19.2.8",
|
|
26
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
26
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.9"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|