app/assets/build/coco/app.js in coveragebook_components-0.11.0 vs app/assets/build/coco/app.js in coveragebook_components-0.12.0
- old
+ new
@@ -790,11 +790,11 @@
return wrapperClone(value);
}
}
return new LodashWrapper(value);
}
- var baseCreate = function() {
+ var baseCreate = /* @__PURE__ */ function() {
function object() {
}
return function(proto) {
if (!isObject3(proto)) {
return {};
@@ -4097,11 +4097,11 @@
}
var gt = createRelationalOperation(baseGt);
var gte = createRelationalOperation(function(value, other) {
return value >= other;
});
- var isArguments = baseIsArguments(function() {
+ var isArguments = baseIsArguments(/* @__PURE__ */ function() {
return arguments;
}()) ? baseIsArguments : function(value) {
return isObjectLike(value) && hasOwnProperty3.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
};
var isArray2 = Array2.isArray;
@@ -9896,21 +9896,21 @@
return CSSParsedDeclaration2;
}()
);
var CSSParsedPseudoDeclaration = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function CSSParsedPseudoDeclaration2(context, declaration) {
this.content = parse(context, content2, declaration.content);
this.quotes = parse(context, quotes, declaration.quotes);
}
return CSSParsedPseudoDeclaration2;
}()
);
var CSSParsedCounterDeclaration = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function CSSParsedCounterDeclaration2(context, declaration) {
this.counterIncrement = parse(context, counterIncrement, declaration.counterIncrement);
this.counterReset = parse(context, counterReset, declaration.counterReset);
}
return CSSParsedCounterDeclaration2;
@@ -9971,11 +9971,11 @@
var elementType = getElementDebugType(element);
return elementType === 1 || type === elementType;
};
var ElementContainer = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function ElementContainer2(context, element) {
this.context = context;
this.textNodes = [];
this.elements = [];
this.flags = 0;
@@ -10466,11 +10466,11 @@
return value;
}
};
var TextBounds = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function TextBounds2(text, bounds) {
this.text = text;
this.bounds = bounds;
}
return TextBounds2;
@@ -10590,11 +10590,11 @@
}
return words;
};
var TextContainer = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function TextContainer2(context, node, styles) {
this.text = transform(node.data, styles.textTransform);
this.textBounds = parseTextBounds(context, this.text, styles, node);
}
return TextContainer2;
@@ -12097,11 +12097,11 @@
var isBezierCurve = function(path) {
return path.type === 1;
};
var BoundCurves = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function BoundCurves2(element) {
var styles = element.styles;
var bounds = element.bounds;
var _a = getAbsoluteValueForTuple(styles.borderTopLeftRadius, bounds.width, bounds.height), tlh = _a[0], tlv = _a[1];
var _b = getAbsoluteValueForTuple(styles.borderTopRightRadius, bounds.width, bounds.height), trh = _b[0], trv = _b[1];
@@ -12207,11 +12207,11 @@
curves.bottomLeftPaddingBox
];
};
var TransformEffect = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function TransformEffect2(offsetX, offsetY, matrix2) {
this.offsetX = offsetX;
this.offsetY = offsetY;
this.matrix = matrix2;
this.type = 0;
@@ -12220,22 +12220,22 @@
return TransformEffect2;
}()
);
var ClipEffect = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function ClipEffect2(path, target) {
this.path = path;
this.target = target;
this.type = 1;
}
return ClipEffect2;
}()
);
var OpacityEffect = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function OpacityEffect2(opacity2) {
this.opacity = opacity2;
this.type = 2;
this.target = 2 | 4;
}
@@ -12274,11 +12274,11 @@
return point;
});
};
var StackingContext = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function StackingContext2(container) {
this.element = container;
this.inlineLevel = [];
this.nonInlineLevel = [];
this.negativeZIndex = [];
@@ -12776,11 +12776,11 @@
return FontMetrics2;
}()
);
var Renderer = (
/** @class */
- function() {
+ /* @__PURE__ */ function() {
function Renderer2(context, options) {
this.context = context;
this.options = options;
}
return Renderer2;
@@ -14046,82 +14046,80 @@
});
// ../../../package.json
var package_default = {
name: "coveragebook-components",
- type: "module",
- version: "0.11.0",
- main: "index.js",
+ version: "0.12.0",
repository: "git@github.com:coveragebook/coco.git",
- author: "Mark Perkins <mark@coveragebook.com>",
license: "NO LICENSE",
+ author: "Mark Perkins <mark@coveragebook.com>",
+ type: "module",
+ main: "index.js",
+ scripts: {
+ build: "npm run js:build && npm run css:build",
+ "build:dev": "npm run js:dev && npm run css:dev",
+ "css:build": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco",
+ "css:dev": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco --ext .dev.css",
+ "css:watch": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco --watch --ext .dev.css",
+ "js:build": "node esbuild.config.js",
+ "js:dev": "node esbuild.config.js --dev",
+ "js:watch": "node esbuild.config.js --watch",
+ "lint:fix": "bundle exec standardrb --fix && prettier --write .",
+ prepare: "husky install",
+ release: "release-it"
+ },
+ "lint-staged": {
+ "**/*": [
+ "prettier --write --ignore-unknown"
+ ],
+ "(**/*.(rb|rake))|Gemfile|Rakefile": [
+ "standardrb --fix"
+ ]
+ },
browserslist: [
"defaults"
],
+ prettier: {
+ semi: true,
+ singleQuote: false,
+ tabWidth: 2,
+ trailingComma: "es5"
+ },
dependencies: {
- "@alpinejs/collapse": "^3.13.2",
+ "@alpinejs/collapse": "^3.13.3",
"@alpinejs/focus": "^3.13.2",
"@alpinejs/intersect": "^3.13.2",
- "@alpinejs/mask": "^3.13.2",
+ "@alpinejs/mask": "^3.13.3",
"@alpinejs/morph": "^3.13.2",
"@jaames/iro": "^5.5.2",
+ "@percy/cli": "^1.27.3",
"@tailwindcss/container-queries": "^0.1.0",
"@tailwindcss/forms": "^0.5.6",
+ "alias-hq": "^6.2.2",
alpinejs: "^3.13.2",
+ autoprefixer: "^10.4.16",
"container-query-polyfill": "^1.0.2",
del: "^7.1.0",
- html2canvas: "^1.4.1",
- "js-cookie": "^3.0.5",
- lodash: "^4.17.21",
- "lucide-static": "^0.292.0",
- tailwindcss: "^3.3.5",
- "tippy.js": "^6.3.7"
- },
- devDependencies: {
- "@percy/cli": "^1.27.3",
- "alias-hq": "^6.2.2",
- autoprefixer: "^10.4.16",
- esbuild: "^0.17.10",
+ esbuild: "^0.19.9",
"esbuild-plugin-copy": "^2.0.2",
"fast-glob": "^3.3.1",
"fast-sort": "^3.2.1",
+ html2canvas: "^1.4.1",
husky: "^8.0.3",
- "lint-staged": "^15.0.2",
+ "js-cookie": "^3.0.5",
+ "lint-staged": "^15.1.0",
+ lodash: "^4.17.21",
+ "lucide-static": "^0.294.0",
postcss: "^8.4.31",
"postcss-cli": "^10.1.0",
"postcss-value-parser": "^4.2.0",
prettier: "^3.1.0",
"release-it": "^15.10.3",
- svgo: "^3.0.2"
+ svgo: "^3.0.2",
+ tailwindcss: "^3.3.5",
+ "tippy.js": "^6.3.7"
},
- scripts: {
- "js:build": "node esbuild.config.js",
- "js:dev": "node esbuild.config.js --dev",
- "js:watch": "node esbuild.config.js --watch",
- "css:build": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco",
- "css:dev": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco --ext .dev.css",
- "css:watch": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco --watch --ext .dev.css",
- build: "npm run js:build && npm run css:build",
- "build:dev": "npm run js:dev && npm run css:dev",
- "lint:fix": "bundle exec standardrb --fix && prettier --write .",
- prepare: "husky install",
- release: "release-it"
- },
- "lint-staged": {
- "**/*": [
- "prettier --write --ignore-unknown"
- ],
- "(**/*.(rb|rake))|Gemfile|Rakefile": [
- "standardrb --fix"
- ]
- },
- prettier: {
- tabWidth: 2,
- semi: true,
- singleQuote: false,
- trailingComma: "es5"
- },
"release-it": {
github: {
release: true
},
npm: {
@@ -15534,11 +15532,11 @@
n4 === u3 ? (p3 = c3, S3 = k3) : n4 === o3 ? (x4 = true, p3 = new nt(o3, { viewportChanged: y3 })) : p3 = n4 === s3 ? new tt(s3) : n4 instanceof HTMLLinkElement ? new Ze(n4, { registerStyleSheet: (t3) => a3(n4, e({}, t3)) }) : n4 instanceof HTMLStyleElement ? new et(n4, { registerStyleSheet: (t3) => a3(n4, e({}, t3)) }) : new Xe(n4);
let q3 = Symbol();
if (null == S3 && n4 instanceof Element) {
const r4 = function(n5) {
const r5 = window.getComputedStyle(n5);
- return function(n6) {
+ return /* @__PURE__ */ function(n6) {
let u4 = null;
return (...n7) => {
if (null == u4 || !De(u4[0], n7)) {
const o4 = ((n8, u5) => {
const { context: o5, conditions: s4 } = n8, l3 = (e3) => r5.getPropertyValue(e3), c4 = it(l3), a4 = e({}, o5, { writingAxis: c4.writingAxis });
@@ -19717,11 +19715,11 @@
} else {
obj[key] = value;
}
return obj;
}
- var activeFocusTraps = function() {
+ var activeFocusTraps = /* @__PURE__ */ function() {
var trapQueue = [];
return {
activateTrap: function activateTrap(trap) {
if (trapQueue.length > 0) {
var activeTrap = trapQueue[trapQueue.length - 1];
@@ -24716,10 +24714,59 @@
this.drawerOpen = false;
}
};
});
+ // ../../components/coco/app/blocks/plan_picker/plan_picker.js
+ var plan_picker_exports = {};
+ __export(plan_picker_exports, {
+ default: () => plan_picker_default
+ });
+ var plan_picker_default = CocoComponent("appPlanPicker", () => {
+ return {
+ slider: {
+ active: true,
+ position: 0,
+ items: [],
+ itemsPerPage: 4
+ },
+ options: ["slider"],
+ init() {
+ this.slider.items = this.$refs.sliderItems.children;
+ this.$watch("slider.position", (position) => this.calculateOffset());
+ this.$watch("slider.active", (active) => {
+ if (!active)
+ this.slider.position = 0;
+ });
+ },
+ previous() {
+ if (!this.isFirst)
+ this.slider.position--;
+ },
+ next() {
+ if (!this.isLast)
+ this.slider.position++;
+ },
+ get shouldPaginate() {
+ return this.sliderActive && this.slider.items.length > this.slider.itemsPerPage;
+ },
+ calculateOffset() {
+ const offset2 = this.slider.items[this.slider.position].offsetLeft;
+ this.$refs.sliderItems.style.transform = `translateX(-${offset2}px)`;
+ },
+ get sliderActive() {
+ return this.$options.slider && this.slider.active;
+ },
+ get isFirst() {
+ return this.slider.position == 0;
+ },
+ get isLast() {
+ return this.slider.position >= this.slider.items.length - this.slider.itemsPerPage;
+ }
+ };
+ });
+
// ../../components/coco/app/blocks/sidebar_nav/item/item.js
var item_exports = {};
__export(item_exports, {
default: () => item_default
});
@@ -27448,10 +27495,10 @@
var page_default = CocoComponent("pageLayout", () => {
return {};
});
// import-glob:/Users/mark/Code/coveragebook/coco/app/assets/js/app|@appComponents/**/*.js
- var modules3 = [header_exports, nav_drawer_exports, item_exports, menu_exports, navbar_exports, slide_editor_exports, alert_exports, color_picker_exports, color_picker_button_exports, confirm_panel_exports, image_picker_exports, image_picker_button_exports, layout_picker_button_exports, menu_button_exports, notice_exports, seamless_textarea_exports, snackbar_exports, system_banner_exports, toast_exports, toolbar_exports, application_exports, page_exports];
+ var modules3 = [header_exports, nav_drawer_exports, plan_picker_exports, item_exports, menu_exports, navbar_exports, slide_editor_exports, alert_exports, color_picker_exports, color_picker_button_exports, confirm_panel_exports, image_picker_exports, image_picker_button_exports, layout_picker_button_exports, menu_button_exports, notice_exports, seamless_textarea_exports, snackbar_exports, system_banner_exports, toast_exports, toolbar_exports, application_exports, page_exports];
var __default3 = modules3;
// app/components.js
var components_default3 = registerComponents(__default3);