coveragebook_components 0.5.3 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d400d547c9ada052eab26657ba8a9424f9ef0681e229a0e50246bd53a9e8851
4
- data.tar.gz: 6bb749b36cf6483baa2cf0a4ca1a82d533ba51861233a17ee243f5e05096309b
3
+ metadata.gz: 98424c832e1e2c4770de3a458bf8b2fa2321440db76103e7f2895e812ef82385
4
+ data.tar.gz: 102b0d7dc803bb51ddd3ac1b154912327abb9770680664af6889c872457defb8
5
5
  SHA512:
6
- metadata.gz: e73d2f999c2de5c235cf3e66dce23fafd0b43ea93fd68b5b257822ee4e22114a185cd864757ea8699d61c1ae5df8579e8f9a84b7ca15e56e84951bfa764ae438
7
- data.tar.gz: d8fe7d7502259cee101e908199f8b237bb347becbaca963c588bfd856d8d0d9c8ac503dea62bb6acca42f60846bdcd63d3a2729e08fb04b1b5558f87a3b148dc
6
+ metadata.gz: 2d1e4d93512680ad8c334ef9f684cc382bbc869a0901cb8cee6b22196cacafda103d4d2323a5eae980e889b36f871688807d750ccead781399b0491bf829646a
7
+ data.tar.gz: dd7a7a48d456ccfee151dab803c9e504f339b5f1d526bad606639e3ea37944d5ca92b6267064097a48c0868c805e70b3a0e016d416dd250abeb8170f67031cfd
@@ -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.3",
14607
+ version: "0.5.5",
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",
@@ -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;
@@ -171,7 +171,7 @@
171
171
 
172
172
  <% if text_1? %>
173
173
  <% slide.with_text_1 do %>
174
- <span x-text="text1"></span>
174
+ <span x-html="text1.replace(/\n/g, '<br>')"></span>
175
175
  <% end %>
176
176
  <% end %>
177
177
  <% end %>
@@ -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: false,
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
@@ -1,3 +1,3 @@
1
1
  module Coco
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.5"
3
3
  end
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.3
4
+ version: 0.5.5
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-06 00:00:00.000000000 Z
11
+ date: 2023-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails