@nesso-how/plugin-example 0.7.0 → 1.0.0-beta.12
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/README.md +13 -17
- package/dist/index.js +220 -132
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,39 +1,35 @@
|
|
|
1
1
|
# Plugin Example
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Two actions built with the Nesso SDK:
|
|
4
|
+
|
|
5
|
+
- **Uppercase labels** changes concept labels in the current view. See [`src/index.ts`](src/index.ts).
|
|
6
|
+
- **Concept Quiz** uses React to quiz you on the view's relations and saves your progress. See [`src/Quiz.tsx`](src/Quiz.tsx).
|
|
4
7
|
|
|
5
8
|
## Install and try
|
|
6
9
|
|
|
7
|
-
In the desktop app, open Settings → Plugins, search for `@nesso-how/plugin-example`, and install it. Approve
|
|
10
|
+
In the desktop app, open Settings → Plugins, search for `@nesso-how/plugin-example`, and install it. Approve access to concept labels, panels, and private storage.
|
|
8
11
|
|
|
9
12
|
Run either action from a view's context menu in the Explorer, or from its actions in the Inspector with nothing selected.
|
|
10
13
|
|
|
11
14
|
## Build your own
|
|
12
15
|
|
|
13
|
-
Copy this example into a separate project,
|
|
16
|
+
Use Node.js 24. Copy this example into a separate project. Choose your own package name, update the metadata and action IDs/labels, and remove any permissions you do not use. Then install dependencies and build:
|
|
14
17
|
|
|
15
18
|
```sh
|
|
16
19
|
npm install
|
|
17
20
|
npm run build
|
|
18
21
|
```
|
|
19
22
|
|
|
20
|
-
The
|
|
23
|
+
The build runs TypeScript checks, then bundles code and CSS into `dist/index.js`. Nesso supplies React and React DOM at runtime. To typecheck without building, run `npm run check`.
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
See the SDK guide for [tests and package validation](../README.md#build-and-test) and [panel APIs and styling](../README.md#action-ui).
|
|
23
26
|
|
|
24
27
|
## Test an unpublished build
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
crypto.randomUUID(),
|
|
31
|
-
{
|
|
32
|
-
manifest,
|
|
33
|
-
files: [{ path: manifest.nesso.entry, bytes: new TextEncoder().encode(compiledCode) }],
|
|
34
|
-
},
|
|
35
|
-
'en',
|
|
36
|
-
)
|
|
29
|
+
Follow the SDK guide to [connect your agent](../README.md#with-an-agent) and [install through MCP](../README.md#install-or-update-through-mcp). Pass your project's absolute root path to `propose_plugin`, not its `dist` directory:
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{ "directory": "/absolute/path/to/my-plugin" }
|
|
37
33
|
```
|
|
38
34
|
|
|
39
|
-
Approve the
|
|
35
|
+
Approve the installation in Nesso when prompted. Rebuilding does not update the installed copy; use the SDK guide's replacement procedure for later builds. If the published example is already installed, your local copy needs a different package name.
|
package/dist/index.js
CHANGED
|
@@ -71,7 +71,7 @@ function te(e) {
|
|
|
71
71
|
let t = { ...e };
|
|
72
72
|
for (let e in t) {
|
|
73
73
|
let n = t[e];
|
|
74
|
-
T(e, n) && (t[e] =
|
|
74
|
+
T(e, n) && (t[e] = re(n));
|
|
75
75
|
}
|
|
76
76
|
return t;
|
|
77
77
|
}
|
|
@@ -84,9 +84,9 @@ function w(e, t) {
|
|
|
84
84
|
e[n] = y(e.style, r);
|
|
85
85
|
break;
|
|
86
86
|
case "className":
|
|
87
|
-
e[n] =
|
|
87
|
+
e[n] = ae(e.className, r);
|
|
88
88
|
break;
|
|
89
|
-
default: e[n] = T(n, r) ?
|
|
89
|
+
default: e[n] = T(n, r) ? ne(e[n], r) : r;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
return e;
|
|
@@ -98,51 +98,51 @@ function T(e, t) {
|
|
|
98
98
|
function E(e) {
|
|
99
99
|
return typeof e == "function";
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function ne(e, t) {
|
|
102
102
|
return t ? e ? (...n) => {
|
|
103
103
|
let r = n[0];
|
|
104
|
-
if (
|
|
104
|
+
if (oe(r)) {
|
|
105
105
|
let i = r;
|
|
106
|
-
|
|
106
|
+
ie(i);
|
|
107
107
|
let a = t(...n);
|
|
108
108
|
return i.baseUIHandlerPrevented || e?.(...n), a;
|
|
109
109
|
}
|
|
110
110
|
let i = t(...n);
|
|
111
111
|
return e?.(...n), i;
|
|
112
|
-
} :
|
|
112
|
+
} : re(t) : e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function re(e) {
|
|
115
115
|
return e && ((...t) => {
|
|
116
116
|
let n = t[0];
|
|
117
|
-
return
|
|
117
|
+
return oe(n) && ie(n), e(...t);
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function ie(e) {
|
|
121
121
|
return e.preventBaseUIHandler = () => {
|
|
122
122
|
e.baseUIHandlerPrevented = !0;
|
|
123
123
|
}, e;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function ae(e, t) {
|
|
126
126
|
return t ? e ? t + " " + e : t : e;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function oe(e) {
|
|
129
129
|
return typeof e == "object" && !!e && "nativeEvent" in e;
|
|
130
130
|
}
|
|
131
131
|
// node_modules/@base-ui/utils/formatErrorMessage.mjs
|
|
132
|
-
function
|
|
132
|
+
function se(e, t) {
|
|
133
133
|
return function(n, ...r) {
|
|
134
134
|
let i = new URL(e);
|
|
135
135
|
return i.searchParams.set("code", n.toString()), r.forEach((e) => i.searchParams.append("args[]", e)), `${t} error #${n}; visit ${i} for the full message.`;
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
var
|
|
139
|
-
function
|
|
140
|
-
let n = e.useContext(
|
|
141
|
-
if (n === void 0 && !t) throw Error(
|
|
138
|
+
var ce = se("https://base-ui.com/production-error", "Base UI"), D = /*#__PURE__*/ e.createContext(void 0);
|
|
139
|
+
function le(t = !1) {
|
|
140
|
+
let n = e.useContext(D);
|
|
141
|
+
if (n === void 0 && !t) throw Error(ce(16));
|
|
142
142
|
return n;
|
|
143
143
|
}
|
|
144
144
|
// node_modules/@base-ui/react/utils/useFocusableWhenDisabled.mjs
|
|
145
|
-
function
|
|
145
|
+
function ue(t) {
|
|
146
146
|
let { focusableWhenDisabled: n, disabled: r, composite: i = !1, tabIndex: a = 0, isNativeButton: o } = t, s = i && n !== !1, c = i && n === !1;
|
|
147
147
|
return { props: e.useMemo(() => {
|
|
148
148
|
let e = { onKeyDown(e) {
|
|
@@ -160,7 +160,7 @@ function le(t) {
|
|
|
160
160
|
]) };
|
|
161
161
|
}
|
|
162
162
|
// node_modules/@base-ui/react/utils/dispatchClickWithModifiers.mjs
|
|
163
|
-
function
|
|
163
|
+
function de(e, t, { detail: n = 0, pointerType: r = "" } = {}) {
|
|
164
164
|
e.dispatchEvent(new (c(e)).PointerEvent("click", {
|
|
165
165
|
bubbles: !0,
|
|
166
166
|
cancelable: !0,
|
|
@@ -174,8 +174,8 @@ function ue(e, t, { detail: n = 0, pointerType: r = "" } = {}) {
|
|
|
174
174
|
}));
|
|
175
175
|
}
|
|
176
176
|
// node_modules/@base-ui/react/internals/use-button/useButton.mjs
|
|
177
|
-
function
|
|
178
|
-
let { disabled: n = !1, focusableWhenDisabled: r, tabIndex: i = 0, native: a = !0, composite: o } = t, s = e.useRef(null), c =
|
|
177
|
+
function fe(t = {}) {
|
|
178
|
+
let { disabled: n = !1, focusableWhenDisabled: r, tabIndex: i = 0, native: a = !0, composite: o } = t, s = e.useRef(null), c = le(!0), l = o ?? c !== void 0, { props: u } = ue({
|
|
179
179
|
focusableWhenDisabled: r,
|
|
180
180
|
disabled: n,
|
|
181
181
|
composite: l,
|
|
@@ -183,7 +183,7 @@ function de(t = {}) {
|
|
|
183
183
|
isNativeButton: a
|
|
184
184
|
}), d = e.useCallback(() => {
|
|
185
185
|
let e = s.current;
|
|
186
|
-
|
|
186
|
+
pe(e) && l && n && u.disabled === void 0 && e.disabled && (e.disabled = !1);
|
|
187
187
|
}, [
|
|
188
188
|
n,
|
|
189
189
|
u.disabled,
|
|
@@ -200,15 +200,15 @@ function de(t = {}) {
|
|
|
200
200
|
n || r?.(e);
|
|
201
201
|
},
|
|
202
202
|
onKeyDown(e) {
|
|
203
|
-
if (n || (
|
|
204
|
-
let t = e.target === e.currentTarget, r = e.currentTarget, i =
|
|
203
|
+
if (n || (ie(e), o?.(e), e.baseUIHandlerPrevented)) return;
|
|
204
|
+
let t = e.target === e.currentTarget, r = e.currentTarget, i = pe(r), s = !a && me(r), c = t && (a ? i : !s), u = e.key === "Enter", d = e.key === " ", f = r.getAttribute("role"), p = f?.startsWith("menuitem") || f === "option" || f === "gridcell";
|
|
205
205
|
if (t && l && d) {
|
|
206
206
|
if (e.defaultPrevented && p) return;
|
|
207
|
-
e.preventDefault(), (!a || i) && (e.preventBaseUIHandler(),
|
|
208
|
-
} else !c || a || !d && !u ? t && s && d && e.preventDefault() : e.defaultPrevented || (e.preventDefault(), u && (e.preventBaseUIHandler(),
|
|
207
|
+
e.preventDefault(), (!a || i) && (e.preventBaseUIHandler(), de(r, e));
|
|
208
|
+
} else !c || a || !d && !u ? t && s && d && e.preventDefault() : e.defaultPrevented || (e.preventDefault(), u && (e.preventBaseUIHandler(), de(r, e)));
|
|
209
209
|
},
|
|
210
210
|
onKeyUp(e) {
|
|
211
|
-
n || (
|
|
211
|
+
n || (ie(e), i?.(e), e.target === e.currentTarget && a && l && pe(e.currentTarget) && e.key === " " ? e.preventDefault() : e.baseUIHandlerPrevented || e.target !== e.currentTarget || a || l || e.defaultPrevented || e.key !== " " || (e.preventBaseUIHandler(), de(e.currentTarget, e)));
|
|
212
212
|
},
|
|
213
213
|
onPointerDown(e) {
|
|
214
214
|
n ? e.preventDefault() : s?.(e);
|
|
@@ -225,14 +225,14 @@ function de(t = {}) {
|
|
|
225
225
|
})
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function pe(e) {
|
|
229
229
|
return l(e) && e.tagName === "BUTTON";
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function me(e) {
|
|
232
232
|
return l(e) && e.tagName === "A" && !!e.href;
|
|
233
233
|
}
|
|
234
234
|
// node_modules/@base-ui/utils/useMergedRefs.mjs
|
|
235
|
-
function
|
|
235
|
+
function he(e, t, n, r) {
|
|
236
236
|
let i = f(ge).current;
|
|
237
237
|
return _e(i, e, t, n, r) && ye(i, [
|
|
238
238
|
e,
|
|
@@ -241,7 +241,7 @@ function me(e, t, n, r) {
|
|
|
241
241
|
r
|
|
242
242
|
]), i.callback;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function O(e) {
|
|
245
245
|
let t = f(ge).current;
|
|
246
246
|
return ve(t, e) && ye(t, e), t.callback;
|
|
247
247
|
}
|
|
@@ -333,11 +333,11 @@ function De(e, t, n = {}) {
|
|
|
333
333
|
}
|
|
334
334
|
function Oe(e, t, n) {
|
|
335
335
|
let { className: r, style: i } = e, { state: a = Ce, ref: o, props: s, stateAttributesMapping: c, enabled: l = !0 } = t, u = l ? Te(r, a) : void 0, d = l ? Ee(i, a) : void 0, f = l ? we(a, c) : Ce, p = l && s ? ke(s) : void 0, m = l ? y(f, p) ?? {} : Ce;
|
|
336
|
-
return typeof document < "u" && (l ? m.ref = Array.isArray(o) ?
|
|
336
|
+
return typeof document < "u" && (l ? m.ref = Array.isArray(o) ? O([
|
|
337
337
|
m.ref,
|
|
338
338
|
Se(n),
|
|
339
339
|
...o
|
|
340
|
-
]) :
|
|
340
|
+
]) : he(m.ref, Se(n), o) : he(null, null)), l ? (u !== void 0 && (m.className = ae(m.className, u)), d !== void 0 && (m.style = y(m.style, d)), m) : Ce;
|
|
341
341
|
}
|
|
342
342
|
function ke(e) {
|
|
343
343
|
return Array.isArray(e) ? x(e) : ee(void 0, e);
|
|
@@ -369,7 +369,7 @@ function Ne(n, r) {
|
|
|
369
369
|
}
|
|
370
370
|
// node_modules/@base-ui/react/button/Button.mjs
|
|
371
371
|
var Pe = /*#__PURE__*/ e.forwardRef(function(e, t) {
|
|
372
|
-
let { render: n, className: r, disabled: i = !1, focusableWhenDisabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { getButtonProps: l, buttonRef: u } =
|
|
372
|
+
let { render: n, className: r, disabled: i = !1, focusableWhenDisabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { getButtonProps: l, buttonRef: u } = fe({
|
|
373
373
|
disabled: i,
|
|
374
374
|
focusableWhenDisabled: a,
|
|
375
375
|
native: o
|
|
@@ -514,32 +514,32 @@ var dt = Ue("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), ft = He
|
|
|
514
514
|
let t = b[e + 1] - b[e];
|
|
515
515
|
t > E && (E = t);
|
|
516
516
|
}
|
|
517
|
-
let
|
|
518
|
-
for (;
|
|
519
|
-
let
|
|
520
|
-
for (let e = 0; e < f.length; e++)
|
|
521
|
-
let
|
|
522
|
-
for (let e = 0; e < C.length; e++)
|
|
523
|
-
let
|
|
517
|
+
let ne = 32;
|
|
518
|
+
for (; ne < 2 * (1 + E + x.length);) ne <<= 1;
|
|
519
|
+
let re = new Int32Array(f.length + 1);
|
|
520
|
+
for (let e = 0; e < f.length; e++) re[e + 1] = re[e] + u[f[e] + 1] - u[f[e]];
|
|
521
|
+
let ie = new Uint8Array(r);
|
|
522
|
+
for (let e = 0; e < C.length; e++) ie[C[e]] = 1;
|
|
523
|
+
let ae = i.length - 1, oe = new Uint8Array(ae), se = 0, ce = !0;
|
|
524
524
|
for (let e = 0; e < m.length; e++) {
|
|
525
|
-
|
|
525
|
+
oe[m[e]] = 1;
|
|
526
526
|
let t = _[g[e] * 2 + 1];
|
|
527
|
-
t >
|
|
527
|
+
t > se && (se = t);
|
|
528
528
|
let n = v.charCodeAt(_[g[e] * 2]);
|
|
529
|
-
(n === 91 || n === 40) && (
|
|
529
|
+
(n === 91 || n === 40) && (ce = !1);
|
|
530
530
|
}
|
|
531
|
-
let
|
|
532
|
-
for (;
|
|
533
|
-
let
|
|
531
|
+
let D = 1;
|
|
532
|
+
for (; D < m.length * 2;) D <<= 1;
|
|
533
|
+
let le = new Int32Array(D).fill(-1);
|
|
534
534
|
for (let e = 0; e < m.length; e++) {
|
|
535
|
-
let t = _[g[e] * 2], n = (xt(v, t, t + _[g[e] * 2 + 1]) ^ Math.imul(m[e], 2654435761) | 0) &
|
|
536
|
-
for (;
|
|
537
|
-
|
|
535
|
+
let t = _[g[e] * 2], n = (xt(v, t, t + _[g[e] * 2 + 1]) ^ Math.imul(m[e], 2654435761) | 0) & D - 1;
|
|
536
|
+
for (; le[n] !== -1;) n = n + 1 & D - 1;
|
|
537
|
+
le[n] = e;
|
|
538
538
|
}
|
|
539
|
-
let
|
|
540
|
-
let i = (xt(t, n, r) ^ Math.imul(e, 2654435761) | 0) &
|
|
539
|
+
let ue = (e, t, n, r) => {
|
|
540
|
+
let i = (xt(t, n, r) ^ Math.imul(e, 2654435761) | 0) & D - 1, a = r - n;
|
|
541
541
|
for (;;) {
|
|
542
|
-
let r =
|
|
542
|
+
let r = le[i];
|
|
543
543
|
if (r === -1) return -1;
|
|
544
544
|
if (m[r] === e && _[g[r] * 2 + 1] === a) {
|
|
545
545
|
let e = _[g[r] * 2], i = !0;
|
|
@@ -549,13 +549,13 @@ var dt = Ue("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), ft = He
|
|
|
549
549
|
}
|
|
550
550
|
if (i) return h[r];
|
|
551
551
|
}
|
|
552
|
-
i = i + 1 &
|
|
552
|
+
i = i + 1 & D - 1;
|
|
553
553
|
}
|
|
554
|
-
},
|
|
554
|
+
}, de = n.cacheSize ?? 8192, fe = n.prefix ?? e.prefix ?? "", pe = fe === "" ? "" : fe + ":", me = pe.length, he = (te ?? []).map((e) => {
|
|
555
555
|
let n = t && t[e];
|
|
556
556
|
if (!n) throw Error("cn: missing validator " + e);
|
|
557
557
|
return n;
|
|
558
|
-
}),
|
|
558
|
+
}), O = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ge = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _e = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ve = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ye = 0, be = -1, xe = -1, Se = -1, Ce = -1, we = (e) => e >= 97 && e <= 122 || e >= 65 && e <= 90 || e >= 48 && e <= 57 || e === 95, Te = (e) => /\s/.test(String.fromCharCode(e)), Ee = (e, t, n) => {
|
|
559
559
|
if (ye = 0, be = -1, n - t < 3) return;
|
|
560
560
|
let r = e.charCodeAt(t), i = e.charCodeAt(n - 1);
|
|
561
561
|
if (r === 91 && i === 93) ye = 1;
|
|
@@ -614,7 +614,7 @@ var dt = Ue("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), ft = He
|
|
|
614
614
|
1
|
|
615
615
|
], Fe = (e, t, n, r) => {
|
|
616
616
|
if (e >= 10) {
|
|
617
|
-
if (e >= 25) return
|
|
617
|
+
if (e >= 25) return he[e - 25](t.slice(n, r));
|
|
618
618
|
let i = e - 10;
|
|
619
619
|
if (ye !== Me[i]) return !1;
|
|
620
620
|
if (be >= 0) {
|
|
@@ -626,7 +626,7 @@ var dt = Ue("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), ft = He
|
|
|
626
626
|
case 1: return !0;
|
|
627
627
|
case 2: {
|
|
628
628
|
let e = t.slice(Se, Ce);
|
|
629
|
-
return
|
|
629
|
+
return O.test(e) && !ge.test(e);
|
|
630
630
|
}
|
|
631
631
|
case 3: return Ae(t.slice(Se, Ce));
|
|
632
632
|
case 4: return ve.test(t.slice(Se, Ce));
|
|
@@ -721,10 +721,10 @@ var dt = Ue("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), ft = He
|
|
|
721
721
|
let r = mt[t];
|
|
722
722
|
if (r > n) continue;
|
|
723
723
|
let i = pt[t], a = n - r;
|
|
724
|
-
if (
|
|
724
|
+
if (oe[i] === 1 && a > 0 && a <= se) {
|
|
725
725
|
let t = e.charCodeAt(r);
|
|
726
|
-
if (
|
|
727
|
-
let t =
|
|
726
|
+
if (ce === !1 || t !== 91 && t !== 40) {
|
|
727
|
+
let t = ue(i, e, r, n);
|
|
728
728
|
if (t >= 0) return t;
|
|
729
729
|
}
|
|
730
730
|
}
|
|
@@ -733,7 +733,7 @@ var dt = Ue("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), ft = He
|
|
|
733
733
|
let s = f[o], c = u[s], m = u[s + 1];
|
|
734
734
|
if (c === m) continue;
|
|
735
735
|
Ee(e, r, n);
|
|
736
|
-
let h =
|
|
736
|
+
let h = re[o] - c;
|
|
737
737
|
for (let t = c; t < m; t++) if (Fe(d[t], e, r, n)) return p[h + t];
|
|
738
738
|
}
|
|
739
739
|
return yt;
|
|
@@ -781,12 +781,12 @@ var dt = Ue("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), ft = He
|
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
let b = p;
|
|
784
|
-
if (
|
|
785
|
-
if (h - p <=
|
|
784
|
+
if (me !== 0) {
|
|
785
|
+
if (h - p <= me || !e.startsWith(pe, p)) {
|
|
786
786
|
st[_] = yt, tt(y, e, p, h, v, yt, 0, 0);
|
|
787
787
|
continue;
|
|
788
788
|
}
|
|
789
|
-
b = p +
|
|
789
|
+
b = p + me;
|
|
790
790
|
}
|
|
791
791
|
let ee = 0, x = 0, S = -1, C = -1;
|
|
792
792
|
for (let t = b; t < h; t++) {
|
|
@@ -803,55 +803,55 @@ var dt = Ue("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), ft = He
|
|
|
803
803
|
}
|
|
804
804
|
n === 91 ? ee++ : n === 93 ? ee-- : n === 40 ? x++ : n === 41 && x--;
|
|
805
805
|
}
|
|
806
|
-
let te = S >= b ? S + 1 : b, w = te, T = h, E = !1,
|
|
807
|
-
T > w && e.charCodeAt(T - 1) === 33 ? (E = !0, T--) : T > w && e.charCodeAt(w) === 33 && (E = !0, w++,
|
|
808
|
-
let
|
|
809
|
-
C > te && (
|
|
810
|
-
let
|
|
811
|
-
T - w > 1 && e.charCodeAt(w) === 45 && (
|
|
812
|
-
let
|
|
813
|
-
(l[0] >= 0 ||
|
|
814
|
-
let
|
|
815
|
-
for (let t =
|
|
806
|
+
let te = S >= b ? S + 1 : b, w = te, T = h, E = !1, ne = 0;
|
|
807
|
+
T > w && e.charCodeAt(T - 1) === 33 ? (E = !0, T--) : T > w && e.charCodeAt(w) === 33 && (E = !0, w++, ne = 1);
|
|
808
|
+
let re = -1;
|
|
809
|
+
C > te && (re = C + ne, re >= T && (re = -1));
|
|
810
|
+
let ae = w;
|
|
811
|
+
T - w > 1 && e.charCodeAt(w) === 45 && (ae = w + 1);
|
|
812
|
+
let se = 0, ce = 0, D = 0, le = -1, ue = 0;
|
|
813
|
+
(l[0] >= 0 || oe[0] === 1) && (pt[0] = 0, mt[0] = ae, ue = 1);
|
|
814
|
+
let de = bt, fe = 0;
|
|
815
|
+
for (let t = ae; t < T; t++) if (t === re && (de = ce < D ? bt : se, fe = ue), se !== bt) {
|
|
816
816
|
let n = e.charCodeAt(t), r = -1;
|
|
817
|
-
if (
|
|
817
|
+
if (ce < D) o.charCodeAt(ce) === n ? (ce++, ce === D && (r = se = le)) : se = bt;
|
|
818
818
|
else {
|
|
819
|
-
let e = i[
|
|
819
|
+
let e = i[se], t = i[se + 1], c = bt;
|
|
820
820
|
for (let i = e; i < t; i++) {
|
|
821
821
|
let e = a[i];
|
|
822
822
|
if (o.charCodeAt(e) === n) {
|
|
823
|
-
a[i + 1] - e === 1 ? r = c = s[i] : (
|
|
823
|
+
a[i + 1] - e === 1 ? r = c = s[i] : (ce = e + 1, D = a[i + 1], le = s[i], c = se);
|
|
824
824
|
break;
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
|
-
|
|
827
|
+
se = c;
|
|
828
828
|
}
|
|
829
|
-
if (r >= 0 && (l[r] >= 0 ||
|
|
830
|
-
if (
|
|
829
|
+
if (r >= 0 && (l[r] >= 0 || oe[r] === 1) && t + 1 < T && e.charCodeAt(t + 1) === 45) {
|
|
830
|
+
if (ue === ft) {
|
|
831
831
|
ft *= 2;
|
|
832
832
|
let e = new Int32Array(ft);
|
|
833
833
|
e.set(pt), pt = e;
|
|
834
834
|
let t = new Int32Array(ft);
|
|
835
835
|
t.set(mt), mt = t;
|
|
836
836
|
}
|
|
837
|
-
pt[
|
|
837
|
+
pt[ue] = r, mt[ue] = t + 2, ue++;
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
|
|
841
|
-
let
|
|
842
|
-
if (
|
|
843
|
-
if (ge = !0,
|
|
844
|
-
let t = Ot(e, w, T,
|
|
845
|
-
t !== yt && t !==
|
|
846
|
-
} else
|
|
847
|
-
} else
|
|
840
|
+
re === T && (de = ce < D ? bt : se, fe = ue);
|
|
841
|
+
let he = ce < D ? bt : se, O, ge = !1;
|
|
842
|
+
if (re >= 0) {
|
|
843
|
+
if (ge = !0, O = Ot(e, w, re, de, fe), O !== yt && O < r && ie[O]) {
|
|
844
|
+
let t = Ot(e, w, T, he, ue);
|
|
845
|
+
t !== yt && t !== O && (O = t, ge = !1);
|
|
846
|
+
} else O === yt && (O = Ot(e, w, T, he, ue), ge = !1);
|
|
847
|
+
} else O = Ot(e, w, T, he, ue);
|
|
848
848
|
let _e = 0, ve = 0;
|
|
849
|
-
|
|
849
|
+
O === yt ? st[_] = yt : (ve = +!!ge, _e = b >= S ? +!!E : Le(Re, e, b, S, +!!E, (e) => He(e, E)), st[_] = O, lt[_] = ve, ct[_] = _e), tt(y, e, p, h, v, O, _e, ve);
|
|
850
850
|
}
|
|
851
851
|
if (n === 0) return "";
|
|
852
852
|
if (n === 1) return at[0] === 0 && ot[0] === t ? e : e.slice(at[0], ot[0]);
|
|
853
|
-
if (n *
|
|
854
|
-
for (; n *
|
|
853
|
+
if (n * ne > gt) {
|
|
854
|
+
for (; n * ne > gt;) gt <<= 1, _t--;
|
|
855
855
|
Ct = new Float64Array(gt), wt = new Int32Array(gt);
|
|
856
856
|
}
|
|
857
857
|
if (Be >= qe || We >= qe) throw Error("cn: too many distinct classes in one merge");
|
|
@@ -889,16 +889,16 @@ var dt = Ue("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), ft = He
|
|
|
889
889
|
let t = Pt[e];
|
|
890
890
|
if (t !== void 0) return t;
|
|
891
891
|
let n = St(e, 0, e.length), r = (n & 16383) + Mt, i = jt[r] === (n ^ Nt) || jt[r ^ At] === (n ^ Nt - 1);
|
|
892
|
-
return i && (t = Ft[e], t !== void 0) ? (Pt[e] = t, t) : (t = kt(e), i ? (Pt[e] = t, ++Rt >
|
|
892
|
+
return i && (t = Ft[e], t !== void 0) ? (Pt[e] = t, t) : (t = kt(e), i ? (Pt[e] = t, ++Rt > de && (Rt = 0, Ft = Pt, Pt = Object.create(null), Bt())) : (jt[r] = n ^ Nt, ++zt > At && Bt()), t);
|
|
893
893
|
}, Ht = (e) => {
|
|
894
894
|
let t = It.get(e);
|
|
895
895
|
if (t !== void 0) return t;
|
|
896
896
|
let n = St(e, 0, e.length), r = (n & 16383) + Mt, i = jt[r] === (n ^ Nt) || jt[r ^ At] === (n ^ Nt - 1);
|
|
897
|
-
return i && (t = Lt.get(e), t !== void 0) ? (It.set(e, t), t) : (t = kt(e), i ? (It.set(e, t), ++Rt >
|
|
897
|
+
return i && (t = Lt.get(e), t !== void 0) ? (It.set(e, t), t) : (t = kt(e), i ? (It.set(e, t), ++Rt > de && (Rt = 0, Lt = It, It = /* @__PURE__ */ new Map(), Bt())) : (jt[r] = n ^ Nt, ++zt > At && Bt()), t);
|
|
898
898
|
}, Ut = (e) => {
|
|
899
899
|
let t = St(e, 0, e.length), n = (t & 16383) + Mt;
|
|
900
900
|
return jt[n] === (t ^ Nt) || jt[n ^ At] === (t ^ Nt - 1) || (jt[n] = t ^ Nt, ++zt > At && Bt(), !1);
|
|
901
|
-
}, Wt =
|
|
901
|
+
}, Wt = de === 0 ? kt : vt ? (e) => {
|
|
902
902
|
let t = It.get(e);
|
|
903
903
|
return t === void 0 ? Ht(e) : t;
|
|
904
904
|
} : Vt;
|
|
@@ -907,7 +907,7 @@ var dt = Ue("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), ft = He
|
|
|
907
907
|
return arguments.length === 1 && typeof arguments[0] == "string" ? Wt(arguments[0]) : Wt(Et.apply(null, arguments));
|
|
908
908
|
},
|
|
909
909
|
mergeString: Wt,
|
|
910
|
-
seenBefore:
|
|
910
|
+
seenBefore: de === 0 ? () => !1 : Ut,
|
|
911
911
|
mergeUncached: kt
|
|
912
912
|
};
|
|
913
913
|
}, wt = (e, t) => {
|
|
@@ -8530,11 +8530,11 @@ function rl(e) {
|
|
|
8530
8530
|
}
|
|
8531
8531
|
throw RangeError(`Unrecognized record size: ${C}`);
|
|
8532
8532
|
}
|
|
8533
|
-
let T = s[ee], E,
|
|
8534
|
-
if (S - x <= r && (
|
|
8535
|
-
let t = new Uint16Array(
|
|
8536
|
-
for (; o.pos > r;) i = g(
|
|
8537
|
-
E = new Uc(t, S -
|
|
8533
|
+
let T = s[ee], E, ne, re = x - e;
|
|
8534
|
+
if (S - x <= r && (ne = h(o.pos - t, y))) {
|
|
8535
|
+
let t = new Uint16Array(ne.size - ne.skip), r = o.pos - ne.size, i = t.length;
|
|
8536
|
+
for (; o.pos > r;) i = g(ne.start, t, i);
|
|
8537
|
+
E = new Uc(t, S - ne.start, n), re = ne.start - e;
|
|
8538
8538
|
} else {
|
|
8539
8539
|
let e = o.pos - C;
|
|
8540
8540
|
o.next();
|
|
@@ -8545,7 +8545,7 @@ function rl(e) {
|
|
|
8545
8545
|
E = ol(T, t, s, 0, t.length, 0, S - x, e, e);
|
|
8546
8546
|
} else E = m(T, t, s, S - x, te - S, w);
|
|
8547
8547
|
}
|
|
8548
|
-
_.push(E), v.push(
|
|
8548
|
+
_.push(E), v.push(re);
|
|
8549
8549
|
}
|
|
8550
8550
|
function d(e, t, i, a) {
|
|
8551
8551
|
let s = [], c = 0, l = -1;
|
|
@@ -10055,9 +10055,34 @@ var Ru = hl({
|
|
|
10055
10055
|
LinkTitle: Z.string,
|
|
10056
10056
|
Paragraph: Z.content
|
|
10057
10057
|
}), zu = new du(new zc(hu).extend(Ru), Object.keys(nu).map((e) => nu[e]), Object.keys(nu).map((e) => ou[e]), Object.keys(nu), su, Ll, Object.keys(Du).map((e) => Du[e]), Object.keys(Du), []);
|
|
10058
|
-
Z.strikethrough, Z.processingInstruction, Z.heading, Z.content, Z.processingInstruction
|
|
10058
|
+
Z.strikethrough, Z.processingInstruction, Z.heading, Z.content, Z.processingInstruction;
|
|
10059
|
+
var Bu = class {
|
|
10060
|
+
nextLine() {
|
|
10061
|
+
return !1;
|
|
10062
|
+
}
|
|
10063
|
+
finish(e, t) {
|
|
10064
|
+
return e.addLeafElement(t, e.elt("Task", t.start, t.start + t.content.length, [e.elt("TaskMarker", t.start, t.start + 3), ...e.parser.parseInline(t.content.slice(3), t.start + 3)])), !0;
|
|
10065
|
+
}
|
|
10066
|
+
}, Vu = {
|
|
10067
|
+
defineNodes: [{
|
|
10068
|
+
name: "Task",
|
|
10069
|
+
block: !0,
|
|
10070
|
+
style: Z.list
|
|
10071
|
+
}, {
|
|
10072
|
+
name: "TaskMarker",
|
|
10073
|
+
style: Z.atom
|
|
10074
|
+
}],
|
|
10075
|
+
parseBlock: [{
|
|
10076
|
+
name: "TaskList",
|
|
10077
|
+
leaf(e, t) {
|
|
10078
|
+
return /^\[[ xX]\][ \t]/.test(t.content) && e.parentType().name == "ListItem" ? new Bu() : null;
|
|
10079
|
+
},
|
|
10080
|
+
after: "SetextHeading"
|
|
10081
|
+
}]
|
|
10082
|
+
};
|
|
10083
|
+
Z.special(Z.content), Z.processingInstruction, Z.special(Z.content), Z.processingInstruction, Z.character;
|
|
10059
10084
|
// node_modules/@nesso-how/ui/dist/index.js
|
|
10060
|
-
var
|
|
10085
|
+
var Hu = ze("nesso-button inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap border border-transparent px-2.5 font-normal select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-3.5 [&_svg]:shrink-0", {
|
|
10061
10086
|
variants: {
|
|
10062
10087
|
variant: {
|
|
10063
10088
|
default: "bg-primary text-primary-foreground hover:bg-primary-hover active:bg-primary-hover",
|
|
@@ -10076,10 +10101,10 @@ var Bu = ze("nesso-button inline-flex shrink-0 items-center justify-center gap-2
|
|
|
10076
10101
|
size: "default"
|
|
10077
10102
|
}
|
|
10078
10103
|
});
|
|
10079
|
-
function
|
|
10104
|
+
function Uu({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
10080
10105
|
return /* @__PURE__ */ a(Pe, {
|
|
10081
10106
|
"data-slot": "button",
|
|
10082
|
-
className: Nt(
|
|
10107
|
+
className: Nt(Hu({
|
|
10083
10108
|
variant: t,
|
|
10084
10109
|
size: n,
|
|
10085
10110
|
className: e
|
|
@@ -10087,29 +10112,74 @@ function Vu({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
10087
10112
|
...r
|
|
10088
10113
|
});
|
|
10089
10114
|
}
|
|
10090
|
-
var
|
|
10115
|
+
var Wu = zu.configure(Vu), Gu = M.define({ combine: (e) => e.some(Boolean) }), Ku = (e) => (e.facet(Gu) ? Wu : zu).parse(e.doc.toString()), qu = class extends Jr {
|
|
10091
10116
|
label;
|
|
10092
|
-
|
|
10093
|
-
|
|
10117
|
+
checked;
|
|
10118
|
+
constructor(e, t = null) {
|
|
10119
|
+
super(), this.label = e, this.checked = t;
|
|
10094
10120
|
}
|
|
10095
10121
|
eq(e) {
|
|
10096
|
-
return this.label === e.label;
|
|
10122
|
+
return this.label === e.label && this.checked === e.checked;
|
|
10097
10123
|
}
|
|
10098
10124
|
toDOM(e) {
|
|
10099
|
-
let t = e.dom.ownerDocument.createElement("span");
|
|
10100
|
-
|
|
10125
|
+
let t = e.dom.ownerDocument, n = t.createElement("span");
|
|
10126
|
+
if (n.className = "nesso-markdown-list-marker", n.textContent = this.label, this.label === "• ") {
|
|
10127
|
+
let e = t.createElement("span");
|
|
10128
|
+
e.className = "nesso-markdown-bullet", e.textContent = "•", n.replaceChildren(e, t.createTextNode(" "));
|
|
10129
|
+
}
|
|
10130
|
+
if (this.checked !== null) {
|
|
10131
|
+
let e = t.createElement("input");
|
|
10132
|
+
e.type = "checkbox", e.className = "nesso-markdown-task", e.checked = this.checked, e.tabIndex = -1, n.append(e);
|
|
10133
|
+
}
|
|
10134
|
+
return n;
|
|
10101
10135
|
}
|
|
10102
10136
|
ignoreEvent() {
|
|
10103
10137
|
return !1;
|
|
10104
10138
|
}
|
|
10105
10139
|
};
|
|
10106
|
-
function
|
|
10140
|
+
function Ju(e) {
|
|
10141
|
+
let t = e.getChild("ListMark"), n = e.getChild("Task") ? 1.4 : 0;
|
|
10142
|
+
return e.parent?.name === "BulletList" ? {
|
|
10143
|
+
ch: 0,
|
|
10144
|
+
em: n || 1
|
|
10145
|
+
} : {
|
|
10146
|
+
ch: t.to - t.from - 1,
|
|
10147
|
+
em: .75 + n
|
|
10148
|
+
};
|
|
10149
|
+
}
|
|
10150
|
+
function Yu(e, t, n) {
|
|
10151
|
+
if (t.parent?.name !== "BulletList") {
|
|
10152
|
+
let n = t.getChild("ListMark");
|
|
10153
|
+
return `${e.sliceDoc(n.from, n.to)} `;
|
|
10154
|
+
}
|
|
10155
|
+
return n === null ? "• " : "";
|
|
10156
|
+
}
|
|
10157
|
+
function Xu(e) {
|
|
10158
|
+
let t = {
|
|
10159
|
+
ch: 0,
|
|
10160
|
+
em: 0
|
|
10161
|
+
};
|
|
10162
|
+
for (let n = e; n; n = n.parent) {
|
|
10163
|
+
if (n.name !== "ListItem") continue;
|
|
10164
|
+
let e = Ju(n);
|
|
10165
|
+
t.ch += e.ch, t.em += e.em;
|
|
10166
|
+
}
|
|
10167
|
+
return t;
|
|
10168
|
+
}
|
|
10169
|
+
function Zu(e, t, n) {
|
|
10170
|
+
let r = t.getChild("ListMark"), i = t.getChild("Task"), a = i?.getChild("TaskMarker"), o = a ? e.sliceDoc(a.from + 1, a.from + 2) !== " " : null, s = e.doc.lineAt(r.from), c = /^[\t ]*$/.test(e.sliceDoc(s.from, r.from)) ? s.from : r.from, l = a?.to ?? r.to, u = l + e.sliceDoc(l, s.to).match(/^[\t ]*/)[0].length, d = Yu(e, t, o), f = Ju(t), p = Xu(t), m = [z.line({
|
|
10171
|
+
class: "nesso-markdown-list-item",
|
|
10172
|
+
attributes: { style: `--nesso-list-indent: calc(${f.ch}ch + ${f.em}em); --nesso-list-padding: calc(var(--nesso-list-inset) + ${p.ch}ch + ${p.em}em)` }
|
|
10173
|
+
}).range(s.from), (n ? z.mark({ class: "nesso-markdown-syntax nesso-markdown-list-marker" }) : z.replace({ widget: new qu(d, o) })).range(c, u)];
|
|
10174
|
+
return o && i && u < i.to && m.push(z.mark({ class: "nesso-markdown-task-done" }).range(u, i.to)), m;
|
|
10175
|
+
}
|
|
10176
|
+
function Qu(e, t) {
|
|
10107
10177
|
let n = e.doc.toString(), r = [], i = (e, t, i) => {
|
|
10108
10178
|
if (e >= t || n.slice(e, t).includes("\n")) return;
|
|
10109
10179
|
let a = i ? z.mark({ class: "nesso-markdown-syntax" }) : z.replace({});
|
|
10110
10180
|
r.push(a.range(e, t));
|
|
10111
10181
|
};
|
|
10112
|
-
return
|
|
10182
|
+
return Ku(e).iterate({ enter(a) {
|
|
10113
10183
|
if ([
|
|
10114
10184
|
"Image",
|
|
10115
10185
|
"InlineCode",
|
|
@@ -10118,14 +10188,7 @@ function Uu(e, t) {
|
|
|
10118
10188
|
"HTMLBlock"
|
|
10119
10189
|
].includes(a.name)) return !1;
|
|
10120
10190
|
let o = t && e.selection.ranges.some((e) => e.from <= a.to && e.to >= a.from);
|
|
10121
|
-
if (a.name === "ListItem") {
|
|
10122
|
-
let t = a.node.getChild("ListMark"), i = e.doc.lineAt(t.from), s = t.to + (n.slice(t.to, i.to).match(/^[\t ]*/)?.[0].length ?? 0), c = a.node.parent?.name === "BulletList" ? "•" : n.slice(t.from, t.to), l = Math.max(3, s - t.from);
|
|
10123
|
-
r.push(z.line({
|
|
10124
|
-
class: "nesso-markdown-list-item",
|
|
10125
|
-
attributes: { style: `--nesso-list-indent: ${l}ch; --nesso-list-padding: ${t.from - i.from + l}ch` }
|
|
10126
|
-
}).range(i.from), (o ? z.mark({ class: "nesso-markdown-syntax nesso-markdown-list-marker" }) : z.replace({ widget: new Hu(`${c} `) })).range(t.from, s));
|
|
10127
|
-
}
|
|
10128
|
-
if (a.name === "StrongEmphasis" || a.name === "Emphasis") {
|
|
10191
|
+
if (a.name === "ListItem" && r.push(...Zu(e, a.node, o)), a.name === "StrongEmphasis" || a.name === "Emphasis") {
|
|
10129
10192
|
let [e, t] = a.node.getChildren("EmphasisMark");
|
|
10130
10193
|
r.push(z.mark({ class: a.name === "StrongEmphasis" ? "nesso-markdown-bold" : "nesso-markdown-italic" }).range(e.to, t.from)), i(e.from, e.to, o), i(t.from, t.to, o);
|
|
10131
10194
|
}
|
|
@@ -10140,14 +10203,39 @@ function Uu(e, t) {
|
|
|
10140
10203
|
}
|
|
10141
10204
|
} }), z.set(r, !0);
|
|
10142
10205
|
}
|
|
10206
|
+
function $u(e, t) {
|
|
10207
|
+
if (e.readOnly || !e.facet(Gu)) return null;
|
|
10208
|
+
let n = Ku(e).resolveInner(t, 1).parent?.getChild("Task")?.getChild("TaskMarker");
|
|
10209
|
+
if (!n) return null;
|
|
10210
|
+
let r = n.from + 1;
|
|
10211
|
+
return {
|
|
10212
|
+
changes: {
|
|
10213
|
+
from: r,
|
|
10214
|
+
to: r + 1,
|
|
10215
|
+
insert: e.sliceDoc(r, r + 1) === " " ? "x" : " "
|
|
10216
|
+
},
|
|
10217
|
+
userEvent: "input.toggle"
|
|
10218
|
+
};
|
|
10219
|
+
}
|
|
10143
10220
|
Bn.define(), va.define((e) => ({
|
|
10144
|
-
decorations:
|
|
10221
|
+
decorations: Qu(e.state, e.hasFocus && !e.state.readOnly),
|
|
10145
10222
|
update(e) {
|
|
10146
|
-
(e.docChanged || e.selectionSet || e.focusChanged || e.startState.readOnly !== e.state.readOnly) && (this.decorations =
|
|
10223
|
+
(e.docChanged || e.selectionSet || e.focusChanged || e.startState.readOnly !== e.state.readOnly || e.startState.facet(Gu) !== e.state.facet(Gu)) && (this.decorations = Qu(e.state, e.view.hasFocus && !e.state.readOnly));
|
|
10224
|
+
}
|
|
10225
|
+
}), { decorations: (e) => e.decorations }), K.domEventHandlers({
|
|
10226
|
+
mousedown(e, t) {
|
|
10227
|
+
let n = e.target.closest(".nesso-markdown-task");
|
|
10228
|
+
if (!n) return !1;
|
|
10229
|
+
e.preventDefault();
|
|
10230
|
+
let r = $u(t.state, t.posAtDOM(n));
|
|
10231
|
+
return r && t.dispatch(r), !0;
|
|
10232
|
+
},
|
|
10233
|
+
click(e) {
|
|
10234
|
+
return e.target.closest(".nesso-markdown-task") ? (e.preventDefault(), !0) : !1;
|
|
10147
10235
|
}
|
|
10148
|
-
})
|
|
10236
|
+
});
|
|
10149
10237
|
// src/Quiz.tsx
|
|
10150
|
-
function
|
|
10238
|
+
function ed({ document: e, storage: t, viewId: s }) {
|
|
10151
10239
|
let [c, l] = r(null), [u, d] = r(!1), f = `quiz:${s ?? "all"}`;
|
|
10152
10240
|
n(() => {
|
|
10153
10241
|
t.list().then((e) => {
|
|
@@ -10192,11 +10280,11 @@ function Wu({ document: e, storage: t, viewId: s }) {
|
|
|
10192
10280
|
role: "status",
|
|
10193
10281
|
children: h.length ? "Quiz complete!" : "This view has no relations."
|
|
10194
10282
|
}),
|
|
10195
|
-
/* @__PURE__ */ o("footer", { children: [/* @__PURE__ */ a(
|
|
10283
|
+
/* @__PURE__ */ o("footer", { children: [/* @__PURE__ */ a(Uu, {
|
|
10196
10284
|
variant: "outline",
|
|
10197
10285
|
onClick: () => void p(0),
|
|
10198
10286
|
children: "Reset"
|
|
10199
|
-
}), /* @__PURE__ */ a(
|
|
10287
|
+
}), /* @__PURE__ */ a(Uu, {
|
|
10200
10288
|
disabled: !_,
|
|
10201
10289
|
onClick: () => u ? void p(c + 1) : d(!0),
|
|
10202
10290
|
children: b
|
|
@@ -10206,7 +10294,7 @@ function Wu({ document: e, storage: t, viewId: s }) {
|
|
|
10206
10294
|
});
|
|
10207
10295
|
}
|
|
10208
10296
|
// src/index.ts
|
|
10209
|
-
var
|
|
10297
|
+
var td = () => [{
|
|
10210
10298
|
id: "uppercase-labels",
|
|
10211
10299
|
label: { en: "Uppercase labels" },
|
|
10212
10300
|
run: async ({ document: e }) => {
|
|
@@ -10220,7 +10308,7 @@ var Gu = () => [{
|
|
|
10220
10308
|
}, {
|
|
10221
10309
|
id: "concept-quiz",
|
|
10222
10310
|
label: { en: "Concept Quiz" },
|
|
10223
|
-
ui:
|
|
10311
|
+
ui: ed,
|
|
10224
10312
|
icon: "play"
|
|
10225
10313
|
}];
|
|
10226
|
-
export {
|
|
10314
|
+
export { td as create };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nesso-how/plugin-example",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.12",
|
|
4
4
|
"description": "Official example showing how to build Nesso plugins with the SDK and plugin APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nesso-plugin"
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"prepack": "npm run build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nesso-how/ui": "1.0.0-beta.
|
|
31
|
+
"@nesso-how/ui": "1.0.0-beta.12",
|
|
32
32
|
"react": "^19.2.8",
|
|
33
33
|
"react-dom": "^19.2.8"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@nesso-how/plugin": "0.
|
|
36
|
+
"@nesso-how/plugin": "1.0.0-beta.12",
|
|
37
37
|
"@types/react": "^19.2.18",
|
|
38
38
|
"@types/react-dom": "^19.2.7",
|
|
39
39
|
"typescript": "~7.0.2",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"nesso": {
|
|
57
|
-
"apiVersion":
|
|
57
|
+
"apiVersion": 3,
|
|
58
58
|
"kind": "actions",
|
|
59
59
|
"entry": "dist/index.js",
|
|
60
60
|
"writes": [
|