@vonaffenfels/slate-editor 1.0.2 → 1.0.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.
- package/componentLoader.js +10 -8
- package/dist/BlockEditor.css +4 -95
- package/dist/BlockEditor.js +1 -1
- package/dist/BlockEditor.js.LICENSE.txt +0 -33
- package/dist/index.css +4 -95
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +0 -33
- package/package.json +2 -3
- package/scss/demo.scss +7 -0
- package/scss/editor.scss +70 -38
- package/scss/sidebarEditor.scss +143 -0
- package/scss/storybook.scss +73 -5
- package/scss/toolbar.scss +2 -0
- package/src/BlockEditor.js +85 -45
- package/src/Nodes/Element.js +11 -9
- package/src/Nodes/Storybook.js +13 -32
- package/src/SidebarEditor/AssetList.js +129 -0
- package/src/SidebarEditor/SidebarEditorField.js +164 -93
- package/src/SidebarEditor.js +266 -116
- package/src/Toolbar/Toolbar.js +39 -34
- package/src/dev/App.js +6 -0
- package/src/dev/testComponents/TestStory.js +68 -2
- package/src/dev/testComponents/TestStory.stories.js +13 -3
- package/src/helper/array.js +9 -0
- package/webpack.config.build.js +2 -0
- package/src/SidebarEditor.css +0 -92
|
@@ -33,7 +33,7 @@ export default {
|
|
|
33
33
|
type: "range",
|
|
34
34
|
min:1,
|
|
35
35
|
max:30,
|
|
36
|
-
step:
|
|
36
|
+
step: 1,
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
39
|
object: {
|
|
@@ -112,14 +112,14 @@ export default {
|
|
|
112
112
|
name: "Contentful Asset",
|
|
113
113
|
control: {
|
|
114
114
|
type: 'contentful-content',
|
|
115
|
-
contentTypes: ["
|
|
115
|
+
contentTypes: ["image"],
|
|
116
116
|
},
|
|
117
117
|
},
|
|
118
118
|
contentfulAssets: {
|
|
119
119
|
name: "Contentful Assets",
|
|
120
120
|
control: {
|
|
121
121
|
type: 'contentful-contents',
|
|
122
|
-
contentTypes: ["
|
|
122
|
+
contentTypes: ["image"],
|
|
123
123
|
},
|
|
124
124
|
},
|
|
125
125
|
cloudinaryImage: {
|
|
@@ -143,6 +143,16 @@ export default {
|
|
|
143
143
|
name: "Feld 2",
|
|
144
144
|
control: {type: "text"},
|
|
145
145
|
},
|
|
146
|
+
feld3: {
|
|
147
|
+
name: "Feld 3",
|
|
148
|
+
control: {
|
|
149
|
+
type: "select",
|
|
150
|
+
options: {
|
|
151
|
+
"Option 1": "option1",
|
|
152
|
+
"Option 2": "option2",
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
146
156
|
},
|
|
147
157
|
},
|
|
148
158
|
},
|
package/webpack.config.build.js
CHANGED
|
@@ -35,6 +35,7 @@ config.module = {
|
|
|
35
35
|
},
|
|
36
36
|
"css-loader",
|
|
37
37
|
"sass-loader",
|
|
38
|
+
{loader: 'postcss-loader'},
|
|
38
39
|
],
|
|
39
40
|
},
|
|
40
41
|
{
|
|
@@ -45,6 +46,7 @@ config.module = {
|
|
|
45
46
|
options: {esModule: false},
|
|
46
47
|
},
|
|
47
48
|
'css-loader',
|
|
49
|
+
{loader: 'postcss-loader'},
|
|
48
50
|
],
|
|
49
51
|
},
|
|
50
52
|
],
|
package/src/SidebarEditor.css
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
* {
|
|
2
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
#sidebar-editor {
|
|
6
|
-
background-color: rgb(247, 249, 250);
|
|
7
|
-
height: 100%;
|
|
8
|
-
overflow-y: auto;
|
|
9
|
-
flex-basis: 400px;
|
|
10
|
-
flex-shrink: 0;
|
|
11
|
-
padding: 61px 16px 16px 16px;
|
|
12
|
-
resize: horizontal;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
select {
|
|
16
|
-
font-size: 0.875rem !important;
|
|
17
|
-
color: rgb(90, 101, 124) !important;
|
|
18
|
-
background-color: white !important;
|
|
19
|
-
border: 1px solid #cfd9e0 !important;
|
|
20
|
-
border-radius: 6px !important;
|
|
21
|
-
box-shadow: none !important;
|
|
22
|
-
filter: none !important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
p, label {
|
|
26
|
-
color: rgb(90, 101, 124);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
label {
|
|
30
|
-
display: block;
|
|
31
|
-
margin: 0 0 4px 0 !important;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
input[type="text"],
|
|
35
|
-
input[type="number"],
|
|
36
|
-
input[type="color"],
|
|
37
|
-
input[type="date"],
|
|
38
|
-
select,
|
|
39
|
-
textarea {
|
|
40
|
-
display: block;
|
|
41
|
-
font-size: 0.875rem !important;
|
|
42
|
-
color: rgb(90, 101, 124) !important;
|
|
43
|
-
background-color: white !important;
|
|
44
|
-
border: 1px solid #cfd9e0 !important;
|
|
45
|
-
border-radius: 6px !important;
|
|
46
|
-
box-shadow: none !important;
|
|
47
|
-
filter: none !important;
|
|
48
|
-
width: 100% !important;
|
|
49
|
-
padding: 8px 0.75rem !important;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
input[type="color"] {
|
|
53
|
-
padding: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
input[type="range"] {
|
|
57
|
-
display: block;
|
|
58
|
-
width: 100%;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
input[type="radio"],
|
|
62
|
-
input[type="checkbox"] {
|
|
63
|
-
margin-right: 4px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* button[data-test-id="cf-ui-button"] span {
|
|
67
|
-
color: #036fe3 !important;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
button[data-test-id="cf-ui-button"] svg {
|
|
71
|
-
fill: #036fe3 !important;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
button[data-test-id="cf-ui-button"]:hover span {
|
|
75
|
-
color: #FFFFFF !important;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
button[data-test-id="cf-ui-button"]:hover svg {
|
|
79
|
-
fill: #FFFFFF !important;
|
|
80
|
-
} */
|
|
81
|
-
|
|
82
|
-
.inline-check-wrapper {
|
|
83
|
-
display: inline-block;
|
|
84
|
-
margin-right: 8px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
button {
|
|
88
|
-
width: 100%;
|
|
89
|
-
padding: 8px !important;
|
|
90
|
-
color: #036fe3 !important;
|
|
91
|
-
border: 1px solid #036fe3 !important;
|
|
92
|
-
}
|