@silexlabs/silex 3.5.1-1 → 3.5.1-3

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/.silex.js CHANGED
@@ -44,6 +44,9 @@ module.exports = async function(config, options) {
44
44
  }, {
45
45
  route: '/css/files/',
46
46
  path: nodeModules('@fontsource/ubuntu') + '/@fontsource/ubuntu/files/',
47
+ }, {
48
+ route: '/lottie-player/',
49
+ path: nodeModules('@lottiefiles/lottie-player') + '/@lottiefiles/lottie-player/dist/',
47
50
  }, {
48
51
  route: '/',
49
52
  path: join(__dirname, 'dist', 'client'),
@@ -67,6 +67,49 @@ export declare class PublicationManager {
67
67
  */
68
68
  startPublication(): Promise<void>;
69
69
  getHtmlFiles(siteSettings: WebsiteSettings, preventDefault: any): Promise<WebsiteFile[]>;
70
+ /**
71
+ * Helper function to check if a viewport meta tag exists in the head content
72
+ * @param headContent - HTML content from head settings
73
+ * @returns true if viewport meta tag is found
74
+ */
75
+ private hasViewportMeta;
76
+ /**
77
+ * Get the default viewport meta tag if no viewport is present
78
+ * @param siteHead - Head content from site settings
79
+ * @param pageHead - Head content from page settings
80
+ * @returns viewport meta tag or empty string if already present
81
+ */
82
+ private ensureViewportMeta;
83
+ /**
84
+ * Helper function to check if a generator meta tag exists in the head content
85
+ * @param headContent - HTML content from head settings
86
+ * @returns true if generator meta tag is found
87
+ */
88
+ private hasGeneratorMeta;
89
+ /**
90
+ * Get the default generator meta tag if no generator is present
91
+ * @param siteHead - Head content from site settings
92
+ * @param pageHead - Head content from page settings
93
+ * @returns generator meta tag or empty string if already present
94
+ */
95
+ private ensureGeneratorMeta;
96
+ /**
97
+ * Helper function to check if a canonical link exists in the head content
98
+ * @param headContent - HTML content from head settings
99
+ * @returns true if canonical link is found
100
+ */
101
+ private hasCanonicalLink;
102
+ /**
103
+ * Helper function to check if alternate links exist in the head content
104
+ * @param headContent - HTML content from head settings
105
+ * @returns true if alternate links are found
106
+ */
107
+ private hasAlternateLinks;
108
+ /**
109
+ * Check for missing SEO tags and emit warnings
110
+ * @param siteSettings - Site settings
111
+ */
112
+ private checkSeoTags;
70
113
  getHtmlFilesYield(siteSettings: WebsiteSettings, preventDefault: any): AsyncGenerator<WebsiteFile | undefined>;
71
114
  trackProgress(): Promise<void>;
72
115
  private setPublicationTransformers;
@@ -0,0 +1,7 @@
1
+ import { Editor } from 'grapesjs';
2
+ /**
3
+ * Lottie animation block plugin for Silex
4
+ * Allows users to embed Lottie animations using the lottie-player web component
5
+ * Follows GrapesJS best practices for loading external scripts
6
+ */
7
+ export declare const lottiePlugin: (editor: Editor, opts?: {}) => void;
@@ -4000,7 +4000,7 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
4000
4000
  height: 100vh;
4001
4001
  z-index: 10;
4002
4002
  pointer-events: auto;
4003
- overflow: auto;
4003
+ overflow: hidden; /* settings scroll is on .settings-body */
4004
4004
  display: flex;
4005
4005
  flex-direction: column;
4006
4006
  }
@@ -4089,6 +4089,11 @@ See http://bgrins.github.io/spectrum/themes/ for instructions.
4089
4089
  min-height: 400px;
4090
4090
  height: auto;
4091
4091
  }
4092
+ .settings-dialog .CodeMirror-scroll {
4093
+ /* override codemirror default styles */
4094
+ overflow: hidden !important; /* on chrome, a horizontal scroll bar appears */
4095
+ padding-bottom: 150px;
4096
+ }
4092
4097
 
4093
4098
  button.silex-button,
4094
4099
  input.silex-button[type=button],
@@ -4314,9 +4319,6 @@ form.silex-form .silex-form__group.col2 {
4314
4319
  bottom: 0;
4315
4320
  left: 35px;
4316
4321
  right: var(--viewsPanelWidth);
4317
- display: flex;
4318
- justify-content: space-between;
4319
- align-items: center;
4320
4322
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
4321
4323
  height: 30px;
4322
4324
  }
