@servicetitan/dte-unlayer 0.58.0 → 0.60.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.
@@ -65,6 +65,11 @@ export const unlayerSupportedFonts = [
65
65
  },
66
66
  // custom DTE fonts
67
67
  { label: 'Sofia Pro', value: 'Sofia Pro' },
68
- { label: 'Nunito Sans', value: 'Nunito Sans' },
69
68
  { label: 'Montserrat', value: 'Montserrat' },
69
+
70
+ {
71
+ label: 'Nunito',
72
+ value: 'Nunito',
73
+ url: 'https://fonts.googleapis.com/css?family=Nunito',
74
+ },
70
75
  ];
@@ -69,4 +69,5 @@ export interface CreateUnlayerEditorProps {
69
69
  latest?: boolean;
70
70
  blocks?: boolean;
71
71
  hideAllTools?: boolean;
72
+ hideContentControls?: boolean;
72
73
  }
package/src/unlayer.tsx CHANGED
@@ -74,6 +74,13 @@ export const handlePreselectTool = (preselectToolSlug: string) => {
74
74
  `;
75
75
  };
76
76
 
77
+ export const hideUnlayerContentsControls = () => {
78
+ return `
79
+ .blockbuilder-layer-controls-contents {
80
+ display: none !important;
81
+ }
82
+ `;
83
+ };
77
84
  export const hideUnlayerTools = () => {
78
85
  return `
79
86
  .blockbuilder-content-tools {
@@ -115,6 +122,7 @@ export const createUnlayerEditor = (
115
122
  customCSS,
116
123
  customJS,
117
124
  hideAllTools,
125
+ hideContentControls,
118
126
  latest,
119
127
  mergeTags,
120
128
  noCoreTools,
@@ -140,6 +148,7 @@ export const createUnlayerEditor = (
140
148
  * Will be better to use unlayer functionality for this but it is not implemented yet
141
149
  */
142
150
  hideAllTools ? hideUnlayerTools() : '',
151
+ hideContentControls ? hideUnlayerContentsControls() : '',
143
152
  ].filter(css => !!css?.trim());
144
153
 
145
154
  /**