@social-mail/social-mail-client 1.2.549 → 1.2.550
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/admin/AdminAppIndex.pack.js +10 -6
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js +10 -6
- package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +10 -6
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/editor/WebSitePageEditor.tsx +10 -8
package/package.json
CHANGED
|
@@ -180,16 +180,18 @@ export default class WebSitePageEditor extends HtmlPageEditor {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
pending.push(async () => {
|
|
183
|
-
|
|
183
|
+
let stylerFile = await this.cloudFileService.children(this.folder.appFileID, "styles/styler.css")
|
|
184
184
|
.firstOrDefault();
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
if (!stylerFile) {
|
|
186
|
+
stylerFile = await this.createFile("styler.css", StylerSet.instance.toString());
|
|
187
|
+
} else {
|
|
188
|
+
const stylerContent = await FetchBuilder.get(stylerFile.downloadUrl).responseAsText();
|
|
189
|
+
const newStyle = StylerSet.instance.toString();
|
|
190
|
+
if (stylerContent !== newStyle) {
|
|
191
|
+
stylerFile = await this.createFile("styler.css", newStyle);
|
|
192
|
+
}
|
|
192
193
|
}
|
|
194
|
+
await this.addStyleSheet(doc, stylerFile, "styles/styler.css");
|
|
193
195
|
});
|
|
194
196
|
|
|
195
197
|
pending.push(async () => {
|