@marimo-team/islands 0.26.1-dev84 → 0.26.1-dev85
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-CO9uVewH.js → ConnectedDataExplorerComponent-BJBdnd0O.js} +9 -9
- package/dist/{ErrorBoundary-T8CwNebX.js → ErrorBoundary-BbX80BeS.js} +1 -1
- package/dist/{chat-ui-CjZbdpzb.js → chat-ui-BbJTFtyC.js} +524 -523
- package/dist/circle-question-mark-evCnVIut.js +19 -0
- package/dist/{code-visibility-BBgRhs2A.js → code-visibility-SiV7swyv.js} +5 -5
- package/dist/{common-BF30ifb8.js → common-CaZHHn2u.js} +656 -655
- package/dist/{data-grid-overlay-editor-ChntsIBb.js → data-grid-overlay-editor-B_CloII8.js} +1 -1
- package/dist/{error-entries-CsXAdy1j.js → error-entries-DhZotdzQ.js} +2 -1
- package/dist/{config-CShkLThS.js → export-context-CkgZeARR.js} +80 -70
- package/dist/{feedback-button-nmOvfn22.js → feedback-button-Dcyqig9t.js} +3 -3
- package/dist/{formats-BRDSQgKN.js → formats-CcQrzFo8.js} +2 -2
- package/dist/{glide-data-editor-SkR9hqZZ.js → glide-data-editor-axxUUflO.js} +3 -3
- package/dist/{globals-BjiU5aEs.js → globals-IsQZV-Pn.js} +1 -1
- package/dist/{html-to-image-CwpapHNl.js → html-to-image-B8erjaaD.js} +3890 -3913
- package/dist/{loader-qPmiRXZd.js → loader-CGrYn73j.js} +421 -373
- package/dist/main.js +6443 -6453
- package/dist/{number-overlay-editor-GjrMTG9X.js → number-overlay-editor-CNaE6yaF.js} +1 -1
- package/dist/{process-output-ztSj9cDn.js → process-output-C-2_O5Ry.js} +2 -2
- package/dist/{reveal-component-BrZbx6s7.js → reveal-component-CA2JlAJ6.js} +3 -3
- package/dist/{static-state-DhVFm8Z6.js → static-state-iw0PrHK4.js} +22 -33
- package/dist/toDate-BZg-byuO.js +13 -0
- package/dist/{vega-component-BxJFcD2G.js → vega-component-BzNDFvQf.js} +207 -203
- package/package.json +1 -1
- package/src/plugins/core/__test__/trusted-url.test.ts +53 -1
- package/src/plugins/core/trusted-url.ts +59 -1
- package/src/plugins/impl/vega/__tests__/resolve-data.test.ts +147 -2
- package/src/plugins/impl/vega/loader.ts +49 -2
- package/src/plugins/impl/vega/vega-component.tsx +3 -0
|
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { t } from "./react-Bgs_wQh3.js";
|
|
3
3
|
import { t as n } from "./react-dom-DdqGVp5N.js";
|
|
4
4
|
import { c as r, l as i, u as a } from "./data-grid-types-DBNnjiYJ.js";
|
|
5
|
-
import { a as o, i as s, n as c, r as l } from "./glide-data-editor-
|
|
5
|
+
import { a as o, i as s, n as c, r as l } from "./glide-data-editor-axxUUflO.js";
|
|
6
6
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js
|
|
7
7
|
var u = /* @__PURE__ */ e(t(), 1), d = /* @__PURE__ */ e(n(), 1), f = /*#__PURE__*/ o("div")({
|
|
8
8
|
name: "DataGridOverlayEditorStyle",
|
|
@@ -15,7 +15,8 @@ import { t as ue } from "./purify.es-DmnrIjg4.js";
|
|
|
15
15
|
import { r as de } from "./arrays-DoQ-AILx.js";
|
|
16
16
|
import { t as fe } from "./createReducer-BUQhgLOI.js";
|
|
17
17
|
import { H as pe, N as me, P as he, _ as ge } from "./dist-BIaGGUbU.js";
|
|
18
|
-
import { a as _e, i as ve, l as ye,
|
|
18
|
+
import { a as _e, i as ve, l as ye, u as be } from "./static-state-iw0PrHK4.js";
|
|
19
|
+
import { t as xe } from "./toDate-BZg-byuO.js";
|
|
19
20
|
import { t as Se } from "./capabilities-ba3Dyv8n.js";
|
|
20
21
|
var Ce = c("external-link", [
|
|
21
22
|
["path", {
|
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
2
2
|
import { g as t } from "./button-Z2R2272J.js";
|
|
3
|
-
import {
|
|
4
|
-
import { Ct as r, Kt as i, f as a, h as o } from "./use-restore-focus-DJ_-uSn_.js";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
cy: "12",
|
|
10
|
-
r: "10",
|
|
11
|
-
key: "1mglay"
|
|
12
|
-
}],
|
|
13
|
-
["path", {
|
|
14
|
-
d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",
|
|
15
|
-
key: "1u773s"
|
|
16
|
-
}],
|
|
17
|
-
["path", {
|
|
18
|
-
d: "M12 17h.01",
|
|
19
|
-
key: "p32p05"
|
|
20
|
-
}]
|
|
21
|
-
]), d = class {
|
|
3
|
+
import { t as n } from "./compiler-runtime-C5KHtL5D.js";
|
|
4
|
+
import { Ct as r, Kt as i, f as a, h as o, y as s } from "./use-restore-focus-DJ_-uSn_.js";
|
|
5
|
+
import "./useEvent-BoN7U38T.js";
|
|
6
|
+
import { i as c, n as l, r as u, u as d } from "./static-state-iw0PrHK4.js";
|
|
7
|
+
//#region src/utils/Deferred.ts
|
|
8
|
+
var f = class {
|
|
22
9
|
promise;
|
|
23
10
|
resolve;
|
|
24
11
|
reject;
|
|
@@ -29,17 +16,17 @@ var u = n("circle-question-mark", [
|
|
|
29
16
|
this.reject = (e) => {
|
|
30
17
|
this.status = "rejected", t(e);
|
|
31
18
|
}, this.resolve = (t) => {
|
|
32
|
-
this.status = "resolved",
|
|
19
|
+
this.status = "resolved", p(t) || (this.value = t), e(t);
|
|
33
20
|
};
|
|
34
21
|
});
|
|
35
22
|
}
|
|
36
23
|
};
|
|
37
|
-
function
|
|
24
|
+
function p(e) {
|
|
38
25
|
return typeof e == "object" && !!e && "then" in e && typeof e.then == "function";
|
|
39
26
|
}
|
|
40
27
|
//#endregion
|
|
41
28
|
//#region ../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/_u64.js
|
|
42
|
-
var
|
|
29
|
+
var m = /* @__PURE__ */ e(((e) => {
|
|
43
30
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.toBig = e.shrSL = e.shrSH = e.rotrSL = e.rotrSH = e.rotrBL = e.rotrBH = e.rotr32L = e.rotr32H = e.rotlSL = e.rotlSH = e.rotlBL = e.rotlBH = e.add5L = e.add5H = e.add4L = e.add4H = e.add3L = e.add3H = void 0, e.add = v, e.fromBig = r, e.split = i;
|
|
44
31
|
var t = /* @__PURE__ */ BigInt(2 ** 32 - 1), n = /* @__PURE__ */ BigInt(32);
|
|
45
32
|
function r(e, r = !1) {
|
|
@@ -127,11 +114,11 @@ var p = /* @__PURE__ */ e(((e) => {
|
|
|
127
114
|
add5H: w,
|
|
128
115
|
add5L: C
|
|
129
116
|
};
|
|
130
|
-
})), m = /* @__PURE__ */ e(((e) => {
|
|
131
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.crypto = void 0, e.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
132
117
|
})), h = /* @__PURE__ */ e(((e) => {
|
|
133
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.
|
|
134
|
-
|
|
118
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.crypto = void 0, e.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
119
|
+
})), g = /* @__PURE__ */ e(((e) => {
|
|
120
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.wrapXOFConstructorWithOpts = e.wrapConstructorWithOpts = e.wrapConstructor = e.Hash = e.nextTick = e.swap32IfBE = e.byteSwapIfBE = e.swap8IfBE = e.isLE = void 0, e.isBytes = n, e.anumber = r, e.abytes = i, e.ahash = a, e.aexists = o, e.aoutput = s, e.u8 = c, e.u32 = l, e.clean = u, e.createView = d, e.rotr = f, e.rotl = p, e.byteSwap = m, e.byteSwap32 = g, e.bytesToHex = y, e.hexToBytes = S, e.asyncLoop = C, e.utf8ToBytes = w, e.bytesToUtf8 = T, e.toBytes = E, e.kdfInputToBytes = D, e.concatBytes = O, e.checkOpts = k, e.createHasher = A, e.createOptHasher = j, e.createXOFer = M, e.randomBytes = N;
|
|
121
|
+
var t = h();
|
|
135
122
|
function n(e) {
|
|
136
123
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
137
124
|
}
|
|
@@ -174,12 +161,12 @@ var p = /* @__PURE__ */ e(((e) => {
|
|
|
174
161
|
return e << t | e >>> 32 - t >>> 0;
|
|
175
162
|
}
|
|
176
163
|
e.isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
177
|
-
function
|
|
164
|
+
function m(e) {
|
|
178
165
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
179
166
|
}
|
|
180
|
-
e.swap8IfBE = e.isLE ? (e) => e : (e) =>
|
|
167
|
+
e.swap8IfBE = e.isLE ? (e) => e : (e) => m(e), e.byteSwapIfBE = e.swap8IfBE;
|
|
181
168
|
function g(e) {
|
|
182
|
-
for (let t = 0; t < e.length; t++) e[t] =
|
|
169
|
+
for (let t = 0; t < e.length; t++) e[t] = m(e[t]);
|
|
183
170
|
return e;
|
|
184
171
|
}
|
|
185
172
|
e.swap32IfBE = e.isLE ? (e) => e : g;
|
|
@@ -277,16 +264,16 @@ var p = /* @__PURE__ */ e(((e) => {
|
|
|
277
264
|
if (t.crypto && typeof t.crypto.randomBytes == "function") return Uint8Array.from(t.crypto.randomBytes(e));
|
|
278
265
|
throw Error("crypto.getRandomValues must be defined");
|
|
279
266
|
}
|
|
280
|
-
})),
|
|
267
|
+
})), _ = /* @__PURE__ */ e(((e) => {
|
|
281
268
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shake256 = e.shake128 = e.keccak_512 = e.keccak_384 = e.keccak_256 = e.keccak_224 = e.sha3_512 = e.sha3_384 = e.sha3_256 = e.sha3_224 = e.Keccak = void 0, e.keccakP = y;
|
|
282
|
-
var t =
|
|
269
|
+
var t = m(), n = g(), r = BigInt(0), i = BigInt(1), a = BigInt(2), o = BigInt(7), s = BigInt(256), c = BigInt(113), l = [], u = [], d = [];
|
|
283
270
|
for (let e = 0, t = i, n = 1, f = 0; e < 24; e++) {
|
|
284
271
|
[n, f] = [f, (2 * n + 3 * f) % 5], l.push(2 * (5 * f + n)), u.push((e + 1) * (e + 2) / 2 % 64);
|
|
285
272
|
let p = r;
|
|
286
273
|
for (let e = 0; e < 7; e++) t = (t << i ^ (t >> o) * c) % s, t & a && (p ^= i << (i << /* @__PURE__ */ BigInt(e)) - i);
|
|
287
274
|
d.push(p);
|
|
288
275
|
}
|
|
289
|
-
var f = (0, t.split)(d, !0),
|
|
276
|
+
var f = (0, t.split)(d, !0), p = f[0], h = f[1], _ = (e, n, r) => r > 32 ? (0, t.rotlBH)(e, n, r) : (0, t.rotlSH)(e, n, r), v = (e, n, r) => r > 32 ? (0, t.rotlBL)(e, n, r) : (0, t.rotlSL)(e, n, r);
|
|
290
277
|
function y(e, t = 24) {
|
|
291
278
|
let r = /* @__PURE__ */ new Uint32Array(10);
|
|
292
279
|
for (let n = 24 - t; n < 24; n++) {
|
|
@@ -304,7 +291,7 @@ var p = /* @__PURE__ */ e(((e) => {
|
|
|
304
291
|
for (let n = 0; n < 10; n++) r[n] = e[t + n];
|
|
305
292
|
for (let n = 0; n < 10; n++) e[t + n] ^= ~r[(n + 2) % 10] & r[(n + 4) % 10];
|
|
306
293
|
}
|
|
307
|
-
e[0] ^=
|
|
294
|
+
e[0] ^= p[n], e[1] ^= h[n];
|
|
308
295
|
}
|
|
309
296
|
(0, n.clean)(r);
|
|
310
297
|
}
|
|
@@ -372,8 +359,8 @@ var p = /* @__PURE__ */ e(((e) => {
|
|
|
372
359
|
e.sha3_224 = x(6, 144, 28), e.sha3_256 = x(6, 136, 32), e.sha3_384 = x(6, 104, 48), e.sha3_512 = x(6, 72, 64), e.keccak_224 = x(1, 144, 28), e.keccak_256 = x(1, 136, 32), e.keccak_384 = x(1, 104, 48), e.keccak_512 = x(1, 72, 64);
|
|
373
360
|
var S = (e, t, r) => (0, n.createXOFer)((n = {}) => new b(t, e, n.dkLen === void 0 ? r : n.dkLen, !0));
|
|
374
361
|
e.shake128 = S(31, 168, 16), e.shake256 = S(31, 136, 32);
|
|
375
|
-
})),
|
|
376
|
-
var { sha3_512: n } =
|
|
362
|
+
})), v = /* @__PURE__ */ e(((e, t) => {
|
|
363
|
+
var { sha3_512: n } = _(), r = 24, i = 32, a = (e = 4, t = Math.random) => {
|
|
377
364
|
let n = "";
|
|
378
365
|
for (; n.length < e;) n += Math.floor(t() * 36).toString(36);
|
|
379
366
|
return n;
|
|
@@ -403,39 +390,39 @@ var p = /* @__PURE__ */ e(((e) => {
|
|
|
403
390
|
defaultLength: r,
|
|
404
391
|
bigLength: i
|
|
405
392
|
}), t.exports.init = p, t.exports.createId = m, t.exports.bufToBigInt = o, t.exports.createCounter = d, t.exports.createFingerprint = u, t.exports.isCuid = h;
|
|
406
|
-
})),
|
|
407
|
-
var { createId: n, init: r, getConstants: i, isCuid: a } =
|
|
393
|
+
})), y = /* @__PURE__ */ e(((e, t) => {
|
|
394
|
+
var { createId: n, init: r, getConstants: i, isCuid: a } = v();
|
|
408
395
|
t.exports.createId = n, t.exports.init = r, t.exports.getConstants = i, t.exports.isCuid = a;
|
|
409
|
-
})),
|
|
396
|
+
})), b = y();
|
|
410
397
|
i(null);
|
|
411
|
-
var
|
|
412
|
-
function
|
|
413
|
-
return `s_${
|
|
398
|
+
var x = (0, b.init)({ length: 6 });
|
|
399
|
+
function S() {
|
|
400
|
+
return `s_${x()}`;
|
|
414
401
|
}
|
|
415
|
-
function
|
|
402
|
+
function C(e) {
|
|
416
403
|
return e ? /^s_[\da-z]{6}$/.test(e) : !1;
|
|
417
404
|
}
|
|
418
|
-
var
|
|
419
|
-
function
|
|
420
|
-
let e = r.get(
|
|
421
|
-
return
|
|
405
|
+
var w = null;
|
|
406
|
+
function T() {
|
|
407
|
+
let e = r.get(c) === "edit", n = new URL(window.location.href).searchParams.get(o.sessionId), i = C(n) ? n : null;
|
|
408
|
+
return D((t) => {
|
|
422
409
|
e ? t.has(o.kiosk) || t.delete(o.sessionId) : (t.delete(o.sessionId), t.delete(o.kiosk));
|
|
423
|
-
}), i === null ? (t.debug("Starting a new session", { sessionId: n }),
|
|
410
|
+
}), i === null ? (t.debug("Starting a new session", { sessionId: n }), S()) : e ? (t.debug("Connecting to existing session", { sessionId: i }), i) : (t.debug("Ignoring session_id from URL outside the editor", { sessionId: i }), S());
|
|
424
411
|
}
|
|
425
|
-
function
|
|
426
|
-
return
|
|
412
|
+
function E() {
|
|
413
|
+
return w === null && (w = T()), w;
|
|
427
414
|
}
|
|
428
415
|
//#endregion
|
|
429
416
|
//#region src/utils/urls.ts
|
|
430
|
-
function
|
|
417
|
+
function D(e) {
|
|
431
418
|
let t = new URL(window.location.href);
|
|
432
419
|
e(t.searchParams), window.history.replaceState({}, "", t.toString());
|
|
433
420
|
}
|
|
434
|
-
var
|
|
435
|
-
function
|
|
436
|
-
return typeof e == "string" &&
|
|
421
|
+
var O = /^(https?:\/\/\S+)$/;
|
|
422
|
+
function k(e) {
|
|
423
|
+
return typeof e == "string" && O.test(e);
|
|
437
424
|
}
|
|
438
|
-
function
|
|
425
|
+
function A({ href: e, queryParams: t, keys: n }) {
|
|
439
426
|
let r = typeof t == "string" ? new URLSearchParams(t) : t;
|
|
440
427
|
if (r.size === 0 || e.startsWith("http://") || e.startsWith("https://")) return e;
|
|
441
428
|
let i = e.startsWith("#"), a = i && e.includes("?");
|
|
@@ -456,8 +443,8 @@ function k({ href: e, queryParams: t, keys: n }) {
|
|
|
456
443
|
}
|
|
457
444
|
//#endregion
|
|
458
445
|
//#region src/core/runtime/runtime.ts
|
|
459
|
-
var
|
|
460
|
-
initialHealthyCheck = new
|
|
446
|
+
var j = new Set(Object.values(o)), M = class {
|
|
447
|
+
initialHealthyCheck = new f();
|
|
461
448
|
config;
|
|
462
449
|
constructor(e) {
|
|
463
450
|
this.config = e;
|
|
@@ -474,12 +461,12 @@ var A = new Set(Object.values(o)), j = class {
|
|
|
474
461
|
return this.httpURL.origin === window.location.origin;
|
|
475
462
|
}
|
|
476
463
|
get isServerless() {
|
|
477
|
-
return
|
|
464
|
+
return d() || a() || l();
|
|
478
465
|
}
|
|
479
466
|
formatHttpURL({ path: e = "", searchParams: t, restrictToKnownQueryParams: n = !0 }) {
|
|
480
467
|
let r = this.httpURL, i = new URLSearchParams(window.location.search);
|
|
481
468
|
if (t) for (let [e, n] of t.entries()) r.searchParams.set(e, n);
|
|
482
|
-
for (let [e, t] of i.entries()) (!n ||
|
|
469
|
+
for (let [e, t] of i.entries()) (!n || j.has(e)) && r.searchParams.set(e, t);
|
|
483
470
|
return r.pathname = `${r.pathname.replace(/\/$/, "")}/${e.replace(/^\//, "")}`, r.hash = "", r;
|
|
484
471
|
}
|
|
485
472
|
appendCrossOriginAuth(e) {
|
|
@@ -498,7 +485,7 @@ var A = new Set(Object.values(o)), j = class {
|
|
|
498
485
|
searchParams: t,
|
|
499
486
|
restrictToKnownQueryParams: !1
|
|
500
487
|
});
|
|
501
|
-
return
|
|
488
|
+
return N(this.appendCrossOriginAuth(n).toString());
|
|
502
489
|
}
|
|
503
490
|
getSessionURL(e, t) {
|
|
504
491
|
let n = this.formatHttpURL({ path: e }), r = new URLSearchParams(this.httpURL.search), i = new URLSearchParams(window.location.search);
|
|
@@ -508,7 +495,7 @@ var A = new Set(Object.values(o)), j = class {
|
|
|
508
495
|
}
|
|
509
496
|
getWsURL(e) {
|
|
510
497
|
let t = this.getSessionURL("/ws", e);
|
|
511
|
-
return
|
|
498
|
+
return N(this.appendCrossOriginAuth(t).toString());
|
|
512
499
|
}
|
|
513
500
|
getSseURL(e) {
|
|
514
501
|
let t = this.getSessionURL("/sse", e);
|
|
@@ -582,17 +569,17 @@ var A = new Set(Object.values(o)), j = class {
|
|
|
582
569
|
}
|
|
583
570
|
headers() {
|
|
584
571
|
let e = {
|
|
585
|
-
"Marimo-Session-Id":
|
|
572
|
+
"Marimo-Session-Id": E(),
|
|
586
573
|
"Marimo-Server-Token": this.config.serverToken ?? "",
|
|
587
574
|
"x-runtime-url": this.httpURL.toString()
|
|
588
575
|
};
|
|
589
576
|
return this.config.authToken && (e.Authorization = `Bearer ${this.config.authToken}`), e;
|
|
590
577
|
}
|
|
591
578
|
sessionHeaders() {
|
|
592
|
-
return { "Marimo-Session-Id":
|
|
579
|
+
return { "Marimo-Session-Id": E() };
|
|
593
580
|
}
|
|
594
581
|
};
|
|
595
|
-
function
|
|
582
|
+
function N(e) {
|
|
596
583
|
if (!e.startsWith("http")) {
|
|
597
584
|
t.warn(`URL must start with http: ${e}`);
|
|
598
585
|
let n = new URL(e);
|
|
@@ -602,18 +589,41 @@ function M(e) {
|
|
|
602
589
|
}
|
|
603
590
|
//#endregion
|
|
604
591
|
//#region src/core/runtime/config.ts
|
|
605
|
-
function
|
|
592
|
+
function P() {
|
|
606
593
|
let e = new URL(document.baseURI);
|
|
607
594
|
return e.search = "", e.hash = "", e.toString();
|
|
608
595
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
return r.get(
|
|
596
|
+
var F = { url: P() }, I = i(F), L = i((e) => new M(e(I)));
|
|
597
|
+
function R() {
|
|
598
|
+
return r.get(L);
|
|
612
599
|
}
|
|
613
|
-
function
|
|
600
|
+
function z(e) {
|
|
614
601
|
if (e.startsWith("http")) return new URL(e);
|
|
615
|
-
let t =
|
|
602
|
+
let t = R().httpURL.toString();
|
|
616
603
|
return t.startsWith("blob:") && (t = t.replace("blob:", "")), new URL(e, t);
|
|
617
604
|
}
|
|
605
|
+
n();
|
|
606
|
+
var B = i(!1);
|
|
607
|
+
//#endregion
|
|
608
|
+
//#region src/core/static/export-context.ts
|
|
609
|
+
function V(e) {
|
|
610
|
+
if (typeof e != "object" || !e) return !1;
|
|
611
|
+
let t = e;
|
|
612
|
+
return !(t.trusted !== !0 || t.notebookCode !== void 0 && typeof t.notebookCode != "string");
|
|
613
|
+
}
|
|
614
|
+
function H() {
|
|
615
|
+
let e = window?.__MARIMO_EXPORT_CONTEXT__;
|
|
616
|
+
return V(e) ? e : void 0;
|
|
617
|
+
}
|
|
618
|
+
function U() {
|
|
619
|
+
return H()?.trusted === !0;
|
|
620
|
+
}
|
|
621
|
+
function W() {
|
|
622
|
+
if (r.get(B) || U() || r.get(s)) return !0;
|
|
623
|
+
try {
|
|
624
|
+
if (u() === "read") return !0;
|
|
625
|
+
} catch {}
|
|
626
|
+
return !1;
|
|
627
|
+
}
|
|
618
628
|
//#endregion
|
|
619
|
-
export {
|
|
629
|
+
export { z as a, k as c, f as d, B as i, D as l, U as n, R as o, W as r, A as s, H as t, y as u };
|
|
@@ -3,14 +3,14 @@ import { h as t, t as n } from "./button-Z2R2272J.js";
|
|
|
3
3
|
import { t as r } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { t as a } from "./copy-icon-CmNLxT5_.js";
|
|
6
|
-
import { A as o, L as s, Y as c, i as l, j as u, n as d, on as f, tn as p, z as m } from "./error-entries-
|
|
7
|
-
import { n as h, t as ee } from "./globals-
|
|
6
|
+
import { A as o, L as s, Y as c, i as l, j as u, n as d, on as f, tn as p, z as m } from "./error-entries-DhZotdzQ.js";
|
|
7
|
+
import { n as h, t as ee } from "./globals-IsQZV-Pn.js";
|
|
8
8
|
import { r as g } from "./assertNever-5vhHGKOK.js";
|
|
9
9
|
import { t as _ } from "./jsx-runtime-D8btoEHk.js";
|
|
10
10
|
import { Ct as te, Ut as v, m as y } from "./use-restore-focus-DJ_-uSn_.js";
|
|
11
11
|
import { a as ne, i as re, n as ie, r as ae } from "./dialog-BvjfalZ9.js";
|
|
12
12
|
import { t as oe } from "./useAsyncData-P5-Oovhq.js";
|
|
13
|
-
import { t as se } from "./code-visibility-
|
|
13
|
+
import { t as se } from "./code-visibility-SiV7swyv.js";
|
|
14
14
|
//#region src/components/ui/skeleton.tsx
|
|
15
15
|
var b = /* @__PURE__ */ e(r(), 1), x = i(), S = _(), ce = (e) => {
|
|
16
16
|
let n = (0, x.c)(8), r, i;
|
|
@@ -3,8 +3,8 @@ import { h as t, i as n } from "./button-Z2R2272J.js";
|
|
|
3
3
|
import { t as r } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as i } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
5
|
import { t as a } from "./jsx-runtime-D8btoEHk.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { t as o } from "./toDate-BZg-byuO.js";
|
|
7
|
+
import { a as s } from "./loader-CGrYn73j.js";
|
|
8
8
|
//#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
|
|
9
9
|
function c(e) {
|
|
10
10
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
@@ -14,7 +14,7 @@ import { t as F } from "./jsx-runtime-D8btoEHk.js";
|
|
|
14
14
|
import { d as ae, r as I } from "./use-restore-focus-DJ_-uSn_.js";
|
|
15
15
|
import { t as oe } from "./useEvent-BoN7U38T.js";
|
|
16
16
|
import { n as L, t as se } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
|
|
17
|
-
import { t as ce } from "./ErrorBoundary-
|
|
17
|
+
import { t as ce } from "./ErrorBoundary-BbX80BeS.js";
|
|
18
18
|
import { A as le, C as ue, D as de, E as fe, F as pe, I as me, L as he, M as ge, N as R, O as z, P as _e, R as ve, S as ye, T as be, _ as xe, a as Se, b as B, c as Ce, d as we, f as V, g as Te, h as Ee, i as De, j as H, k as Oe, l as ke, m as Ae, n as je, o as Me, p as Ne, r as U, s as Pe, t as Fe, u as Ie, v as Le, w as Re, x as ze, y as Be, z as Ve } from "./data-grid-types-DBNnjiYJ.js";
|
|
19
19
|
//#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
20
20
|
function He(e) {
|
|
@@ -7061,7 +7061,7 @@ function ds(e, t, n, r, i) {
|
|
|
7061
7061
|
}
|
|
7062
7062
|
//#endregion
|
|
7063
7063
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
|
|
7064
|
-
var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-
|
|
7064
|
+
var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-B_CloII8.js")), hs = 0;
|
|
7065
7065
|
function gs(e) {
|
|
7066
7066
|
return (0, fs.default)((0, ps.default)((0, ps.default)(e).filter((e) => e.span !== void 0).map((e) => (0, ao.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
|
|
7067
7067
|
}
|
|
@@ -9284,7 +9284,7 @@ function Ys(e, t, n, r, i) {
|
|
|
9284
9284
|
}
|
|
9285
9285
|
//#endregion
|
|
9286
9286
|
//#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
|
|
9287
|
-
var Xs = W.lazy(async () => await import("./number-overlay-editor-
|
|
9287
|
+
var Xs = W.lazy(async () => await import("./number-overlay-editor-CNaE6yaF.js")), Zs = {
|
|
9288
9288
|
getAccessibilityString: (e) => e.data?.toString() ?? "",
|
|
9289
9289
|
kind: U.Number,
|
|
9290
9290
|
needsHover: (e) => e.hoverEffect === !0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as e } from "./tooltip-DyLdBIM4.js";
|
|
2
2
|
import { Ct as t } from "./use-restore-focus-DJ_-uSn_.js";
|
|
3
|
-
import { r as n } from "./code-visibility-
|
|
3
|
+
import { r as n } from "./code-visibility-SiV7swyv.js";
|
|
4
4
|
var r = e("triangle-alert", [
|
|
5
5
|
["path", {
|
|
6
6
|
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|