cloudcannon-jekyll-bookshop 2.0.0.pre.beta.15 → 2.0.0.pre.beta.19
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cloudcannon-jekyll-bookshop/version.rb +1 -1
- data/node_modules/@bookshop/cloudcannon-structures/main.js +7 -1
- data/node_modules/@bookshop/cloudcannon-structures/package.json +2 -2
- data/node_modules/@bookshop/toml-narrator/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d63a9d3c471f5f0c60fd8f20b7a1cb32fcd9539378ae411e05e4037acbee28fb
|
4
|
+
data.tar.gz: 9cbca640a004de4b92635c917975901272b4fc26805d7988a635e656e3b12a04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72c6debda589c5483f2696473d7f393fcdd6407be5ce77c9e5060058b414f69eef00208d7652507d3296474f2df873bf617c46fdfc7d461aa26392c22d348e5b
|
7
|
+
data.tar.gz: d3f810a565ab22c4912c310b16a42198ddf9ddba0da0000e98dcc5e8fb30bc39dda81eef9caa0cb63b5f66525a3f29e68d419c8ea34f086f6d4b24b0041bd94e
|
data/Gemfile.lock
CHANGED
@@ -50,7 +50,7 @@ const TransformComponent = (path, component) => {
|
|
50
50
|
// Recursive function for processing the [props] section of a bookshop component spec,
|
51
51
|
// and populating sub-structures, comments, select data, et cetera.
|
52
52
|
const TransformComponentProps = (props, structure, value_context) => {
|
53
|
-
["_select_data","_array_structures","_comments","value"].forEach(k => {
|
53
|
+
["_select_data","_array_structures","_comments","_instance_values","value"].forEach(k => {
|
54
54
|
structure[k] = structure[k] || {};
|
55
55
|
});
|
56
56
|
|
@@ -93,6 +93,12 @@ const TransformObject = (key, obj, structure, value_context) => {
|
|
93
93
|
structure["_comments"][key] = comment;
|
94
94
|
}
|
95
95
|
|
96
|
+
if (Object.hasOwnProperty.call(obj, "instance")) {
|
97
|
+
value_context[key] = null;
|
98
|
+
structure["_instance_values"][key] = obj["instance"]
|
99
|
+
return
|
100
|
+
}
|
101
|
+
|
96
102
|
if (Object.hasOwnProperty.call(obj, "select")) {
|
97
103
|
value_context[key] = obj["default"] ?? null;
|
98
104
|
structure["_select_data"][pluralize(key)] = obj["select"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bookshop/cloudcannon-structures",
|
3
|
-
"version": "2.0.0-beta.
|
3
|
+
"version": "2.0.0-beta.19",
|
4
4
|
"description": "Convert a Bookshop object into a CloudCannon structure",
|
5
5
|
"main": "main.js",
|
6
6
|
"scripts": {
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"access": "public"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
|
-
"@bookshop/toml-narrator": "2.0.0-beta.
|
19
|
+
"@bookshop/toml-narrator": "2.0.0-beta.19",
|
20
20
|
"@ltd/j-toml": "^1.12.2",
|
21
21
|
"ava": "^3.15.0",
|
22
22
|
"nyc": "^15.1.0",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudcannon-jekyll-bookshop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.beta.
|
4
|
+
version: 2.0.0.pre.beta.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liam Bigelow
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|