coveragebook_components 0.8.4 → 0.8.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: 508a993fb567c529408bb057f16179a9fbf828747ddb6f270446d1d5275334bc
4
- data.tar.gz: c8924774c240bc42987e533d23bf2b9bd6670e80745a60ca9c794437aa964d46
3
+ metadata.gz: aafbeb1f1688632f89c507287fc11591a6b88062ba2881570fd27249b9610e79
4
+ data.tar.gz: 52f5380f901b410120aa416be543f2d301d058184521416b17f4f04537afa1b1
5
5
  SHA512:
6
- metadata.gz: de8a58ef368b4fec0a73a475d6a7f3163679404d4b4ef14eb7ec673c80ce798c2771f9ca24b5386c1168af95893313a8522770f400fb7344e8de272cfffe2649
7
- data.tar.gz: b16acb12b4e6a54ac897fa3ea65fc86adcd5d21208be8e3ec010a2921aa01b07df7c22637a566b411fbc098ecc3b7240555bb814ceb5aad2ce32d7833a0f8474
6
+ metadata.gz: cdc74dffcdb0bf9a3f2b3a749fa382668a4d47afc70edb377dfda7df5374a15586e8781d11f48f433e85ce13a886f072ba81412c4e1129edba01f7d5d9491743
7
+ data.tar.gz: 8fbc21c3159a2b56296ec56c4cce6b4985a68795dde41844f9af9af17434d5d13a80a9504396ddac59e424fa870e91c5e946c1e7b9a0fd0d5e1ac9d8488af8ce
@@ -4176,10 +4176,16 @@ select{
4176
4176
  [data-coco][data-component="app-user-profile"] .user-profile-avatar{
4177
4177
  display: flex;
4178
4178
  align-items: center}
4179
+ [data-coco][data-component="app-user-profile"] .user-profile-details{
4180
+ display: flex;
4181
+ flex-direction: column;
4182
+ justify-content: center}
4179
4183
  [data-coco][data-component="app-user-profile"] .user-profile-details > :not([hidden]) ~ :not([hidden]){
4180
4184
  --tw-space-y-reverse: 0;
4181
4185
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
4182
4186
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse))}
4187
+ [data-coco][data-component="app-user-profile"] .user-profile-details{
4188
+ overflow: hidden}
4183
4189
  [data-coco][data-component="app-user-profile"] .user-profile-name{
4184
4190
  overflow: hidden;
4185
4191
  text-overflow: ellipsis;
@@ -14044,7 +14044,7 @@
14044
14044
  var package_default = {
14045
14045
  name: "coveragebook-components",
14046
14046
  type: "module",
14047
- version: "0.8.4",
14047
+ version: "0.8.5",
14048
14048
  main: "index.js",
14049
14049
  repository: "git@github.com:coveragebook/coco.git",
14050
14050
  author: "Mark Perkins <mark@coveragebook.com>",
@@ -24143,6 +24143,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
24143
24143
  },
24144
24144
  clear() {
24145
24145
  this.file = null;
24146
+ this.input.value = null;
24146
24147
  this.$dispatch("image-uploader:clear");
24147
24148
  },
24148
24149
  handleDrop(event) {
@@ -24637,17 +24638,15 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
24637
24638
  (value, oldValue) => this.history.add(name, value, oldValue)
24638
24639
  );
24639
24640
  });
24641
+ this.$watch("history.undoable", (undoable) => {
24642
+ if (undoable) {
24643
+ window.onbeforeunload = () => true;
24644
+ } else {
24645
+ window.onbeforeunload = null;
24646
+ }
24647
+ });
24640
24648
  this.ready = true;
24641
24649
  });
24642
- this.$watch("history.undoable", (undoable) => {
24643
- if (undoable) {
24644
- window.onbeforeunload = () => {
24645
- return true;
24646
- };
24647
- } else {
24648
- window.onbeforeunload = null;
24649
- }
24650
- });
24651
24650
  },
24652
24651
  undo(name, value) {
24653
24652
  this[name] = value;
@@ -15342,6 +15342,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
15342
15342
  },
15343
15343
  clear() {
15344
15344
  this.file = null;
15345
+ this.input.value = null;
15345
15346
  this.$dispatch("image-uploader:clear");
15346
15347
  },
15347
15348
  handleDrop(event) {
@@ -201,7 +201,7 @@
201
201
  floating: true,
202
202
  class: "editor-image-upload-toolbar"
203
203
  ) do |group| %>
204
- <% group.with_button(icon: :trash_2, tooltip: "remove image", x: {"@click.stop": "image1 = {}"}) %>
204
+ <% group.with_button(icon: :trash_2, tooltip: "remove image", x: {"@click.stop": "image1 = {}; clear();"}) %>
205
205
  <% end %>
206
206
  <img :src="image1.data">
207
207
  </div>
@@ -227,7 +227,7 @@
227
227
  floating: true,
228
228
  class: "editor-image-upload-toolbar"
229
229
  ) do |group| %>
230
- <% group.with_button(icon: :trash_2, tooltip: "remove image", x: {"@click.stop": "image2 = {}"}) %>
230
+ <% group.with_button(icon: :trash_2, tooltip: "remove image", x: {"@click.stop": "image2 = {}; clear();"}) %>
231
231
  <% end %>
232
232
  <img :src="image2.data">
233
233
  </div>
@@ -59,17 +59,16 @@ export default CocoComponent("appSlideEditor", (data) => {
59
59
  );
60
60
  });
61
61
 
62
- this.ready = true;
63
- });
62
+ // Stop navigation when changes have not been saved
63
+ this.$watch("history.undoable", (undoable) => {
64
+ if (undoable) {
65
+ window.onbeforeunload = () => true;
66
+ } else {
67
+ window.onbeforeunload = null;
68
+ }
69
+ });
64
70
 
65
- this.$watch("history.undoable", (undoable) => {
66
- if (undoable) {
67
- window.onbeforeunload = () => {
68
- return true;
69
- };
70
- } else {
71
- window.onbeforeunload = null;
72
- }
71
+ this.ready = true;
73
72
  });
74
73
  },
75
74
 
@@ -8,7 +8,7 @@
8
8
  }
9
9
 
10
10
  .user-profile-details {
11
- @apply space-y-1;
11
+ @apply space-y-1 overflow-hidden flex flex-col justify-center;
12
12
  }
13
13
 
14
14
  .user-profile-name {
@@ -47,6 +47,7 @@ export default CocoComponent("imageUploader", ({ click, drop }) => {
47
47
 
48
48
  clear() {
49
49
  this.file = null;
50
+ this.input.value = null;
50
51
  this.$dispatch("image-uploader:clear");
51
52
  },
52
53
 
data/lib/coco.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Coco
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.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.8.4
4
+ version: 0.8.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-11-02 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails