@websolutespa/payload-plugin-bowl 1.7.6 → 1.7.7

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/CHANGELOG.md CHANGED
@@ -1,216 +1,225 @@
1
- # @websolutespa/payload-plugin-bowl
2
-
3
- ## 1.7.6
4
-
5
- ### Patch Changes
6
-
7
- - Added: beforeDuplicateCollectionHook
8
- - Fixing: decorateNav_ link href issue
9
-
10
- ## 1.7.5
11
-
12
- ### Patch Changes
13
-
14
- - Modified: Label collection title -> text
15
-
16
- ## 1.7.4
17
-
18
- ### Patch Changes
19
-
20
- - Fixing: findRoute redirects
21
-
22
- ## 1.7.3
23
-
24
- ### Patch Changes
25
-
26
- - Added: WhereService, StaticService, localize decorator
27
- - Modified: withCollection, withStaticCollection, withAction, CollectionService, PageService
28
-
29
- ## 1.7.2
30
-
31
- ### Patch Changes
32
-
33
- - Fixing: setMixerContext
34
-
35
- ## 1.7.1
36
-
37
- ### Patch Changes
38
-
39
- - Fixing: MenuService & CategoryTree
40
-
41
- ## 1.7.0
42
-
43
- ### Minor Changes
44
-
45
- - 28e86bd: Modified: IPage, Store services & decorators
46
- - Updated dependencies [28e86bd]
47
- - @websolutespa/bom-core@1.7.0
48
-
49
- ## 1.6.0
50
-
51
- ### Minor Changes
52
-
53
- - 6707ca2: Upgrading Payload 2.11.2
54
-
55
- ### Patch Changes
56
-
57
- - f664993: Added: useLivePreview
58
- - Updated dependencies [6cbf4cb]
59
- - @websolutespa/bom-core@0.6.7
60
-
61
- ## 1.3.6
62
-
63
- ### Patch Changes
64
-
65
- - Fixing: afterPageReadHook
66
-
67
- ## 1.3.5
68
-
69
- ### Patch Changes
70
-
71
- - Added: afterPageReadHook, MixerContext, getGlobalItems
72
- - Modified: getCollectionItems, getCollectionItem
73
-
74
- ## 1.3.4
75
-
76
- ### Patch Changes
77
-
78
- - Added: user roles and user actions
79
- - Added: main menu sortByGroup
80
-
81
- ## 1.3.3
82
-
83
- ### Patch Changes
84
-
85
- - Fixing: PageService decorators
86
-
87
- ## 1.3.2
88
-
89
- ### Patch Changes
90
-
91
- - 8776e50b: Modified: PageService decorators
92
-
93
- ## 1.3.1
94
-
95
- ### Patch Changes
96
-
97
- - Added: configuration option plugins
98
-
99
- ## 1.3.0
100
-
101
- ### Minor Changes
102
-
103
- - c7a99a2b: Added tests
104
-
105
- ### Patch Changes
106
-
107
- - dad63747: Added defaultMarket, defaultLocale
108
- - 11b63e3b: Fixed test config
109
- - c7a99a2b: Fixed collection bulk patch handler
110
- - Updated dependencies [dad63747]
111
- - @websolutespa/bom-core@0.6.1
112
-
113
- ## 1.2.0
114
-
115
- ### Minor Changes
116
-
117
- - Added: MenuItem extra
118
-
119
- ## 1.1.0
120
-
121
- ### Minor Changes
122
-
123
- - Updating: dependencies
124
-
125
- ## 1.0.6
126
-
127
- ### Patch Changes
128
-
129
- - Fixing: validateHexColor import
130
-
131
- ## 1.0.5
132
-
133
- ### Patch Changes
134
-
135
- - Fixing: check redirects by pattern
136
-
137
- ## 1.0.4
138
-
139
- ### Patch Changes
140
-
141
- - Fixing: storeGet endpoint locale
142
-
143
- ## 1.0.3
144
-
145
- ### Patch Changes
146
-
147
- - Modified: withPage preview, getApiUrl
148
-
149
- ## 1.0.2
150
-
151
- ### Patch Changes
152
-
153
- - Added: duration to withStaticCollection
154
- - Fixing: eachField
155
-
156
- ## 1.0.1
157
-
158
- ### Minor Changes
159
-
160
- - Added: CategoryTree
161
- - Fixing: sass
162
-
163
- ## 0.5.0
164
-
165
- ### Minor Changes
166
-
167
- - Modified routes, added redirects
168
-
169
- ## 0.4.0
170
-
171
- ### Minor Changes
172
-
173
- - Removed: external dependency @websolutespa/payload-plugin-localization
174
-
175
- ## 0.3.2
176
-
177
- ### Patch Changes
178
-
179
- - Fixing: avoid categories circular reference
180
-
181
- ## 0.3.1
182
-
183
- ### Patch Changes
184
-
185
- - Modified: ILocalizable
186
-
187
- ## 0.3.0
188
-
189
- ### Minor Changes
190
-
191
- - Added: splat routes
192
-
193
- ## 0.2.0
194
-
195
- ### Minor Changes
196
-
197
- - Added: menu, @websolutespa/bom-core
198
-
199
- ## 0.1.1
200
-
201
- ### Patch Changes
202
-
203
- - Modified: route service
204
- - Added: white label
205
-
206
- ## 0.1.0
207
-
208
- ### Minor Changes
209
-
210
- - mock refactor
211
-
212
- ## 0.0.1
213
-
214
- ### Patch Changes
215
-
216
- - Added: first release
1
+ # @websolutespa/payload-plugin-bowl
2
+
3
+ ## 1.7.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Added: isomorphic-fetch
8
+ - Updating: dependencies
9
+ - Updated dependencies
10
+ - @websolutespa/bom-core@1.7.3
11
+
12
+ ## 1.7.6
13
+
14
+ ### Patch Changes
15
+
16
+ - Added: beforeDuplicateCollectionHook
17
+ - Fixing: decorateNav\_ link href issue
18
+
19
+ ## 1.7.5
20
+
21
+ ### Patch Changes
22
+
23
+ - Modified: Label collection title -> text
24
+
25
+ ## 1.7.4
26
+
27
+ ### Patch Changes
28
+
29
+ - Fixing: findRoute redirects
30
+
31
+ ## 1.7.3
32
+
33
+ ### Patch Changes
34
+
35
+ - Added: WhereService, StaticService, localize decorator
36
+ - Modified: withCollection, withStaticCollection, withAction, CollectionService, PageService
37
+
38
+ ## 1.7.2
39
+
40
+ ### Patch Changes
41
+
42
+ - Fixing: setMixerContext
43
+
44
+ ## 1.7.1
45
+
46
+ ### Patch Changes
47
+
48
+ - Fixing: MenuService & CategoryTree
49
+
50
+ ## 1.7.0
51
+
52
+ ### Minor Changes
53
+
54
+ - 28e86bd: Modified: IPage, Store services & decorators
55
+ - Updated dependencies [28e86bd]
56
+ - @websolutespa/bom-core@1.7.0
57
+
58
+ ## 1.6.0
59
+
60
+ ### Minor Changes
61
+
62
+ - 6707ca2: Upgrading Payload 2.11.2
63
+
64
+ ### Patch Changes
65
+
66
+ - f664993: Added: useLivePreview
67
+ - Updated dependencies [6cbf4cb]
68
+ - @websolutespa/bom-core@0.6.7
69
+
70
+ ## 1.3.6
71
+
72
+ ### Patch Changes
73
+
74
+ - Fixing: afterPageReadHook
75
+
76
+ ## 1.3.5
77
+
78
+ ### Patch Changes
79
+
80
+ - Added: afterPageReadHook, MixerContext, getGlobalItems
81
+ - Modified: getCollectionItems, getCollectionItem
82
+
83
+ ## 1.3.4
84
+
85
+ ### Patch Changes
86
+
87
+ - Added: user roles and user actions
88
+ - Added: main menu sortByGroup
89
+
90
+ ## 1.3.3
91
+
92
+ ### Patch Changes
93
+
94
+ - Fixing: PageService decorators
95
+
96
+ ## 1.3.2
97
+
98
+ ### Patch Changes
99
+
100
+ - 8776e50b: Modified: PageService decorators
101
+
102
+ ## 1.3.1
103
+
104
+ ### Patch Changes
105
+
106
+ - Added: configuration option plugins
107
+
108
+ ## 1.3.0
109
+
110
+ ### Minor Changes
111
+
112
+ - c7a99a2b: Added tests
113
+
114
+ ### Patch Changes
115
+
116
+ - dad63747: Added defaultMarket, defaultLocale
117
+ - 11b63e3b: Fixed test config
118
+ - c7a99a2b: Fixed collection bulk patch handler
119
+ - Updated dependencies [dad63747]
120
+ - @websolutespa/bom-core@0.6.1
121
+
122
+ ## 1.2.0
123
+
124
+ ### Minor Changes
125
+
126
+ - Added: MenuItem extra
127
+
128
+ ## 1.1.0
129
+
130
+ ### Minor Changes
131
+
132
+ - Updating: dependencies
133
+
134
+ ## 1.0.6
135
+
136
+ ### Patch Changes
137
+
138
+ - Fixing: validateHexColor import
139
+
140
+ ## 1.0.5
141
+
142
+ ### Patch Changes
143
+
144
+ - Fixing: check redirects by pattern
145
+
146
+ ## 1.0.4
147
+
148
+ ### Patch Changes
149
+
150
+ - Fixing: storeGet endpoint locale
151
+
152
+ ## 1.0.3
153
+
154
+ ### Patch Changes
155
+
156
+ - Modified: withPage preview, getApiUrl
157
+
158
+ ## 1.0.2
159
+
160
+ ### Patch Changes
161
+
162
+ - Added: duration to withStaticCollection
163
+ - Fixing: eachField
164
+
165
+ ## 1.0.1
166
+
167
+ ### Minor Changes
168
+
169
+ - Added: CategoryTree
170
+ - Fixing: sass
171
+
172
+ ## 0.5.0
173
+
174
+ ### Minor Changes
175
+
176
+ - Modified routes, added redirects
177
+
178
+ ## 0.4.0
179
+
180
+ ### Minor Changes
181
+
182
+ - Removed: external dependency @websolutespa/payload-plugin-localization
183
+
184
+ ## 0.3.2
185
+
186
+ ### Patch Changes
187
+
188
+ - Fixing: avoid categories circular reference
189
+
190
+ ## 0.3.1
191
+
192
+ ### Patch Changes
193
+
194
+ - Modified: ILocalizable
195
+
196
+ ## 0.3.0
197
+
198
+ ### Minor Changes
199
+
200
+ - Added: splat routes
201
+
202
+ ## 0.2.0
203
+
204
+ ### Minor Changes
205
+
206
+ - Added: menu, @websolutespa/bom-core
207
+
208
+ ## 0.1.1
209
+
210
+ ### Patch Changes
211
+
212
+ - Modified: route service
213
+ - Added: white label
214
+
215
+ ## 0.1.0
216
+
217
+ ### Minor Changes
218
+
219
+ - mock refactor
220
+
221
+ ## 0.0.1
222
+
223
+ ### Patch Changes
224
+
225
+ - Added: first release
package/dist/index.js CHANGED
@@ -6200,11 +6200,11 @@ var withPage = /* @__PURE__ */ __name((config) => {
6200
6200
  }, "withPage");
