@liqvid/studio 1.0.0-alpha.0 → 1.0.0-alpha.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.
- package/dist/esm/assets.mjs +12 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/templates/projects/code/src/assets.ts.hbs +1 -1
- package/dist/templates/projects/default/src/assets.ts.hbs +1 -1
- package/dist/templates/types.ts.hbs +1 -1
- package/dist/types/assets.d.mts +21 -0
- package/dist/types/index.d.mts +1 -0
- package/package.json +6 -14
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export class DirectoryHelper {
|
|
2
|
+
dirname;
|
|
3
|
+
constructor(dirname = "") {
|
|
4
|
+
this.dirname = dirname;
|
|
5
|
+
}
|
|
6
|
+
dir(dirname) {
|
|
7
|
+
return new DirectoryHelper(`${this.dirname}/${dirname}`);
|
|
8
|
+
}
|
|
9
|
+
file(filename, _version) {
|
|
10
|
+
return `${this.dirname}/${filename}`;
|
|
11
|
+
}
|
|
12
|
+
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { DockableDialog } from "./ui/DockableDialog";
|
|
2
2
|
export * from "./ui/Tabs";
|
|
3
3
|
import { devComponent, devProvider } from "@liqvid/ssr/react";
|
|
4
|
+
export * from "./assets.mjs";
|
|
4
5
|
export { LiqvidDevToolsProvider as LiqvidDevToolsProviderProd, useProjectContext, } from "./LiqvidDevToolsProvider";
|
|
5
6
|
export { RecordingControl as RecordingControlProd, } from "./recording/RecordingControl";
|
|
6
7
|
/* ------------------------- dev-only exports ------------------------- */
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
{{/inline}}
|
|
13
13
|
/** This file is automatically @generated. */
|
|
14
|
-
import type { Directory, FileNames } from "@liqvid/
|
|
14
|
+
import type { Directory, FileNames } from "@liqvid/studio";
|
|
15
15
|
|
|
16
16
|
export const PROJECT_DIRECTORY_STRUCTURE = ({{~> directory directoryStructure~}}) as const satisfies Directory;
|
|
17
17
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Directory {
|
|
2
|
+
[key: string]: Directory | null;
|
|
3
|
+
}
|
|
4
|
+
export interface ProjectFile {
|
|
5
|
+
filename: string;
|
|
6
|
+
mime: string;
|
|
7
|
+
version?: string;
|
|
8
|
+
}
|
|
9
|
+
export type FileNames<D extends Directory> = {
|
|
10
|
+
[key in string & keyof D]: D[key] extends Directory ? `${key}/` | `${key}/${FileNames<D[key]>}` : key;
|
|
11
|
+
}[string & keyof D];
|
|
12
|
+
type Files<T extends string> = T extends `${string}/` ? never : T;
|
|
13
|
+
type Dirs<T extends string> = T extends `${infer Head}/${infer Tail}` ? Head | `${Head}/${Dirs<Tail>}` : never;
|
|
14
|
+
type StripPrefix<T extends string, S extends string> = T extends `${S}${infer Tail}` ? Tail : never;
|
|
15
|
+
export declare class DirectoryHelper<DS extends string> {
|
|
16
|
+
private dirname;
|
|
17
|
+
constructor(dirname?: string);
|
|
18
|
+
dir<D extends Dirs<DS>>(dirname: D): DirectoryHelper<Exclude<StripPrefix<DS, `${D}/`>, "">>;
|
|
19
|
+
file(filename: Files<DS>, _version?: string): string;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { DockableDialog } from "./ui/DockableDialog";
|
|
2
2
|
export * from "./ui/Tabs";
|
|
3
3
|
export type { LiqvidStudioPlugin, LiqvidStudioRecordingPlugin, } from "@liqvid/studio-plugin-api";
|
|
4
|
+
export * from "./assets.mts";
|
|
4
5
|
export { LiqvidDevToolsProvider as LiqvidDevToolsProviderProd, useProjectContext, } from "./LiqvidDevToolsProvider";
|
|
5
6
|
export { RecordingControl as RecordingControlProd, type RecordingControlProps, } from "./recording/RecordingControl";
|
|
6
7
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liqvid/studio",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
4
|
"description": "Production suite for Liqvid videos",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -16,13 +16,6 @@
|
|
|
16
16
|
"types": "./dist/types/next/page.d.ts"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
"typesVersions": {
|
|
20
|
-
"*": {
|
|
21
|
-
"*": [
|
|
22
|
-
"./dist/types/*.d.ts"
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
19
|
"files": [
|
|
27
20
|
"dist/*"
|
|
28
21
|
],
|
|
@@ -49,17 +42,16 @@
|
|
|
49
42
|
"lodash.debounce": "^4.0.8",
|
|
50
43
|
"serve": "^14.2.6",
|
|
51
44
|
"zod": "4.1.13",
|
|
45
|
+
"@liqvid/cli": "^2.0.0-alpha.0",
|
|
52
46
|
"@liqvid/duration": "^1.3.0",
|
|
53
|
-
"@liqvid/assets": "^1.0.0",
|
|
54
47
|
"@liqvid/color-scheme": "^1.0.0-alpha.0",
|
|
55
|
-
"@liqvid/cli": "^2.0.0-alpha.0",
|
|
56
|
-
"@liqvid/event-emitter": "^1.0.0-alpha.0",
|
|
57
48
|
"@liqvid/hydration": "^1.0.0-alpha.0",
|
|
49
|
+
"@liqvid/event-emitter": "^1.0.0-alpha.0",
|
|
58
50
|
"@liqvid/keymap": "^2.0.0-alpha.0",
|
|
59
|
-
"@liqvid/
|
|
60
|
-
"@liqvid/studio-plugin-api": "^1.0.0-alpha.0",
|
|
51
|
+
"@liqvid/ssr": "^0.0.2",
|
|
61
52
|
"@liqvid/recording": "^1.0.0-alpha.0",
|
|
62
|
-
"@liqvid/
|
|
53
|
+
"@liqvid/studio-plugin-api": "^1.0.0-alpha.0",
|
|
54
|
+
"@liqvid/utils": "^2.0.0-alpha.0"
|
|
63
55
|
},
|
|
64
56
|
"devDependencies": {
|
|
65
57
|
"@biomejs/biome": "2.4.4",
|