@arcanewizards/sigil 0.1.2 → 0.1.4
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/LICENSE +21 -0
- package/dist/{chunk-MXDDIFIO.cjs → chunk-CHVABPET.cjs} +32 -28
- package/dist/{chunk-XAK7WC3D.js → chunk-E3VUC3Q4.js} +6 -2
- package/dist/{chunk-5DRI7C4U.cjs → chunk-TZJ4UXR3.cjs} +1 -12
- package/dist/{chunk-H4U4Z4GM.js → chunk-WYUGJOEB.js} +0 -11
- package/dist/frontend/appearance.cjs +6 -6
- package/dist/frontend/appearance.js +2 -2
- package/dist/frontend/controls/index.cjs +3 -3
- package/dist/frontend/controls/index.d.cts +3 -1
- package/dist/frontend/controls/index.d.ts +3 -1
- package/dist/frontend/controls/index.js +2 -2
- package/dist/frontend/dialogs.cjs +3 -3
- package/dist/frontend/dialogs.js +2 -2
- package/dist/frontend/styles/sigil.css +11 -0
- package/dist/frontend/styling.cjs +2 -4
- package/dist/frontend/styling.d.cts +1 -5
- package/dist/frontend/styling.d.ts +1 -5
- package/dist/frontend/styling.hooks.cjs +18 -0
- package/dist/frontend/styling.hooks.d.cts +10 -0
- package/dist/frontend/styling.hooks.d.ts +10 -0
- package/dist/frontend/styling.hooks.js +18 -0
- package/dist/frontend/styling.js +3 -5
- package/dist/frontend.cjs +8 -8
- package/dist/frontend.js +2 -2
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -0
- package/package.json +11 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Arcane Wizards Ltd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -9,7 +9,7 @@ var _chunkRI33QVODcjs = require('./chunk-RI33QVOD.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkTZJ4UXR3cjs = require('./chunk-TZJ4UXR3.cjs');
|
|
13
13
|
|
|
14
14
|
// src/frontend/dialogs.tsx
|
|
15
15
|
|
|
@@ -75,7 +75,7 @@ var CONTROL_BUTTON_VAR_SUFFIX = {
|
|
|
75
75
|
borderActive: "border-active"
|
|
76
76
|
};
|
|
77
77
|
var controlButtonColorVariable = (property) => `--sigil-control-button-${CONTROL_BUTTON_VAR_SUFFIX[property]}`;
|
|
78
|
-
var controlButtonColorVariables = (usage) =>
|
|
78
|
+
var controlButtonColorVariables = (usage) => _chunkTZJ4UXR3cjs.cssVariables.call(void 0,
|
|
79
79
|
Object.fromEntries(
|
|
80
80
|
Object.keys(usage).map(
|
|
81
81
|
(key) => [controlButtonColorVariable(key), usage[key]]
|
|
@@ -87,18 +87,20 @@ var clsControlButton = ({
|
|
|
87
87
|
active,
|
|
88
88
|
touching,
|
|
89
89
|
position,
|
|
90
|
-
className
|
|
90
|
+
className,
|
|
91
|
+
primary
|
|
91
92
|
}) => _util.cn.call(void 0,
|
|
92
93
|
`sigil-control-button`,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, variant === "border", `sigil-control-button-variant-border`),
|
|
95
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, variant === "large", `sigil-control-button-variant-large`),
|
|
96
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, variant === "properties", `sigil-control-button-variant-properties`),
|
|
97
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, variant === "table-row", `sigil-control-button-variant-table-row`),
|
|
98
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, variant === "toolbar", `sigil-control-button-variant-toolbar`),
|
|
99
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, variant === "titlebar", `sigil-control-button-variant-titlebar`),
|
|
100
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, touching, `sigil-control-button-touching`),
|
|
101
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, active, `sigil-control-button-active`),
|
|
102
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, touching && active, `sigil-control-button-active-touching`),
|
|
103
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, primary, `sigil-control-button-primary`),
|
|
102
104
|
clsControlPosition(position),
|
|
103
105
|
className
|
|
104
106
|
);
|
|
@@ -115,6 +117,7 @@ var ControlButtonFrame = _react.forwardRef.call(void 0,
|
|
|
115
117
|
title,
|
|
116
118
|
tooltipSide,
|
|
117
119
|
position,
|
|
120
|
+
primary,
|
|
118
121
|
...props
|
|
119
122
|
}, ref) => {
|
|
120
123
|
const btn = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -129,6 +132,7 @@ var ControlButtonFrame = _react.forwardRef.call(void 0,
|
|
|
129
132
|
active,
|
|
130
133
|
touching,
|
|
131
134
|
position,
|
|
135
|
+
primary,
|
|
132
136
|
className
|
|
133
137
|
}),
|
|
134
138
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
|
|
@@ -136,7 +140,7 @@ var ControlButtonFrame = _react.forwardRef.call(void 0,
|
|
|
136
140
|
_core.Icon,
|
|
137
141
|
{
|
|
138
142
|
icon,
|
|
139
|
-
className: _util.cn.call(void 0,
|
|
143
|
+
className: _util.cn.call(void 0, _chunkTZJ4UXR3cjs.cnd.call(void 0, children, "text-[120%]", "text-[150%]"))
|
|
140
144
|
}
|
|
141
145
|
),
|
|
142
146
|
children
|
|
@@ -213,14 +217,14 @@ var ControlParagraph = _react.forwardRef.call(void 0, ({ className, mode, positi
|
|
|
213
217
|
className: _util.cn.call(void 0,
|
|
214
218
|
"border border-transparent",
|
|
215
219
|
clsControlPosition(position),
|
|
216
|
-
|
|
220
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0,
|
|
217
221
|
mode === "success",
|
|
218
222
|
`
|
|
219
223
|
border-sigil-usage-green-dimmed-border
|
|
220
224
|
bg-sigil-usage-green-dimmed-background p-1 text-sigil-usage-green-text
|
|
221
225
|
`
|
|
222
226
|
),
|
|
223
|
-
|
|
227
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0,
|
|
224
228
|
mode === "warning",
|
|
225
229
|
`
|
|
226
230
|
border-sigil-usage-yellow-dimmed-border
|
|
@@ -228,7 +232,7 @@ var ControlParagraph = _react.forwardRef.call(void 0, ({ className, mode, positi
|
|
|
228
232
|
text-sigil-usage-yellow-text
|
|
229
233
|
`
|
|
230
234
|
),
|
|
231
|
-
|
|
235
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0,
|
|
232
236
|
mode === "error",
|
|
233
237
|
`
|
|
234
238
|
border-sigil-usage-red-dimmed-border
|
|
@@ -250,8 +254,8 @@ var ControlLabel = _react.forwardRef.call(void 0,
|
|
|
250
254
|
className: _util.cn.call(void 0,
|
|
251
255
|
"flex items-center justify-end gap-0.6 p-0.6",
|
|
252
256
|
clsControlPosition(position),
|
|
253
|
-
|
|
254
|
-
|
|
257
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, nonMicro, "max-[550px]:hidden"),
|
|
258
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, disabled, "opacity-50"),
|
|
255
259
|
clsControlSubgridPosition(position, subgrid),
|
|
256
260
|
className
|
|
257
261
|
)
|
|
@@ -269,9 +273,9 @@ var ControlDetails = _react.forwardRef.call(void 0,
|
|
|
269
273
|
className: _util.cn.call(void 0,
|
|
270
274
|
"flex items-center px-0.3 text-sigil-foreground-muted",
|
|
271
275
|
clsControlPosition(position),
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
276
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, align === "start", "justify-start"),
|
|
277
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, align === "center", "justify-center"),
|
|
278
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, align === "end", "justify-end"),
|
|
275
279
|
className
|
|
276
280
|
)
|
|
277
281
|
}
|
|
@@ -314,7 +318,7 @@ var ControlDialog = ({
|
|
|
314
318
|
{
|
|
315
319
|
className: _util.cn.call(void 0,
|
|
316
320
|
"gap-1 bg-sigil-bg-dark select-none",
|
|
317
|
-
|
|
321
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, large, "control-grid-large", "control-grid")
|
|
318
322
|
),
|
|
319
323
|
children
|
|
320
324
|
}
|
|
@@ -409,7 +413,7 @@ var ControlInput = ({
|
|
|
409
413
|
`,
|
|
410
414
|
clsControlPosition(position),
|
|
411
415
|
clsControlSubgridPosition(position, subgrid),
|
|
412
|
-
|
|
416
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, nonMicro, "max-[550px]:hidden"),
|
|
413
417
|
className
|
|
414
418
|
)
|
|
415
419
|
}
|
|
@@ -524,7 +528,7 @@ var ControlColorSelect = ({
|
|
|
524
528
|
...props
|
|
525
529
|
}) => {
|
|
526
530
|
const options = Object.values(COLOR_OPTIONS);
|
|
527
|
-
const selectedColor =
|
|
531
|
+
const selectedColor = _chunkTZJ4UXR3cjs.sigilColorUsage.call(void 0, color || "gray");
|
|
528
532
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
529
533
|
ControlSelect,
|
|
530
534
|
{
|
|
@@ -621,7 +625,7 @@ var DialogTitle = _react.forwardRef.call(void 0,
|
|
|
621
625
|
flex items-center justify-center gap-0.6 border-b border-sigil-border
|
|
622
626
|
p-arcane font-bold
|
|
623
627
|
`,
|
|
624
|
-
|
|
628
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, isDarkDialog(variant), "bg-sigil-bg-light", "bg-sigil-bg-dark"),
|
|
625
629
|
className
|
|
626
630
|
)
|
|
627
631
|
}
|
|
@@ -674,7 +678,7 @@ var Dialog = ({
|
|
|
674
678
|
max-w-[80vw] min-w-[10vw] border-none p-0 text-sigil-dialog-foreground
|
|
675
679
|
outline-none backdrop-sigil-dialog
|
|
676
680
|
`,
|
|
677
|
-
|
|
681
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, isDarkDialog(variant), "bg-sigil-bg-dark", "bg-sigil-bg-light")
|
|
678
682
|
),
|
|
679
683
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "border border-sigil-border", children: [
|
|
680
684
|
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogTitle, { variant, children: title }),
|
|
@@ -683,11 +687,11 @@ var Dialog = ({
|
|
|
683
687
|
{
|
|
684
688
|
className: _util.cn.call(void 0,
|
|
685
689
|
"text-sigil-foreground",
|
|
686
|
-
|
|
690
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0,
|
|
687
691
|
variant === "light-compact" || variant === "dark-compact",
|
|
688
692
|
"p-0"
|
|
689
693
|
),
|
|
690
|
-
|
|
694
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0,
|
|
691
695
|
variant !== "light-compact" && variant !== "dark-compact",
|
|
692
696
|
"p-arcane"
|
|
693
697
|
)
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
cnd,
|
|
10
10
|
cssVariables,
|
|
11
11
|
sigilColorUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WYUGJOEB.js";
|
|
13
13
|
|
|
14
14
|
// src/frontend/dialogs.tsx
|
|
15
15
|
import {
|
|
@@ -87,7 +87,8 @@ var clsControlButton = ({
|
|
|
87
87
|
active,
|
|
88
88
|
touching,
|
|
89
89
|
position,
|
|
90
|
-
className
|
|
90
|
+
className,
|
|
91
|
+
primary
|
|
91
92
|
}) => cn(
|
|
92
93
|
`sigil-control-button`,
|
|
93
94
|
cnd(variant === "border", `sigil-control-button-variant-border`),
|
|
@@ -99,6 +100,7 @@ var clsControlButton = ({
|
|
|
99
100
|
cnd(touching, `sigil-control-button-touching`),
|
|
100
101
|
cnd(active, `sigil-control-button-active`),
|
|
101
102
|
cnd(touching && active, `sigil-control-button-active-touching`),
|
|
103
|
+
cnd(primary, `sigil-control-button-primary`),
|
|
102
104
|
clsControlPosition(position),
|
|
103
105
|
className
|
|
104
106
|
);
|
|
@@ -115,6 +117,7 @@ var ControlButtonFrame = forwardRef(
|
|
|
115
117
|
title,
|
|
116
118
|
tooltipSide,
|
|
117
119
|
position,
|
|
120
|
+
primary,
|
|
118
121
|
...props
|
|
119
122
|
}, ref) => {
|
|
120
123
|
const btn = /* @__PURE__ */ jsx(
|
|
@@ -129,6 +132,7 @@ var ControlButtonFrame = forwardRef(
|
|
|
129
132
|
active,
|
|
130
133
|
touching,
|
|
131
134
|
position,
|
|
135
|
+
primary,
|
|
132
136
|
className
|
|
133
137
|
}),
|
|
134
138
|
children: /* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/frontend/styling.ts
|
|
2
|
-
var _react = require('react');
|
|
3
2
|
var _zod = require('zod');
|
|
4
3
|
var SIGIL_COLOR = _zod.z.enum([
|
|
5
4
|
"purple",
|
|
@@ -41,15 +40,6 @@ var cssSigilColorUsageVariables = (prefix, usage) => cssVariables({
|
|
|
41
40
|
[`--${prefix}-gradient-dark`]: usage.gradientDark
|
|
42
41
|
});
|
|
43
42
|
var cssHintColorVariables = (color) => cssSigilColorUsageVariables(`sigil-usage-hint`, sigilColorUsage(color));
|
|
44
|
-
var useRootHintVariables = (color) => {
|
|
45
|
-
_react.useEffect.call(void 0, () => {
|
|
46
|
-
const root = document.querySelector(".arcane-theme-root");
|
|
47
|
-
if (!root) return;
|
|
48
|
-
Object.entries(cssHintColorVariables(color)).forEach(([key, value]) => {
|
|
49
|
-
root.style.setProperty(key, value);
|
|
50
|
-
});
|
|
51
|
-
}, [color]);
|
|
52
|
-
};
|
|
53
43
|
var cssVariables = (variables) => variables;
|
|
54
44
|
function cnd(condition, truthyClassName, falseyClassName) {
|
|
55
45
|
return condition ? truthyClassName : falseyClassName;
|
|
@@ -62,5 +52,4 @@ function cnd(condition, truthyClassName, falseyClassName) {
|
|
|
62
52
|
|
|
63
53
|
|
|
64
54
|
|
|
65
|
-
|
|
66
|
-
exports.SIGIL_COLOR = SIGIL_COLOR; exports.sigilColorUsage = sigilColorUsage; exports.cssSigilColorUsageVariables = cssSigilColorUsageVariables; exports.cssHintColorVariables = cssHintColorVariables; exports.useRootHintVariables = useRootHintVariables; exports.cssVariables = cssVariables; exports.cnd = cnd;
|
|
55
|
+
exports.SIGIL_COLOR = SIGIL_COLOR; exports.sigilColorUsage = sigilColorUsage; exports.cssSigilColorUsageVariables = cssSigilColorUsageVariables; exports.cssHintColorVariables = cssHintColorVariables; exports.cssVariables = cssVariables; exports.cnd = cnd;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// src/frontend/styling.ts
|
|
2
|
-
import { useEffect } from "react";
|
|
3
2
|
import { z } from "zod";
|
|
4
3
|
var SIGIL_COLOR = z.enum([
|
|
5
4
|
"purple",
|
|
@@ -41,15 +40,6 @@ var cssSigilColorUsageVariables = (prefix, usage) => cssVariables({
|
|
|
41
40
|
[`--${prefix}-gradient-dark`]: usage.gradientDark
|
|
42
41
|
});
|
|
43
42
|
var cssHintColorVariables = (color) => cssSigilColorUsageVariables(`sigil-usage-hint`, sigilColorUsage(color));
|
|
44
|
-
var useRootHintVariables = (color) => {
|
|
45
|
-
useEffect(() => {
|
|
46
|
-
const root = document.querySelector(".arcane-theme-root");
|
|
47
|
-
if (!root) return;
|
|
48
|
-
Object.entries(cssHintColorVariables(color)).forEach(([key, value]) => {
|
|
49
|
-
root.style.setProperty(key, value);
|
|
50
|
-
});
|
|
51
|
-
}, [color]);
|
|
52
|
-
};
|
|
53
43
|
var cssVariables = (variables) => variables;
|
|
54
44
|
function cnd(condition, truthyClassName, falseyClassName) {
|
|
55
45
|
return condition ? truthyClassName : falseyClassName;
|
|
@@ -60,7 +50,6 @@ export {
|
|
|
60
50
|
sigilColorUsage,
|
|
61
51
|
cssSigilColorUsageVariables,
|
|
62
52
|
cssHintColorVariables,
|
|
63
|
-
useRootHintVariables,
|
|
64
53
|
cssVariables,
|
|
65
54
|
cnd
|
|
66
55
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkCHVABPETcjs = require('../chunk-CHVABPET.cjs');
|
|
5
5
|
require('../chunk-PEARNJ5G.cjs');
|
|
6
6
|
require('../chunk-RI33QVOD.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-TZJ4UXR3.cjs');
|
|
8
8
|
|
|
9
9
|
// src/frontend/appearance.tsx
|
|
10
10
|
var _core = require('@arcanejs/toolkit-frontend/components/core');
|
|
@@ -35,7 +35,7 @@ var AppearanceSwitcher = ({
|
|
|
35
35
|
);
|
|
36
36
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "control-grid-pos-all flex flex-wrap items-stretch gap-2", children: [
|
|
37
37
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
38
|
-
|
|
38
|
+
_chunkCHVABPETcjs.ControlButton,
|
|
39
39
|
{
|
|
40
40
|
onClick: selectDarkMode,
|
|
41
41
|
active: colorSchemePreference === "dark",
|
|
@@ -48,7 +48,7 @@ var AppearanceSwitcher = ({
|
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
50
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkCHVABPETcjs.ControlButton,
|
|
52
52
|
{
|
|
53
53
|
onClick: selectLightMode,
|
|
54
54
|
active: colorSchemePreference === "light",
|
|
@@ -61,7 +61,7 @@ var AppearanceSwitcher = ({
|
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
63
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
64
|
-
|
|
64
|
+
_chunkCHVABPETcjs.ControlButton,
|
|
65
65
|
{
|
|
66
66
|
onClick: selectSystemMode,
|
|
67
67
|
active: colorSchemePreference === "auto",
|
|
@@ -74,7 +74,7 @@ var AppearanceSwitcher = ({
|
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
77
|
-
|
|
77
|
+
_chunkCHVABPETcjs.ControlColorSelect,
|
|
78
78
|
{
|
|
79
79
|
color,
|
|
80
80
|
onChange: updateHintColor,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ControlButton,
|
|
3
3
|
ControlColorSelect
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-E3VUC3Q4.js";
|
|
5
5
|
import "../chunk-BIY5HAXP.js";
|
|
6
6
|
import "../chunk-4PMRDURG.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-WYUGJOEB.js";
|
|
8
8
|
|
|
9
9
|
// src/frontend/appearance.tsx
|
|
10
10
|
import { Icon } from "@arcanejs/toolkit-frontend/components/core";
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkCHVABPETcjs = require('../../chunk-CHVABPET.cjs');
|
|
24
24
|
require('../../chunk-PEARNJ5G.cjs');
|
|
25
25
|
require('../../chunk-RI33QVOD.cjs');
|
|
26
|
-
require('../../chunk-
|
|
26
|
+
require('../../chunk-TZJ4UXR3.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -46,4 +46,4 @@ require('../../chunk-5DRI7C4U.cjs');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
exports.CheckboxControlButton =
|
|
49
|
+
exports.CheckboxControlButton = _chunkCHVABPETcjs.CheckboxControlButton; exports.ControlButton = _chunkCHVABPETcjs.ControlButton; exports.ControlButtonGroup = _chunkCHVABPETcjs.ControlButtonGroup; exports.ControlColorSelect = _chunkCHVABPETcjs.ControlColorSelect; exports.ControlDetails = _chunkCHVABPETcjs.ControlDetails; exports.ControlDialog = _chunkCHVABPETcjs.ControlDialog; exports.ControlDialogButtons = _chunkCHVABPETcjs.ControlDialogButtons; exports.ControlInput = _chunkCHVABPETcjs.ControlInput; exports.ControlLabel = _chunkCHVABPETcjs.ControlLabel; exports.ControlParagraph = _chunkCHVABPETcjs.ControlParagraph; exports.ControlPercent = _chunkCHVABPETcjs.ControlPercent; exports.ControlSelect = _chunkCHVABPETcjs.ControlSelect; exports.InputSpanningTitle = _chunkCHVABPETcjs.InputSpanningTitle; exports.InputWithDelayedPropagation = _chunkCHVABPETcjs.InputWithDelayedPropagation; exports.LongPressableControlButton = _chunkCHVABPETcjs.LongPressableControlButton; exports.clsControlButton = _chunkCHVABPETcjs.clsControlButton; exports.clsControlPosition = _chunkCHVABPETcjs.clsControlPosition; exports.clsControlSubgridPosition = _chunkCHVABPETcjs.clsControlSubgridPosition; exports.controlButtonColorVariable = _chunkCHVABPETcjs.controlButtonColorVariable; exports.controlButtonColorVariables = _chunkCHVABPETcjs.controlButtonColorVariables; exports.controlPositionClass = _chunkCHVABPETcjs.controlPositionClass;
|
|
@@ -33,6 +33,7 @@ type ControlButtonProps = Omit<ComponentPropsWithoutRef<'button'>, 'children' |
|
|
|
33
33
|
title?: ReactNode;
|
|
34
34
|
tooltipSide?: TooltipProps['side'];
|
|
35
35
|
position?: ControlPosition;
|
|
36
|
+
primary?: boolean;
|
|
36
37
|
} & ({
|
|
37
38
|
children: ReactNode;
|
|
38
39
|
icon?: string;
|
|
@@ -49,8 +50,9 @@ type ControlButtonFrameProps = Omit<ComponentPropsWithoutRef<'button'>, 'childre
|
|
|
49
50
|
title?: ReactNode;
|
|
50
51
|
tooltipSide?: TooltipProps['side'];
|
|
51
52
|
position?: ControlPosition;
|
|
53
|
+
primary?: boolean;
|
|
52
54
|
};
|
|
53
|
-
declare const clsControlButton: ({ variant, active, touching, position, className, }: Pick<ControlButtonFrameProps, "variant" | "active" | "touching" | "position" | "className">) => string;
|
|
55
|
+
declare const clsControlButton: ({ variant, active, touching, position, className, primary, }: Pick<ControlButtonFrameProps, "variant" | "active" | "touching" | "position" | "className" | "primary">) => string;
|
|
54
56
|
declare const ControlButton: react.ForwardRefExoticComponent<ControlButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
55
57
|
type CheckboxControlButtonProps = Omit<ControlButtonProps, 'children' | 'icon'> & {
|
|
56
58
|
label?: string;
|
|
@@ -33,6 +33,7 @@ type ControlButtonProps = Omit<ComponentPropsWithoutRef<'button'>, 'children' |
|
|
|
33
33
|
title?: ReactNode;
|
|
34
34
|
tooltipSide?: TooltipProps['side'];
|
|
35
35
|
position?: ControlPosition;
|
|
36
|
+
primary?: boolean;
|
|
36
37
|
} & ({
|
|
37
38
|
children: ReactNode;
|
|
38
39
|
icon?: string;
|
|
@@ -49,8 +50,9 @@ type ControlButtonFrameProps = Omit<ComponentPropsWithoutRef<'button'>, 'childre
|
|
|
49
50
|
title?: ReactNode;
|
|
50
51
|
tooltipSide?: TooltipProps['side'];
|
|
51
52
|
position?: ControlPosition;
|
|
53
|
+
primary?: boolean;
|
|
52
54
|
};
|
|
53
|
-
declare const clsControlButton: ({ variant, active, touching, position, className, }: Pick<ControlButtonFrameProps, "variant" | "active" | "touching" | "position" | "className">) => string;
|
|
55
|
+
declare const clsControlButton: ({ variant, active, touching, position, className, primary, }: Pick<ControlButtonFrameProps, "variant" | "active" | "touching" | "position" | "className" | "primary">) => string;
|
|
54
56
|
declare const ControlButton: react.ForwardRefExoticComponent<ControlButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
55
57
|
type CheckboxControlButtonProps = Omit<ControlButtonProps, 'children' | 'icon'> & {
|
|
56
58
|
label?: string;
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
controlButtonColorVariable,
|
|
21
21
|
controlButtonColorVariables,
|
|
22
22
|
controlPositionClass
|
|
23
|
-
} from "../../chunk-
|
|
23
|
+
} from "../../chunk-E3VUC3Q4.js";
|
|
24
24
|
import "../../chunk-BIY5HAXP.js";
|
|
25
25
|
import "../../chunk-4PMRDURG.js";
|
|
26
|
-
import "../../chunk-
|
|
26
|
+
import "../../chunk-WYUGJOEB.js";
|
|
27
27
|
export {
|
|
28
28
|
CheckboxControlButton,
|
|
29
29
|
ControlButton,
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCHVABPETcjs = require('../chunk-CHVABPET.cjs');
|
|
8
8
|
require('../chunk-PEARNJ5G.cjs');
|
|
9
9
|
require('../chunk-RI33QVOD.cjs');
|
|
10
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-TZJ4UXR3.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.Dialog =
|
|
17
|
+
exports.Dialog = _chunkCHVABPETcjs.Dialog; exports.DialogButtons = _chunkCHVABPETcjs.DialogButtons; exports.DialogContext = _chunkCHVABPETcjs.DialogContext; exports.DialogProvider = _chunkCHVABPETcjs.DialogProvider; exports.DialogTitle = _chunkCHVABPETcjs.DialogTitle;
|
package/dist/frontend/dialogs.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
DialogContext,
|
|
5
5
|
DialogProvider,
|
|
6
6
|
DialogTitle
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-E3VUC3Q4.js";
|
|
8
8
|
import "../chunk-BIY5HAXP.js";
|
|
9
9
|
import "../chunk-4PMRDURG.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-WYUGJOEB.js";
|
|
11
11
|
export {
|
|
12
12
|
Dialog,
|
|
13
13
|
DialogButtons,
|
|
@@ -489,6 +489,17 @@
|
|
|
489
489
|
--tw-drop-shadow: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
|
|
490
490
|
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
491
491
|
}
|
|
492
|
+
.sigil-control-button-primary {
|
|
493
|
+
--sigil-control-button-bg: var(--sigil-usage-hint-background);
|
|
494
|
+
--sigil-control-button-bg-hover: var(--sigil-usage-hint-border);
|
|
495
|
+
--sigil-control-button-bg-active: var(--sigil-usage-hint-border);
|
|
496
|
+
--sigil-control-button-fg: var(--sigil-usage-hint-text);
|
|
497
|
+
--sigil-control-button-fg-hover: var(--sigil-usage-hint-text);
|
|
498
|
+
--sigil-control-button-fg-active: var(--sigil-usage-hint-text);
|
|
499
|
+
--sigil-control-button-border: transparent;
|
|
500
|
+
--sigil-control-button-border-hover: transparent;
|
|
501
|
+
--sigil-control-button-border-active: transparent;
|
|
502
|
+
}
|
|
492
503
|
.outline-none {
|
|
493
504
|
--tw-outline-style: none;
|
|
494
505
|
outline-style: none;
|
|
@@ -5,14 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
var _chunkTZJ4UXR3cjs = require('../chunk-TZJ4UXR3.cjs');
|
|
8
9
|
|
|
9
|
-
var _chunk5DRI7C4Ucjs = require('../chunk-5DRI7C4U.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exports.SIGIL_COLOR = _chunk5DRI7C4Ucjs.SIGIL_COLOR; exports.cnd = _chunk5DRI7C4Ucjs.cnd; exports.cssHintColorVariables = _chunk5DRI7C4Ucjs.cssHintColorVariables; exports.cssSigilColorUsageVariables = _chunk5DRI7C4Ucjs.cssSigilColorUsageVariables; exports.cssVariables = _chunk5DRI7C4Ucjs.cssVariables; exports.sigilColorUsage = _chunk5DRI7C4Ucjs.sigilColorUsage; exports.useRootHintVariables = _chunk5DRI7C4Ucjs.useRootHintVariables;
|
|
16
|
+
exports.SIGIL_COLOR = _chunkTZJ4UXR3cjs.SIGIL_COLOR; exports.cnd = _chunkTZJ4UXR3cjs.cnd; exports.cssHintColorVariables = _chunkTZJ4UXR3cjs.cssHintColorVariables; exports.cssSigilColorUsageVariables = _chunkTZJ4UXR3cjs.cssSigilColorUsageVariables; exports.cssVariables = _chunkTZJ4UXR3cjs.cssVariables; exports.sigilColorUsage = _chunkTZJ4UXR3cjs.sigilColorUsage;
|
|
@@ -21,12 +21,8 @@ type SigilUsageColorUsage = {
|
|
|
21
21
|
declare const sigilColorUsage: (color: SigilUsageColor) => SigilUsageColorUsage;
|
|
22
22
|
declare const cssSigilColorUsageVariables: (prefix: string, usage: SigilUsageColorUsage) => CSSProperties;
|
|
23
23
|
declare const cssHintColorVariables: (color: SigilColor) => CSSProperties;
|
|
24
|
-
/**
|
|
25
|
-
* Hook that will adjust the root hint color based on the given color.
|
|
26
|
-
*/
|
|
27
|
-
declare const useRootHintVariables: (color: SigilColor) => void;
|
|
28
24
|
declare const cssVariables: (variables: Partial<Record<`--${string}`, string | number>>) => CSSProperties;
|
|
29
25
|
declare function cnd<T extends string>(condition: unknown, truthyClassName: T): T | undefined;
|
|
30
26
|
declare function cnd<T extends string, F extends string>(condition: unknown, truthyClassName: T, falseyClassName: F): T | F;
|
|
31
27
|
|
|
32
|
-
export { SIGIL_COLOR, type SigilColor, type SigilUsageColor, type SigilUsageColorUsage, cnd, cssHintColorVariables, cssSigilColorUsageVariables, cssVariables, sigilColorUsage
|
|
28
|
+
export { SIGIL_COLOR, type SigilColor, type SigilUsageColor, type SigilUsageColorUsage, cnd, cssHintColorVariables, cssSigilColorUsageVariables, cssVariables, sigilColorUsage };
|
|
@@ -21,12 +21,8 @@ type SigilUsageColorUsage = {
|
|
|
21
21
|
declare const sigilColorUsage: (color: SigilUsageColor) => SigilUsageColorUsage;
|
|
22
22
|
declare const cssSigilColorUsageVariables: (prefix: string, usage: SigilUsageColorUsage) => CSSProperties;
|
|
23
23
|
declare const cssHintColorVariables: (color: SigilColor) => CSSProperties;
|
|
24
|
-
/**
|
|
25
|
-
* Hook that will adjust the root hint color based on the given color.
|
|
26
|
-
*/
|
|
27
|
-
declare const useRootHintVariables: (color: SigilColor) => void;
|
|
28
24
|
declare const cssVariables: (variables: Partial<Record<`--${string}`, string | number>>) => CSSProperties;
|
|
29
25
|
declare function cnd<T extends string>(condition: unknown, truthyClassName: T): T | undefined;
|
|
30
26
|
declare function cnd<T extends string, F extends string>(condition: unknown, truthyClassName: T, falseyClassName: F): T | F;
|
|
31
27
|
|
|
32
|
-
export { SIGIL_COLOR, type SigilColor, type SigilUsageColor, type SigilUsageColorUsage, cnd, cssHintColorVariables, cssSigilColorUsageVariables, cssVariables, sigilColorUsage
|
|
28
|
+
export { SIGIL_COLOR, type SigilColor, type SigilUsageColor, type SigilUsageColorUsage, cnd, cssHintColorVariables, cssSigilColorUsageVariables, cssVariables, sigilColorUsage };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkTZJ4UXR3cjs = require('../chunk-TZJ4UXR3.cjs');
|
|
4
|
+
|
|
5
|
+
// src/frontend/styling.hooks.ts
|
|
6
|
+
var _react = require('react');
|
|
7
|
+
var useRootHintVariables = (color) => {
|
|
8
|
+
_react.useEffect.call(void 0, () => {
|
|
9
|
+
const root = document.querySelector(".arcane-theme-root");
|
|
10
|
+
if (!root) return;
|
|
11
|
+
Object.entries(_chunkTZJ4UXR3cjs.cssHintColorVariables.call(void 0, color)).forEach(([key, value]) => {
|
|
12
|
+
root.style.setProperty(key, value);
|
|
13
|
+
});
|
|
14
|
+
}, [color]);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.useRootHintVariables = useRootHintVariables;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SigilColor } from './styling.cjs';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Hook that will adjust the root hint color based on the given color.
|
|
7
|
+
*/
|
|
8
|
+
declare const useRootHintVariables: (color: SigilColor) => void;
|
|
9
|
+
|
|
10
|
+
export { useRootHintVariables };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SigilColor } from './styling.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Hook that will adjust the root hint color based on the given color.
|
|
7
|
+
*/
|
|
8
|
+
declare const useRootHintVariables: (color: SigilColor) => void;
|
|
9
|
+
|
|
10
|
+
export { useRootHintVariables };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cssHintColorVariables
|
|
3
|
+
} from "../chunk-WYUGJOEB.js";
|
|
4
|
+
|
|
5
|
+
// src/frontend/styling.hooks.ts
|
|
6
|
+
import { useEffect } from "react";
|
|
7
|
+
var useRootHintVariables = (color) => {
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const root = document.querySelector(".arcane-theme-root");
|
|
10
|
+
if (!root) return;
|
|
11
|
+
Object.entries(cssHintColorVariables(color)).forEach(([key, value]) => {
|
|
12
|
+
root.style.setProperty(key, value);
|
|
13
|
+
});
|
|
14
|
+
}, [color]);
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
useRootHintVariables
|
|
18
|
+
};
|
package/dist/frontend/styling.js
CHANGED
|
@@ -4,15 +4,13 @@ import {
|
|
|
4
4
|
cssHintColorVariables,
|
|
5
5
|
cssSigilColorUsageVariables,
|
|
6
6
|
cssVariables,
|
|
7
|
-
sigilColorUsage
|
|
8
|
-
|
|
9
|
-
} from "../chunk-H4U4Z4GM.js";
|
|
7
|
+
sigilColorUsage
|
|
8
|
+
} from "../chunk-WYUGJOEB.js";
|
|
10
9
|
export {
|
|
11
10
|
SIGIL_COLOR,
|
|
12
11
|
cnd,
|
|
13
12
|
cssHintColorVariables,
|
|
14
13
|
cssSigilColorUsageVariables,
|
|
15
14
|
cssVariables,
|
|
16
|
-
sigilColorUsage
|
|
17
|
-
useRootHintVariables
|
|
15
|
+
sigilColorUsage
|
|
18
16
|
};
|
package/dist/frontend.cjs
CHANGED
|
@@ -16,12 +16,12 @@ var _chunkCAYKPJIXcjs = require('./chunk-CAYKPJIX.cjs');
|
|
|
16
16
|
var _chunkVZ4A6RRTcjs = require('./chunk-VZ4A6RRT.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkCHVABPETcjs = require('./chunk-CHVABPET.cjs');
|
|
20
20
|
require('./chunk-PEARNJ5G.cjs');
|
|
21
21
|
require('./chunk-RI33QVOD.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkTZJ4UXR3cjs = require('./chunk-TZJ4UXR3.cjs');
|
|
25
25
|
|
|
26
26
|
// src/frontend/app-root.tsx
|
|
27
27
|
var _toolkitfrontend = require('@arcanejs/toolkit-frontend');
|
|
@@ -242,7 +242,7 @@ var Debugger = ({ title, className }) => {
|
|
|
242
242
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "grow px-1", children: title }),
|
|
243
243
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA5LYYZERcjs.ToolbarDivider, {}),
|
|
244
244
|
openDevTools && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
245
|
-
|
|
245
|
+
_chunkCHVABPETcjs.ControlButton,
|
|
246
246
|
{
|
|
247
247
|
onClick: openDevTools,
|
|
248
248
|
variant: "toolbar",
|
|
@@ -251,7 +251,7 @@ var Debugger = ({ title, className }) => {
|
|
|
251
251
|
}
|
|
252
252
|
),
|
|
253
253
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
254
|
-
|
|
254
|
+
_chunkCHVABPETcjs.ControlButton,
|
|
255
255
|
{
|
|
256
256
|
onClick: handleRequestScrollToBottom,
|
|
257
257
|
variant: "toolbar",
|
|
@@ -259,7 +259,7 @@ var Debugger = ({ title, className }) => {
|
|
|
259
259
|
children: "Scroll to Bottom"
|
|
260
260
|
}
|
|
261
261
|
),
|
|
262
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
262
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCHVABPETcjs.ControlButton, { onClick: exportLogs, variant: "toolbar", icon: "publish", children: "Export Logs" })
|
|
263
263
|
] }) }),
|
|
264
264
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
265
265
|
"pre",
|
|
@@ -286,12 +286,12 @@ Data Directory: ${system.dataDirectory}`
|
|
|
286
286
|
"span",
|
|
287
287
|
{
|
|
288
288
|
className: _util.cn.call(void 0,
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, log.level === "error", "text-sigil-usage-red-foreground"),
|
|
290
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0,
|
|
291
291
|
log.level === "warn",
|
|
292
292
|
"text-sigil-usage-yellow-foreground"
|
|
293
293
|
),
|
|
294
|
-
|
|
294
|
+
_chunkTZJ4UXR3cjs.cnd.call(void 0, log.level === "info", "text-sigil-usage-blue-foreground")
|
|
295
295
|
),
|
|
296
296
|
children: log.level
|
|
297
297
|
}
|
package/dist/frontend.js
CHANGED
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
} from "./chunk-EJNNLQ2S.js";
|
|
17
17
|
import {
|
|
18
18
|
ControlButton
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-E3VUC3Q4.js";
|
|
20
20
|
import "./chunk-BIY5HAXP.js";
|
|
21
21
|
import "./chunk-4PMRDURG.js";
|
|
22
22
|
import {
|
|
23
23
|
cnd
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WYUGJOEB.js";
|
|
25
25
|
|
|
26
26
|
// src/frontend/app-root.tsx
|
|
27
27
|
import { StageContext } from "@arcanejs/toolkit-frontend";
|
package/dist/index.cjs
CHANGED
|
@@ -139,6 +139,7 @@ var runSigilApp = ({
|
|
|
139
139
|
logger: upstreamLogger,
|
|
140
140
|
title,
|
|
141
141
|
version,
|
|
142
|
+
edition,
|
|
142
143
|
appProps,
|
|
143
144
|
toolkitOptions,
|
|
144
145
|
createApp,
|
|
@@ -233,6 +234,7 @@ var runSigilApp = ({
|
|
|
233
234
|
createApp({
|
|
234
235
|
title,
|
|
235
236
|
version,
|
|
237
|
+
edition,
|
|
236
238
|
toolkit,
|
|
237
239
|
logger,
|
|
238
240
|
logEventEmitter,
|
package/dist/index.d.cts
CHANGED
|
@@ -39,6 +39,7 @@ type SigilLogEventEmitter = EventEmitter<{
|
|
|
39
39
|
type SigilRuntimeAppProps<TAppApi, TExtraAppProps extends object> = TExtraAppProps & {
|
|
40
40
|
title: string;
|
|
41
41
|
version: string;
|
|
42
|
+
edition: 'desktop' | 'cli';
|
|
42
43
|
toolkit: Toolkit;
|
|
43
44
|
logger: Logger;
|
|
44
45
|
logEventEmitter: SigilLogEventEmitter;
|
|
@@ -58,6 +59,7 @@ type SigilRuntimeOptions<TAppApi, TExtraAppProps extends object> = {
|
|
|
58
59
|
logger: pino.Logger;
|
|
59
60
|
title: string;
|
|
60
61
|
version: string;
|
|
62
|
+
edition: 'desktop' | 'cli';
|
|
61
63
|
appProps: TExtraAppProps;
|
|
62
64
|
toolkitOptions?: Omit<Partial<ToolkitOptions>, 'logger'>;
|
|
63
65
|
createApp: (props: SigilRuntimeAppProps<TAppApi, TExtraAppProps>) => JSX.Element;
|
|
@@ -67,7 +69,7 @@ declare const createSystemInformation: ({ dataDirectory, version, }: {
|
|
|
67
69
|
dataDirectory: string;
|
|
68
70
|
version: string;
|
|
69
71
|
}) => SystemInformation;
|
|
70
|
-
declare const runSigilApp: <TAppApi, TExtraAppProps extends object>({ logger: upstreamLogger, title, version, appProps, toolkitOptions, createApp, componentNamespaces, }: SigilRuntimeOptions<TAppApi, TExtraAppProps>) => SigilAppInstance<TAppApi>;
|
|
72
|
+
declare const runSigilApp: <TAppApi, TExtraAppProps extends object>({ logger: upstreamLogger, title, version, edition, appProps, toolkitOptions, createApp, componentNamespaces, }: SigilRuntimeOptions<TAppApi, TExtraAppProps>) => SigilAppInstance<TAppApi>;
|
|
71
73
|
|
|
72
74
|
type AppShellProps = {
|
|
73
75
|
title: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ type SigilLogEventEmitter = EventEmitter<{
|
|
|
39
39
|
type SigilRuntimeAppProps<TAppApi, TExtraAppProps extends object> = TExtraAppProps & {
|
|
40
40
|
title: string;
|
|
41
41
|
version: string;
|
|
42
|
+
edition: 'desktop' | 'cli';
|
|
42
43
|
toolkit: Toolkit;
|
|
43
44
|
logger: Logger;
|
|
44
45
|
logEventEmitter: SigilLogEventEmitter;
|
|
@@ -58,6 +59,7 @@ type SigilRuntimeOptions<TAppApi, TExtraAppProps extends object> = {
|
|
|
58
59
|
logger: pino.Logger;
|
|
59
60
|
title: string;
|
|
60
61
|
version: string;
|
|
62
|
+
edition: 'desktop' | 'cli';
|
|
61
63
|
appProps: TExtraAppProps;
|
|
62
64
|
toolkitOptions?: Omit<Partial<ToolkitOptions>, 'logger'>;
|
|
63
65
|
createApp: (props: SigilRuntimeAppProps<TAppApi, TExtraAppProps>) => JSX.Element;
|
|
@@ -67,7 +69,7 @@ declare const createSystemInformation: ({ dataDirectory, version, }: {
|
|
|
67
69
|
dataDirectory: string;
|
|
68
70
|
version: string;
|
|
69
71
|
}) => SystemInformation;
|
|
70
|
-
declare const runSigilApp: <TAppApi, TExtraAppProps extends object>({ logger: upstreamLogger, title, version, appProps, toolkitOptions, createApp, componentNamespaces, }: SigilRuntimeOptions<TAppApi, TExtraAppProps>) => SigilAppInstance<TAppApi>;
|
|
72
|
+
declare const runSigilApp: <TAppApi, TExtraAppProps extends object>({ logger: upstreamLogger, title, version, edition, appProps, toolkitOptions, createApp, componentNamespaces, }: SigilRuntimeOptions<TAppApi, TExtraAppProps>) => SigilAppInstance<TAppApi>;
|
|
71
73
|
|
|
72
74
|
type AppShellProps = {
|
|
73
75
|
title: string;
|
package/dist/index.js
CHANGED
|
@@ -139,6 +139,7 @@ var runSigilApp = ({
|
|
|
139
139
|
logger: upstreamLogger,
|
|
140
140
|
title,
|
|
141
141
|
version,
|
|
142
|
+
edition,
|
|
142
143
|
appProps,
|
|
143
144
|
toolkitOptions,
|
|
144
145
|
createApp,
|
|
@@ -233,6 +234,7 @@ var runSigilApp = ({
|
|
|
233
234
|
createApp({
|
|
234
235
|
title,
|
|
235
236
|
version,
|
|
237
|
+
edition,
|
|
236
238
|
toolkit,
|
|
237
239
|
logger,
|
|
238
240
|
logEventEmitter,
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcanewizards/sigil",
|
|
3
3
|
"description": "Application framework for A/V applications, built on-top of arcanejs",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"private": false,
|
|
6
|
+
"license": "MIT",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
@@ -64,6 +65,12 @@
|
|
|
64
65
|
"import": "./dist/frontend/styling.js",
|
|
65
66
|
"require": "./dist/frontend/styling.cjs"
|
|
66
67
|
},
|
|
68
|
+
"./frontend/styling.hooks": {
|
|
69
|
+
"@arcanewizards/source": "./src/frontend/styling.hooks.ts",
|
|
70
|
+
"types": "./dist/frontend/styling.hooks.d.ts",
|
|
71
|
+
"import": "./dist/frontend/styling.hooks.js",
|
|
72
|
+
"require": "./dist/frontend/styling.hooks.cjs"
|
|
73
|
+
},
|
|
67
74
|
"./frontend/toolbars": {
|
|
68
75
|
"@arcanewizards/source": "./src/frontend/toolbars.tsx",
|
|
69
76
|
"types": "./dist/frontend/toolbars.d.ts",
|
|
@@ -101,7 +108,7 @@
|
|
|
101
108
|
"radix-ui": "^1.4.3",
|
|
102
109
|
"react": "^19.2.0",
|
|
103
110
|
"zod": "^3.22.4",
|
|
104
|
-
"@arcanewizards/net-utils": "^0.1.
|
|
111
|
+
"@arcanewizards/net-utils": "^0.1.3"
|
|
105
112
|
},
|
|
106
113
|
"devDependencies": {
|
|
107
114
|
"@tailwindcss/cli": "^4.1.13",
|
|
@@ -114,8 +121,8 @@
|
|
|
114
121
|
"tailwindcss": "^4.1.13",
|
|
115
122
|
"tsup": "^8.1.0",
|
|
116
123
|
"typescript": "^5.7.3",
|
|
117
|
-
"@arcanewizards/
|
|
118
|
-
"@arcanewizards/
|
|
124
|
+
"@arcanewizards/typescript-config": "^0.0.0",
|
|
125
|
+
"@arcanewizards/eslint-config": "^0.0.0"
|
|
119
126
|
},
|
|
120
127
|
"scripts": {
|
|
121
128
|
"build": "rm -rf dist && tsup && pnpm build:styles && check-export-map",
|