6201
6201
 
6202
6202
  // src/core/collections/withStaticCollection.ts
6203
- var import_axios = __toESM(require("axios"));
6203
+ var import_isomorphic_fetch = require("isomorphic-fetch");
6204
6204
  var ID = 0;
6205
6205
  var CACHE_3 = {};
6206
6206
  async function getCollection(url) {
6207
- const response = await import_axios.default.get(url, {});
6207
+ const response = await fetch(url, { method: "GET" }).then((response2) => response2.json());
6208
6208
  const items = response.data.items;
6209
6209
  return items;
6210
6210
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/payload-plugin-bowl",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "Bowl PayloadCms plugin of the BOM Repository",
5
5
  "keywords": [
6
6
  "payload",
@@ -33,8 +33,8 @@
33
33
  "peerDependencies": {
34
34
  "@payloadcms/db-mongodb": ">= 1.2.0",
35
35
  "@websolutespa/bom-core": "*",
36
- "axios": "0.27.2",
37
- "i18next": ">= 22.4.9",
36
+ "i18next": ">= 22.5.1",
37
+ "isomorphic-fetch": ">= 3.0.0",
38
38
  "payload": ">= 2.11.2",
39
39
  "react": ">= 18.2.0",
40
40
  "uuid": ">= 9.0.1"
@@ -42,21 +42,22 @@
42
42
  "devDependencies": {
43
43
  "@types/escape-html": "^1.0.2",
44
44
  "@types/express": "^4.17.15",
45
+ "@types/isomorphic-fetch": "^0.0.39",
45
46
  "@types/papaparse": "^5.3.7",
46
47
  "@types/uuid": "^9.0.2",
47
48
  "@websolutespa/bom-cli": "*",
48
49
  "@websolutespa/test": "*",
49
50
  "@websolutespa/tsconfig": "*",
50
- "axios": "0.27.2",
51
51
  "esbuild-sass-plugin": "^2.10.0",
52
52
  "eslint-config-websolute": "*",
53
- "eslint": "^8.46.0",
54
- "i18next": "^22.4.9",
53
+ "eslint": "^9.0.0",
54
+ "i18next": "^22.5.1",
55
+ "isomorphic-fetch": "^3.0.0",
55
56
  "mongodb-memory-server": "^8.13.0",
56
57
  "react": "^18.2.0",
57
- "ts-node": "^10.9.1",
58
+ "ts-node": "^10.9.2",
58
59
  "tsup": "^6.7.0",
59
- "typescript": "^5.1.6",
60
+ "typescript": "^5.4.5",
60
61
  "uuid": "^9.0.1"
61
62
  },
62
63
  "publishConfig": {
package/scss/styles.scss CHANGED
@@ -127,3 +127,13 @@
127
127
  .tabs-field__tab-button {
128
128
  text-decoration: none;
129
129
  }
130
+
131
+ .card-menu {
132
+ display: flex;
133
+ align-items: center;
134
+ justify-content: space-between;
135
+
136
+ &>.card__actions {
137
+ margin: 0;
138
+ }
139
+ }