Skip to content

Commit

Permalink
chore(main) release 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
allmarkedup committed Apr 20, 2024
1 parent 4df3000 commit 36af929
Show file tree
Hide file tree
Showing 7 changed files with 147 additions and 147 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
lookbook (2.2.2)
lookbook (2.3.0)
activemodel
css_parser
htmlbeautifier (~> 1.3)
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lookbook-docs",
"version": "2.2.2",
"version": "2.3.0",
"private": true,
"scripts": {
"esbuild": "node esbuild.config.js --minify",
Expand Down
2 changes: 1 addition & 1 deletion lib/lookbook/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Lookbook
VERSION = "2.2.2"
VERSION = "2.3.0"
end
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lookbook",
"version": "2.2.2",
"version": "2.3.0",
"description": "A native development UI for ViewComponent",
"targets": {
"app": {
Expand Down
280 changes: 140 additions & 140 deletions public/lookbook-assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12531,125 +12531,7 @@ $c9dfaeb25bf110ce$exports = {
};


var $3821a3a183a9a321$exports = {};
var $6a9b69d9cc7f810f$exports = {};

$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);

$parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
var $cdfeaa1e0e8d642c$exports = {};
(function(global, factory) {
$cdfeaa1e0e8d642c$exports = factory();
})($cdfeaa1e0e8d642c$exports, function() {
"use strict";
/* eslint-disable no-var */ function assign(target) {
for(var i = 1; i < arguments.length; i++){
var source = arguments[i];
for(var key in source)target[key] = source[key];
}
return target;
}
/* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
read: function(value) {
if (value[0] === '"') value = value.slice(1, -1);
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
},
write: function(value) {
return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
}
};
/* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
function set(name, value, attributes) {
if (typeof document === "undefined") return;
attributes = assign({}, defaultAttributes, attributes);
if (typeof attributes.expires === "number") attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
var stringifiedAttributes = "";
for(var attributeName in attributes){
if (!attributes[attributeName]) continue;
stringifiedAttributes += "; " + attributeName;
if (attributes[attributeName] === true) continue;
// Considers RFC 6265 section 5.2:
// ...
// 3. If the remaining unparsed-attributes contains a %x3B (";")
// character:
// Consume the characters of the unparsed-attributes up to,
// not including, the first %x3B (";") character.
// ...
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
}
return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
}
function get(name) {
if (typeof document === "undefined" || arguments.length && !name) return;
// To prevent the for loop in the first place assign an empty array
// in case there are no cookies at all.
var cookies = document.cookie ? document.cookie.split("; ") : [];
var jar = {};
for(var i = 0; i < cookies.length; i++){
var parts = cookies[i].split("=");
var value = parts.slice(1).join("=");
try {
var found = decodeURIComponent(parts[0]);
jar[found] = converter.read(value, found);
if (name === found) break;
} catch (e) {}
}
return name ? jar[name] : jar;
}
return Object.create({
set: set,
get: get,
remove: function(name, attributes) {
set(name, "", assign({}, attributes, {
expires: -1
}));
},
withAttributes: function(attributes) {
return init(this.converter, assign({}, this.attributes, attributes));
},
withConverter: function(converter) {
return init(assign({}, this.converter, converter), this.attributes);
}
}, {
attributes: {
value: Object.freeze(defaultAttributes)
},
converter: {
value: Object.freeze(converter)
}
});
}
var api = init(defaultConverter, {
path: "/"
});
/* eslint-enable no-var */ return api;
});



function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value }) {
return {
name: name,
value: value,
init () {
this.$watch("value", ()=>this.update());
},
update () {
(0, (/*@__PURE__*/$parcel$interopDefault($cdfeaa1e0e8d642c$exports))).set(`lookbook-display-${name}`, this.value);
const searchParams = new URLSearchParams(window.location.search);
const display = searchParams.get("_display");
const displayParams = display ? (0, $fb8f79f7dd40b68f$export$f720fd0ddbeb53d9)(display) : {};
displayParams[this.name] = this.value;
searchParams.set("_display", (0, $fb8f79f7dd40b68f$export$c788aab010beeaec)(displayParams));
const path = location.href.replace(location.search, "");
this.navigateTo(`${path}?${searchParams.toString()}`);
}
};
}


var $9a68326211e66205$exports = {};
var $c299e36fa9e271bc$exports = {};

$parcel$defineInteropFlag($c299e36fa9e271bc$exports);
Expand Down Expand Up @@ -13542,6 +13424,124 @@ function $c299e36fa9e271bc$export$2e2bcd8739ae039(id, embedStore) {
}


var $6a9b69d9cc7f810f$exports = {};

$parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);

