druxt-schema 0.8.1 → 0.9.3
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 +33 -0
- package/dist/druxt-schema.esm.js +13 -2
- package/dist/druxt-schema.ssr.js +13 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# druxt-schema
|
|
2
2
|
|
|
3
|
+
## 0.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [7b749bd]
|
|
8
|
+
- druxt@0.16.0
|
|
9
|
+
|
|
10
|
+
## 0.9.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [2ae1d6d]
|
|
15
|
+
- druxt@0.15.0
|
|
16
|
+
|
|
17
|
+
## 0.9.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [45bc0b9]
|
|
22
|
+
- druxt@0.14.0
|
|
23
|
+
|
|
24
|
+
## 0.9.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- 77ab204: Disabled API Proxy when generating schema files
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- d12dfb5: Added missing schemaType prop to DruxtSchemaMixin
|
|
33
|
+
- Updated dependencies [77ab204]
|
|
34
|
+
- druxt@0.13.0
|
|
35
|
+
|
|
3
36
|
## 0.8.1
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
package/dist/druxt-schema.esm.js
CHANGED
|
@@ -241,7 +241,10 @@ const DruxtSchemaNuxtModule = function(moduleOptions = {}) {
|
|
|
241
241
|
options
|
|
242
242
|
});
|
|
243
243
|
this.nuxt.hook("builder:prepared", async () => {
|
|
244
|
-
const druxtSchema = new DruxtSchema(options.baseUrl,
|
|
244
|
+
const druxtSchema = new DruxtSchema(options.baseUrl, {
|
|
245
|
+
...options,
|
|
246
|
+
proxy: { ...options.proxy || {}, api: false }
|
|
247
|
+
});
|
|
245
248
|
const { schemas } = await druxtSchema.get();
|
|
246
249
|
for (const name in schemas) {
|
|
247
250
|
const schema = schemas[name];
|
|
@@ -264,13 +267,21 @@ const DruxtSchemaMixin = {
|
|
|
264
267
|
type: String,
|
|
265
268
|
default: "default"
|
|
266
269
|
},
|
|
270
|
+
schemaType: {
|
|
271
|
+
type: String,
|
|
272
|
+
default: void 0
|
|
273
|
+
},
|
|
267
274
|
type: {
|
|
268
275
|
type: String,
|
|
269
276
|
required: true
|
|
270
277
|
}
|
|
271
278
|
},
|
|
272
279
|
async fetch() {
|
|
273
|
-
this.schema = await this.getSchema({
|
|
280
|
+
this.schema = await this.getSchema({
|
|
281
|
+
resourceType: this.type,
|
|
282
|
+
mode: this.mode,
|
|
283
|
+
schemaType: this.schemaType || "view"
|
|
284
|
+
});
|
|
274
285
|
},
|
|
275
286
|
data: () => ({
|
|
276
287
|
schema: false
|
package/dist/druxt-schema.ssr.js
CHANGED
|
@@ -249,7 +249,10 @@ const DruxtSchemaNuxtModule = function(moduleOptions = {}) {
|
|
|
249
249
|
options
|
|
250
250
|
});
|
|
251
251
|
this.nuxt.hook("builder:prepared", async () => {
|
|
252
|
-
const druxtSchema = new DruxtSchema(options.baseUrl,
|
|
252
|
+
const druxtSchema = new DruxtSchema(options.baseUrl, {
|
|
253
|
+
...options,
|
|
254
|
+
proxy: { ...options.proxy || {}, api: false }
|
|
255
|
+
});
|
|
253
256
|
const { schemas } = await druxtSchema.get();
|
|
254
257
|
for (const name in schemas) {
|
|
255
258
|
const schema = schemas[name];
|
|
@@ -272,13 +275,21 @@ const DruxtSchemaMixin = {
|
|
|
272
275
|
type: String,
|
|
273
276
|
default: "default"
|
|
274
277
|
},
|
|
278
|
+
schemaType: {
|
|
279
|
+
type: String,
|
|
280
|
+
default: void 0
|
|
281
|
+
},
|
|
275
282
|
type: {
|
|
276
283
|
type: String,
|
|
277
284
|
required: true
|
|
278
285
|
}
|
|
279
286
|
},
|
|
280
287
|
async fetch() {
|
|
281
|
-
this.schema = await this.getSchema({
|
|
288
|
+
this.schema = await this.getSchema({
|
|
289
|
+
resourceType: this.type,
|
|
290
|
+
mode: this.mode,
|
|
291
|
+
schemaType: this.schemaType || "view"
|
|
292
|
+
});
|
|
282
293
|
},
|
|
283
294
|
data: () => ({
|
|
284
295
|
schema: false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "druxt-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "Drupal Content Entity schema generator for Druxt with support for View and Form displays.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"consola": "^2.15.0",
|
|
43
43
|
"drupal-jsonapi-params": "^1.2.2",
|
|
44
|
-
"druxt": "^0.
|
|
44
|
+
"druxt": "^0.16.0"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
47
|
"vue": "^2.6.14",
|