@silexlabs/silex 3.3.1-1 → 3.3.1-2
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/dist/client/css/admin.css +13 -0
- package/dist/client/index.html +2 -2
- package/dist/client/js/main.js +36 -38
- package/package.json +2 -2
- package/src/css/grapesjs.scss +12 -0
- package/src/ts/client/grapesjs/css-props.ts +83 -62
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexlabs/silex",
|
|
3
3
|
"description": "Free and easy website builder for everyone.",
|
|
4
|
-
"version": "3.3.1-
|
|
4
|
+
"version": "3.3.1-2",
|
|
5
5
|
"version:backwardcompat": "3.0.0",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Alex Hoyau",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"dependencies": {
|
|
106
106
|
"@fontsource/ubuntu": "^5.0.13",
|
|
107
107
|
"@fortawesome/fontawesome-free": "6.6.0",
|
|
108
|
-
"@silexlabs/grapesjs-advanced-selector": "1.2.1-
|
|
108
|
+
"@silexlabs/grapesjs-advanced-selector": "1.2.1-1",
|
|
109
109
|
"@silexlabs/grapesjs-filter-styles": "1.1.0",
|
|
110
110
|
"@silexlabs/grapesjs-fonts": "1.1.0",
|
|
111
111
|
"@silexlabs/grapesjs-keymaps-dialog": "1.1.0",
|
package/src/css/grapesjs.scss
CHANGED
|
@@ -117,6 +117,9 @@
|
|
|
117
117
|
#gjs-clm-tags-field.gjs-field {
|
|
118
118
|
margin: 0;
|
|
119
119
|
}
|
|
120
|
+
.gjs-field.gjs-field-integer {
|
|
121
|
+
width: 100%;
|
|
122
|
+
}
|
|
120
123
|
.gjs-clm-tags {
|
|
121
124
|
padding-top: 7px;
|
|
122
125
|
padding-bottom: 0;
|
|
@@ -124,6 +127,10 @@
|
|
|
124
127
|
#gjs-clm-up {
|
|
125
128
|
margin-top: 0;
|
|
126
129
|
}
|
|
130
|
+
.gjs-sm-icon[title]:not([title=""])::after {
|
|
131
|
+
content: "?";
|
|
132
|
+
margin-left: 0.5em;
|
|
133
|
+
}
|
|
127
134
|
|
|
128
135
|
/*
|
|
129
136
|
*/
|
|
@@ -220,3 +227,8 @@
|
|
|
220
227
|
display: block;
|
|
221
228
|
color: var(--gjs-color-warn);
|
|
222
229
|
}
|
|
230
|
+
|
|
231
|
+
// FIXME: Workaround, why is this needed?
|
|
232
|
+
.gjs-field .gjs-sel-arrow {
|
|
233
|
+
z-index: 999;
|
|
234
|
+
}
|
|
@@ -61,7 +61,7 @@ export default (editor: Editor, opts) => {
|
|
|
61
61
|
{ id: 'initial', value: 'initial', name: 'initial' },
|
|
62
62
|
{ id: 'unset', value: 'unset', name: 'unset' },
|
|
63
63
|
],
|
|
64
|
-
info: '
|
|
64
|
+
info: 'Controls element visibility without changing layout.',
|
|
65
65
|
})
|
|
66
66
|
editor.StyleManager.removeProperty('general', 'float')
|
|
67
67
|
editor.StyleManager.removeProperty('general', 'position')
|
|
@@ -125,7 +125,7 @@ export default (editor: Editor, opts) => {
|
|
|
125
125
|
property: 'content',
|
|
126
126
|
type: 'text',
|
|
127
127
|
defaults: '',
|
|
128
|
-
info: '
|
|
128
|
+
info: 'Generates content for an element.',
|
|
129
129
|
full: true,
|
|
130
130
|
visible: false,
|
|
131
131
|
}, { at: 0 })
|
|
@@ -217,8 +217,22 @@ export default (editor: Editor, opts) => {
|
|
|
217
217
|
{ id: 'unset', value: 'unset', name: 'unset' },
|
|
218
218
|
],
|
|
219
219
|
}],
|
|
220
|
-
info: '
|
|
220
|
+
info: 'Controls content overflow in a block.',
|
|
221
221
|
}, { at: 6 })
|
|
222
|
+
|
|
223
|
+
editor.StyleManager.addProperty('dimension', {
|
|
224
|
+
name: 'Scroll Behavior',
|
|
225
|
+
property: 'scroll-behavior',
|
|
226
|
+
type: 'select',
|
|
227
|
+
defaults: '',
|
|
228
|
+
options: [
|
|
229
|
+
{ id: '', value: '', name: '' },
|
|
230
|
+
{ id: 'auto', value: 'auto', name: 'auto' },
|
|
231
|
+
{ id: 'smooth', value: 'smooth', name: 'smooth' }
|
|
232
|
+
],
|
|
233
|
+
info: 'Sets smooth or auto scroll behavior.',
|
|
234
|
+
}, { at: 7 })
|
|
235
|
+
|
|
222
236
|
editor.StyleManager.removeProperty('dimension', 'margin')
|
|
223
237
|
editor.StyleManager.addProperty('dimension', {
|
|
224
238
|
name: 'Margin',
|
|
@@ -256,7 +270,7 @@ export default (editor: Editor, opts) => {
|
|
|
256
270
|
fixedValues: [ 'initial', 'inherit', 'auto' ],
|
|
257
271
|
units: [ 'px', '%', 'em', 'rem', 'vh', 'vw' ],
|
|
258
272
|
}],
|
|
259
|
-
}, { at:
|
|
273
|
+
}, { at: 8 })
|
|
260
274
|
editor.StyleManager.removeProperty('dimension', 'padding')
|
|
261
275
|
editor.StyleManager.addProperty('dimension', {
|
|
262
276
|
name: 'Padding',
|
|
@@ -297,64 +311,8 @@ export default (editor: Editor, opts) => {
|
|
|
297
311
|
fixedValues: [ 'initial', 'inherit', 'auto' ],
|
|
298
312
|
units: [ 'px', '%', 'em', 'rem', 'vh', 'vw' ],
|
|
299
313
|
}],
|
|
300
|
-
}, { at: 8 })
|
|
301
|
-
|
|
302
|
-
editor.StyleManager.addProperty('extra', {
|
|
303
|
-
name: 'Scroll Snap Type',
|
|
304
|
-
property: 'scroll-snap-type',
|
|
305
|
-
type: 'composite',
|
|
306
|
-
properties: [{
|
|
307
|
-
name: 'Direction',
|
|
308
|
-
property: 'scroll-snap-type-direction',
|
|
309
|
-
type: 'select',
|
|
310
|
-
defaults: '',
|
|
311
|
-
options: [
|
|
312
|
-
{ id: '', value: '', name: '' },
|
|
313
|
-
{ id: 'none', value: 'none', name: 'none' },
|
|
314
|
-
{ id: 'x', value: 'x', name: 'x' },
|
|
315
|
-
{ id: 'y', value: 'y', name: 'y' },
|
|
316
|
-
{ id: 'block', value: 'block', name: 'block' },
|
|
317
|
-
{ id: 'inline', value: 'inline', name: 'inline' },
|
|
318
|
-
{ id: 'both', value: 'both', name: 'both' },
|
|
319
|
-
],
|
|
320
|
-
}, {
|
|
321
|
-
name: 'Mode',
|
|
322
|
-
property: 'scroll-snap-type-mode',
|
|
323
|
-
type: 'select',
|
|
324
|
-
defaults: '',
|
|
325
|
-
options: [
|
|
326
|
-
{ id: '', value: '', name: '' },
|
|
327
|
-
{ id: 'proximity', value: 'proximity', name: 'proximity' },
|
|
328
|
-
{ id: 'mandatory', value: 'mandatory', name: 'mandatory' },
|
|
329
|
-
],
|
|
330
|
-
}],
|
|
331
|
-
info: 'The scroll-snap-type CSS property sets the direction and mode of enforced snap points on the scroll container.',
|
|
332
314
|
}, { at: 9 })
|
|
333
315
|
|
|
334
|
-
editor.StyleManager.addProperty('extra', {
|
|
335
|
-
name: 'Scroll Padding',
|
|
336
|
-
property: 'scroll-padding',
|
|
337
|
-
type: 'integer',
|
|
338
|
-
defaults: '',
|
|
339
|
-
units: ['px', 'em', 'rem', '%'],
|
|
340
|
-
info: 'The scroll-padding CSS property defines offsets for the optimal snap position when scrolling is loaded by the browser.',
|
|
341
|
-
}, { at: 10 })
|
|
342
|
-
|
|
343
|
-
editor.StyleManager.addProperty('extra', {
|
|
344
|
-
name: 'Scroll Snap Align',
|
|
345
|
-
property: 'scroll-snap-align',
|
|
346
|
-
type: 'select',
|
|
347
|
-
defaults: '',
|
|
348
|
-
options: [
|
|
349
|
-
{ id: '', value: '', name: '' },
|
|
350
|
-
{ id: 'none', value: 'none', name: 'none' },
|
|
351
|
-
{ id: 'start', value: 'start', name: 'start' },
|
|
352
|
-
{ id: 'end', value: 'end', name: 'end' },
|
|
353
|
-
{ id: 'center', value: 'center', name: 'center' },
|
|
354
|
-
],
|
|
355
|
-
info: 'The scroll-snap-align property specifies how strictly the snap points are enforced on the element in the container.',
|
|
356
|
-
}, { at: 11 })
|
|
357
|
-
|
|
358
316
|
/***************/
|
|
359
317
|
/* Typography */
|
|
360
318
|
/***************/
|
|
@@ -752,6 +710,15 @@ export default (editor: Editor, opts) => {
|
|
|
752
710
|
default: '',
|
|
753
711
|
fixedValues: ['normal', 'inherit', 'initial', 'revert', 'unset'],
|
|
754
712
|
}, { at: 6 })
|
|
713
|
+
editor.StyleManager.addProperty('extra', {
|
|
714
|
+
name: 'Row Gap',
|
|
715
|
+
property: 'row-gap',
|
|
716
|
+
type: 'integer',
|
|
717
|
+
units: ['px', '%', 'em'],
|
|
718
|
+
info: 'The row-gap CSS property sets the size of the gap (gutter) between an element\'s rows.',
|
|
719
|
+
default: '',
|
|
720
|
+
fixedValues: ['normal', 'inherit', 'initial', 'revert', 'unset'],
|
|
721
|
+
}, { at: 7 })
|
|
755
722
|
editor.StyleManager.addProperty('extra', {
|
|
756
723
|
name: 'Column rule',
|
|
757
724
|
property: 'column-rule',
|
|
@@ -791,7 +758,7 @@ export default (editor: Editor, opts) => {
|
|
|
791
758
|
defaults: '',
|
|
792
759
|
info: 'The column-rule-color CSS property sets the color of the line drawn between columns in a multi-column layout.',
|
|
793
760
|
}],
|
|
794
|
-
}, { at:
|
|
761
|
+
}, { at: 8 })
|
|
795
762
|
editor.StyleManager.addProperty('extra', {
|
|
796
763
|
name: 'Column span',
|
|
797
764
|
property: 'column-span',
|
|
@@ -803,7 +770,61 @@ export default (editor: Editor, opts) => {
|
|
|
803
770
|
{ id: 'all', value: 'all', name: 'all' },
|
|
804
771
|
],
|
|
805
772
|
info: 'The column-span CSS property makes it possible for an element to span across all columns when its value is set to all.',
|
|
806
|
-
}, { at:
|
|
773
|
+
}, { at: 9 })
|
|
774
|
+
editor.StyleManager.addProperty('extra', {
|
|
775
|
+
name: 'Scroll Snap Type',
|
|
776
|
+
property: 'scroll-snap-type',
|
|
777
|
+
type: 'composite',
|
|
778
|
+
properties: [{
|
|
779
|
+
name: 'Direction',
|
|
780
|
+
property: 'scroll-snap-type-direction',
|
|
781
|
+
type: 'select',
|
|
782
|
+
defaults: '',
|
|
783
|
+
options: [
|
|
784
|
+
{ id: '', value: '', name: '' },
|
|
785
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
786
|
+
{ id: 'x', value: 'x', name: 'x' },
|
|
787
|
+
{ id: 'y', value: 'y', name: 'y' },
|
|
788
|
+
{ id: 'block', value: 'block', name: 'block' },
|
|
789
|
+
{ id: 'inline', value: 'inline', name: 'inline' },
|
|
790
|
+
{ id: 'both', value: 'both', name: 'both' },
|
|
791
|
+
],
|
|
792
|
+
}, {
|
|
793
|
+
name: 'Mode',
|
|
794
|
+
property: 'scroll-snap-type-mode',
|
|
795
|
+
type: 'select',
|
|
796
|
+
defaults: '',
|
|
797
|
+
options: [
|
|
798
|
+
{ id: '', value: '', name: '' },
|
|
799
|
+
{ id: 'proximity', value: 'proximity', name: 'proximity' },
|
|
800
|
+
{ id: 'mandatory', value: 'mandatory', name: 'mandatory' },
|
|
801
|
+
],
|
|
802
|
+
}],
|
|
803
|
+
info: 'The scroll-snap-type CSS property sets the direction and mode of enforced snap points on the scroll container.',
|
|
804
|
+
}, { at: 10 })
|
|
805
|
+
editor.StyleManager.addProperty('extra', {
|
|
806
|
+
name: 'Scroll Padding',
|
|
807
|
+
property: 'scroll-padding',
|
|
808
|
+
type: 'integer',
|
|
809
|
+
defaults: '',
|
|
810
|
+
units: ['px', 'em', 'rem', '%'],
|
|
811
|
+
info: 'Defines offsets for scroll snapping.',
|
|
812
|
+
}, { at: 11 })
|
|
813
|
+
editor.StyleManager.addProperty('extra', {
|
|
814
|
+
name: 'Scroll Snap Align',
|
|
815
|
+
property: 'scroll-snap-align',
|
|
816
|
+
type: 'select',
|
|
817
|
+
defaults: '',
|
|
818
|
+
options: [
|
|
819
|
+
{ id: '', value: '', name: '' },
|
|
820
|
+
{ id: 'none', value: 'none', name: 'none' },
|
|
821
|
+
{ id: 'start', value: 'start', name: 'start' },
|
|
822
|
+
{ id: 'end', value: 'end', name: 'end' },
|
|
823
|
+
{ id: 'center', value: 'center', name: 'center' },
|
|
824
|
+
],
|
|
825
|
+
info: 'Aligns elements to scroll snaps.',
|
|
826
|
+
}, { at: 11 })
|
|
827
|
+
|
|
807
828
|
function refreshContentProp() {
|
|
808
829
|
const state = editor.SelectorManager.getState()
|
|
809
830
|
if (['before', 'after'].includes(state)) {
|