$parcel$export($6a9b69d9cc7f810f$exports, "default", () => $6a9b69d9cc7f810f$export$2e2bcd8739ae039);
var $cdfeaa1e0e8d642c$exports = {};
(function(global, factory) {
$cdfeaa1e0e8d642c$exports = factory();
})($cdfeaa1e0e8d642c$exports, function() {
"use strict";
/* eslint-disable no-var */ function assign(target) {
for(var i = 1; i < arguments.length; i++){
var source = arguments[i];
for(var key in source)target[key] = source[key];
}
return target;
}
/* eslint-enable no-var */ /* eslint-disable no-var */ var defaultConverter = {
read: function(value) {
if (value[0] === '"') value = value.slice(1, -1);
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
},
write: function(value) {
return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
}
};
/* eslint-enable no-var */ /* eslint-disable no-var */ function init(converter, defaultAttributes) {
function set(name, value, attributes) {
if (typeof document === "undefined") return;
attributes = assign({}, defaultAttributes, attributes);
if (typeof attributes.expires === "number") attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
if (attributes.expires) attributes.expires = attributes.expires.toUTCString();
name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
var stringifiedAttributes = "";
for(var attributeName in attributes){
if (!attributes[attributeName]) continue;
stringifiedAttributes += "; " + attributeName;
if (attributes[attributeName] === true) continue;
// Considers RFC 6265 section 5.2:
// ...
// 3. If the remaining unparsed-attributes contains a %x3B (";")
// character:
// Consume the characters of the unparsed-attributes up to,
// not including, the first %x3B (";") character.
// ...
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
}
return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
}
function get(name) {
if (typeof document === "undefined" || arguments.length && !name) return;
// To prevent the for loop in the first place assign an empty array
// in case there are no cookies at all.
var cookies = document.cookie ? document.cookie.split("; ") : [];
var jar = {};
for(var i = 0; i < cookies.length; i++){
var parts = cookies[i].split("=");
var value = parts.slice(1).join("=");
try {
var found = decodeURIComponent(parts[0]);
jar[found] = converter.read(value, found);
if (name === found) break;
} catch (e) {}
}
return name ? jar[name] : jar;
}
return Object.create({
set: set,
get: get,
remove: function(name, attributes) {
set(name, "", assign({}, attributes, {
expires: -1
}));
},
withAttributes: function(attributes) {
return init(this.converter, assign({}, this.attributes, attributes));
},
withConverter: function(converter) {
return init(assign({}, this.converter, converter), this.attributes);
}
}, {
attributes: {
value: Object.freeze(defaultAttributes)
},
converter: {
value: Object.freeze(converter)
}
});
}
var api = init(defaultConverter, {
path: "/"
});
/* eslint-enable no-var */ return api;
});



function $6a9b69d9cc7f810f$export$2e2bcd8739ae039({ name: name, value: value }) {
return {
name: name,
value: value,
init () {
this.$watch("value", ()=>this.update());
},
update () {
(0, (/*@__PURE__*/$parcel$interopDefault($cdfeaa1e0e8d642c$exports))).set(`lookbook-display-${name}`, this.value);
const searchParams = new URLSearchParams(window.location.search);
const display = searchParams.get("_display");
const displayParams = display ? (0, $fb8f79f7dd40b68f$export$f720fd0ddbeb53d9)(display) : {};
displayParams[this.name] = this.value;
searchParams.set("_display", (0, $fb8f79f7dd40b68f$export$c788aab010beeaec)(displayParams));
const path = location.href.replace(location.search, "");
this.navigateTo(`${path}?${searchParams.toString()}`);
}
};
}


var $9b24cbeb3a465447$exports = {};

$parcel$defineInteropFlag($9b24cbeb3a465447$exports);
Expand Down Expand Up @@ -13599,20 +13599,6 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id, matchers: matchers }
}


var $e773f8ef556b41ff$exports = {};

$parcel$defineInteropFlag($e773f8ef556b41ff$exports);

$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
return {
get isNarrowLayout () {
return this.narrow || false;
}
};
}


var $1a7a7298eec5b755$exports = {};

$parcel$defineInteropFlag($1a7a7298eec5b755$exports);
Expand All @@ -13631,19 +13617,33 @@ function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
}


$3821a3a183a9a321$exports = {
"display_options": {
"field": $6a9b69d9cc7f810f$exports
},
var $e773f8ef556b41ff$exports = {};

$parcel$defineInteropFlag($e773f8ef556b41ff$exports);

$parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
return {
get isNarrowLayout () {
return this.narrow || false;
}
};
}


$9a68326211e66205$exports = {
"embed": {
"inspector": $c299e36fa9e271bc$exports
},
"display_options": {
"field": $6a9b69d9cc7f810f$exports
},
"nav": {
"item": $9b24cbeb3a465447$exports
},
"params": {
"field": $e773f8ef556b41ff$exports,
"editor": $1a7a7298eec5b755$exports
"editor": $1a7a7298eec5b755$exports,
"field": $e773f8ef556b41ff$exports
}
};

Expand Down Expand Up @@ -13712,7 +13712,7 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
[
$c9dfaeb25bf110ce$exports,
$3821a3a183a9a321$exports,
$9a68326211e66205$exports,
$d56e5cced44001d2$exports
].forEach((scripts)=>{
const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
Expand Down
2 changes: 1 addition & 1 deletion public/lookbook-assets/js/index.js.map

Large diffs are not rendered by default.

0 comments on commit 36af929

Please sign in to comment.