@tailor-cms/ce-file-manifest 0.0.1 → 0.1.0
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/index.d.cts +6 -45
- package/dist/index.d.ts +6 -45
- package/package.json +11 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as common from '@tailor-cms/cek-common';
|
|
2
|
+
|
|
3
|
+
interface ElementData extends common.ElementConfig {
|
|
2
4
|
url: string | null;
|
|
3
5
|
name: string | null;
|
|
4
6
|
label: string | null;
|
|
@@ -6,50 +8,9 @@ interface ElementData {
|
|
|
6
8
|
url?: string;
|
|
7
9
|
};
|
|
8
10
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
activityId: number;
|
|
13
|
-
repositoryId: number;
|
|
14
|
-
contentId: string;
|
|
15
|
-
contentSignature: string;
|
|
16
|
-
type: string;
|
|
17
|
-
position: number;
|
|
18
|
-
data: ElementData;
|
|
19
|
-
meta: {
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
refs: {
|
|
23
|
-
[key: string]: unknown;
|
|
24
|
-
};
|
|
25
|
-
linked: boolean;
|
|
26
|
-
detached: boolean;
|
|
27
|
-
createdAt: string;
|
|
28
|
-
updatedAt: string;
|
|
29
|
-
deletedAt: string | null;
|
|
30
|
-
}
|
|
31
|
-
type DataInitializer = () => ElementData;
|
|
32
|
-
interface ElementManifest {
|
|
33
|
-
type: string;
|
|
34
|
-
version: string;
|
|
35
|
-
name: string;
|
|
36
|
-
ssr: boolean;
|
|
37
|
-
initState: DataInitializer;
|
|
38
|
-
Edit?: object;
|
|
39
|
-
TopToolbar?: object;
|
|
40
|
-
SideToolbar?: object;
|
|
41
|
-
Display?: object;
|
|
42
|
-
ui: {
|
|
43
|
-
icon: string;
|
|
44
|
-
forceFullWidth: boolean;
|
|
45
|
-
};
|
|
46
|
-
mocks?: {
|
|
47
|
-
displayContexts: Array<{
|
|
48
|
-
name: string;
|
|
49
|
-
data: any;
|
|
50
|
-
}>;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
11
|
+
type DataInitializer = common.DataInitializer<ElementData>;
|
|
12
|
+
type Element = common.Element<ElementData>;
|
|
13
|
+
type ElementManifest = common.ElementManifest<ElementData>;
|
|
53
14
|
|
|
54
15
|
declare const type = "FILE";
|
|
55
16
|
declare const name = "File";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as common from '@tailor-cms/cek-common';
|
|
2
|
+
|
|
3
|
+
interface ElementData extends common.ElementConfig {
|
|
2
4
|
url: string | null;
|
|
3
5
|
name: string | null;
|
|
4
6
|
label: string | null;
|
|
@@ -6,50 +8,9 @@ interface ElementData {
|
|
|
6
8
|
url?: string;
|
|
7
9
|
};
|
|
8
10
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
activityId: number;
|
|
13
|
-
repositoryId: number;
|
|
14
|
-
contentId: string;
|
|
15
|
-
contentSignature: string;
|
|
16
|
-
type: string;
|
|
17
|
-
position: number;
|
|
18
|
-
data: ElementData;
|
|
19
|
-
meta: {
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
refs: {
|
|
23
|
-
[key: string]: unknown;
|
|
24
|
-
};
|
|
25
|
-
linked: boolean;
|
|
26
|
-
detached: boolean;
|
|
27
|
-
createdAt: string;
|
|
28
|
-
updatedAt: string;
|
|
29
|
-
deletedAt: string | null;
|
|
30
|
-
}
|
|
31
|
-
type DataInitializer = () => ElementData;
|
|
32
|
-
interface ElementManifest {
|
|
33
|
-
type: string;
|
|
34
|
-
version: string;
|
|
35
|
-
name: string;
|
|
36
|
-
ssr: boolean;
|
|
37
|
-
initState: DataInitializer;
|
|
38
|
-
Edit?: object;
|
|
39
|
-
TopToolbar?: object;
|
|
40
|
-
SideToolbar?: object;
|
|
41
|
-
Display?: object;
|
|
42
|
-
ui: {
|
|
43
|
-
icon: string;
|
|
44
|
-
forceFullWidth: boolean;
|
|
45
|
-
};
|
|
46
|
-
mocks?: {
|
|
47
|
-
displayContexts: Array<{
|
|
48
|
-
name: string;
|
|
49
|
-
data: any;
|
|
50
|
-
}>;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
11
|
+
type DataInitializer = common.DataInitializer<ElementData>;
|
|
12
|
+
type Element = common.Element<ElementData>;
|
|
13
|
+
type ElementManifest = common.ElementManifest<ElementData>;
|
|
53
14
|
|
|
54
15
|
declare const type = "FILE";
|
|
55
16
|
declare const name = "File";
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Tailor CMS file manifest",
|
|
4
4
|
"author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "0.0
|
|
6
|
+
"version": "0.1.0",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./dist/index.js",
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@tailor-cms/
|
|
20
|
-
"
|
|
21
|
-
"
|
|
19
|
+
"@tailor-cms/cek-common": "^1.3.2",
|
|
20
|
+
"@tailor-cms/eslint-config": "1.1.2",
|
|
21
|
+
"tsup": "^8.5.0",
|
|
22
|
+
"typescript": "^5.8.3"
|
|
22
23
|
},
|
|
23
24
|
"tsup": {
|
|
24
25
|
"entry": [
|
|
@@ -42,8 +43,11 @@
|
|
|
42
43
|
},
|
|
43
44
|
"scripts": {
|
|
44
45
|
"dev": "tsup --watch",
|
|
45
|
-
"build": "tsup",
|
|
46
|
-
"lint": "eslint
|
|
47
|
-
"lint:fix": "pnpm lint --fix"
|
|
46
|
+
"build": "pnpm nuke:dist && tsup",
|
|
47
|
+
"lint": "eslint .",
|
|
48
|
+
"lint:fix": "pnpm lint --fix",
|
|
49
|
+
"nuke": "pnpm dlx del-cli dist node_modules",
|
|
50
|
+
"nuke:dist": "pnpm dlx del-cli dist",
|
|
51
|
+
"prepublish": "pnpm build"
|
|
48
52
|
}
|
|
49
53
|
}
|