@servicetitan/dte-unlayer 0.89.0 → 0.90.0
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/api-core.js +29 -22
- package/dist/api-core.js.map +1 -1
- package/dist/api-custom-tools.js +35 -42
- package/dist/api-custom-tools.js.map +1 -1
- package/dist/editor-core-source.d.ts +3 -3
- package/dist/editor-core-source.d.ts.map +1 -1
- package/dist/editor-core-source.js +4 -4
- package/dist/editor-core-source.js.map +1 -1
- package/dist/editor-core.js +2 -2
- package/dist/editor-core.js.map +1 -1
- package/dist/editor.js +73 -34
- package/dist/editor.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/loadScript.d.ts.map +1 -1
- package/dist/loadScript.js +7 -6
- package/dist/loadScript.js.map +1 -1
- package/dist/shared/const.js +2 -1
- package/dist/shared/const.js.map +1 -1
- package/dist/shared/edit-icon.js +1 -0
- package/dist/shared/edit-icon.js.map +1 -1
- package/dist/shared/fonts.js +24 -17
- package/dist/shared/fonts.js.map +1 -1
- package/dist/shared/schema.d.ts.map +1 -1
- package/dist/shared/schema.js +91 -49
- package/dist/shared/schema.js.map +1 -1
- package/dist/shared/tools.d.ts.map +1 -1
- package/dist/shared/tools.js +13 -6
- package/dist/shared/tools.js.map +1 -1
- package/dist/store.d.ts +5 -5
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +235 -315
- package/dist/store.js.map +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +120 -112
- package/dist/tools.js.map +1 -1
- package/dist/unlayer-interface.js +2 -1
- package/dist/unlayer-interface.js.map +1 -1
- package/dist/unlayer.d.ts +1 -0
- package/dist/unlayer.d.ts.map +1 -1
- package/dist/unlayer.js +115 -70
- package/dist/unlayer.js.map +1 -1
- package/package.json +1 -1
- package/src/editor-core-source.ts +3 -3
- package/src/unlayer.tsx +11 -1
package/src/unlayer.tsx
CHANGED
|
@@ -94,6 +94,15 @@ export const hideUnlayerBodyMenuItem = () => {
|
|
|
94
94
|
`;
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
+
export const hideMobileTabletPreview = () => `
|
|
98
|
+
[data-key="preview-tablet"],
|
|
99
|
+
[data-key="resolution"],
|
|
100
|
+
[data-key="dark-mode"],
|
|
101
|
+
[data-key="preview-desktop"],
|
|
102
|
+
[data-key="preview-mobile"] {
|
|
103
|
+
display: none !important;
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
97
106
|
export const hideUnlayerTools = () => {
|
|
98
107
|
return `
|
|
99
108
|
.blockbuilder-content-tools {
|
|
@@ -165,6 +174,7 @@ export const createUnlayerEditor = (
|
|
|
165
174
|
* @TODO this is workaround for hiding all tools from unlayer sidebar.
|
|
166
175
|
* Will be better to use unlayer functionality for this but it is not implemented yet
|
|
167
176
|
*/
|
|
177
|
+
hideMobileTabletPreview(),
|
|
168
178
|
hideAllTools ? hideUnlayerTools() : '',
|
|
169
179
|
hideContentControls ? hideUnlayerContentsControls() : '',
|
|
170
180
|
hideBodyMenuItem ? hideUnlayerBodyMenuItem() : '',
|
|
@@ -239,7 +249,7 @@ export const createUnlayerEditor = (
|
|
|
239
249
|
displayMode: 'web',
|
|
240
250
|
devices: ['desktop'],
|
|
241
251
|
features: {
|
|
242
|
-
preview:
|
|
252
|
+
preview: true,
|
|
243
253
|
userUploads: false,
|
|
244
254
|
stockImages: false,
|
|
245
255
|
},
|