coveragebook_components 0.5.3 → 0.5.4
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/app/assets/build/coco/app.css +6 -8
- data/app/assets/build/coco/app.js +13 -4
- data/app/assets/build/coco/book.js +2 -2
- data/app/components/coco/app/blocks/slide_editor/slide_editor.js +9 -0
- data/app/components/coco/app/blocks/slide_editor/slide_editor.rb +1 -1
- data/app/components/coco/base/button/button.css +1 -2
- data/lib/coco.rb +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: 3be7315ada24aa11a5416b74d886b9e48f2d18d188887c9d0ecdb965adafb33b
|
|
4
|
+
data.tar.gz: 9bb3ecb2e643a089a445232d2c88a88ccaba5392357257854a9f9c5336adbb14
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4258f7f192d48e17fbadb5239a0da7bdd783adbad7a4e79b255c833a75232b3421249d6f01c956e4d00def4172a2c43eb0492edac2607632d44800dcec6f322
|
|
7
|
+
data.tar.gz: 35b934d9eef27ef5e85e2ccc0192a4e13a766c2f235e87d91f23f6e61a67b1bab9c531e915d5b369b30f22a4e278f5f56ffb01f1dac07cc3de980348ee45e395
|
|
@@ -726,18 +726,16 @@ select{
|
|
|
726
726
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
727
727
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
728
728
|
transition-duration: 150ms;
|
|
729
|
-
outline: 2px solid transparent;
|
|
730
|
-
outline-offset: 2px}
|
|
731
|
-
[data-coco].coco-button:focus-visible{
|
|
732
|
-
outline-width: 0px}
|
|
733
|
-
[data-coco].coco-button {
|
|
734
729
|
width: -moz-min-content;
|
|
735
|
-
width: min-content
|
|
736
|
-
}
|
|
730
|
+
width: min-content}
|
|
737
731
|
[data-coco].coco-button .button-element{
|
|
738
732
|
display: inline-flex;
|
|
739
733
|
width: 100%;
|
|
740
|
-
text-decoration-line: none
|
|
734
|
+
text-decoration-line: none;
|
|
735
|
+
outline: 2px solid transparent;
|
|
736
|
+
outline-offset: 2px}
|
|
737
|
+
[data-coco].coco-button .button-element:focus-visible{
|
|
738
|
+
outline-width: 0px}
|
|
741
739
|
[data-coco].coco-button .button-inner{
|
|
742
740
|
margin-left: auto;
|
|
743
741
|
margin-right: auto;
|
|
@@ -14604,7 +14604,7 @@
|
|
|
14604
14604
|
var package_default = {
|
|
14605
14605
|
name: "coveragebook-components",
|
|
14606
14606
|
type: "module",
|
|
14607
|
-
version: "0.5.
|
|
14607
|
+
version: "0.5.4",
|
|
14608
14608
|
main: "index.js",
|
|
14609
14609
|
repository: "git@github.com:coveragebook/coco.git",
|
|
14610
14610
|
author: "Mark Perkins <mark@coveragebook.com>",
|
|
@@ -14634,6 +14634,7 @@
|
|
|
14634
14634
|
"tippy.js": "^6.3.7"
|
|
14635
14635
|
},
|
|
14636
14636
|
devDependencies: {
|
|
14637
|
+
"@percy/cli": "^1.26.1",
|
|
14637
14638
|
"alias-hq": "^6.1.0",
|
|
14638
14639
|
"alpinejs-tash": "^1.0.9",
|
|
14639
14640
|
autoprefixer: "^10.4.13",
|
|
@@ -29510,14 +29511,14 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
|
29510
29511
|
};
|
|
29511
29512
|
});
|
|
29512
29513
|
|
|
29513
|
-
// import-glob:/
|
|
29514
|
+
// import-glob:/home/runner/work/coco/coco/app/assets/js/base|@baseComponents/**/*.js
|
|
29514
29515
|
var modules = [button_exports, dropdown_exports, icon_exports, image_uploader_exports];
|
|
29515
29516
|
var __default = modules;
|
|
29516
29517
|
|
|
29517
29518
|
// base/components.js
|
|
29518
29519
|
var components_default = registerComponents(__default);
|
|
29519
29520
|
|
|
29520
|
-
// import-glob:/
|
|
29521
|
+
// import-glob:/home/runner/work/coco/coco/app/assets/js/book|@bookComponents/**/*.js
|
|
29521
29522
|
var modules2 = [];
|
|
29522
29523
|
var __default2 = modules2;
|
|
29523
29524
|
|
|
@@ -29698,9 +29699,17 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
|
29698
29699
|
},
|
|
29699
29700
|
undo(name, value) {
|
|
29700
29701
|
this[name] = value;
|
|
29702
|
+
this.$nextTick(() => this.updateTextareaSizes());
|
|
29701
29703
|
},
|
|
29702
29704
|
redo(name, value) {
|
|
29703
29705
|
this[name] = value;
|
|
29706
|
+
this.$nextTick(() => this.updateTextareaSizes());
|
|
29707
|
+
},
|
|
29708
|
+
updateTextareaSizes() {
|
|
29709
|
+
const inputs = this.$root.querySelectorAll(
|
|
29710
|
+
"[data-component='app-seamless-textarea']"
|
|
29711
|
+
);
|
|
29712
|
+
Array.from(inputs).forEach((el) => getData(el).onResize());
|
|
29704
29713
|
},
|
|
29705
29714
|
handleImageDrop(event) {
|
|
29706
29715
|
this.dragging = false;
|
|
@@ -32023,7 +32032,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
|
32023
32032
|
};
|
|
32024
32033
|
});
|
|
32025
32034
|
|
|
32026
|
-
// import-glob:/
|
|
32035
|
+
// import-glob:/home/runner/work/coco/coco/app/assets/js/app|@appComponents/**/*.js
|
|
32027
32036
|
var modules3 = [nav_bar_exports, nav_drawer_exports, slide_editor_exports, alert_exports, button_group_exports, color_picker_exports, color_picker_button_exports, confirm_panel_exports, image_picker_exports, image_picker_button_exports, menu_button_exports, notice_exports, seamless_textarea_exports, snackbar_exports, system_banner_exports, toast_exports, toolbar_exports];
|
|
32028
32037
|
var __default3 = modules3;
|
|
32029
32038
|
|
|
@@ -15197,14 +15197,14 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
|
|
|
15197
15197
|
};
|
|
15198
15198
|
});
|
|
15199
15199
|
|
|
15200
|
-
// import-glob:/
|
|
15200
|
+
// import-glob:/home/runner/work/coco/coco/app/assets/js/base|@baseComponents/**/*.js
|
|
15201
15201
|
var modules = [button_exports, dropdown_exports, icon_exports, image_uploader_exports];
|
|
15202
15202
|
var __default = modules;
|
|
15203
15203
|
|
|
15204
15204
|
// base/components.js
|
|
15205
15205
|
var components_default = registerComponents(__default);
|
|
15206
15206
|
|
|
15207
|
-
// import-glob:/
|
|
15207
|
+
// import-glob:/home/runner/work/coco/coco/app/assets/js/book|@bookComponents/**/*.js
|
|
15208
15208
|
var modules2 = [];
|
|
15209
15209
|
var __default2 = modules2;
|
|
15210
15210
|
|
|
@@ -55,10 +55,19 @@ export default CocoComponent("appSlideEditor", (data) => {
|
|
|
55
55
|
|
|
56
56
|
undo(name, value) {
|
|
57
57
|
this[name] = value;
|
|
58
|
+
this.$nextTick(() => this.updateTextareaSizes());
|
|
58
59
|
},
|
|
59
60
|
|
|
60
61
|
redo(name, value) {
|
|
61
62
|
this[name] = value;
|
|
63
|
+
this.$nextTick(() => this.updateTextareaSizes());
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
updateTextareaSizes() {
|
|
67
|
+
const inputs = this.$root.querySelectorAll(
|
|
68
|
+
"[data-component='app-seamless-textarea']"
|
|
69
|
+
);
|
|
70
|
+
Array.from(inputs).forEach((el) => getData(el).onResize());
|
|
62
71
|
},
|
|
63
72
|
|
|
64
73
|
handleImageDrop(event) {
|
|
@@ -18,7 +18,7 @@ module Coco
|
|
|
18
18
|
renders_one :text_1, ->(value = nil, **textarea_options) do
|
|
19
19
|
Coco::App::Elements::SeamlessTextarea.new(**textarea_options,
|
|
20
20
|
value: value,
|
|
21
|
-
multiline:
|
|
21
|
+
multiline: true,
|
|
22
22
|
data: {role: "text-1-editor"},
|
|
23
23
|
x: {modelable: "value", model: "text1"})
|
|
24
24
|
end
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
[data-coco].coco-button {
|
|
3
3
|
@apply inline-flex transition-colors w-auto bg-transparent text-current border border-transparent select-none flex-none;
|
|
4
|
-
@apply outline-none focus-visible:outline-0;
|
|
5
4
|
width: min-content;
|
|
6
5
|
|
|
7
6
|
.button-element {
|
|
8
|
-
@apply inline-flex w-full no-underline;
|
|
7
|
+
@apply inline-flex w-full no-underline outline-none focus-visible:outline-0;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
.button-inner {
|
data/lib/coco.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coveragebook_components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Perkins
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-07-
|
|
11
|
+
date: 2023-07-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|