@tailor-cms/ce-accordion-server 0.0.14 → 0.0.16

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
@@ -17,20 +17,20 @@ var __copyProps = (to, from, except, desc) => {
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
 
19
19
  // src/index.ts
20
- var src_exports = {};
21
- __export(src_exports, {
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
22
  afterLoaded: () => afterLoaded,
23
23
  afterRetrieve: () => afterRetrieve,
24
24
  afterSave: () => afterSave,
25
25
  beforeDisplay: () => beforeDisplay,
26
26
  beforeSave: () => beforeSave,
27
- default: () => src_default,
27
+ default: () => index_default,
28
28
  hookMap: () => hookMap,
29
29
  initState: () => initState,
30
30
  onUserInteraction: () => onUserInteraction,
31
31
  type: () => type
32
32
  });
33
- module.exports = __toCommonJS(src_exports);
33
+ module.exports = __toCommonJS(index_exports);
34
34
 
35
35
  // ../../node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm/stringify.js
36
36
  var byteToHex = [];
@@ -85,10 +85,18 @@ function v4(options, buf, offset) {
85
85
  var v4_default = v4;
86
86
 
87
87
  // ../manifest/dist/index.js
88
+ var id = v4_default();
88
89
  var type = "ACCORDION";
89
90
  var initState = () => ({
90
91
  embeds: {},
91
- items: [{ id: v4_default(), title: "Accordion Item Title", elementIds: [] }]
92
+ items: {
93
+ [id]: {
94
+ id,
95
+ header: "Accordion Item Title",
96
+ body: {},
97
+ position: 1
98
+ }
99
+ }
92
100
  });
93
101
 
94
102
  // src/index.ts
@@ -127,7 +135,7 @@ var hookMap = new Map(
127
135
  beforeDisplay
128
136
  })
129
137
  );
130
- var src_default = {
138
+ var index_default = {
131
139
  type,
132
140
  hookMap,
133
141
  initState,
package/dist/index.js CHANGED
@@ -51,10 +51,18 @@ function v4(options, buf, offset) {
51
51
  var v4_default = v4;
52
52
 
53
53
  // ../manifest/dist/index.js
54
+ var id = v4_default();
54
55
  var type = "ACCORDION";
55
56
  var initState = () => ({
56
57
  embeds: {},
57
- items: [{ id: v4_default(), title: "Accordion Item Title", elementIds: [] }]
58
+ items: {
59
+ [id]: {
60
+ id,
61
+ header: "Accordion Item Title",
62
+ body: {},
63
+ position: 1
64
+ }
65
+ }
58
66
  });
59
67
 
60
68
  // src/index.ts
@@ -93,7 +101,7 @@ var hookMap = new Map(
93
101
  beforeDisplay
94
102
  })
95
103
  );
96
- var src_default = {
104
+ var index_default = {
97
105
  type,
98
106
  hookMap,
99
107
  initState,
@@ -110,7 +118,7 @@ export {
110
118
  afterSave,
111
119
  beforeDisplay,
112
120
  beforeSave,
113
- src_default as default,
121
+ index_default as default,
114
122
  hookMap,
115
123
  initState,
116
124
  onUserInteraction,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Tailor CMS accordion element",
4
4
  "author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
5
5
  "type": "module",
6
- "version": "0.0.14",
6
+ "version": "0.0.16",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/index.js",
@@ -16,11 +16,11 @@
16
16
  "dist"
17
17
  ],
18
18
  "devDependencies": {
19
- "@tailor-cms/cek-common": "^0.0.3",
19
+ "@tailor-cms/cek-common": "^0.0.4",
20
20
  "@tailor-cms/eslint-config": "0.0.2",
21
- "tsup": "^7.2.0",
22
- "typescript": "^5.1.6",
23
- "@tailor-cms/ce-accordion-manifest": "0.0.14"
21
+ "tsup": "^8.3.6",
22
+ "typescript": "^5.7.3",
23
+ "@tailor-cms/ce-accordion-manifest": "0.0.16"
24
24
  },
25
25
  "tsup": {
26
26
  "entry": [