@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.
- package/dist/editor-core-source.d.ts +2 -2
- package/dist/editor-core-source.d.ts.map +1 -1
- package/dist/editor-core-source.js +2 -2
- package/dist/editor-core-source.js.map +1 -1
- package/dist/shared/fonts.d.ts.map +1 -1
- package/dist/shared/fonts.js +5 -1
- package/dist/shared/fonts.js.map +1 -1
- package/dist/unlayer-interface.d.ts +1 -0
- package/dist/unlayer-interface.d.ts.map +1 -1
- package/dist/unlayer.d.ts +2 -1
- package/dist/unlayer.d.ts.map +1 -1
- package/dist/unlayer.js +9 -1
- package/dist/unlayer.js.map +1 -1
- package/package.json +1 -1
- package/src/editor-core-source.ts +2 -2
- package/src/shared/fonts.ts +6 -1
- package/src/unlayer-interface.tsx +1 -0
- package/src/unlayer.tsx +9 -0
package/src/shared/fonts.ts
CHANGED
|
@@ -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
|
];
|
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
|
/**
|