lookbook 2.0.0.rc.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -18
- data/app/components/lookbook/message/component.css +2 -1
- data/app/components/lookbook/params/field/component.rb +1 -1
- data/lib/lookbook/engine.rb +0 -2
- data/lib/lookbook/entities/renderable_entity.rb +14 -1
- data/lib/lookbook/preview_controller_actions.rb +41 -41
- data/lib/lookbook/runtime_context.rb +1 -1
- data/lib/lookbook/support/utils/where.rb +49 -0
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/lookbook.css +1 -3
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/js/index.js +116 -116
- data/public/lookbook-assets/js/index.js.map +1 -1
- metadata +19 -4
@@ -7815,49 +7815,7 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
|
|
7815
7815
|
}
|
7816
7816
|
|
7817
7817
|
|
7818
|
-
var $
|
7819
|
-
var $47a1c62621be0c54$exports = {};
|
7820
|
-
|
7821
|
-
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
7822
|
-
|
7823
|
-
$parcel$export($47a1c62621be0c54$exports, "default", () => $47a1c62621be0c54$export$2e2bcd8739ae039);
|
7824
|
-
var $4e31c85e11272811$exports = {};
|
7825
|
-
|
7826
|
-
$parcel$defineInteropFlag($4e31c85e11272811$exports);
|
7827
|
-
|
7828
|
-
$parcel$export($4e31c85e11272811$exports, "initClipboard", () => $4e31c85e11272811$export$c6684e6159b21de3);
|
7829
|
-
$parcel$export($4e31c85e11272811$exports, "default", () => $4e31c85e11272811$export$2e2bcd8739ae039);
|
7830
|
-
|
7831
|
-
function $4e31c85e11272811$export$c6684e6159b21de3(context = {}) {
|
7832
|
-
let copyTimeout = null;
|
7833
|
-
return Object.assign(context, {
|
7834
|
-
copied: false,
|
7835
|
-
async copyToClipboard (target = null) {
|
7836
|
-
let targetEl;
|
7837
|
-
if (this.$refs.copyTarget) targetEl = this.$refs.copyTarget;
|
7838
|
-
else if (typeof target === "string") targetEl = document.querySelector(target);
|
7839
|
-
if (!targetEl) {
|
7840
|
-
this.warn("Could not find copy target");
|
7841
|
-
return false;
|
7842
|
-
}
|
7843
|
-
const content = (0, $fb8f79f7dd40b68f$export$6cb344a21ca18aec)(targetEl.innerHTML.trim());
|
7844
|
-
await window.navigator.clipboard.writeText(content);
|
7845
|
-
this.copied = true;
|
7846
|
-
if (copyTimeout) clearTimeout(copyTimeout);
|
7847
|
-
copyTimeout = setTimeout(()=>{
|
7848
|
-
this.copied = false;
|
7849
|
-
this.onCopyComplete();
|
7850
|
-
}, 1000);
|
7851
|
-
return content;
|
7852
|
-
},
|
7853
|
-
onCopyComplete () {}
|
7854
|
-
});
|
7855
|
-
}
|
7856
|
-
function $4e31c85e11272811$export$2e2bcd8739ae039() {
|
7857
|
-
return $4e31c85e11272811$export$c6684e6159b21de3({});
|
7858
|
-
}
|
7859
|
-
|
7860
|
-
|
7818
|
+
var $ab87c8cc04ee4bcd$exports = {};
|
7861
7819
|
var $cbd28b10fa9798c7$exports = {};
|
7862
7820
|
|
7863
7821
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -11388,6 +11346,49 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11388
11346
|
}
|
11389
11347
|
|
11390
11348
|
|
11349
|
+
var $47a1c62621be0c54$exports = {};
|
11350
|
+
|
11351
|
+
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
11352
|
+
|
11353
|
+
$parcel$export($47a1c62621be0c54$exports, "default", () => $47a1c62621be0c54$export$2e2bcd8739ae039);
|
11354
|
+
var $4e31c85e11272811$exports = {};
|
11355
|
+
|
11356
|
+
$parcel$defineInteropFlag($4e31c85e11272811$exports);
|
11357
|
+
|
11358
|
+
$parcel$export($4e31c85e11272811$exports, "initClipboard", () => $4e31c85e11272811$export$c6684e6159b21de3);
|
11359
|
+
$parcel$export($4e31c85e11272811$exports, "default", () => $4e31c85e11272811$export$2e2bcd8739ae039);
|
11360
|
+
|
11361
|
+
function $4e31c85e11272811$export$c6684e6159b21de3(context = {}) {
|
11362
|
+
let copyTimeout = null;
|
11363
|
+
return Object.assign(context, {
|
11364
|
+
copied: false,
|
11365
|
+
async copyToClipboard (target = null) {
|
11366
|
+
let targetEl;
|
11367
|
+
if (this.$refs.copyTarget) targetEl = this.$refs.copyTarget;
|
11368
|
+
else if (typeof target === "string") targetEl = document.querySelector(target);
|
11369
|
+
if (!targetEl) {
|
11370
|
+
this.warn("Could not find copy target");
|
11371
|
+
return false;
|
11372
|
+
}
|
11373
|
+
const content = (0, $fb8f79f7dd40b68f$export$6cb344a21ca18aec)(targetEl.innerHTML.trim());
|
11374
|
+
await window.navigator.clipboard.writeText(content);
|
11375
|
+
this.copied = true;
|
11376
|
+
if (copyTimeout) clearTimeout(copyTimeout);
|
11377
|
+
copyTimeout = setTimeout(()=>{
|
11378
|
+
this.copied = false;
|
11379
|
+
this.onCopyComplete();
|
11380
|
+
}, 1000);
|
11381
|
+
return content;
|
11382
|
+
},
|
11383
|
+
onCopyComplete () {}
|
11384
|
+
});
|
11385
|
+
}
|
11386
|
+
function $4e31c85e11272811$export$2e2bcd8739ae039() {
|
11387
|
+
return $4e31c85e11272811$export$c6684e6159b21de3({});
|
11388
|
+
}
|
11389
|
+
|
11390
|
+
|
11391
|
+
|
11391
11392
|
function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
11392
11393
|
const button = (0, $cbd28b10fa9798c7$export$2e2bcd8739ae039)();
|
11393
11394
|
return {
|
@@ -11401,17 +11402,6 @@ function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
|
11401
11402
|
}
|
11402
11403
|
|
11403
11404
|
|
11404
|
-
|
11405
|
-
var $99486586f6691564$exports = {};
|
11406
|
-
|
11407
|
-
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11408
|
-
|
11409
|
-
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11410
|
-
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11411
|
-
return {};
|
11412
|
-
}
|
11413
|
-
|
11414
|
-
|
11415
11405
|
var $e398acaded942bbe$exports = {};
|
11416
11406
|
|
11417
11407
|
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
@@ -11445,6 +11435,16 @@ function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
|
11445
11435
|
}
|
11446
11436
|
|
11447
11437
|
|
11438
|
+
var $99486586f6691564$exports = {};
|
11439
|
+
|
11440
|
+
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11441
|
+
|
11442
|
+
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11443
|
+
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11444
|
+
return {};
|
11445
|
+
}
|
11446
|
+
|
11447
|
+
|
11448
11448
|
var $216ef7001f59f21d$exports = {};
|
11449
11449
|
|
11450
11450
|
$parcel$defineInteropFlag($216ef7001f59f21d$exports);
|
@@ -12089,33 +12089,6 @@ function $506dabb2bf255b38$var$sizeSplits(sizes) {
|
|
12089
12089
|
}
|
12090
12090
|
|
12091
12091
|
|
12092
|
-
var $a87dacf5139b5e2f$exports = {};
|
12093
|
-
|
12094
|
-
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12095
|
-
|
12096
|
-
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12097
|
-
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12098
|
-
return {
|
12099
|
-
get store () {
|
12100
|
-
return store || this;
|
12101
|
-
},
|
12102
|
-
get id () {
|
12103
|
-
return this.$root.id;
|
12104
|
-
},
|
12105
|
-
get panels () {
|
12106
|
-
return Array.from(this.$refs.panels.children);
|
12107
|
-
},
|
12108
|
-
isActive (el) {
|
12109
|
-
return this.store.activeTab === this._getRef(el);
|
12110
|
-
},
|
12111
|
-
// protected
|
12112
|
-
_getRef (el) {
|
12113
|
-
return el.getAttribute("x-ref");
|
12114
|
-
}
|
12115
|
-
};
|
12116
|
-
}
|
12117
|
-
|
12118
|
-
|
12119
12092
|
var $0db07828cadc68e0$exports = {};
|
12120
12093
|
|
12121
12094
|
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
|
@@ -12209,6 +12182,33 @@ function $0db07828cadc68e0$export$2e2bcd8739ae039(store) {
|
|
12209
12182
|
}
|
12210
12183
|
|
12211
12184
|
|
12185
|
+
var $a87dacf5139b5e2f$exports = {};
|
12186
|
+
|
12187
|
+
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12188
|
+
|
12189
|
+
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12190
|
+
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12191
|
+
return {
|
12192
|
+
get store () {
|
12193
|
+
return store || this;
|
12194
|
+
},
|
12195
|
+
get id () {
|
12196
|
+
return this.$root.id;
|
12197
|
+
},
|
12198
|
+
get panels () {
|
12199
|
+
return Array.from(this.$refs.panels.children);
|
12200
|
+
},
|
12201
|
+
isActive (el) {
|
12202
|
+
return this.store.activeTab === this._getRef(el);
|
12203
|
+
},
|
12204
|
+
// protected
|
12205
|
+
_getRef (el) {
|
12206
|
+
return el.getAttribute("x-ref");
|
12207
|
+
}
|
12208
|
+
};
|
12209
|
+
}
|
12210
|
+
|
12211
|
+
|
12212
12212
|
var $6d64716f0b34fdf4$exports = {};
|
12213
12213
|
|
12214
12214
|
$parcel$defineInteropFlag($6d64716f0b34fdf4$exports);
|
@@ -12336,22 +12336,22 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
12336
12336
|
}
|
12337
12337
|
|
12338
12338
|
|
12339
|
-
$
|
12340
|
-
"copy_button": $47a1c62621be0c54$exports,
|
12339
|
+
$ab87c8cc04ee4bcd$exports = {
|
12341
12340
|
"button": $cbd28b10fa9798c7$exports,
|
12342
|
-
"
|
12341
|
+
"copy_button": $47a1c62621be0c54$exports,
|
12343
12342
|
"dimensions_display": $e398acaded942bbe$exports,
|
12343
|
+
"code": $99486586f6691564$exports,
|
12344
12344
|
"embed_code_dropdown": $216ef7001f59f21d$exports,
|
12345
12345
|
"filter": $e9904a14dabf652d$exports,
|
12346
12346
|
"nav": $d92d9d5253f84566$exports,
|
12347
12347
|
"split_layout": $506dabb2bf255b38$exports,
|
12348
|
-
"tab_panels": $a87dacf5139b5e2f$exports,
|
12349
12348
|
"tabs": $0db07828cadc68e0$exports,
|
12349
|
+
"tab_panels": $a87dacf5139b5e2f$exports,
|
12350
12350
|
"viewport": $6d64716f0b34fdf4$exports
|
12351
12351
|
};
|
12352
12352
|
|
12353
12353
|
|
12354
|
-
var $
|
12354
|
+
var $f3e1e32f4a1bd6da$exports = {};
|
12355
12355
|
var $6a9b69d9cc7f810f$exports = {};
|
12356
12356
|
|
12357
12357
|
$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
|
@@ -12379,12 +12379,12 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12379
12379
|
}
|
12380
12380
|
};
|
12381
12381
|
/* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
|
12382
|
-
function set(
|
12382
|
+
function set(name, value, attributes) {
|
12383
12383
|
if (typeof document === "undefined") return;
|
12384
12384
|
attributes = assign({}, defaultAttributes, attributes);
|
12385
12385
|
if (typeof attributes.expires === "number") attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
12386
12386
|
if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
|
12387
|
-
|
12387
|
+
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
12388
12388
|
var stringifiedAttributes = "";
|
12389
12389
|
for(var attributeName in attributes){
|
12390
12390
|
if (!attributes[attributeName]) continue;
|
@@ -12399,10 +12399,10 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12399
12399
|
// ...
|
12400
12400
|
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
|
12401
12401
|
}
|
12402
|
-
return document.cookie =
|
12402
|
+
return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
|
12403
12403
|
}
|
12404
|
-
function get(
|
12405
|
-
if (typeof document === "undefined" || arguments.length && !
|
12404
|
+
function get(name) {
|
12405
|
+
if (typeof document === "undefined" || arguments.length && !name) return;
|
12406
12406
|
// To prevent the for loop in the first place assign an empty array
|
12407
12407
|
// in case there are no cookies at all.
|
12408
12408
|
var cookies = document.cookie ? document.cookie.split("; ") : [];
|
@@ -12411,18 +12411,18 @@ var $cdfeaa1e0e8d642c$exports = {};
|
|
12411
12411
|
var parts = cookies[i].split("=");
|
12412
12412
|
var value = parts.slice(1).join("=");
|
12413
12413
|
try {
|
12414
|
-
var
|
12415
|
-
jar[
|
12416
|
-
if (
|
12414
|
+
var found = decodeURIComponent(parts[0]);
|
12415
|
+
jar[found] = converter.read(value, found);
|
12416
|
+
if (name === found) break;
|
12417
12417
|
} catch (e) {}
|
12418
12418
|
}
|
12419
|
-
return
|
12419
|
+
return name ? jar[name] : jar;
|
12420
12420
|
}
|
12421
12421
|
return Object.create({
|
12422
12422
|
set: set,
|
12423
12423
|
get: get,
|
12424
|
-
remove: function(
|
12425
|
-
set(
|
12424
|
+
remove: function(name, attributes) {
|
12425
|
+
set(name, "", assign({}, attributes, {
|
12426
12426
|
expires: -1
|
12427
12427
|
}));
|
12428
12428
|
},
|
@@ -13409,20 +13409,6 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id , matchers: matchers
|
|
13409
13409
|
}
|
13410
13410
|
|
13411
13411
|
|
13412
|
-
var $e773f8ef556b41ff$exports = {};
|
13413
|
-
|
13414
|
-
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13415
|
-
|
13416
|
-
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13417
|
-
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13418
|
-
return {
|
13419
|
-
get isNarrowLayout () {
|
13420
|
-
return this.narrow || false;
|
13421
|
-
}
|
13422
|
-
};
|
13423
|
-
}
|
13424
|
-
|
13425
|
-
|
13426
13412
|
var $1a7a7298eec5b755$exports = {};
|
13427
13413
|
|
13428
13414
|
$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
|
@@ -13441,7 +13427,21 @@ function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
|
|
13441
13427
|
}
|
13442
13428
|
|
13443
13429
|
|
13444
|
-
$
|
13430
|
+
var $e773f8ef556b41ff$exports = {};
|
13431
|
+
|
13432
|
+
$parcel$defineInteropFlag($e773f8ef556b41ff$exports);
|
13433
|
+
|
13434
|
+
$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
|
13435
|
+
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
|
13436
|
+
return {
|
13437
|
+
get isNarrowLayout () {
|
13438
|
+
return this.narrow || false;
|
13439
|
+
}
|
13440
|
+
};
|
13441
|
+
}
|
13442
|
+
|
13443
|
+
|
13444
|
+
$f3e1e32f4a1bd6da$exports = {
|
13445
13445
|
"display_options": {
|
13446
13446
|
"field": $6a9b69d9cc7f810f$exports
|
13447
13447
|
},
|
@@ -13452,8 +13452,8 @@ $3b154185c6273749$exports = {
|
|
13452
13452
|
"item": $9b24cbeb3a465447$exports
|
13453
13453
|
},
|
13454
13454
|
"params": {
|
13455
|
-
"
|
13456
|
-
"
|
13455
|
+
"editor": $1a7a7298eec5b755$exports,
|
13456
|
+
"field": $e773f8ef556b41ff$exports
|
13457
13457
|
}
|
13458
13458
|
};
|
13459
13459
|
|
@@ -13521,8 +13521,8 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
|
|
13521
13521
|
// Components
|
13522
13522
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
|
13523
13523
|
[
|
13524
|
-
$
|
13525
|
-
$
|
13524
|
+
$ab87c8cc04ee4bcd$exports,
|
13525
|
+
$f3e1e32f4a1bd6da$exports,
|
13526
13526
|
$338da9a25bc5c332$exports
|
13527
13527
|
].forEach((scripts)=>{
|
13528
13528
|
const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
|