@arcanewizards/timecode-toolbox 0.1.1 → 0.1.2
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 +77 -0
- package/dist/components/frontend/index.js +184 -184
- package/dist/components/frontend/index.mjs +33 -33
- package/dist/entrypoint.js +235 -235
- package/dist/entrypoint.js.map +4 -4
- package/dist/frontend.js +235 -235
- package/dist/frontend.js.map +4 -4
- package/dist/index.js +56 -57
- package/dist/index.mjs +27 -28
- package/dist/start.js +56 -57
- package/dist/start.mjs +27 -28
- package/package.json +2 -2
|
@@ -9880,9 +9880,6 @@ var useLongPressable2 = ({
|
|
|
9880
9880
|
);
|
|
9881
9881
|
};
|
|
9882
9882
|
|
|
9883
|
-
// ../../packages/sigil/dist/chunk-H4U4Z4GM.js
|
|
9884
|
-
import { useEffect as useEffect18 } from "react";
|
|
9885
|
-
|
|
9886
9883
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
|
|
9887
9884
|
var external_exports = {};
|
|
9888
9885
|
__export(external_exports, {
|
|
@@ -13927,7 +13924,7 @@ var NEVER = INVALID;
|
|
|
13927
13924
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/index.js
|
|
13928
13925
|
var zod_default = external_exports;
|
|
13929
13926
|
|
|
13930
|
-
// ../../packages/sigil/dist/chunk-
|
|
13927
|
+
// ../../packages/sigil/dist/chunk-WYUGJOEB.js
|
|
13931
13928
|
var SIGIL_COLOR = external_exports.enum([
|
|
13932
13929
|
"purple",
|
|
13933
13930
|
"blue",
|
|
@@ -13968,21 +13965,12 @@ var cssSigilColorUsageVariables = (prefix, usage) => cssVariables({
|
|
|
13968
13965
|
[`--${prefix}-gradient-dark`]: usage.gradientDark
|
|
13969
13966
|
});
|
|
13970
13967
|
var cssHintColorVariables = (color) => cssSigilColorUsageVariables(`sigil-usage-hint`, sigilColorUsage(color));
|
|
13971
|
-
var useRootHintVariables = (color) => {
|
|
13972
|
-
useEffect18(() => {
|
|
13973
|
-
const root = document.querySelector(".arcane-theme-root");
|
|
13974
|
-
if (!root) return;
|
|
13975
|
-
Object.entries(cssHintColorVariables(color)).forEach(([key, value]) => {
|
|
13976
|
-
root.style.setProperty(key, value);
|
|
13977
|
-
});
|
|
13978
|
-
}, [color]);
|
|
13979
|
-
};
|
|
13980
13968
|
var cssVariables = (variables) => variables;
|
|
13981
13969
|
function cnd(condition, truthyClassName, falseyClassName) {
|
|
13982
13970
|
return condition ? truthyClassName : falseyClassName;
|
|
13983
13971
|
}
|
|
13984
13972
|
|
|
13985
|
-
// ../../packages/sigil/dist/chunk-
|
|
13973
|
+
// ../../packages/sigil/dist/chunk-E3VUC3Q4.js
|
|
13986
13974
|
import {
|
|
13987
13975
|
createContext as createContext6,
|
|
13988
13976
|
forwardRef as forwardRef42,
|
|
@@ -14026,7 +14014,7 @@ var TRANSPARENCY_SVG = `
|
|
|
14026
14014
|
`;
|
|
14027
14015
|
var TRANSPARENCY_SVG_URI = `data:image/svg+xml,${encodeURIComponent(TRANSPARENCY_SVG)}`;
|
|
14028
14016
|
|
|
14029
|
-
// ../../packages/sigil/dist/chunk-
|
|
14017
|
+
// ../../packages/sigil/dist/chunk-E3VUC3Q4.js
|
|
14030
14018
|
import {
|
|
14031
14019
|
forwardRef as forwardRef15
|
|
14032
14020
|
} from "react";
|
|
@@ -14037,7 +14025,7 @@ import { forwardRef as forwardRef32 } from "react";
|
|
|
14037
14025
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
14038
14026
|
import {
|
|
14039
14027
|
useCallback as useCallback10,
|
|
14040
|
-
useEffect as
|
|
14028
|
+
useEffect as useEffect18,
|
|
14041
14029
|
useRef as useRef15
|
|
14042
14030
|
} from "react";
|
|
14043
14031
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
@@ -14333,7 +14321,7 @@ var InputWithDelayedPropagation = ({
|
|
|
14333
14321
|
}) => {
|
|
14334
14322
|
const lastValue = useRef15(value);
|
|
14335
14323
|
const inputRef = useRef15(null);
|
|
14336
|
-
|
|
14324
|
+
useEffect18(() => {
|
|
14337
14325
|
if (inputRef.current && inputRef.current.value !== value) {
|
|
14338
14326
|
inputRef.current.value = value;
|
|
14339
14327
|
}
|
|
@@ -14704,7 +14692,7 @@ import React52, { useMemo as useMemo11, useState as useState22 } from "react";
|
|
|
14704
14692
|
import { jsx as jsx72, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
14705
14693
|
import React62 from "react";
|
|
14706
14694
|
import { jsx as jsx82, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
14707
|
-
import React72, { useEffect as
|
|
14695
|
+
import React72, { useEffect as useEffect19 } from "react";
|
|
14708
14696
|
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
14709
14697
|
import React82, { useContext as useContext22, useEffect as useEffect23, useState as useState32 } from "react";
|
|
14710
14698
|
import { jsx as jsx102, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
@@ -15403,7 +15391,7 @@ var Tabs = (props) => {
|
|
|
15403
15391
|
var TextInput = ({ className, info }) => {
|
|
15404
15392
|
const { sendMessage } = React72.useContext(StageContext);
|
|
15405
15393
|
const ref = React72.useRef(null);
|
|
15406
|
-
|
|
15394
|
+
useEffect19(() => {
|
|
15407
15395
|
if (ref.current && ref.current.value !== info.value) {
|
|
15408
15396
|
ref.current.value = info.value;
|
|
15409
15397
|
}
|
|
@@ -15536,7 +15524,7 @@ var CORE_FRONTEND_COMPONENT_RENDERER = {
|
|
|
15536
15524
|
};
|
|
15537
15525
|
|
|
15538
15526
|
// ../../packages/sigil/dist/frontend.js
|
|
15539
|
-
import { useContext as useContext23, useEffect as
|
|
15527
|
+
import { useContext as useContext23, useEffect as useEffect20, useMemo as useMemo12, useState as useState21 } from "react";
|
|
15540
15528
|
import { createContext as createContext8, useContext as useContext7 } from "react";
|
|
15541
15529
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
15542
15530
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
@@ -15654,7 +15642,7 @@ var AppRoot = ({
|
|
|
15654
15642
|
const { renderComponent, call } = useContext23(StageContext);
|
|
15655
15643
|
const [logs, setLogs] = useState21({ lastLog: -1, logs: [] });
|
|
15656
15644
|
const [debugMode, setDebugMode] = useState21(false);
|
|
15657
|
-
|
|
15645
|
+
useEffect20(() => {
|
|
15658
15646
|
if (!debugMode || !call) return;
|
|
15659
15647
|
const lastLogId = logs.logs[logs.logs.length - 1]?.index ?? -1;
|
|
15660
15648
|
call({
|
|
@@ -16041,7 +16029,7 @@ var STRINGS = {
|
|
|
16041
16029
|
import {
|
|
16042
16030
|
useCallback as useCallback14,
|
|
16043
16031
|
useContext as useContext10,
|
|
16044
|
-
useEffect as
|
|
16032
|
+
useEffect as useEffect26,
|
|
16045
16033
|
useMemo as useMemo14,
|
|
16046
16034
|
useState as useState25
|
|
16047
16035
|
} from "react";
|
|
@@ -16119,13 +16107,13 @@ var NetworkContext = createContext9(
|
|
|
16119
16107
|
import {
|
|
16120
16108
|
useCallback as useCallback13,
|
|
16121
16109
|
useContext as useContext9,
|
|
16122
|
-
useEffect as
|
|
16110
|
+
useEffect as useEffect25,
|
|
16123
16111
|
useMemo as useMemo13,
|
|
16124
16112
|
useState as useState24
|
|
16125
16113
|
} from "react";
|
|
16126
16114
|
|
|
16127
16115
|
// src/components/frontend/toolbox/core/size-aware-div.tsx
|
|
16128
|
-
import { useEffect as
|
|
16116
|
+
import { useEffect as useEffect21, useState as useState23 } from "react";
|
|
16129
16117
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
16130
16118
|
var SizeAwareDiv = ({
|
|
16131
16119
|
children,
|
|
@@ -16134,7 +16122,7 @@ var SizeAwareDiv = ({
|
|
|
16134
16122
|
}) => {
|
|
16135
16123
|
const [div, setDiv] = useState23(null);
|
|
16136
16124
|
const [rect, setRect] = useState23(null);
|
|
16137
|
-
|
|
16125
|
+
useEffect21(() => {
|
|
16138
16126
|
if (!div) {
|
|
16139
16127
|
return;
|
|
16140
16128
|
}
|
|
@@ -16277,7 +16265,7 @@ var ActiveTimecodeText = ({
|
|
|
16277
16265
|
}) => {
|
|
16278
16266
|
const [millis, setMillis] = useState24(0);
|
|
16279
16267
|
const { timeDifferenceMs } = useContext9(StageContext);
|
|
16280
|
-
|
|
16268
|
+
useEffect25(() => {
|
|
16281
16269
|
let animationFrame = null;
|
|
16282
16270
|
const updateMillis = () => {
|
|
16283
16271
|
const newMillis = (Date.now() - (timeDifferenceMs ?? 0) - effectiveStartTimeMillis) * speed;
|
|
@@ -16296,7 +16284,7 @@ var ActiveTimecodeText = ({
|
|
|
16296
16284
|
var Timeline2 = ({ state, totalTime }) => {
|
|
16297
16285
|
const [millis, setMillis] = useState24(0);
|
|
16298
16286
|
const { timeDifferenceMs } = useContext9(StageContext);
|
|
16299
|
-
|
|
16287
|
+
useEffect25(() => {
|
|
16300
16288
|
if (state.state === "none") {
|
|
16301
16289
|
setMillis(0);
|
|
16302
16290
|
return;
|
|
@@ -16806,7 +16794,7 @@ var DmxConnectionSettings = ({
|
|
|
16806
16794
|
setInterfaces(null);
|
|
16807
16795
|
getNetworkInterfaces().then((ifs) => setInterfaces(ifs));
|
|
16808
16796
|
}, [getNetworkInterfaces]);
|
|
16809
|
-
|
|
16797
|
+
useEffect26(() => {
|
|
16810
16798
|
refreshInterfaces();
|
|
16811
16799
|
}, [refreshInterfaces]);
|
|
16812
16800
|
if (data.type !== "artnet") {
|
|
@@ -17512,7 +17500,7 @@ var GeneratorsSection = ({
|
|
|
17512
17500
|
};
|
|
17513
17501
|
|
|
17514
17502
|
// src/components/frontend/toolbox/inputs.tsx
|
|
17515
|
-
import { useCallback as useCallback16, useContext as useContext12, useEffect as
|
|
17503
|
+
import { useCallback as useCallback16, useContext as useContext12, useEffect as useEffect27, useState as useState27 } from "react";
|
|
17516
17504
|
import { Fragment as Fragment11, jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
17517
17505
|
var DmxConnectionSettings2 = ({
|
|
17518
17506
|
data,
|
|
@@ -17525,7 +17513,7 @@ var DmxConnectionSettings2 = ({
|
|
|
17525
17513
|
setInterfaces(null);
|
|
17526
17514
|
getNetworkInterfaces().then((ifs) => setInterfaces(ifs));
|
|
17527
17515
|
}, [getNetworkInterfaces]);
|
|
17528
|
-
|
|
17516
|
+
useEffect27(() => {
|
|
17529
17517
|
refreshInterfaces();
|
|
17530
17518
|
}, [refreshInterfaces]);
|
|
17531
17519
|
if (data.type !== "artnet") {
|
|
@@ -17598,7 +17586,7 @@ var TCNetConnectionSettings = ({
|
|
|
17598
17586
|
setInterfaces(null);
|
|
17599
17587
|
getNetworkInterfaces().then((ifs) => setInterfaces(ifs));
|
|
17600
17588
|
}, [getNetworkInterfaces]);
|
|
17601
|
-
|
|
17589
|
+
useEffect27(() => {
|
|
17602
17590
|
refreshInterfaces();
|
|
17603
17591
|
}, [refreshInterfaces]);
|
|
17604
17592
|
if (data.type !== "tcnet") {
|
|
@@ -18064,7 +18052,7 @@ var AppearanceSwitcher = ({
|
|
|
18064
18052
|
};
|
|
18065
18053
|
|
|
18066
18054
|
// ../../packages/sigil/dist/frontend/preferences.js
|
|
18067
|
-
import { useEffect as
|
|
18055
|
+
import { useEffect as useEffect28, useState as useState28 } from "react";
|
|
18068
18056
|
var createBrowserPreferencesHook = (def) => () => {
|
|
18069
18057
|
const [preferences, setPreference] = useState28(() => {
|
|
18070
18058
|
const stored = window.localStorage.getItem(def.key);
|
|
@@ -18087,7 +18075,7 @@ var createBrowserPreferencesHook = (def) => () => {
|
|
|
18087
18075
|
})
|
|
18088
18076
|
);
|
|
18089
18077
|
};
|
|
18090
|
-
|
|
18078
|
+
useEffect28(() => {
|
|
18091
18079
|
const onStorageChange = (event) => {
|
|
18092
18080
|
if (event.key === def.key) {
|
|
18093
18081
|
const newValue = event.newValue;
|
|
@@ -18558,6 +18546,18 @@ var Footer = ({ openLicenseDetails }) => {
|
|
|
18558
18546
|
);
|
|
18559
18547
|
};
|
|
18560
18548
|
|
|
18549
|
+
// ../../packages/sigil/dist/frontend/styling.hooks.js
|
|
18550
|
+
import { useEffect as useEffect29 } from "react";
|
|
18551
|
+
var useRootHintVariables = (color) => {
|
|
18552
|
+
useEffect29(() => {
|
|
18553
|
+
const root = document.querySelector(".arcane-theme-root");
|
|
18554
|
+
if (!root) return;
|
|
18555
|
+
Object.entries(cssHintColorVariables(color)).forEach(([key, value]) => {
|
|
18556
|
+
root.style.setProperty(key, value);
|
|
18557
|
+
});
|
|
18558
|
+
}, [color]);
|
|
18559
|
+
};
|
|
18560
|
+
|
|
18561
18561
|
// src/components/frontend/toolbox/core/layout.tsx
|
|
18562
18562
|
import { Fragment as Fragment13, jsx as jsx38, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
18563
18563
|
var Layout = ({
|