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 +4 -4
- data/app/assets/build/coco/app.css +6 -0
- data/app/assets/build/coco/app.js +9 -10
- data/app/assets/build/coco/book.js +1 -0
- data/app/components/coco/app/blocks/slide_editor/slide_editor.html.erb +2 -2
- data/app/components/coco/app/blocks/slide_editor/slide_editor.js +9 -10
- data/app/components/coco/app/elements/menu_items/user_profile/user_profile.css +1 -1
- data/app/components/coco/base/image_uploader/image_uploader.js +1 -0
- 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: aafbeb1f1688632f89c507287fc11591a6b88062ba2881570fd27249b9610e79
|
4
|
+
data.tar.gz: 52f5380f901b410120aa416be543f2d301d058184521416b17f4f04537afa1b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|
-
|
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
|
|
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.8.
|
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-
|
11
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|