@arcanewizards/timecode-toolbox 0.0.3 → 0.1.1

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.
Files changed (59) hide show
  1. package/LICENSE +21 -0
  2. package/dist/components/frontend/index.d.mts +13 -0
  3. package/dist/components/frontend/index.d.ts +13 -0
  4. package/dist/components/frontend/index.js +18978 -0
  5. package/dist/components/frontend/index.mjs +19016 -0
  6. package/dist/entrypoint.css +2788 -0
  7. package/dist/entrypoint.js +42821 -0
  8. package/dist/entrypoint.js.map +7 -0
  9. package/dist/frontend.js +42818 -0
  10. package/dist/frontend.js.map +7 -0
  11. package/dist/index.d.mts +59 -0
  12. package/dist/index.d.ts +59 -0
  13. package/dist/index.js +14894 -0
  14. package/dist/index.mjs +14921 -0
  15. package/dist/start.d.mts +1 -0
  16. package/dist/start.d.ts +1 -0
  17. package/dist/start.js +14886 -0
  18. package/dist/start.mjs +14918 -0
  19. package/package.json +37 -28
  20. package/.turbo/turbo-build.log +0 -55
  21. package/CHANGELOG.md +0 -24
  22. package/eslint.config.mjs +0 -49
  23. package/src/app.tsx +0 -147
  24. package/src/components/backend/index.ts +0 -6
  25. package/src/components/backend/toolbox-root.ts +0 -119
  26. package/src/components/frontend/constants.ts +0 -81
  27. package/src/components/frontend/entrypoint.ts +0 -12
  28. package/src/components/frontend/frontend.css +0 -108
  29. package/src/components/frontend/index.tsx +0 -46
  30. package/src/components/frontend/toolbox/content.tsx +0 -45
  31. package/src/components/frontend/toolbox/context.tsx +0 -63
  32. package/src/components/frontend/toolbox/core/size-aware-div.tsx +0 -51
  33. package/src/components/frontend/toolbox/core/timecode-display.tsx +0 -592
  34. package/src/components/frontend/toolbox/generators.tsx +0 -318
  35. package/src/components/frontend/toolbox/inputs.tsx +0 -484
  36. package/src/components/frontend/toolbox/outputs.tsx +0 -581
  37. package/src/components/frontend/toolbox/preferences.ts +0 -25
  38. package/src/components/frontend/toolbox/root.tsx +0 -335
  39. package/src/components/frontend/toolbox/settings.tsx +0 -54
  40. package/src/components/frontend/toolbox/types.ts +0 -28
  41. package/src/components/frontend/toolbox/util.tsx +0 -61
  42. package/src/components/proto.ts +0 -420
  43. package/src/config.ts +0 -7
  44. package/src/generators/clock.tsx +0 -206
  45. package/src/generators/index.tsx +0 -15
  46. package/src/index.ts +0 -38
  47. package/src/inputs/artnet.tsx +0 -305
  48. package/src/inputs/index.tsx +0 -13
  49. package/src/inputs/tcnet.tsx +0 -272
  50. package/src/outputs/artnet.tsx +0 -170
  51. package/src/outputs/index.tsx +0 -11
  52. package/src/start.ts +0 -47
  53. package/src/tree.ts +0 -133
  54. package/src/types.ts +0 -12
  55. package/src/urls.ts +0 -49
  56. package/src/util.ts +0 -82
  57. package/tailwind.config.cjs +0 -7
  58. package/tsconfig.json +0 -10
  59. package/tsup.config.ts +0 -10
@@ -0,0 +1,59 @@
1
+ import { SigilAppInstance } from '@arcanewizards/sigil';
2
+ import { ToolkitOptions } from '@arcanejs/toolkit';
3
+ import pino from 'pino';
4
+ import { AppEdition } from '@arcanewizards/apis';
5
+ import z from 'zod';
6
+
7
+ type AppApi = Record<never, never>;
8
+ type TimecodeToolboxAppProps = {
9
+ dataDirectory: string;
10
+ };
11
+
12
+ type InputInstanceId = [
13
+ type: 'input',
14
+ rootId: string,
15
+ ...path: string[]
16
+ ];
17
+ type GeneratorInstanceId = [
18
+ type: 'generator',
19
+ rootId: string,
20
+ ...path: string[]
21
+ ];
22
+ type OutputInstanceId = [
23
+ type: 'output',
24
+ rootId: string,
25
+ ...path: string[]
26
+ ];
27
+ declare const TIMECODE_INSTANCE_ID: z.ZodUnion<[z.ZodType<InputInstanceId, z.ZodTypeDef, InputInstanceId>, z.ZodType<GeneratorInstanceId, z.ZodTypeDef, GeneratorInstanceId>, z.ZodType<OutputInstanceId, z.ZodTypeDef, OutputInstanceId>]>;
28
+ type TimecodeInstanceId = z.infer<typeof TIMECODE_INSTANCE_ID>;
29
+
30
+ declare const TIMECODE_PATH_FRAGMENT = "tc";
31
+ declare const WINDOW_MODE_TIMECODE = "timecode";
32
+ type FragmentValues = {
33
+ tc?: TimecodeInstanceId;
34
+ };
35
+ type WithUrlFragmentArgs = {
36
+ location?: Location | URL;
37
+ values: FragmentValues;
38
+ };
39
+ declare const withUrlFragment: ({ location, values }: WithUrlFragmentArgs) => URL;
40
+ declare const getFragmentValue: <K extends keyof FragmentValues>(key: K, zodParser: z.ZodType<NonNullable<FragmentValues[K]>>) => NonNullable<FragmentValues[K]> | null;
41
+
42
+ declare const urls_TIMECODE_PATH_FRAGMENT: typeof TIMECODE_PATH_FRAGMENT;
43
+ declare const urls_WINDOW_MODE_TIMECODE: typeof WINDOW_MODE_TIMECODE;
44
+ declare const urls_getFragmentValue: typeof getFragmentValue;
45
+ declare const urls_withUrlFragment: typeof withUrlFragment;
46
+ declare namespace urls {
47
+ export { urls_TIMECODE_PATH_FRAGMENT as TIMECODE_PATH_FRAGMENT, urls_WINDOW_MODE_TIMECODE as WINDOW_MODE_TIMECODE, urls_getFragmentValue as getFragmentValue, urls_withUrlFragment as withUrlFragment };
48
+ }
49
+
50
+ type TimecodeToolboxOptions = {
51
+ logger: pino.Logger;
52
+ appProps: TimecodeToolboxAppProps;
53
+ toolkitOptions?: Omit<Partial<ToolkitOptions>, 'logger'>;
54
+ title: string;
55
+ edition: AppEdition;
56
+ };
57
+ declare const runTimecodeToolboxServer: ({ logger, appProps, toolkitOptions, title, edition, }: TimecodeToolboxOptions) => SigilAppInstance<AppApi>;
58
+
59
+ export { type AppApi, type TimecodeToolboxOptions, runTimecodeToolboxServer, urls };
@@ -0,0 +1,59 @@
1
+ import { SigilAppInstance } from '@arcanewizards/sigil';
2
+ import { ToolkitOptions } from '@arcanejs/toolkit';
3
+ import pino from 'pino';
4
+ import { AppEdition } from '@arcanewizards/apis';
5
+ import z from 'zod';
6
+
7
+ type AppApi = Record<never, never>;
8
+ type TimecodeToolboxAppProps = {
9
+ dataDirectory: string;
10
+ };
11
+
12
+ type InputInstanceId = [
13
+ type: 'input',
14
+ rootId: string,
15
+ ...path: string[]
16
+ ];
17
+ type GeneratorInstanceId = [
18
+ type: 'generator',
19
+ rootId: string,
20
+ ...path: string[]
21
+ ];
22
+ type OutputInstanceId = [
23
+ type: 'output',
24
+ rootId: string,
25
+ ...path: string[]
26
+ ];
27
+ declare const TIMECODE_INSTANCE_ID: z.ZodUnion<[z.ZodType<InputInstanceId, z.ZodTypeDef, InputInstanceId>, z.ZodType<GeneratorInstanceId, z.ZodTypeDef, GeneratorInstanceId>, z.ZodType<OutputInstanceId, z.ZodTypeDef, OutputInstanceId>]>;
28
+ type TimecodeInstanceId = z.infer<typeof TIMECODE_INSTANCE_ID>;
29
+
30
+ declare const TIMECODE_PATH_FRAGMENT = "tc";
31
+ declare const WINDOW_MODE_TIMECODE = "timecode";
32
+ type FragmentValues = {
33
+ tc?: TimecodeInstanceId;
34
+ };
35
+ type WithUrlFragmentArgs = {
36
+ location?: Location | URL;
37
+ values: FragmentValues;
38
+ };
39
+ declare const withUrlFragment: ({ location, values }: WithUrlFragmentArgs) => URL;
40
+ declare const getFragmentValue: <K extends keyof FragmentValues>(key: K, zodParser: z.ZodType<NonNullable<FragmentValues[K]>>) => NonNullable<FragmentValues[K]> | null;
41
+
42
+ declare const urls_TIMECODE_PATH_FRAGMENT: typeof TIMECODE_PATH_FRAGMENT;
43
+ declare const urls_WINDOW_MODE_TIMECODE: typeof WINDOW_MODE_TIMECODE;
44
+ declare const urls_getFragmentValue: typeof getFragmentValue;
45
+ declare const urls_withUrlFragment: typeof withUrlFragment;
46
+ declare namespace urls {
47
+ export { urls_TIMECODE_PATH_FRAGMENT as TIMECODE_PATH_FRAGMENT, urls_WINDOW_MODE_TIMECODE as WINDOW_MODE_TIMECODE, urls_getFragmentValue as getFragmentValue, urls_withUrlFragment as withUrlFragment };
48
+ }
49
+
50
+ type TimecodeToolboxOptions = {
51
+ logger: pino.Logger;
52
+ appProps: TimecodeToolboxAppProps;
53
+ toolkitOptions?: Omit<Partial<ToolkitOptions>, 'logger'>;
54
+ title: string;
55
+ edition: AppEdition;
56
+ };
57
+ declare const runTimecodeToolboxServer: ({ logger, appProps, toolkitOptions, title, edition, }: TimecodeToolboxOptions) => SigilAppInstance<AppApi>;
58
+
59
+ export { type AppApi, type TimecodeToolboxOptions, runTimecodeToolboxServer, urls };