@marimo-team/islands 0.24.3-dev39 → 0.24.3-dev40
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/dist/{ConnectedDataExplorerComponent-DeiKXaGB.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1062 -1062
- package/dist/ErrorBoundary-CacTZz7K.js +200 -0
- package/dist/{abnfDiagram-VCTEODGH-DKNGRyhn.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +2 -2
- package/dist/{any-language-editor-BdvsE_1G.js → any-language-editor-CycIVIeP.js} +13 -13
- package/dist/{architectureDiagram-5GKGNRK7-C9oCEyV-.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +1 -1
- package/dist/{html-to-image-CZm_DMIE.js → cells-BSgNCBZ8.js} +5177 -8831
- package/dist/{chat-ui-D15itIKJ.js → chat-ui-CygzVJ9s.js} +1345 -1394
- package/dist/{check-mcQyZmFG.js → check-B7cIK6gb.js} +1 -1
- package/dist/{chunk-IMKFNOWR-ByL0a1rh.js → chunk-IMKFNOWR-BfwTebD0.js} +1 -1
- package/dist/{chunk-SHT3W25Y-D1Nb5X1c.js → chunk-SHT3W25Y-BspJEJ5H.js} +1 -1
- package/dist/{chunk-SVP7TREG-BShKxcfD.js → chunk-SVP7TREG-DX3rFNTe.js} +1 -1
- package/dist/{chunk-TICWLB2K-zpDbKPt8.js → chunk-TICWLB2K-fVF7Uujg.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-qcsoIIQw.js → classDiagram-ZZMXUADV-Fe-V14Sc.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-CAgMct5x.js → classDiagram-v2-VYDZK3BY-xTDg7lOs.js} +2 -2
- package/dist/code-visibility-BBNwvBcV.js +138 -0
- package/dist/{common-eNTtBSo2.js → common-DM3lblo7.js} +5531 -5730
- package/dist/copy-icon-CLdENY__.js +190 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-BzBXigwN.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-B-75J283.js → dagre-GXQ25YYZ-xHNAUTyG.js} +1 -1
- package/dist/{data-grid-overlay-editor-DMu5X3F1.js → data-grid-overlay-editor-DjRvSwGI.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-Bzr5oWc0.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CVIH_HJ_.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +1 -1
- package/dist/{diagram-VX7I27RA-BmoMwYLC.js → diagram-VX7I27RA-BMwGFVD6.js} +1 -1
- package/dist/{diagram-Z3DM3KII-BW1w6mnj.js → diagram-Z3DM3KII--KLDR9Pl.js} +1 -1
- package/dist/dialog-CgNq6y9-.js +94 -0
- package/dist/{objectWithoutPropertiesLoose-BbiTb8zy.js → dist-CO1AwwG_.js} +516 -572
- package/dist/{dropdown-menu-WMrB1UnI.js → dropdown-menu-CZgjYSAh.js} +1437 -2793
- package/dist/{ebnfDiagram-PWID7BFC-90Q6gkC0.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-BZkLy3TR.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1 -1
- package/dist/error-banner-B94dcDmP.js +391 -0
- package/dist/error-entries-iJn-Nryx.js +56 -0
- package/dist/{esm-qM9GvHZi.js → esm-h8f7-1CJ.js} +316 -315
- package/dist/feedback-button-BkFFL-wb.js +380 -0
- package/dist/{flowDiagram-HODETNUW-CD1F_wj5.js → flowDiagram-HODETNUW-6dMdB8pR.js} +2 -2
- package/dist/{formats-B-gajYGs.js → formats-BR5iGb4s.js} +1 -1
- package/dist/{glide-data-editor-DzFEatOq.js → glide-data-editor-CeAOHG6x.js} +117 -116
- package/dist/{glide-utils-4WmLlefP.js → glide-utils-B3rUT5PI.js} +2 -2
- package/dist/globals-C74RodJy.js +19 -0
- package/dist/html-to-image-kpuRfdfZ.js +3253 -0
- package/dist/{infoDiagram-27XIBGKW-t0zIIRVa.js → infoDiagram-27XIBGKW-BagtCX_5.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DtQUIYgx.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CUMmwuNB.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +1 -1
- package/dist/{label-e37ixur5.js → label-BJ49YTvk.js} +1 -1
- package/dist/main.js +4717 -4728
- package/dist/{mermaid-CMLxoJ0m.js → mermaid-DPNuhemn.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-DnbkiQla.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +1 -1
- package/dist/{number-overlay-editor-lGqRHkFt.js → number-overlay-editor-DDyIkEk3.js} +1 -1
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
- package/dist/{pegDiagram-XKGWAZYB-qgqAYMdv.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-DJUB6w6B.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +1 -1
- package/dist/{process-output-DuupNR0m.js → process-output-DFe2tVIY.js} +7 -6
- package/dist/{railroadDiagram-O6MQD6OU-C0dtw4sR.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DqaTsUuC.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +1 -1
- package/dist/{reveal-component-CNqmC7b6.js → reveal-component-CRy68FxJ.js} +625 -625
- package/dist/{select-UMOSCa3W.js → select-C6plhmZr.js} +308 -553
- package/dist/{sequenceDiagram-WJ2MYXX4-D2NyWGuu.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +1 -1
- package/dist/{spec-BiD5y7ft.js → spec-CAYwFeV6.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-JChw35bc.js → stateDiagram-D77RDMKH-orN6AwMx.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-BfVY7OxA.js → stateDiagram-v2-MP3YSRHH-o05_rJN8.js} +2 -2
- package/dist/{swimlanes-42K2YHIH-eAB6utyY.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-Cnpd2YtA.js → swimlanesDiagram-VR7AAH4N-D_nFQfRc.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-DlnODX3U.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +1 -1
- package/dist/{toDate-0cxDmdsp.js → toDate-WXg1yLcI.js} +2 -2
- package/dist/toast-DvY70eFX.js +1834 -0
- package/dist/tooltip-qB8NlSqV.js +1742 -0
- package/dist/{schemas-BDZr-nP0.js → use-restore-focus-D5D9xEjZ.js} +1385 -1166
- package/dist/{useAsyncData-DCIhDLCe.js → useAsyncData-BD6AStMt.js} +1 -1
- package/dist/{useDateFormatter-BKpQHt-W.js → useDateFormatter-BRTPsUK7.js} +2 -2
- package/dist/{useDeepCompareMemoize-CLaZB7Gc.js → useDeepCompareMemoize-D_HNdyvI.js} +1 -1
- package/dist/{useLifecycle-C1ViBACC.js → useLifecycle-DPgiiwwU.js} +2 -2
- package/dist/useNumberFormatter-BfDpa21j.js +251 -0
- package/dist/{useTheme-Da9LJvrQ.js → useTheme-DzXmYZ5V.js} +83 -83
- package/dist/{vega-component-Bt6d8B4Q.js → vega-component-D0QXopU8.js} +27 -27
- package/dist/{vennDiagram-4TSXK5OY-B_m5KxUg.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-Dw-Lgv3D.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-BjfRms1e.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +53 -33
- package/src/components/ui/use-toast.ts +8 -0
- package/dist/ErrorBoundary-B3IKS4qY.js +0 -125
- package/dist/copy-C0N4m1lm.js +0 -141
- package/dist/dist-6ChWbo8z.js +0 -1360
- package/dist/error-banner-hCaH06e3.js +0 -611
- package/dist/tooltip-CdE8k0pS.js +0 -390
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { t } from "./button-DdXAm8iz.js";
|
|
3
|
-
import { t as n } from "./react-ofJbxM4x.js";
|
|
4
|
-
import { t as r } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
-
import { u as i } from "./dist-6ChWbo8z.js";
|
|
6
|
-
import { t as a } from "./jsx-runtime-DgDPJV9S.js";
|
|
7
|
-
import { i as o } from "./useTheme-Da9LJvrQ.js";
|
|
8
|
-
var s = i("plus", [["path", {
|
|
9
|
-
d: "M5 12h14",
|
|
10
|
-
key: "1ays0h"
|
|
11
|
-
}], ["path", {
|
|
12
|
-
d: "M12 5v14",
|
|
13
|
-
key: "s699le"
|
|
14
|
-
}]]), c = r(), l = /* @__PURE__ */ e(n()), u = (0, l.createContext)(null), d = {
|
|
15
|
-
didCatch: !1,
|
|
16
|
-
error: null
|
|
17
|
-
}, f = class extends l.Component {
|
|
18
|
-
constructor(e) {
|
|
19
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = d;
|
|
20
|
-
}
|
|
21
|
-
static getDerivedStateFromError(e) {
|
|
22
|
-
return {
|
|
23
|
-
didCatch: !0,
|
|
24
|
-
error: e
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
resetErrorBoundary() {
|
|
28
|
-
let { error: e } = this.state;
|
|
29
|
-
if (e !== null) {
|
|
30
|
-
var t, n, r = [...arguments];
|
|
31
|
-
(t = (n = this.props).onReset) == null || t.call(n, {
|
|
32
|
-
args: r,
|
|
33
|
-
reason: "imperative-api"
|
|
34
|
-
}), this.setState(d);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
componentDidCatch(e, t) {
|
|
38
|
-
var n, r;
|
|
39
|
-
(n = (r = this.props).onError) == null || n.call(r, e, t);
|
|
40
|
-
}
|
|
41
|
-
componentDidUpdate(e, t) {
|
|
42
|
-
let { didCatch: n } = this.state, { resetKeys: r } = this.props;
|
|
43
|
-
if (n && t.error !== null && p(e.resetKeys, r)) {
|
|
44
|
-
var i, a;
|
|
45
|
-
(i = (a = this.props).onReset) == null || i.call(a, {
|
|
46
|
-
next: r,
|
|
47
|
-
prev: e.resetKeys,
|
|
48
|
-
reason: "keys"
|
|
49
|
-
}), this.setState(d);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
render() {
|
|
53
|
-
let { children: e, fallbackRender: t, FallbackComponent: n, fallback: r } = this.props, { didCatch: i, error: a } = this.state, o = e;
|
|
54
|
-
if (i) {
|
|
55
|
-
let e = {
|
|
56
|
-
error: a,
|
|
57
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
58
|
-
};
|
|
59
|
-
if (typeof t == "function") o = t(e);
|
|
60
|
-
else if (n) o = (0, l.createElement)(n, e);
|
|
61
|
-
else if (r !== void 0) o = r;
|
|
62
|
-
else throw a;
|
|
63
|
-
}
|
|
64
|
-
return (0, l.createElement)(u.Provider, { value: {
|
|
65
|
-
didCatch: i,
|
|
66
|
-
error: a,
|
|
67
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
68
|
-
} }, o);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
function p() {
|
|
72
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
73
|
-
return e.length !== t.length || e.some((e, n) => !Object.is(e, t[n]));
|
|
74
|
-
}
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region src/components/editor/boundary/ErrorBoundary.tsx
|
|
77
|
-
var m = a(), h = (e) => {
|
|
78
|
-
let t = (0, c.c)(2), n;
|
|
79
|
-
return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, m.jsx)(f, {
|
|
80
|
-
FallbackComponent: g,
|
|
81
|
-
children: e.children
|
|
82
|
-
}), t[0] = e.children, t[1] = n), n;
|
|
83
|
-
}, g = (e) => {
|
|
84
|
-
let n = (0, c.c)(9), r;
|
|
85
|
-
n[0] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, m.jsx)("h1", {
|
|
86
|
-
className: "text-2xl font-bold",
|
|
87
|
-
children: "Something went wrong"
|
|
88
|
-
}), n[0] = r) : r = n[0];
|
|
89
|
-
let i = e.error?.message, a;
|
|
90
|
-
n[1] === i ? a = n[2] : (a = /* @__PURE__ */ (0, m.jsx)("pre", {
|
|
91
|
-
className: "text-xs bg-muted/40 border rounded-md p-4 max-w-[80%] whitespace-normal",
|
|
92
|
-
children: i
|
|
93
|
-
}), n[1] = i, n[2] = a);
|
|
94
|
-
let s;
|
|
95
|
-
n[3] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, m.jsxs)("div", { children: [
|
|
96
|
-
"If this is an issue with marimo, please report it on",
|
|
97
|
-
" ",
|
|
98
|
-
/* @__PURE__ */ (0, m.jsx)("a", {
|
|
99
|
-
href: o.issuesPage,
|
|
100
|
-
target: "_blank",
|
|
101
|
-
className: "underline",
|
|
102
|
-
children: "GitHub"
|
|
103
|
-
}),
|
|
104
|
-
"."
|
|
105
|
-
] }), n[3] = s) : s = n[3];
|
|
106
|
-
let l;
|
|
107
|
-
n[4] === e.resetErrorBoundary ? l = n[5] : (l = /* @__PURE__ */ (0, m.jsx)(t, {
|
|
108
|
-
"data-testid": "reset-error-boundary-button",
|
|
109
|
-
onClick: e.resetErrorBoundary,
|
|
110
|
-
variant: "outline",
|
|
111
|
-
children: "Try again"
|
|
112
|
-
}), n[4] = e.resetErrorBoundary, n[5] = l);
|
|
113
|
-
let u;
|
|
114
|
-
return n[6] !== a || n[7] !== l ? (u = /* @__PURE__ */ (0, m.jsxs)("div", {
|
|
115
|
-
className: "flex-1 flex items-center justify-center flex-col space-y-4 max-w-2xl mx-auto px-6",
|
|
116
|
-
children: [
|
|
117
|
-
r,
|
|
118
|
-
a,
|
|
119
|
-
s,
|
|
120
|
-
l
|
|
121
|
-
]
|
|
122
|
-
}), n[6] = a, n[7] = l, n[8] = u) : u = n[8], u;
|
|
123
|
-
};
|
|
124
|
-
//#endregion
|
|
125
|
-
export { s as n, h as t };
|
package/dist/copy-C0N4m1lm.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { g as e } from "./button-DdXAm8iz.js";
|
|
3
|
-
import { t } from "./react-ofJbxM4x.js";
|
|
4
|
-
import { t as n } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
-
import { u as r } from "./dist-6ChWbo8z.js";
|
|
6
|
-
n(), t();
|
|
7
|
-
var i = 1, a = 1e4, o = 0;
|
|
8
|
-
function s() {
|
|
9
|
-
return o = (o + 1) % Number.MAX_VALUE, o.toString();
|
|
10
|
-
}
|
|
11
|
-
var c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), u = (e) => {
|
|
12
|
-
if (c.has(e)) return;
|
|
13
|
-
let t = setTimeout(() => {
|
|
14
|
-
c.delete(e), m({
|
|
15
|
-
type: "REMOVE_TOAST",
|
|
16
|
-
toastId: e
|
|
17
|
-
});
|
|
18
|
-
}, a);
|
|
19
|
-
c.set(e, t);
|
|
20
|
-
}, d = (e, t) => {
|
|
21
|
-
switch (t.type) {
|
|
22
|
-
case "ADD_TOAST": return {
|
|
23
|
-
...e,
|
|
24
|
-
toasts: [t.toast, ...e.toasts].slice(0, i)
|
|
25
|
-
};
|
|
26
|
-
case "UPDATE_TOAST": return {
|
|
27
|
-
...e,
|
|
28
|
-
toasts: e.toasts.map((e) => e.id === t.toast.id ? {
|
|
29
|
-
...e,
|
|
30
|
-
...t.toast
|
|
31
|
-
} : e)
|
|
32
|
-
};
|
|
33
|
-
case "DISMISS_TOAST": {
|
|
34
|
-
let { toastId: n } = t;
|
|
35
|
-
return n ? u(n) : e.toasts.forEach((e) => {
|
|
36
|
-
u(e.id);
|
|
37
|
-
}), {
|
|
38
|
-
...e,
|
|
39
|
-
toasts: e.toasts.map((e) => e.id === n || n === void 0 ? {
|
|
40
|
-
...e,
|
|
41
|
-
open: !1
|
|
42
|
-
} : e)
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
case "REMOVE_TOAST": return t.toastId === void 0 ? {
|
|
46
|
-
...e,
|
|
47
|
-
toasts: []
|
|
48
|
-
} : {
|
|
49
|
-
...e,
|
|
50
|
-
toasts: e.toasts.filter((e) => e.id !== t.toastId)
|
|
51
|
-
};
|
|
52
|
-
case "UPSERT_TOAST": return e.toasts.findIndex((e) => e.id === t.toast.id) > -1 ? {
|
|
53
|
-
...e,
|
|
54
|
-
toasts: e.toasts.map((e) => e.id === t.toast.id ? {
|
|
55
|
-
...e,
|
|
56
|
-
...t.toast
|
|
57
|
-
} : e)
|
|
58
|
-
} : {
|
|
59
|
-
...e,
|
|
60
|
-
toasts: [t.toast, ...e.toasts].slice(0, i)
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}, f = /* @__PURE__ */ new Set(), p = { toasts: [] };
|
|
64
|
-
function m(e) {
|
|
65
|
-
p = d(p, e), f.forEach((e) => {
|
|
66
|
-
e(p);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
function h({ id: e, once: t, ...n }) {
|
|
70
|
-
let r = e || s(), i = t === !0 && e !== void 0, a = (e) => m({
|
|
71
|
-
type: "UPDATE_TOAST",
|
|
72
|
-
toast: {
|
|
73
|
-
...e,
|
|
74
|
-
id: r
|
|
75
|
-
}
|
|
76
|
-
}), o = () => m({
|
|
77
|
-
type: "DISMISS_TOAST",
|
|
78
|
-
toastId: r
|
|
79
|
-
}), c = (e) => m({
|
|
80
|
-
type: "UPSERT_TOAST",
|
|
81
|
-
toast: {
|
|
82
|
-
...e,
|
|
83
|
-
id: r,
|
|
84
|
-
open: !0,
|
|
85
|
-
onOpenChange: (e) => {
|
|
86
|
-
e || o();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}), u = i && l.has(r);
|
|
90
|
-
return i && l.add(r), u || m({
|
|
91
|
-
type: "ADD_TOAST",
|
|
92
|
-
toast: {
|
|
93
|
-
...n,
|
|
94
|
-
id: r,
|
|
95
|
-
open: !0,
|
|
96
|
-
onOpenChange: (e) => {
|
|
97
|
-
e || o();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}), {
|
|
101
|
-
id: r,
|
|
102
|
-
dismiss: o,
|
|
103
|
-
update: a,
|
|
104
|
-
upsert: c
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
var g = r("copy", [["rect", {
|
|
108
|
-
width: "14",
|
|
109
|
-
height: "14",
|
|
110
|
-
x: "8",
|
|
111
|
-
y: "8",
|
|
112
|
-
rx: "2",
|
|
113
|
-
ry: "2",
|
|
114
|
-
key: "17jyea"
|
|
115
|
-
}], ["path", {
|
|
116
|
-
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
117
|
-
key: "zix9uf"
|
|
118
|
-
}]]);
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region src/utils/copy.ts
|
|
121
|
-
async function _(t, n) {
|
|
122
|
-
if (navigator.clipboard === void 0) {
|
|
123
|
-
e.warn("navigator.clipboard is not supported"), window.prompt("Copy to clipboard: Ctrl+C, Enter", t);
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
if (n && navigator.clipboard.write) try {
|
|
127
|
-
let e = new ClipboardItem({
|
|
128
|
-
"text/html": new Blob([n], { type: "text/html" }),
|
|
129
|
-
"text/plain": new Blob([t], { type: "text/plain" })
|
|
130
|
-
});
|
|
131
|
-
await navigator.clipboard.write([e]);
|
|
132
|
-
return;
|
|
133
|
-
} catch {
|
|
134
|
-
e.warn("Failed to write rich text, falling back to plain text");
|
|
135
|
-
}
|
|
136
|
-
await navigator.clipboard.writeText(t).catch(() => {
|
|
137
|
-
e.warn("Failed to copy to clipboard using navigator.clipboard"), window.prompt("Copy to clipboard: Ctrl+C, Enter", t);
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
//#endregion
|
|
141
|
-
export { g as n, h as r, _ as t };
|