@zohodesk/dot 1.9.17-exp-1 → 1.9.18

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/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  In this Library, we Provide Some Basic Components to Build Your Application
4
4
 
5
+ # 1.9.18
6
+
7
+ - Removed `ZohoPuvi` and `Roboto` `@font-face` CSS support from the components. Going forward, the required `@font-face` styles should be provided from the consuming application using the `customCSS` prop.
8
+
5
9
  # 1.9.17
6
10
 
7
11
  - Reordered className values to ensure customClass is always appended last to adopt CSS utility .
@@ -242,11 +242,26 @@ export default class TextEditor extends Component {
242
242
 
243
243
  let customStyleTag = document.createElement('style');
244
244
  customStyleTag.type = 'text/css';
245
- const customizedCSS = `pre {white-space: pre-wrap} ${customCSS}`;
246
- const fontCSS = `@font-face {font-family: 'ZohoPuvi';src: url('https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Regular.woff2') format('woff2');font-style: normal;font-weight: 400;text-rendering: optimizeLegibility;font-display: swap}@font-face {font-family: 'ZohoPuvi'; src: url('https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Semibold.woff2') format('woff2'); font-style: normal; font-weight: 700 900; text-rendering: optimizeLegibility; font-display: swap;}
247
- @font-face {font-family: Lato;src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');font-weight: 400;font-style: normal;font-display: swap}@font-face {font-family: Lato; src: url('https://static.zohocdn.com/webfonts/lato2bold/font.woff2') format('woff2'); font-weight: 700 900; font-style: normal; font-display: swap;}
248
- @font-face {font-family: 'Roboto';font-weight: 400;font-style: normal;font-display: swap;src: url('https://static.zohocdn.com/webfonts/robotoregular/font.woff2')}@font-face {font-family: 'Roboto'; font-weight: 700 900; font-style: normal; font-display: swap; src: url('https://static.zohocdn.com/webfonts/robotobold/font.woff2');}`;
249
- customStyleTag.textContent = `${customizedCSS} ${fontCSS}`;
245
+ const fontCSS = `
246
+ @font-face {
247
+ font-family: Lato;
248
+ src: url("https://static.zohocdn.com/webfonts/lato2regular/font.woff2")
249
+ format("woff2");
250
+ font-weight: 400;
251
+ font-style: normal;
252
+ font-display: swap;
253
+ }
254
+ @font-face {
255
+ font-family: Lato;
256
+ src: url("https://static.zohocdn.com/webfonts/lato2bold/font.woff2")
257
+ format("woff2");
258
+ font-weight: 700 900;
259
+ font-style: normal;
260
+ font-display: swap;
261
+ }
262
+ `;
263
+ const customizedCSS = `pre {white-space: pre-wrap} ${fontCSS} ${customCSS}`;
264
+ customStyleTag.textContent = `${customizedCSS}`;
250
265
  iframeHead.appendChild(customStyleTag);
251
266
  }
252
267
  }
@@ -289,9 +289,9 @@ var TextEditor = /*#__PURE__*/function (_Component) {
289
289
 
290
290
  var customStyleTag = document.createElement('style');
291
291
  customStyleTag.type = 'text/css';
292
- var customizedCSS = "pre {white-space: pre-wrap} ".concat(customCSS);
293
- var fontCSS = "@font-face {font-family: 'ZohoPuvi';src: url('https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Regular.woff2') format('woff2');font-style: normal;font-weight: 400;text-rendering: optimizeLegibility;font-display: swap}@font-face {font-family: 'ZohoPuvi'; src: url('https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Semibold.woff2') format('woff2'); font-style: normal; font-weight: 700 900; text-rendering: optimizeLegibility; font-display: swap;}\n @font-face {font-family: Lato;src: url('https://static.zohocdn.com/webfonts/lato2regular/font.woff2') format('woff2');font-weight: 400;font-style: normal;font-display: swap}@font-face {font-family: Lato; src: url('https://static.zohocdn.com/webfonts/lato2bold/font.woff2') format('woff2'); font-weight: 700 900; font-style: normal; font-display: swap;}\n @font-face {font-family: 'Roboto';font-weight: 400;font-style: normal;font-display: swap;src: url('https://static.zohocdn.com/webfonts/robotoregular/font.woff2')}@font-face {font-family: 'Roboto'; font-weight: 700 900; font-style: normal; font-display: swap; src: url('https://static.zohocdn.com/webfonts/robotobold/font.woff2');}";
294
- customStyleTag.textContent = "".concat(customizedCSS, " ").concat(fontCSS);
292
+ var fontCSS = "\n @font-face {\n font-family: Lato;\n src: url(\"https://static.zohocdn.com/webfonts/lato2regular/font.woff2\")\n format(\"woff2\");\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n @font-face {\n font-family: Lato;\n src: url(\"https://static.zohocdn.com/webfonts/lato2bold/font.woff2\")\n format(\"woff2\");\n font-weight: 700 900;\n font-style: normal;\n font-display: swap;\n }\n ";
293
+ var customizedCSS = "pre {white-space: pre-wrap} ".concat(fontCSS, " ").concat(customCSS);
294
+ customStyleTag.textContent = "".concat(customizedCSS);
295
295
  iframeHead.appendChild(customStyleTag);
296
296
  }
297
297
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.9.17-exp-1",
3
+ "version": "1.9.18",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -70,7 +70,7 @@
70
70
  "@zohodesk/a11y": "2.3.9",
71
71
  "@zohodesk/client_build_tool": "0.0.23",
72
72
  "@zohodesk-private/client_deployment_tool": "0.0.7",
73
- "@zohodesk/components": "1.6.22",
73
+ "@zohodesk/components": "1.6.23",
74
74
  "@zohodesk/dotkit": "1.0.10",
75
75
  "@zohodesk/hooks": "2.0.8",
76
76
  "@zohodesk/icons": "1.3.11",
@@ -89,7 +89,7 @@
89
89
  "peerDependencies": {
90
90
  "velocity-react": "1.4.3",
91
91
  "@zohodesk/variables": "1.3.2",
92
- "@zohodesk/components": "1.6.22",
92
+ "@zohodesk/components": "1.6.23",
93
93
  "@zohodesk/icons": "1.3.11",
94
94
  "@zohodesk/svg": "1.3.10",
95
95
  "@zohodesk/virtualizer": "1.0.13",