@tailor-cms/ce-quill-html-manifest 0.1.0 → 2.0.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.cjs CHANGED
@@ -1,55 +1,30 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name2 in all)
7
- __defProp(target, name2, { get: all[name2], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/index.ts
20
- var index_exports = {};
21
- __export(index_exports, {
22
- default: () => index_default,
23
- initState: () => initState,
24
- name: () => name,
25
- type: () => type,
26
- version: () => version
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
27
4
  });
28
- module.exports = __toCommonJS(index_exports);
29
- var type = "HTML";
30
- var name = "Quill HTML";
31
- var initState = () => ({ content: "" });
32
- var version = "1.0";
33
- var ui = {
34
- // Display icon, https://pictogrammers.com/library/mdi/
35
- icon: "mdi-text-box-outline",
36
- // Does element support only full width or can be used within layouts
37
- // (e.g. 50/50 layout)
38
- forceFullWidth: false
5
+ //#region src/index.ts
6
+ const type = "HTML";
7
+ const name = "Quill HTML";
8
+ const initState = () => ({ content: "" });
9
+ const version = "1.0";
10
+ const ui = {
11
+ icon: "mdi-text-box-outline",
12
+ forceFullWidth: false
39
13
  };
40
- var manifest = {
41
- type,
42
- version,
43
- name,
44
- ssr: false,
45
- initState,
46
- ui
14
+ const isEmpty = (data) => !data.content;
15
+ const manifest = {
16
+ type,
17
+ version: "1.0",
18
+ name,
19
+ ssr: false,
20
+ initState,
21
+ isEmpty,
22
+ ui
47
23
  };
48
- var index_default = manifest;
49
- // Annotate the CommonJS export names for ESM import in node:
50
- 0 && (module.exports = {
51
- initState,
52
- name,
53
- type,
54
- version
55
- });
24
+ //#endregion
25
+ exports.default = manifest;
26
+ exports.initState = initState;
27
+ exports.isEmpty = isEmpty;
28
+ exports.name = name;
29
+ exports.type = type;
30
+ exports.version = version;
package/dist/index.d.cts CHANGED
@@ -1,16 +1,19 @@
1
- import * as common from '@tailor-cms/cek-common';
1
+ import * as common from "@tailor-cms/cek-common";
2
2
 
3
+ //#region src/interfaces.d.ts
3
4
  interface ElementData extends common.ElementConfig {
4
- content: string;
5
+ content: string;
5
6
  }
6
7
  type DataInitializer = common.DataInitializer<ElementData>;
7
8
  type Element = common.Element<ElementData>;
8
9
  type ElementManifest = common.ElementManifest<ElementData>;
9
-
10
+ //#endregion
11
+ //#region src/index.d.ts
10
12
  declare const type = "HTML";
11
13
  declare const name = "Quill HTML";
12
14
  declare const initState: DataInitializer;
13
15
  declare const version = "1.0";
16
+ declare const isEmpty: (data: ElementData) => boolean;
14
17
  declare const manifest: ElementManifest;
15
-
16
- export { type DataInitializer, type Element, type ElementData, type ElementManifest, manifest as default, initState, name, type, version };
18
+ //#endregion
19
+ export { DataInitializer, Element, ElementData, ElementManifest, manifest as default, initState, isEmpty, name, type, version };
@@ -1,16 +1,19 @@
1
- import * as common from '@tailor-cms/cek-common';
1
+ import * as common from "@tailor-cms/cek-common";
2
2
 
3
+ //#region src/interfaces.d.ts
3
4
  interface ElementData extends common.ElementConfig {
4
- content: string;
5
+ content: string;
5
6
  }
6
7
  type DataInitializer = common.DataInitializer<ElementData>;
7
8
  type Element = common.Element<ElementData>;
8
9
  type ElementManifest = common.ElementManifest<ElementData>;
9
-
10
+ //#endregion
11
+ //#region src/index.d.ts
10
12
  declare const type = "HTML";
11
13
  declare const name = "Quill HTML";
12
14
  declare const initState: DataInitializer;
13
15
  declare const version = "1.0";
16
+ declare const isEmpty: (data: ElementData) => boolean;
14
17
  declare const manifest: ElementManifest;
15
-
16
- export { type DataInitializer, type Element, type ElementData, type ElementManifest, manifest as default, initState, name, type, version };
18
+ //#endregion
19
+ export { DataInitializer, Element, ElementData, ElementManifest, manifest as default, initState, isEmpty, name, type, version };
package/dist/index.mjs ADDED
@@ -0,0 +1,21 @@
1
+ //#region src/index.ts
2
+ const type = "HTML";
3
+ const name = "Quill HTML";
4
+ const initState = () => ({ content: "" });
5
+ const version = "1.0";
6
+ const ui = {
7
+ icon: "mdi-text-box-outline",
8
+ forceFullWidth: false
9
+ };
10
+ const isEmpty = (data) => !data.content;
11
+ const manifest = {
12
+ type,
13
+ version: "1.0",
14
+ name,
15
+ ssr: false,
16
+ initState,
17
+ isEmpty,
18
+ ui
19
+ };
20
+ //#endregion
21
+ export { manifest as default, initState, isEmpty, name, type, version };
package/package.json CHANGED
@@ -3,47 +3,42 @@
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.1.0",
6
+ "version": "2.0.0",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./dist/index.js",
9
+ "import": "./dist/index.mjs",
10
10
  "require": "./dist/index.cjs"
11
11
  }
12
12
  },
13
13
  "main": "./dist/index.cjs",
14
- "types": "./dist/index.d.ts",
14
+ "types": "./dist/index.d.mts",
15
15
  "files": [
16
16
  "dist"
17
17
  ],
18
+ "dependencies": {
19
+ "@tailor-cms/cek-common": "2.0.1"
20
+ },
18
21
  "devDependencies": {
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
+ "@tailor-cms/eslint-config": "2.0.1",
23
+ "tsdown": "^0.21.10",
24
+ "typescript": "^6.0.3"
23
25
  },
24
- "tsup": {
25
- "entry": [
26
- "src/index.ts"
27
- ],
28
- "target": [
29
- "node14",
30
- "es2022"
31
- ],
26
+ "tsdown": {
27
+ "target": "node24",
32
28
  "format": [
33
29
  "cjs",
34
30
  "esm"
35
- ],
36
- "bundle": true,
37
- "minify": false,
38
- "clean": false,
39
- "dts": true
31
+ ]
40
32
  },
41
33
  "publishConfig": {
42
34
  "access": "public"
43
35
  },
36
+ "engines": {
37
+ "node": ">=24"
38
+ },
44
39
  "scripts": {
45
- "dev": "tsup --watch",
46
- "build": "pnpm nuke:dist && tsup",
40
+ "dev": "tsdown --watch",
41
+ "build": "pnpm nuke:dist && tsdown",
47
42
  "lint": "eslint .",
48
43
  "lint:fix": "pnpm lint --fix",
49
44
  "nuke": "pnpm dlx del-cli dist node_modules",
package/dist/index.js DELETED
@@ -1,28 +0,0 @@
1
- // src/index.ts
2
- var type = "HTML";
3
- var name = "Quill HTML";
4
- var initState = () => ({ content: "" });
5
- var version = "1.0";
6
- var ui = {
7
- // Display icon, https://pictogrammers.com/library/mdi/
8
- icon: "mdi-text-box-outline",
9
- // Does element support only full width or can be used within layouts
10
- // (e.g. 50/50 layout)
11
- forceFullWidth: false
12
- };
13
- var manifest = {
14
- type,
15
- version,
16
- name,
17
- ssr: false,
18
- initState,
19
- ui
20
- };
21
- var index_default = manifest;
22
- export {
23
- index_default as default,
24
- initState,
25
- name,
26
- type,
27
- version
28
- };