@tailor-cms/ce-quill-html-manifest 0.0.7 → 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 CHANGED
@@ -1,50 +1,11 @@
1
- interface ElementData {
1
+ import * as common from '@tailor-cms/cek-common';
2
+
3
+ interface ElementData extends common.ElementConfig {
2
4
  content: string;
3
5
  }
4
- interface Element {
5
- id: number;
6
- uid: string;
7
- activityId: number;
8
- repositoryId: number;
9
- contentId: string;
10
- contentSignature: string;
11
- type: string;
12
- position: number;
13
- data: ElementData;
14
- meta: {
15
- [key: string]: unknown;
16
- };
17
- refs: {
18
- [key: string]: unknown;
19
- };
20
- linked: boolean;
21
- detached: boolean;
22
- createdAt: string;
23
- updatedAt: string;
24
- deletedAt: string | null;
25
- }
26
- type DataInitializer = () => ElementData;
27
- interface ElementManifest {
28
- type: string;
29
- version: string;
30
- name: string;
31
- ssr: boolean;
32
- initState: DataInitializer;
33
- Edit?: object;
34
- TopToolbar?: object;
35
- SideToolbar?: object;
36
- Display?: object;
37
- ui: {
38
- icon: string;
39
- forceFullWidth: boolean;
40
- };
41
- mocks?: {
42
- displayContexts: Array<{
43
- name: string;
44
- data: any;
45
- }>;
46
- };
47
- }
6
+ type DataInitializer = common.DataInitializer<ElementData>;
7
+ type Element = common.Element<ElementData>;
8
+ type ElementManifest = common.ElementManifest<ElementData>;
48
9
 
49
10
  declare const type = "HTML";
50
11
  declare const name = "Quill HTML";
package/dist/index.d.ts CHANGED
@@ -1,50 +1,11 @@
1
- interface ElementData {
1
+ import * as common from '@tailor-cms/cek-common';
2
+
3
+ interface ElementData extends common.ElementConfig {
2
4
  content: string;
3
5
  }
4
- interface Element {
5
- id: number;
6
- uid: string;
7
- activityId: number;
8
- repositoryId: number;
9
- contentId: string;
10
- contentSignature: string;
11
- type: string;
12
- position: number;
13
- data: ElementData;
14
- meta: {
15
- [key: string]: unknown;
16
- };
17
- refs: {
18
- [key: string]: unknown;
19
- };
20
- linked: boolean;
21
- detached: boolean;
22
- createdAt: string;
23
- updatedAt: string;
24
- deletedAt: string | null;
25
- }
26
- type DataInitializer = () => ElementData;
27
- interface ElementManifest {
28
- type: string;
29
- version: string;
30
- name: string;
31
- ssr: boolean;
32
- initState: DataInitializer;
33
- Edit?: object;
34
- TopToolbar?: object;
35
- SideToolbar?: object;
36
- Display?: object;
37
- ui: {
38
- icon: string;
39
- forceFullWidth: boolean;
40
- };
41
- mocks?: {
42
- displayContexts: Array<{
43
- name: string;
44
- data: any;
45
- }>;
46
- };
47
- }
6
+ type DataInitializer = common.DataInitializer<ElementData>;
7
+ type Element = common.Element<ElementData>;
8
+ type ElementManifest = common.ElementManifest<ElementData>;
48
9
 
49
10
  declare const type = "HTML";
50
11
  declare const name = "Quill HTML";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Tailor CMS Quill HTML editor manifest",
4
4
  "author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
5
5
  "type": "module",
6
- "version": "0.0.7",
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/eslint-config": "0.0.2",
20
- "tsup": "^8.3.6",
21
- "typescript": "^5.7.3"
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 --ext .js,.ts .",
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
  }