@silexlabs/silex 3.0.0-alpha.100 → 3.0.0-alpha.102
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/client/assetUrl.d.ts +3 -0
- package/dist/client/client/grapesjs/new-page-dialog.d.ts +1 -1
- package/dist/client/client/grapesjs/page-panel.d.ts +1 -1
- package/dist/client/client/grapesjs/rich-text.d.ts +1 -1
- package/dist/client/client/grapesjs/semantic.d.ts +1 -1
- package/dist/client/client/grapesjs/settings.d.ts +1 -1
- package/dist/client/client/grapesjs/symbolDialogs.d.ts +1 -1
- package/dist/client/css/admin.css +133 -13
- package/dist/client/js/main.js +104 -104
- package/dist/client/js/main.js.LICENSE.txt +2 -0
- package/dist/plugins/client/client/assetUrl.d.ts +3 -0
- package/dist/plugins/client/client/assetUrl.js +14 -5
- package/dist/plugins/client/client/assetUrl.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/index.js +5 -0
- package/dist/plugins/client/client/grapesjs/index.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/new-page-dialog.d.ts +1 -1
- package/dist/plugins/client/client/grapesjs/new-page-dialog.js +2 -3
- package/dist/plugins/client/client/grapesjs/new-page-dialog.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/page-panel.d.ts +1 -1
- package/dist/plugins/client/client/grapesjs/page-panel.js +2 -3
- package/dist/plugins/client/client/grapesjs/page-panel.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/rich-text.d.ts +1 -1
- package/dist/plugins/client/client/grapesjs/rich-text.js +2 -3
- package/dist/plugins/client/client/grapesjs/rich-text.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/semantic.d.ts +1 -1
- package/dist/plugins/client/client/grapesjs/semantic.js +2 -3
- package/dist/plugins/client/client/grapesjs/semantic.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/settings.d.ts +1 -1
- package/dist/plugins/client/client/grapesjs/settings.js +2 -3
- package/dist/plugins/client/client/grapesjs/settings.js.map +1 -1
- package/dist/plugins/client/client/grapesjs/symbolDialogs.d.ts +1 -1
- package/dist/plugins/client/client/grapesjs/symbolDialogs.js +2 -3
- package/dist/plugins/client/client/grapesjs/symbolDialogs.js.map +1 -1
- package/package.json +23 -22
- package/src/css/grapesjs-plugins.scss +34 -0
- package/src/css/grapesjs.scss +1 -9
- package/src/ts/client/assetUrl.test.ts +39 -0
- package/src/ts/client/assetUrl.ts +15 -5
- package/src/ts/client/grapesjs/eleventy.ts +2 -5
- package/src/ts/client/grapesjs/index.ts +5 -0
- package/src/ts/client/grapesjs/internal-links.test.ts +7 -2
- package/src/ts/client/grapesjs/new-page-dialog.ts +2 -3
- package/src/ts/client/grapesjs/page-panel.ts +2 -3
- package/src/ts/client/grapesjs/rich-text.ts +2 -4
- package/src/ts/client/grapesjs/semantic.ts +2 -3
- package/src/ts/client/grapesjs/settings.ts +2 -3
- package/src/ts/client/grapesjs/symbolDialogs.ts +2 -3
- package/src/ts/client/publication-transformers.test.ts +6 -2
|
@@ -43,9 +43,12 @@ export declare function addTempDataToPages(pages: Page[], websiteId: WebsiteId,
|
|
|
43
43
|
export declare function removeTempDataFromPages(pages: Page[]): Page[];
|
|
44
44
|
/**
|
|
45
45
|
* Add data to stylesheets
|
|
46
|
+
* e.g. linear-gradient(to right, #1fb101 0%, #df1313 67%, rgba(234, 97, 97, 255) 78%, white 100%), url('/assets/qIg7JPRc.webp'), linear-gradient(#0ca311 0%, #0ca311 100%)
|
|
46
47
|
*/
|
|
47
48
|
export declare function addTempDataToStyles(styles: Style[], websiteId: WebsiteId, storageId: ConnectorId): Style[];
|
|
48
49
|
/**
|
|
49
50
|
* Remove temp data from stylesheets
|
|
51
|
+
* The property `background-image` contains the URLs of the assets and other values,
|
|
52
|
+
* e.g. `linear-gradient(to right, #1fb101 0%, #df1313 67%, rgba(234, 97, 97, 255) 78%, white 100%), url('/api/website/assets/qIg7JPRc.webp?websiteId=default&connectorId=fs-storage'), linear-gradient(#0ca311 0%, #0ca311 100%)`
|
|
50
53
|
*/
|
|
51
54
|
export declare function removeTempDataFromStyles(styles: Style[]): Style[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const cmdOpenNewPageDialog = "new-page-dialog";
|
|
2
|
-
export declare const newPageDialog: any;
|
|
2
|
+
export declare const newPageDialog: (editor: any, opts: any) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const richTextPlugin: any;
|
|
1
|
+
export declare const richTextPlugin: (editor: any, opts: any) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const semanticPlugin: any;
|
|
1
|
+
export declare const semanticPlugin: (editor: any, opts: any) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const cmdOpenSettings = "open-settings";
|
|
2
|
-
export declare const settingsDialog: any;
|
|
2
|
+
export declare const settingsDialog: (editor: any, opts: any) => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* Normalize css */
|
|
1
2
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
3
|
/* Document
|
|
3
4
|
========================================================================== */
|
|
@@ -316,7 +317,8 @@ template {
|
|
|
316
317
|
--lighterPrimaryColor: #575757;
|
|
317
318
|
}
|
|
318
319
|
|
|
319
|
-
/* stylelint-disable */
|
|
320
|
+
/* stylelint-disable */
|
|
321
|
+
/* BASICS */
|
|
320
322
|
.CodeMirror {
|
|
321
323
|
/* Set height, width, borders, and global font properties here */
|
|
322
324
|
font-family: monospace;
|
|
@@ -1885,7 +1887,6 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
|
|
|
1885
1887
|
}
|
|
1886
1888
|
|
|
1887
1889
|
.gjs-cv-canvas {
|
|
1888
|
-
background-color: rgba(0, 0, 0, 0.15);
|
|
1889
1890
|
box-sizing: border-box;
|
|
1890
1891
|
width: 85%;
|
|
1891
1892
|
height: calc(100% - 40px);
|
|
@@ -1897,6 +1898,9 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
|
|
|
1897
1898
|
top: 40px;
|
|
1898
1899
|
/* This simulate body behaviour */
|
|
1899
1900
|
}
|
|
1901
|
+
.gjs-cv-canvas-bg {
|
|
1902
|
+
background-color: rgba(0, 0, 0, 0.15);
|
|
1903
|
+
}
|
|
1900
1904
|
.gjs-cv-canvas.gjs-cui {
|
|
1901
1905
|
width: 100%;
|
|
1902
1906
|
height: 100%;
|
|
@@ -3821,6 +3825,7 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
|
|
|
3821
3825
|
color: #ffffff;
|
|
3822
3826
|
}
|
|
3823
3827
|
|
|
3828
|
+
/* Silex styles imports */
|
|
3824
3829
|
.silex-workspace {
|
|
3825
3830
|
position: absolute;
|
|
3826
3831
|
top: 0;
|
|
@@ -4252,6 +4257,132 @@ iframe.enable-squeeze.silex-squeeze-left {
|
|
|
4252
4257
|
background-color: #292929;
|
|
4253
4258
|
}
|
|
4254
4259
|
|
|
4260
|
+
.grp-wrapper {
|
|
4261
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==");
|
|
4262
|
+
}
|
|
4263
|
+
|
|
4264
|
+
.grp-preview {
|
|
4265
|
+
position: absolute;
|
|
4266
|
+
top: 0;
|
|
4267
|
+
left: 0;
|
|
4268
|
+
width: 100%;
|
|
4269
|
+
height: 100%;
|
|
4270
|
+
cursor: crosshair;
|
|
4271
|
+
}
|
|
4272
|
+
|
|
4273
|
+
.grp-handler {
|
|
4274
|
+
width: 4px;
|
|
4275
|
+
margin-left: -2px;
|
|
4276
|
+
user-select: none;
|
|
4277
|
+
-webkit-user-select: none;
|
|
4278
|
+
-moz-user-select: none;
|
|
4279
|
+
height: 100%;
|
|
4280
|
+
}
|
|
4281
|
+
|
|
4282
|
+
.grp-handler-close {
|
|
4283
|
+
color: rgba(0, 0, 0, 0.4);
|
|
4284
|
+
border-radius: 100%;
|
|
4285
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
|
|
4286
|
+
background-color: #fff;
|
|
4287
|
+
text-align: center;
|
|
4288
|
+
width: 15px;
|
|
4289
|
+
height: 15px;
|
|
4290
|
+
margin-left: -5px;
|
|
4291
|
+
line-height: 10px;
|
|
4292
|
+
font-size: 21px;
|
|
4293
|
+
cursor: pointer;
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
.grp-handler-close-c {
|
|
4297
|
+
position: absolute;
|
|
4298
|
+
top: -17px;
|
|
4299
|
+
}
|
|
4300
|
+
|
|
4301
|
+
.grp-handler-drag {
|
|
4302
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
4303
|
+
cursor: col-resize;
|
|
4304
|
+
width: 100%;
|
|
4305
|
+
height: 100%;
|
|
4306
|
+
}
|
|
4307
|
+
|
|
4308
|
+
.grp-handler-selected .grp-handler-drag {
|
|
4309
|
+
background-color: rgba(255, 255, 255, 0.5);
|
|
4310
|
+
}
|
|
4311
|
+
|
|
4312
|
+
.grp-handler-cp-c {
|
|
4313
|
+
display: none;
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
.grp-handler-selected .grp-handler-cp-c {
|
|
4317
|
+
display: block;
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
.grp-handler-cp-wrap {
|
|
4321
|
+
width: 15px;
|
|
4322
|
+
height: 15px;
|
|
4323
|
+
margin-left: -8px;
|
|
4324
|
+
border: 3px solid #fff;
|
|
4325
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
|
|
4326
|
+
overflow: hidden;
|
|
4327
|
+
border-radius: 100%;
|
|
4328
|
+
cursor: pointer;
|
|
4329
|
+
}
|
|
4330
|
+
|
|
4331
|
+
.grp-handler-cp-wrap input[type=color] {
|
|
4332
|
+
opacity: 0;
|
|
4333
|
+
cursor: pointer;
|
|
4334
|
+
}
|
|
4335
|
+
|
|
4336
|
+
.fa-arrows::before {
|
|
4337
|
+
display: block;
|
|
4338
|
+
content: "" !important;
|
|
4339
|
+
border: 2px solid #8873FE;
|
|
4340
|
+
width: 10px;
|
|
4341
|
+
height: 10px;
|
|
4342
|
+
margin: auto;
|
|
4343
|
+
border-color: #ddd;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
.fa-long-arrow-up::before {
|
|
4347
|
+
display: block;
|
|
4348
|
+
content: "" !important;
|
|
4349
|
+
border: 2px solid #8873FE;
|
|
4350
|
+
width: 10px;
|
|
4351
|
+
height: 10px;
|
|
4352
|
+
margin: auto;
|
|
4353
|
+
border-top-color: #ddd;
|
|
4354
|
+
}
|
|
4355
|
+
|
|
4356
|
+
.fa-long-arrow-down::before {
|
|
4357
|
+
display: block;
|
|
4358
|
+
content: "" !important;
|
|
4359
|
+
border: 2px solid #8873FE;
|
|
4360
|
+
width: 10px;
|
|
4361
|
+
height: 10px;
|
|
4362
|
+
margin: auto;
|
|
4363
|
+
border-bottom-color: #ddd;
|
|
4364
|
+
}
|
|
4365
|
+
|
|
4366
|
+
.fa-long-arrow-left::before {
|
|
4367
|
+
display: block;
|
|
4368
|
+
content: "" !important;
|
|
4369
|
+
border: 2px solid #8873FE;
|
|
4370
|
+
width: 10px;
|
|
4371
|
+
height: 10px;
|
|
4372
|
+
margin: auto;
|
|
4373
|
+
border-left-color: #ddd;
|
|
4374
|
+
}
|
|
4375
|
+
|
|
4376
|
+
.fa-long-arrow-right::before {
|
|
4377
|
+
display: block;
|
|
4378
|
+
content: "" !important;
|
|
4379
|
+
border: 2px solid #8873FE;
|
|
4380
|
+
width: 10px;
|
|
4381
|
+
height: 10px;
|
|
4382
|
+
margin: auto;
|
|
4383
|
+
border-right-color: #ddd;
|
|
4384
|
+
}
|
|
4385
|
+
|
|
4255
4386
|
#gjs {
|
|
4256
4387
|
flex: 1 1 auto;
|
|
4257
4388
|
}
|
|
@@ -4415,15 +4546,6 @@ iframe.enable-squeeze.silex-squeeze-left {
|
|
|
4415
4546
|
content: "\f3a5";
|
|
4416
4547
|
}
|
|
4417
4548
|
|
|
4418
|
-
/*
|
|
4419
|
-
.fa-plus:before {
|
|
4420
|
-
content: "+";
|
|
4421
|
-
font-size: 35px;
|
|
4422
|
-
}
|
|
4423
|
-
// .fa-plus {
|
|
4424
|
-
// background-image: svg(<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"/></svg>);
|
|
4425
|
-
// }
|
|
4426
|
-
*/
|
|
4427
4549
|
/* ubuntu-cyrillic-ext-400-normal */
|
|
4428
4550
|
@font-face {
|
|
4429
4551
|
font-family: "Ubuntu";
|
|
@@ -4478,8 +4600,6 @@ iframe.enable-squeeze.silex-squeeze-left {
|
|
|
4478
4600
|
src: url(./files/ubuntu-latin-400-normal.woff2) format("woff2"), url(./files/ubuntu-latin-400-normal.woff) format("woff");
|
|
4479
4601
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
4480
4602
|
}
|
|
4481
|
-
/* Normalize css */
|
|
4482
|
-
/* Silex styles imports */
|
|
4483
4603
|
.container-png::before {
|
|
4484
4604
|
content: " ";
|
|
4485
4605
|
background-image: url("../assets/container.png");
|