@@ -4544,7 +4546,8 @@ form.silex-form .silex-form__group.col2 {
4544
4546
  align-items: center;
4545
4547
  background-color: #292929;
4546
4548
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
4547
- cursor: pointer;
4549
+ cursor: cursor;
4550
+ transition: opacity 0.2s ease, background-color 0.2s ease;
4548
4551
  }
4549
4552
  .page-panel-container .pages .pages__page:hover {
4550
4553
  background-color: #333333;
@@ -4552,6 +4555,13 @@ form.silex-form .silex-form__group.col2 {
4552
4555
  .page-panel-container .pages .pages__page:hover .pages__page-name {
4553
4556
  color: #A291FF;
4554
4557
  }
4558
+ .page-panel-container .pages .pages__page:active {
4559
+ cursor: grabbing;
4560
+ }
4561
+ .page-panel-container .pages .pages__page-dragging {
4562
+ opacity: 0.4;
4563
+ cursor: grabbing !important;
4564
+ }
4555
4565
  .page-panel-container .pages .pages__page-selected {
4556
4566
  background-color: #575757;
4557
4567
  cursor: default;
@@ -4566,20 +4576,31 @@ form.silex-form .silex-form__group.col2 {
4566
4576
  white-space: nowrap;
4567
4577
  overflow: hidden;
4568
4578
  text-overflow: ellipsis;
4569
- height: 13px;
4570
- font-size: initial;
4579
+ font-size: 13px;
4571
4580
  text-transform: capitalize;
4572
- padding: 10px 6px;
4581
+ padding: 6px;
4573
4582
  flex: 1;
4574
4583
  text-align: left;
4584
+ display: flex;
4585
+ align-items: center;
4586
+ gap: 4px;
4575
4587
  }
4576
4588
  .page-panel-container .pages .pages__icon {
4577
- padding: 10px 6px;
4589
+ padding: 6px;
4578
4590
  cursor: pointer;
4591
+ font-size: 12px;
4579
4592
  }
4580
4593
  .page-panel-container .pages .pages__icon:hover {
4581
4594
  color: #A291FF;
4582
4595
  }
4596
+ .page-panel-container .pages .pages__drag-handle {
4597
+ cursor: grab;
4598
+ opacity: 0.6;
4599
+ flex-shrink: 0;
4600
+ }
4601
+ .page-panel-container .pages .pages__drag-handle:hover {
4602
+ opacity: 1;
4603
+ }
4583
4604
  .page-panel-container .gjs-pn-buttons {
4584
4605
  flex-direction: column;
4585
4606
  }
@@ -5146,6 +5167,11 @@ form.silex-form .silex-form__group.col2 {
5146
5167
  margin-right: 0.3em;
5147
5168
  }
5148
5169
 
5170
+ .fa-grip-vertical:before {
5171
+ content: "\f58e";
5172
+ font-weight: 900;
5173
+ }
5174
+
5149
5175
  .gjs-sm-sector .gjs-sm-sector-title::before,
5150
5176
  .gjs-sm-sector .gjs-sm-sector-title::after {
5151
5177
  content: "o";
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html lang="en" translate="no"><head><title>Silex</title><meta name="description" content="This is a public instance of Silex website builder. Build websites in the browser"><link rel="shortcut icon" href="assets/favicon.png?829209"><style>body {
1
+ <!DOCTYPE html><html lang="en" translate="no"><head><title>Silex</title><meta name="description" content="This is a public instance of Silex website builder. Build websites in the browser"><link rel="shortcut icon" href="assets/favicon.png?878908"><style>body {
2
2
  background-color: #444444;
3
3
  font-family: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif;
4
4
  }
@@ -7,5 +7,5 @@
7
7
  transition: opacity 0.25s 0.25s ease-in-out;
8
8
  }
9
9
  </style></head><body class="silex-loading"><div class="silex-loader silex-dialog" role="status" aria-live="polite" aria-busy="true">Loading
10
- </div><link rel="stylesheet" type="text/css" href="css/admin.css?289074"><main class="silex-workspace"><div class="silex-main silex-dialog-hide silex-ui-full" id="gjs"></div></main><script src="js/main.js?289074"></script><script>silex.start()
10
+ </div><link rel="stylesheet" type="text/css" href="css/admin.css?611607"><main class="silex-workspace"><div class="silex-main silex-dialog-hide silex-ui-full" id="gjs"></div></main><script src="js/main.js?611607"></script><script>silex.start()
11
11
  // From here silex.config is available and Silex is getting started</script></body></html>