@tailor-cms/ce-image-server 0.0.1 → 1.0.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/index.cjs CHANGED
@@ -27,7 +27,6 @@ __export(src_exports, {
27
27
  default: () => src_default,
28
28
  hookMap: () => hookMap,
29
29
  initState: () => initState,
30
- mocks: () => mocks,
31
30
  onUserInteraction: () => onUserInteraction,
32
31
  type: () => type
33
32
  });
@@ -36,14 +35,10 @@ module.exports = __toCommonJS(src_exports);
36
35
  // ../manifest/dist/index.js
37
36
  var type = "CE_IMAGE";
38
37
  var initState = () => ({
39
- url: ""
38
+ url: null,
39
+ alt: "",
40
+ assets: {}
40
41
  });
41
- var mocks = {
42
- displayContexts: [
43
- { name: "Test preset 1", data: { state: "I have a value" } },
44
- { name: "Test preset 2", data: { state: "I have a different value" } }
45
- ]
46
- };
47
42
 
48
43
  // src/index.ts
49
44
  var IS_CEK = process.env.CEK_RUNTIME;
@@ -90,8 +85,7 @@ var src_default = {
90
85
  afterLoaded,
91
86
  afterRetrieve,
92
87
  onUserInteraction,
93
- beforeDisplay,
94
- mocks
88
+ beforeDisplay
95
89
  };
96
90
  // Annotate the CommonJS export names for ESM import in node:
97
91
  0 && (module.exports = {
@@ -102,7 +96,6 @@ var src_default = {
102
96
  beforeSave,
103
97
  hookMap,
104
98
  initState,
105
- mocks,
106
99
  onUserInteraction,
107
100
  type
108
101
  });
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import * as tce_manifest from 'tce-manifest';
2
- import { Element } from 'tce-manifest';
3
- export { initState, mocks, type } from 'tce-manifest';
1
+ import * as _tailor_cms_ce_image_manifest from '@tailor-cms/ce-image-manifest';
2
+ import { Element } from '@tailor-cms/ce-image-manifest';
3
+ export { initState, type } from '@tailor-cms/ce-image-manifest';
4
4
  import { HookServices, ServerRuntime } from '@tailor-cms/cek-common';
5
5
 
6
6
  declare function beforeSave(element: Element, services: HookServices): Element;
@@ -13,21 +13,13 @@ declare const hookMap: Map<string, typeof beforeSave | typeof afterSave | typeof
13
13
  declare const _default: {
14
14
  type: string;
15
15
  hookMap: Map<string, typeof beforeSave | typeof afterSave | typeof afterLoaded | typeof afterRetrieve | typeof onUserInteraction | typeof beforeDisplay>;
16
- initState: tce_manifest.DataInitializer;
16
+ initState: _tailor_cms_ce_image_manifest.DataInitializer;
17
17
  beforeSave: typeof beforeSave;
18
18
  afterSave: typeof afterSave;
19
19
  afterLoaded: typeof afterLoaded;
20
20
  afterRetrieve: typeof afterRetrieve;
21
21
  onUserInteraction: typeof onUserInteraction;
22
22
  beforeDisplay: typeof beforeDisplay;
23
- mocks: {
24
- displayContexts: {
25
- name: string;
26
- data: {
27
- state: string;
28
- };
29
- }[];
30
- };
31
23
  };
32
24
 
33
25
  export { afterLoaded, afterRetrieve, afterSave, beforeDisplay, beforeSave, _default as default, hookMap, onUserInteraction };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as tce_manifest from 'tce-manifest';
2
- import { Element } from 'tce-manifest';
3
- export { initState, mocks, type } from 'tce-manifest';
1
+ import * as _tailor_cms_ce_image_manifest from '@tailor-cms/ce-image-manifest';
2
+ import { Element } from '@tailor-cms/ce-image-manifest';
3
+ export { initState, type } from '@tailor-cms/ce-image-manifest';
4
4
  import { HookServices, ServerRuntime } from '@tailor-cms/cek-common';
5
5
 
6
6
  declare function beforeSave(element: Element, services: HookServices): Element;
@@ -13,21 +13,13 @@ declare const hookMap: Map<string, typeof beforeSave | typeof afterSave | typeof
13
13
  declare const _default: {
14
14
  type: string;
15
15
  hookMap: Map<string, typeof beforeSave | typeof afterSave | typeof afterLoaded | typeof afterRetrieve | typeof onUserInteraction | typeof beforeDisplay>;
16
- initState: tce_manifest.DataInitializer;
16
+ initState: _tailor_cms_ce_image_manifest.DataInitializer;
17
17
  beforeSave: typeof beforeSave;
18
18
  afterSave: typeof afterSave;
19
19
  afterLoaded: typeof afterLoaded;
20
20
  afterRetrieve: typeof afterRetrieve;
21
21
  onUserInteraction: typeof onUserInteraction;
22
22
  beforeDisplay: typeof beforeDisplay;
23
- mocks: {
24
- displayContexts: {
25
- name: string;
26
- data: {
27
- state: string;
28
- };
29
- }[];
30
- };
31
23
  };
32
24
 
33
25
  export { afterLoaded, afterRetrieve, afterSave, beforeDisplay, beforeSave, _default as default, hookMap, onUserInteraction };
package/dist/index.js CHANGED
@@ -1,14 +1,10 @@
1
1
  // ../manifest/dist/index.js
2
2
  var type = "CE_IMAGE";
3
3
  var initState = () => ({
4
- url: ""
4
+ url: null,
5
+ alt: "",
6
+ assets: {}
5
7
  });
6
- var mocks = {
7
- displayContexts: [
8
- { name: "Test preset 1", data: { state: "I have a value" } },
9
- { name: "Test preset 2", data: { state: "I have a different value" } }
10
- ]
11
- };
12
8
 
13
9
  // src/index.ts
14
10
  var IS_CEK = process.env.CEK_RUNTIME;
@@ -55,8 +51,7 @@ var src_default = {
55
51
  afterLoaded,
56
52
  afterRetrieve,
57
53
  onUserInteraction,
58
- beforeDisplay,
59
- mocks
54
+ beforeDisplay
60
55
  };
61
56
  export {
62
57
  afterLoaded,
@@ -67,7 +62,6 @@ export {
67
62
  src_default as default,
68
63
  hookMap,
69
64
  initState,
70
- mocks,
71
65
  onUserInteraction,
72
66
  type
73
67
  };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@tailor-cms/ce-image-server",
3
- "description": "Tailor image element server runtime",
3
+ "description": "Tailor CMS image element server component",
4
4
  "author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
5
5
  "type": "module",
6
- "version": "0.0.1",
6
+ "version": "1.0.1",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "@tailor-cms/eslint-config": "0.0.2",
21
21
  "tsup": "^7.2.0",
22
22
  "typescript": "^5.1.6",
23
- "tce-manifest": "npm:@tailor-cms/ce-image-manifest@0.0.1"
23
+ "@tailor-cms/ce-image-manifest": "1.0.1"
24
24
  },
25
25
  "tsup": {
26
26
  "entry": [