@tailor-cms/ce-image-server 1.0.0 → 1.0.2
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 +5 -13
- package/dist/index.d.cts +1 -9
- package/dist/index.d.ts +1 -9
- package/dist/index.js +5 -12
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -27,24 +27,18 @@ __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
|
});
|
|
34
33
|
module.exports = __toCommonJS(src_exports);
|
|
35
34
|
|
|
36
35
|
// ../manifest/dist/index.js
|
|
37
|
-
var type = "
|
|
36
|
+
var type = "IMAGE";
|
|
38
37
|
var initState = () => ({
|
|
39
|
-
url:
|
|
40
|
-
alt: ""
|
|
38
|
+
url: null,
|
|
39
|
+
alt: "",
|
|
40
|
+
assets: {}
|
|
41
41
|
});
|
|
42
|
-
var mocks = {
|
|
43
|
-
displayContexts: [
|
|
44
|
-
{ name: "Test preset 1", data: { state: "I have a value" } },
|
|
45
|
-
{ name: "Test preset 2", data: { state: "I have a different value" } }
|
|
46
|
-
]
|
|
47
|
-
};
|
|
48
42
|
|
|
49
43
|
// src/index.ts
|
|
50
44
|
var IS_CEK = process.env.CEK_RUNTIME;
|
|
@@ -91,8 +85,7 @@ var src_default = {
|
|
|
91
85
|
afterLoaded,
|
|
92
86
|
afterRetrieve,
|
|
93
87
|
onUserInteraction,
|
|
94
|
-
beforeDisplay
|
|
95
|
-
mocks
|
|
88
|
+
beforeDisplay
|
|
96
89
|
};
|
|
97
90
|
// Annotate the CommonJS export names for ESM import in node:
|
|
98
91
|
0 && (module.exports = {
|
|
@@ -103,7 +96,6 @@ var src_default = {
|
|
|
103
96
|
beforeSave,
|
|
104
97
|
hookMap,
|
|
105
98
|
initState,
|
|
106
|
-
mocks,
|
|
107
99
|
onUserInteraction,
|
|
108
100
|
type
|
|
109
101
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tailor_cms_ce_image_manifest from '@tailor-cms/ce-image-manifest';
|
|
2
2
|
import { Element } from '@tailor-cms/ce-image-manifest';
|
|
3
|
-
export { initState,
|
|
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;
|
|
@@ -20,14 +20,6 @@ declare const _default: {
|
|
|
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
1
|
import * as _tailor_cms_ce_image_manifest from '@tailor-cms/ce-image-manifest';
|
|
2
2
|
import { Element } from '@tailor-cms/ce-image-manifest';
|
|
3
|
-
export { initState,
|
|
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;
|
|
@@ -20,14 +20,6 @@ declare const _default: {
|
|
|
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,15 +1,10 @@
|
|
|
1
1
|
// ../manifest/dist/index.js
|
|
2
|
-
var type = "
|
|
2
|
+
var type = "IMAGE";
|
|
3
3
|
var initState = () => ({
|
|
4
|
-
url:
|
|
5
|
-
alt: ""
|
|
4
|
+
url: null,
|
|
5
|
+
alt: "",
|
|
6
|
+
assets: {}
|
|
6
7
|
});
|
|
7
|
-
var mocks = {
|
|
8
|
-
displayContexts: [
|
|
9
|
-
{ name: "Test preset 1", data: { state: "I have a value" } },
|
|
10
|
-
{ name: "Test preset 2", data: { state: "I have a different value" } }
|
|
11
|
-
]
|
|
12
|
-
};
|
|
13
8
|
|
|
14
9
|
// src/index.ts
|
|
15
10
|
var IS_CEK = process.env.CEK_RUNTIME;
|
|
@@ -56,8 +51,7 @@ var src_default = {
|
|
|
56
51
|
afterLoaded,
|
|
57
52
|
afterRetrieve,
|
|
58
53
|
onUserInteraction,
|
|
59
|
-
beforeDisplay
|
|
60
|
-
mocks
|
|
54
|
+
beforeDisplay
|
|
61
55
|
};
|
|
62
56
|
export {
|
|
63
57
|
afterLoaded,
|
|
@@ -68,7 +62,6 @@ export {
|
|
|
68
62
|
src_default as default,
|
|
69
63
|
hookMap,
|
|
70
64
|
initState,
|
|
71
|
-
mocks,
|
|
72
65
|
onUserInteraction,
|
|
73
66
|
type
|
|
74
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
|
|
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": "1.0.
|
|
6
|
+
"version": "1.0.2",
|
|
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
|
-
"@tailor-cms/ce-image-manifest": "1.0.
|
|
23
|
+
"@tailor-cms/ce-image-manifest": "1.0.2"
|
|
24
24
|
},
|
|
25
25
|
"tsup": {
|
|
26
26
|
"entry": [
|