@zohodesk/dot 1.9.17 → 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,10 +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
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
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}`;
|
|
249
265
|
iframeHead.appendChild(customStyleTag);
|
|
250
266
|
}
|
|
251
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
|
|
293
|
-
var
|
|
294
|
-
customStyleTag.textContent = "".concat(customizedCSS
|
|
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.
|
|
3
|
+
"version": "1.9.18",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"LIBRARY"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
-
"clean": "
|
|
20
|
+
"clean": "cdt clean lib es coverage assets && mkdir assets",
|
|
21
21
|
"dubCheck": "npx z-node-plugins dub:check ../components/src ../internal/desk-components/src node_modules/@zohodesk/icons/es node_modules/@zohodesk/variables/es node_modules/@zohodesk/svg/es",
|
|
22
22
|
"build:lib": "cbt build:lib src,assets lib,assets",
|
|
23
23
|
"build:es": "cbt build:es src,assets es,assets",
|
|
@@ -25,8 +25,6 @@
|
|
|
25
25
|
"build": "npm run theme:validate && npm run build:lib && npm run build:es && npm run cssVariableConvert ",
|
|
26
26
|
"build:watch": "npm run build:es:watch --module:mode=dev -- -w",
|
|
27
27
|
"prepare": "npm run clean && npm run css:build",
|
|
28
|
-
"lint": "react-cli lint",
|
|
29
|
-
"lintAll": "react-cli lint ./src",
|
|
30
28
|
"lintAllFix": "npm run lintAll --eslint:fix=true",
|
|
31
29
|
"customTest": "node ./__testUtils__/runTest.js",
|
|
32
30
|
"test": "react-cli test",
|
|
@@ -36,9 +34,9 @@
|
|
|
36
34
|
"common_package_build": "cd ../common && npm run build && cd ../dot",
|
|
37
35
|
"prepublishOnly": "node ../prePublish.js && npm run downloadOnly && npm run css:review && npm run review:props",
|
|
38
36
|
"postpublish": "node ../postPublish.js",
|
|
39
|
-
"test-clean": "
|
|
37
|
+
"test-clean": "cdt clean ./coverage ./unittest ./es ./lib ./package-lock.json ./result.json",
|
|
40
38
|
"download": "npm run downloadOnly && cd ../ && npm run download",
|
|
41
|
-
"downloadOnly": "
|
|
39
|
+
"downloadOnly": "cdt clean ./node_modules ./package-lock.json && npm install --legacy-peer-deps",
|
|
42
40
|
"expublish": "node ../publish.js -- exp",
|
|
43
41
|
"css:lineheight:validate": "npx z-node-plugins lineheight:errorcheck ./src/",
|
|
44
42
|
"variable:addignore": "npx css-variable-migrator addignore ./src",
|
|
@@ -71,7 +69,8 @@
|
|
|
71
69
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
72
70
|
"@zohodesk/a11y": "2.3.9",
|
|
73
71
|
"@zohodesk/client_build_tool": "0.0.23",
|
|
74
|
-
"@zohodesk/
|
|
72
|
+
"@zohodesk-private/client_deployment_tool": "0.0.7",
|
|
73
|
+
"@zohodesk/components": "1.6.23",
|
|
75
74
|
"@zohodesk/dotkit": "1.0.10",
|
|
76
75
|
"@zohodesk/hooks": "2.0.8",
|
|
77
76
|
"@zohodesk/icons": "1.3.11",
|
|
@@ -90,7 +89,7 @@
|
|
|
90
89
|
"peerDependencies": {
|
|
91
90
|
"velocity-react": "1.4.3",
|
|
92
91
|
"@zohodesk/variables": "1.3.2",
|
|
93
|
-
"@zohodesk/components": "1.6.
|
|
92
|
+
"@zohodesk/components": "1.6.23",
|
|
94
93
|
"@zohodesk/icons": "1.3.11",
|
|
95
94
|
"@zohodesk/svg": "1.3.10",
|
|
96
95
|
"@zohodesk/virtualizer": "1.0.13",
|