@tailor-cms/ce-image-manifest 1.1.0 → 1.1.1-beta.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
@@ -21,6 +21,7 @@ var index_exports = {};
21
21
  __export(index_exports, {
22
22
  default: () => index_default,
23
23
  initState: () => initState,
24
+ isEmpty: () => isEmpty,
24
25
  name: () => name,
25
26
  type: () => type,
26
27
  version: () => version
@@ -41,18 +42,21 @@ var ui = {
41
42
  // (e.g. 50/50 layout)
42
43
  forceFullWidth: false
43
44
  };
45
+ var isEmpty = (data) => !data.url;
44
46
  var manifest = {
45
47
  type,
46
48
  version,
47
49
  name,
48
50
  ssr: false,
49
51
  initState,
52
+ isEmpty,
50
53
  ui
51
54
  };
52
55
  var index_default = manifest;
53
56
  // Annotate the CommonJS export names for ESM import in node:
54
57
  0 && (module.exports = {
55
58
  initState,
59
+ isEmpty,
56
60
  name,
57
61
  type,
58
62
  version
package/dist/index.d.cts CHANGED
@@ -15,6 +15,7 @@ declare const type = "IMAGE";
15
15
  declare const name = "Image";
16
16
  declare const initState: DataInitializer;
17
17
  declare const version = "1.0";
18
+ declare const isEmpty: (data: ElementData) => boolean;
18
19
  declare const manifest: ElementManifest;
19
20
 
20
- export { type DataInitializer, type Element, type ElementData, type ElementManifest, manifest as default, initState, name, type, version };
21
+ export { type DataInitializer, type Element, type ElementData, type ElementManifest, manifest as default, initState, isEmpty, name, type, version };
package/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ declare const type = "IMAGE";
15
15
  declare const name = "Image";
16
16
  declare const initState: DataInitializer;
17
17
  declare const version = "1.0";
18
+ declare const isEmpty: (data: ElementData) => boolean;
18
19
  declare const manifest: ElementManifest;
19
20
 
20
- export { type DataInitializer, type Element, type ElementData, type ElementManifest, manifest as default, initState, name, type, version };
21
+ export { type DataInitializer, type Element, type ElementData, type ElementManifest, manifest as default, initState, isEmpty, name, type, version };
package/dist/index.js CHANGED
@@ -14,18 +14,21 @@ var ui = {
14
14
  // (e.g. 50/50 layout)
15
15
  forceFullWidth: false
16
16
  };
17
+ var isEmpty = (data) => !data.url;
17
18
  var manifest = {
18
19
  type,
19
20
  version,
20
21
  name,
21
22
  ssr: false,
22
23
  initState,
24
+ isEmpty,
23
25
  ui
24
26
  };
25
27
  var index_default = manifest;
26
28
  export {
27
29
  index_default as default,
28
30
  initState,
31
+ isEmpty,
29
32
  name,
30
33
  type,
31
34
  version
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Tailor CMS image element manifest",
4
4
  "author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
5
5
  "type": "module",
6
- "version": "1.1.0",
6
+ "version": "1.1.1-beta.0",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/index.js",
@@ -16,10 +16,10 @@
16
16
  "dist"
17
17
  ],
18
18
  "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"
19
+ "@tailor-cms/cek-common": "^2.0.0-beta.0",
20
+ "@tailor-cms/eslint-config": "^2.0.0-beta.0",
21
+ "tsup": "^8.5.1",
22
+ "typescript": "^5.9.3"
23
23
  },
24
24
  "tsup": {
25
25
  "entry": [