@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.
Files changed (45) hide show
  1. package/dist/api-core.js +29 -22
  2. package/dist/api-core.js.map +1 -1
  3. package/dist/api-custom-tools.js +35 -42
  4. package/dist/api-custom-tools.js.map +1 -1
  5. package/dist/editor-core-source.d.ts +3 -3
  6. package/dist/editor-core-source.d.ts.map +1 -1
  7. package/dist/editor-core-source.js +4 -4
  8. package/dist/editor-core-source.js.map +1 -1
  9. package/dist/editor-core.js +2 -2
  10. package/dist/editor-core.js.map +1 -1
  11. package/dist/editor.js +73 -34
  12. package/dist/editor.js.map +1 -1
  13. package/dist/index.js +2 -0
  14. package/dist/index.js.map +1 -1
  15. package/dist/loadScript.d.ts.map +1 -1
  16. package/dist/loadScript.js +7 -6
  17. package/dist/loadScript.js.map +1 -1
  18. package/dist/shared/const.js +2 -1
  19. package/dist/shared/const.js.map +1 -1
  20. package/dist/shared/edit-icon.js +1 -0
  21. package/dist/shared/edit-icon.js.map +1 -1
  22. package/dist/shared/fonts.js +24 -17
  23. package/dist/shared/fonts.js.map +1 -1
  24. package/dist/shared/schema.d.ts.map +1 -1
  25. package/dist/shared/schema.js +91 -49
  26. package/dist/shared/schema.js.map +1 -1
  27. package/dist/shared/tools.d.ts.map +1 -1
  28. package/dist/shared/tools.js +13 -6
  29. package/dist/shared/tools.js.map +1 -1
  30. package/dist/store.d.ts +5 -5
  31. package/dist/store.d.ts.map +1 -1
  32. package/dist/store.js +235 -315
  33. package/dist/store.js.map +1 -1
  34. package/dist/tools.d.ts.map +1 -1
  35. package/dist/tools.js +120 -112
  36. package/dist/tools.js.map +1 -1
  37. package/dist/unlayer-interface.js +2 -1
  38. package/dist/unlayer-interface.js.map +1 -1
  39. package/dist/unlayer.d.ts +1 -0
  40. package/dist/unlayer.d.ts.map +1 -1
  41. package/dist/unlayer.js +115 -70
  42. package/dist/unlayer.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/editor-core-source.ts +3 -3
  45. 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: false,
252
+ preview: true,
243
253
  userUploads: false,
244
254
  stockImages: false,
245
255
  },