@social-mail/social-mail-client 1.8.335 → 1.8.336
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/site-editor/tools/basic/BasicShapes.d.ts.map +1 -1
- package/dist/site-editor/tools/basic/BasicShapes.js +2 -1
- package/dist/site-editor/tools/basic/BasicShapes.js.map +1 -1
- package/dist/site-editor/tools/designs/Designs.d.ts.map +1 -1
- package/dist/site-editor/tools/designs/Designs.js +2 -1
- package/dist/site-editor/tools/designs/Designs.js.map +1 -1
- package/dist/site-editor/tools/section/ToolSection.d.ts +1 -0
- package/dist/site-editor/tools/section/ToolSection.d.ts.map +1 -1
- package/dist/site-editor/tools/section/ToolSection.js +13 -2
- package/dist/site-editor/tools/section/ToolSection.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +17 -4
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/site-editor/tools/basic/BasicShapes.tsx +2 -1
- package/src/site-editor/tools/designs/Designs.tsx +2 -1
- package/src/site-editor/tools/section/ToolSection.tsx +12 -3
package/package.json
CHANGED
|
@@ -19,6 +19,7 @@ export interface IToolItem {
|
|
|
19
19
|
preview: {
|
|
20
20
|
src: string,
|
|
21
21
|
href: string,
|
|
22
|
+
noCdn?: boolean;
|
|
22
23
|
},
|
|
23
24
|
template(): Promise<HTMLElement>,
|
|
24
25
|
files: IAppFile[];
|
|
@@ -118,14 +119,22 @@ export default abstract class ToolSection<T> extends AtomControl {
|
|
|
118
119
|
|
|
119
120
|
itemRenderer(x: IToolItem) {
|
|
120
121
|
|
|
121
|
-
const { title, preview: {
|
|
122
|
+
const { title, preview: { noCdn = false} } = x;
|
|
123
|
+
|
|
124
|
+
let { preview: { src, href }} = x;
|
|
122
125
|
|
|
123
126
|
let previewNode;
|
|
124
127
|
|
|
125
128
|
if(href) {
|
|
126
|
-
|
|
129
|
+
if (!noCdn) {
|
|
130
|
+
href = CDN.toCDNUrl(href);
|
|
131
|
+
}
|
|
132
|
+
previewNode = <tool-preview attr-href={href}></tool-preview>;
|
|
127
133
|
} else {
|
|
128
|
-
|
|
134
|
+
if (!noCdn) {
|
|
135
|
+
src = CDN.toCDNUrl(src);
|
|
136
|
+
}
|
|
137
|
+
previewNode = <tool-preview attr-src={src}></tool-preview>;
|
|
129
138
|
}
|
|
130
139
|
|
|
131
140
|
return <div data-click-event="tool-selected" title={title}>
|