@zohodesk/svg 1.0.0-temp.57 → 1.0.0-temp.59
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 +71 -1
- package/assets/Appearance/dark/mode/SVG_DarkMode.module.css +25 -23
- package/assets/Appearance/dark/themes/blue/blue_SVGTheme_DarkTheme.module.css +10 -8
- package/assets/Appearance/dark/themes/green/green_SVGTheme_DarkTheme.module.css +9 -7
- package/assets/Appearance/dark/themes/orange/orange_SVGTheme_DarkTheme.module.css +9 -7
- package/assets/Appearance/dark/themes/red/red_SVGTheme_DarkTheme.module.css +9 -7
- package/assets/Appearance/dark/themes/yellow/yellow_SVGTheme_DarkTheme.module.css +9 -7
- package/assets/Appearance/light/mode/SVG_LightMode.module.css +25 -23
- package/assets/Appearance/light/themes/blue/blue_SVGTheme_LightTheme.module.css +9 -7
- package/assets/Appearance/light/themes/green/green_SVGTheme_LightTheme.module.css +9 -7
- package/assets/Appearance/light/themes/orange/orange_SVGTheme_LightTheme.module.css +9 -7
- package/assets/Appearance/light/themes/red/red_SVGTheme_LightTheme.module.css +9 -7
- package/assets/Appearance/light/themes/yellow/yellow_SVGTheme_LightTheme.module.css +9 -7
- package/assets/Appearance/pureDark/mode/SVG_PureDarkMode.module.css +25 -23
- package/assets/Appearance/pureDark/themes/blue/blue_SVGTheme_PureDarkTheme.module.css +10 -8
- package/assets/Appearance/pureDark/themes/green/green_SVGTheme_PureDarkTheme.module.css +9 -7
- package/assets/Appearance/pureDark/themes/orange/orange_SVGTheme_PureDarkTheme.module.css +9 -7
- package/assets/Appearance/pureDark/themes/red/red_SVGTheme_PureDarkTheme.module.css +9 -7
- package/assets/Appearance/pureDark/themes/yellow/yellow_SVGTheme_PureDarkTheme.module.css +9 -7
- package/es/Loader/Loader.js +6 -17
- package/es/Loader/LoaderSvg.module.css +30 -0
- package/es/Loader/__tests__/__snapshots__/Loader.spec.js.snap +3 -9
- package/es/SVG/SVG.module.css +2 -0
- package/es/css/EmptyStateVariables.module.css +3 -1
- package/es/svg_layer.module.css +1 -0
- package/es/v1/Loader/Loader.js +6 -17
- package/es/v1/Loader/V1_LoaderSvg.module.css +30 -0
- package/es/v1/emptystate/version3/AgentRoom.js +90 -0
- package/es/v1/emptystate/version3/BuildExtension.js +241 -0
- package/es/v1/emptystate/version3/BulkActionLog.js +75 -0
- package/es/v1/emptystate/version3/EmptyAPIDashboard.js +95 -0
- package/es/v1/emptystate/version3/EmptyDepartment.js +55 -29
- package/es/v1/emptystate/version3/{EmptyDolphin.js → EmptyPenguin.js} +5 -5
- package/es/v1/emptystate/version3/EmptyRecycleBin.js +4 -6
- package/es/v1/emptystate/version3/EmptyScheduledReplies.js +84 -0
- package/es/v1/emptystate/version3/EmptyStarredDashboards.js +85 -0
- package/es/v1/emptystate/version3/EmptyStarredReports.js +82 -0
- package/es/v1/emptystate/version3/EmptySync.js +68 -0
- package/es/v1/emptystate/version3/Export.js +70 -35
- package/es/v1/emptystate/version3/FieldList.js +103 -0
- package/es/v1/emptystate/version3/FieldPermission.js +104 -0
- package/es/v1/emptystate/version3/Import.js +55 -27
- package/es/v1/emptystate/version3/MobileSdk.js +72 -0
- package/es/v1/emptystate/version3/MultiLayout.js +96 -0
- package/es/v1/emptystate/version3/PortalName.js +74 -0
- package/es/v1/emptystate/version3/Preference.js +71 -0
- package/es/v1/emptystate/version3/RebrandingLogo.js +62 -0
- package/es/v1/emptystate/version3/SuccessDomain.js +137 -0
- package/es/v1/emptystate/version3/Webhook.js +96 -0
- package/es/v1/emptystate/version3/ZiaAgent.js +66 -0
- package/lib/Loader/Loader.js +8 -21
- package/lib/Loader/LoaderSvg.module.css +30 -0
- package/lib/Loader/__tests__/__snapshots__/Loader.spec.js.snap +3 -9
- package/lib/SVG/SVG.module.css +2 -0
- package/lib/css/EmptyStateVariables.module.css +3 -1
- package/lib/svg_layer.module.css +1 -0
- package/lib/v1/Loader/Loader.js +7 -17
- package/lib/v1/Loader/V1_LoaderSvg.module.css +30 -0
- package/lib/v1/emptystate/version3/AgentRoom.js +111 -0
- package/lib/v1/emptystate/version3/BuildExtension.js +262 -0
- package/lib/v1/emptystate/version3/BulkActionLog.js +96 -0
- package/lib/v1/emptystate/version3/EmptyAPIDashboard.js +116 -0
- package/lib/v1/emptystate/version3/EmptyDepartment.js +55 -29
- package/lib/v1/emptystate/version3/{EmptyDolphin.js → EmptyPenguin.js} +6 -6
- package/lib/v1/emptystate/version3/EmptyRecycleBin.js +4 -6
- package/lib/v1/emptystate/version3/EmptyScheduledReplies.js +105 -0
- package/lib/v1/emptystate/version3/EmptyStarredDashboards.js +106 -0
- package/lib/v1/emptystate/version3/EmptyStarredReports.js +103 -0
- package/lib/v1/emptystate/version3/EmptySync.js +89 -0
- package/lib/v1/emptystate/version3/Export.js +65 -28
- package/lib/v1/emptystate/version3/FieldList.js +124 -0
- package/lib/v1/emptystate/version3/FieldPermission.js +125 -0
- package/lib/v1/emptystate/version3/Import.js +57 -27
- package/lib/v1/emptystate/version3/MobileSdk.js +93 -0
- package/lib/v1/emptystate/version3/MultiLayout.js +117 -0
- package/lib/v1/emptystate/version3/PortalName.js +95 -0
- package/lib/v1/emptystate/version3/Preference.js +92 -0
- package/lib/v1/emptystate/version3/RebrandingLogo.js +83 -0
- package/lib/v1/emptystate/version3/SuccessDomain.js +158 -0
- package/lib/v1/emptystate/version3/Webhook.js +117 -0
- package/lib/v1/emptystate/version3/ZiaAgent.js +87 -0
- package/package.json +26 -11
- package/css_error.log +0 -0
- package/deprecated/june_2022/ErrorUnauthorizedLogin.js +0 -127
- package/es/SVG/SvgLoader.js +0 -28
- package/es/v1/emptystate/version3/EmptyAPIs.js +0 -61
- package/install.md +0 -11
- package/lib/SVG/SvgLoader.js +0 -66
- package/lib/v1/emptystate/version3/EmptyAPIs.js +0 -82
- package/postPublish.js +0 -8
- package/prePublish.js +0 -70
- package/react-cli.config.js +0 -20
- package/result.json +0 -1
- package/unittest/index.html +0 -37
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = ZiaAgent;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = require("../props/propTypes");
|
|
11
|
+
|
|
12
|
+
var _defaultProps = require("../props/defaultProps");
|
|
13
|
+
|
|
14
|
+
var _SVG = _interopRequireDefault(require("../../SVG/SVG"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
|
|
22
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
|
|
24
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
+
|
|
26
|
+
function ZiaAgent(props) {
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement(_SVG["default"], _extends({
|
|
28
|
+
viewBox: "0 0 148 148",
|
|
29
|
+
name: "ziaAgent",
|
|
30
|
+
styleName: {
|
|
31
|
+
fill: 'none'
|
|
32
|
+
}
|
|
33
|
+
}, props), /*#__PURE__*/_react["default"].createElement("g", {
|
|
34
|
+
clipPath: "url(#a)"
|
|
35
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
36
|
+
fill: "var(--zd_emptysvg_primary_fill)",
|
|
37
|
+
d: "M59.348 41.588S93.906 18.5 111.37 25.456c17.464 6.956 29.378 65.342-19.166 91.538C43.66 143.19 21.608 86.21 21.386 76.146c-.148-9.842 0-33.078 37.962-34.558Z",
|
|
38
|
+
opacity: 0.1
|
|
39
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
40
|
+
fill: "var(--zd_emptysvg_plus)",
|
|
41
|
+
d: "M10.36 35.002s-.074 0 0 0c-.222 0-.37-.222-.37-.37l.296-5.55c0-.222.148-.37.37-.37s.37.148.37.37l-.296 5.55c-.074.222-.222.37-.37.37Z"
|
|
42
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
43
|
+
fill: "var(--zd_emptysvg_plus)",
|
|
44
|
+
d: "m13.172 32.412-5.476-.296c-.222 0-.37-.222-.37-.37 0-.222.222-.37.37-.37l5.402.296c.222 0 .37.222.37.37.074.222-.074.37-.296.37Z"
|
|
45
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
46
|
+
fill: "var(--zd_emptysvg_medium_circle)",
|
|
47
|
+
d: "M126.688 15.392a3.474 3.474 0 0 0-3.478 3.478 3.474 3.474 0 0 0 3.478 3.478 3.474 3.474 0 0 0 3.478-3.478c0-1.924-1.628-3.478-3.478-3.478Zm0 6.29c-1.48 0-2.738-1.258-2.738-2.812 0-1.554 1.258-2.812 2.738-2.812s2.738 1.258 2.738 2.812c0 1.554-1.258 2.812-2.738 2.812ZM92.056 128.094a2.495 2.495 0 0 0-2.516 2.516 2.495 2.495 0 0 0 2.516 2.516 2.495 2.495 0 0 0 2.516-2.516c0-1.332-1.11-2.516-2.516-2.516Zm0 4.366c-.962 0-1.776-.814-1.776-1.85s.814-1.85 1.776-1.85c.962 0 1.776.814 1.776 1.85s-.814 1.85-1.776 1.85Z"
|
|
48
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
49
|
+
fill: "var(--zd_emptysvg_tiny_circle)",
|
|
50
|
+
d: "M59.866 14.8a2.226 2.226 0 0 0-2.22 2.22c0 1.184.962 2.22 2.22 2.22a2.226 2.226 0 0 0 2.22-2.22c0-1.184-.962-2.22-2.22-2.22Zm0 3.774c-.814 0-1.48-.666-1.48-1.48s.666-1.48 1.48-1.48 1.48.666 1.48 1.48-.666 1.48-1.48 1.48ZM134.939 111.999a.358.358 0 0 0-.518 0l-1.776 1.628-1.554-1.776a.358.358 0 0 0-.518 0 .358.358 0 0 0 0 .518l1.554 1.776-1.776 1.628a.358.358 0 0 0 0 .518c.074.074.148.148.296.148.074 0 .148 0 .222-.074l1.776-1.628 1.554 1.776c.074.074.148.148.296.148.074 0 .148 0 .222-.074a.358.358 0 0 0 0-.518l-1.554-1.776 1.776-1.628c.148-.222.148-.518 0-.666Z"
|
|
51
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
52
|
+
fill: "var(--zd_emptysvg_primary_fill)",
|
|
53
|
+
d: "M85.692 48.1S58.09 29.674 44.104 35.224c-13.986 5.55-23.532 52.244 15.318 73.186 38.85 20.942 56.462-24.642 56.61-32.708.148-7.844 0-26.492-30.34-27.602Z",
|
|
54
|
+
opacity: 0.1
|
|
55
|
+
})), /*#__PURE__*/_react["default"].createElement("path", {
|
|
56
|
+
stroke: "var(--zd_emptysvg_primary_stroke)",
|
|
57
|
+
strokeLinecap: "round",
|
|
58
|
+
strokeLinejoin: "round",
|
|
59
|
+
strokeWidth: 1.012,
|
|
60
|
+
d: "M38.175 127.437s15.017-10.578 15.446-11.15c.43-.572.573-11.579.573-11.579s.286 11.436 1.86 11.293c1.575-.143 11.873 12.295 13.59 12.581 1.717.286-6.866-7.435-7.153-8.576-.286-1.144-1.288-9.147-.799-9.332.489-.185 9.341 6.663 9.341 6.663s4.161.29 4.423 0c.262-.289.43-13.494 0-13.836-.43-.342-6.776-.213-7.163-.213-.388 0-1.501-2.1-1.93-2.271-.43-.171-4.846.087-5.146.087-.3 0-.08 8.139-.08 8.139-9.355-4.856-10.797-21.128-10.797-21.128 6.479 2.52 10.277 11.6 10.277 11.6-1.327-12.137-9.827-13.128-10.909-14.297-1.079-1.168-2.52-14.206-2.52-14.206s2.43 1.978 4.587 0c2.157-1.978 4.587-22.656-1.26-22.838-5.848-.18-3.778 13.038-3.778 13.038.831 8.614 8.368 10.428 8.546 2.16.181-8.272-1.351-16.276-3.777-17.894-2.43-1.62-3.959.718-3.959.718.091-5.753 2.643-10.368 2.643-10.368 6.322-12.958 24.662-9.804 24.662-9.804l.87 72.909s1.63-1.734 3.221-1.734c1.592 0 1.055 1.64.185 1.605-.869-.035.97-.168 1.875-.367.904-.198 1.822-3.014-1.162-5.885-2.989-2.871-1.78-14.182-1.323-15.79.46-1.609 4.768-5.167 8.618-6.66 3.85-1.494 7.18-2.181 8.043-1.84.862.343 2.241 2.813 1.895 2.813-.345 0-4.367-1.78-9.19.115-4.825 1.894-5.342 2.756-5.342 2.756s1.435 4.305 7.01 4.19c5.571-.115 5.34-3.328 5.34-3.328s-3.675-2.927-7.927-.576c0 0 0 2.67 2.528 2.798 2.527.13 3.218-2.683 3.218-2.683s4.137.89 4.94 2.683c.802 1.793-.803 5.066 0 4.379.802-.688 4.597-11.384.743-17.308-3.854-5.928-5.93-5.335-5.732-9.78.2-4.444-7.805-10.863-13.045-7.406-5.236 3.457-4.35-17.283-2.866-20.542 1.484-3.258 27.179.234 29.644 11.946 2.468 11.712-6.273 6.918-6.273 5.85 0-1.067 5.861-4.368 7.568-.959 1.707 3.409 3.658 4.748 0 17.032-3.658 12.284-2.349 13.31-2.349 13.31s-4.957 1.818-4.957 3.245c0 1.426 4.21-2.031 5.051-.908.841 1.12.094 17.197-4.583 18.037-4.675.841.562-14.485 1.497-14.3.936.188-.747 11.869-3.274 15.794-2.524 3.924-11.914 20.189-21.769 22.22 0 0 5.303-1.734 14.672-9.357l.646 9.657 9.373 9.688"
|
|
61
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
62
|
+
stroke: "var(--zd_emptysvg_primary_stroke)",
|
|
63
|
+
strokeLinecap: "round",
|
|
64
|
+
strokeLinejoin: "round",
|
|
65
|
+
strokeWidth: 1.012,
|
|
66
|
+
d: "M54.515 74.633s.066 1.874.534 2.143c.468.268 13.656.335 14.127 0 .471-.335.401-1.807.401-1.807l-15.062-.335ZM52.97 50.328s-3.271-1.399-3.39 1.961c-.118 3.36-.698 17.964 3.718 14.639M70.702 108.552l1.026 1.302h3.99"
|
|
67
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
68
|
+
stroke: "var(--zd_emptysvg_primary_stroke)",
|
|
69
|
+
strokeLinecap: "round",
|
|
70
|
+
strokeLinejoin: "round",
|
|
71
|
+
strokeWidth: 1.012,
|
|
72
|
+
d: "M75.695 106.571s3.303.475 4.249 1.423c0 0-1.303.311-1.833 1.211-.789 1.34-2.391 1.211-2.391 1.211"
|
|
73
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
74
|
+
fill: "var(--zd_emptysvg_secondary_fill)",
|
|
75
|
+
d: "m73.158 70.744-16.434 1.264c-.404.844-.815.591-1.075.082l1.075-.082c.432-.905.857-3.068 1.08-7.522.538-10.768-2.964-19.651-4.445-23.016-1.482-3.365 17.779-18.844 17.779-9.422 0 7.537 1.346 28.938 2.02 38.696ZM84.853 82.325c-6.789-.216-2.829 7.806 0 11.844 0 2.961-3.637 8.479-3.098 12.248.538 3.769 6.869-1.48 9.293-2.019 2.425-.538 4.984-13.46 5.522-16.555.54-3.096-3.232-5.25-11.717-5.518Z"
|
|
76
|
+
}), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
|
|
77
|
+
id: "a"
|
|
78
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
79
|
+
fill: "#fff",
|
|
80
|
+
d: "M7.4 14.8h133.2v118.4H7.4z"
|
|
81
|
+
}))));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
ZiaAgent.propTypes = _propTypes.EmptyStateProps;
|
|
85
|
+
ZiaAgent.defaultProps = _objectSpread(_objectSpread({}, _defaultProps.EmptyStateDefaultProps), {}, {
|
|
86
|
+
dataId: 'ziaAgent'
|
|
87
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/svg",
|
|
3
|
-
"version": "1.0.0-temp.
|
|
3
|
+
"version": "1.0.0-temp.59",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"jsnext:main": "es/index.js",
|
|
@@ -25,36 +25,51 @@
|
|
|
25
25
|
"build:local": " npm run build && npm run rtl && npm run cssVariableConvert",
|
|
26
26
|
"build:watch": "npm run clean && npm run build:variables && npm run build && npm run build:es --module:mode=dev -- -w",
|
|
27
27
|
"rtl:watch": "react-cli rtl ./src ./es -w",
|
|
28
|
-
"prepare": "npm run init &&
|
|
28
|
+
"prepare": "npm run init && npm run css:build ",
|
|
29
29
|
"init": "npm run clean && npm run build:variables",
|
|
30
30
|
"build:variables": "react-cli clean ./assets && node ./preprocess/index",
|
|
31
31
|
"rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
|
|
32
32
|
"lint": "react-cli lint",
|
|
33
33
|
"common_package_build": "cd ../common && npm run build && cd ../svg",
|
|
34
34
|
"docs": "react-cli docs",
|
|
35
|
-
"prepublishOnly": "node prePublish.js && npm run
|
|
35
|
+
"prepublishOnly": "node prePublish.js && npm run download",
|
|
36
36
|
"postpublish": "node postPublish.js",
|
|
37
|
-
"download": "react-cli clean ./node_modules ./package-lock.json && npm install",
|
|
37
|
+
"download": "react-cli clean ./node_modules ./package-lock.json && npm install && cd ../ && npm run download",
|
|
38
38
|
"test": "react-cli test",
|
|
39
|
-
"
|
|
39
|
+
"test-clean": "react-cli clean coverage",
|
|
40
|
+
"svg-to-reactjs": "node ./svg-to-reactjs/index.js",
|
|
41
|
+
"snap-update": "npm run test-clean && npm run test -- -u",
|
|
40
42
|
"expublish": "npm publish --tag experimental-version",
|
|
41
43
|
"cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
|
|
42
44
|
"variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
|
|
43
45
|
"variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
|
|
44
|
-
"variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json"
|
|
46
|
+
"variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
|
|
47
|
+
"css:layer_config_generate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/scan_css_generate_json.js ./src ./assets css_layer_config.json",
|
|
48
|
+
"css:layer_wrap_es": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets --skip-existing-layer",
|
|
49
|
+
"css:layer_wrap_lib": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./lib ./assets css_layer_config.json --rewrite=src=lib --rewrite=assets=assets --skip-existing-layer",
|
|
50
|
+
"css:layer_generate_order": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/generate_layer_order.js css_layer_config.json ./src/svg_layer.module.css",
|
|
51
|
+
"css:layer_config_validate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/validate.js css_layer_config.json ./src/ ./assets",
|
|
52
|
+
"css:build": "npm run css:layer_config_validate && npm run css:layer_generate_order && npm run build && npm run rtl && npm run cssVariableConvert && npm run css:layer_wrap_es && npm run css:layer_wrap_lib",
|
|
53
|
+
"css:layer_remove": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/remove_layer.js ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets",
|
|
54
|
+
"customTest": "node ./__testUtils__/runTest.js"
|
|
45
55
|
},
|
|
46
56
|
"dependencies": {},
|
|
47
57
|
"devDependencies": {
|
|
48
|
-
"@zohodesk/variables": "1.
|
|
49
|
-
"@zohodesk-private/color-variable-preprocessor": "1.
|
|
58
|
+
"@zohodesk/variables": "1.1.0",
|
|
59
|
+
"@zohodesk-private/color-variable-preprocessor": "1.0.0-temp-13",
|
|
50
60
|
"@svgr/cli": "6.2.1",
|
|
51
|
-
"@zohodesk-private/css-variable-migrator": "
|
|
61
|
+
"@zohodesk-private/css-variable-migrator": "1.0.9",
|
|
52
62
|
"@testing-library/jest-dom": "^5.11.9",
|
|
53
63
|
"@testing-library/react": "^11.2.5",
|
|
54
64
|
"@testing-library/react-hooks": "^7.0.2",
|
|
55
|
-
"@testing-library/user-event": "^13.0.10"
|
|
65
|
+
"@testing-library/user-event": "^13.0.10",
|
|
66
|
+
"@svgr/core": "6.2.1",
|
|
67
|
+
"@svgr/plugin-prettier": "8.1.0",
|
|
68
|
+
"postcss": "^8.5.6",
|
|
69
|
+
"@zohodesk-private/node-plugins": "1.1.13",
|
|
70
|
+
"@zohodesk/react-cli": "1.1.27"
|
|
56
71
|
},
|
|
57
72
|
"peerDependencies": {
|
|
58
|
-
"@zohodesk/variables": "1.
|
|
73
|
+
"@zohodesk/variables": "1.1.0"
|
|
59
74
|
}
|
|
60
75
|
}
|
package/css_error.log
DELETED
|
File without changes
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import SVG from './SVG';
|
|
4
|
-
|
|
5
|
-
export default class UnauthorizedLogin extends React.Component {
|
|
6
|
-
render() {
|
|
7
|
-
return (
|
|
8
|
-
<SVG
|
|
9
|
-
viewBox='0 -40 500 500'
|
|
10
|
-
name='UnauthorizedLogin'
|
|
11
|
-
{...this.props}
|
|
12
|
-
>
|
|
13
|
-
<defs>
|
|
14
|
-
<style>
|
|
15
|
-
{
|
|
16
|
-
".ErrorUnauthorizedLogin_svg__cls-1,.ErrorUnauthorizedLogin_svg__cls-2{fill:var(--zd_emptysvg_primary_fill)}.ErrorUnauthorizedLogin_svg__cls-1{opacity:.05}.ErrorUnauthorizedLogin_svg__cls-2{opacity:.2}.ErrorUnauthorizedLogin_svg__cls-10,.ErrorUnauthorizedLogin_svg__cls-8{fill:none;stroke-linecap:round;stroke-linejoin:round}.ErrorUnauthorizedLogin_svg__cls-10{stroke:var(--zd_emptysvg_cross)}.ErrorUnauthorizedLogin_svg__cls-8{stroke:var(--zd_emptysvg_plus)}"
|
|
17
|
-
}
|
|
18
|
-
</style>
|
|
19
|
-
</defs>
|
|
20
|
-
<path
|
|
21
|
-
className="ErrorUnauthorizedLogin_svg__cls-1"
|
|
22
|
-
d="M135.58 156.52s33.78-54.78 54.78-11 32.86 82.17 94 33.78 86.73-55.69 109.55-25.56S438.22 440.44 215 387.49c0 0-176.65-66.64-79.42-230.97z"
|
|
23
|
-
/>
|
|
24
|
-
<circle
|
|
25
|
-
className="ErrorUnauthorizedLogin_svg__cls-1"
|
|
26
|
-
cx={92.57}
|
|
27
|
-
cy={364.54}
|
|
28
|
-
r={25.39}
|
|
29
|
-
/>
|
|
30
|
-
<circle
|
|
31
|
-
className="ErrorUnauthorizedLogin_svg__cls-1"
|
|
32
|
-
cx={75.88}
|
|
33
|
-
cy={120.98}
|
|
34
|
-
r={25.39}
|
|
35
|
-
/>
|
|
36
|
-
<circle
|
|
37
|
-
className="ErrorUnauthorizedLogin_svg__cls-1"
|
|
38
|
-
cx={293.35}
|
|
39
|
-
cy={73.62}
|
|
40
|
-
r={12.74}
|
|
41
|
-
/>
|
|
42
|
-
<circle
|
|
43
|
-
className="ErrorUnauthorizedLogin_svg__cls-1"
|
|
44
|
-
cx={141.83}
|
|
45
|
-
cy={409.84}
|
|
46
|
-
r={12.74}
|
|
47
|
-
/>
|
|
48
|
-
<circle
|
|
49
|
-
className="ErrorUnauthorizedLogin_svg__cls-1"
|
|
50
|
-
cx={376.13}
|
|
51
|
-
cy={397.82}
|
|
52
|
-
r={12.74}
|
|
53
|
-
/>
|
|
54
|
-
<path
|
|
55
|
-
className="ErrorUnauthorizedLogin_svg__cls-2"
|
|
56
|
-
d="M220.15 211.69s-4.35-10 3-21.2c0 0 20.88 28.8 57.64 2.26 0 0 8.15 1.69 4 22.05 0 0 15.34-15.48 6.28-32.53 0 0 2.56-7.53-3.29-16.29s-13.24-19-28-20.74c0 0 4.07-2.48 3-4.5s-2.26-4.94-8.37-6.24-10.64 6.11-7.13 10.68c0 0-18.13.71-29.39 22.64A33.72 33.72 0 00215 176c-2 8.74-5.24 29 5.15 35.69zM201.67 235.61s-5.82 38.09 46 37.56 58.71-31.74 58.71-36.5-59.77-3.7-63.48 13.25-29.62-12.17-33.85-14.81a6 6 0 00-7.38.5z"
|
|
57
|
-
/>
|
|
58
|
-
<path
|
|
59
|
-
d="M196.6 377.4c-2 0-57.79 11-52.29 0s53.69-15.82 52.29-13.76-44.72 11.69-45.41-3.45 12.39-89.42 25.46-112.13c0 0-8.25 0-10.31 4.14s-10 25.67-6.2 28.88S198 328.56 269.52 320.3v-35.78H240s-2 46.79 1.37 48.84 32.33.7 32.33.7v-15.92s64.09-11 76.61-35.53c0 0-3.06 1-2 8.15s10.72 45.16 9.71 71c0 0-30.14 12.52-33.21 11.5s32.51-14.19 35.65-9 7.31 10.66 5 12.12-49.15 6.35-50.46-1.38-1.67-14.84-6.26-18.19-30.85-21.19-30.85-21.19l-4.08-52.84s50.6-11.2 62.13-29.39c0 0-12.65-50.23-10-47.63s2.61 42.45 5.58 42.05 24.93 4.82 25.67 12.22c0 0 6.7-3 7.07-4.07s-12.65 8.14-13 12.65 13-3 14.86-1.5 5.2 8.57 0 9.68-10.76-1.49-11.51 1.12 10 11.9 14.26 11.9 17-.37 18.83-9.67-8.94-5.22-8.94-5.22 8.24 1.5 9.17-3.72-4.69-19.72-8.77-21.95-5.9.52-5.9.52 5.7-1.81 5.82-2.42-27-41-54.66-55.46c0 0-23.17-12.76-30.55-11.63s10.73 22.6-9.05 34.46c0 0 4.52-18.07-4-22 0 0-29.95 27.13-57.64-2.26 0 0-7.91 10.74-2.83 19.78 0 0 19.35 33.15 61.57 5.32 0 0 10.64-7.48 11.39-17.32s-4.49-12.69-1.12-20.43c0 0-5.78-28.52-30.93-32.36s-9.22-11.29-6.83-11 8.81 3.06 8.49 7.67-9.84 3.84-15.65 3-31.93 10.85-33.7 38.38 6.58 28.18 6.58 28.18S212 201.39 215 181.4c0 0-26.33 7.13-30.67 13.24s-6.11 32.53-5.78 35.43 5.78-28.92 1.08-34.35c0 0-39.41 27.5-48.45 50.26 0 0 14.82 12.74 17 12.34s-15.91-12-18.8-9.09-10.85 19.53-10.48 23.87 5.42 14.82 9.4 15.54 13.38 2.53 14.82 1.8 11.57-11.92 10.13-12.65-7.24.73-10.85-3.25 1.81-9.4 4-8 5.09 6.87 6.11 6.87 5.09-.36 5.43-2.9-5.09-10.51-5.09-10.51 11.53-13.12 25.46-14.57c0 0 3.54 27.28 57.33 39.35l3 47.81s-19.4 13.66-27.8 17.41-13.8 16.82-14.26 23.13c0 0-1.1-17.6 15.08-25.41s24.73-15.81 24.73-15.81l-1.39-25.5s-44.1-11.35-59.52-32.13l1.39-4.49s56.68 61.87 162.11-.35c0 0 .11-10.36-1.49-13.24s11.34 23.19 11.5 24.37"
|
|
60
|
-
strokeWidth={1.5}
|
|
61
|
-
strokeLinecap="round"
|
|
62
|
-
strokeLinejoin="round"
|
|
63
|
-
stroke="var(--zd_emptysvg_primary_stroke)"
|
|
64
|
-
fill="none"
|
|
65
|
-
/>
|
|
66
|
-
<ellipse
|
|
67
|
-
cx={319.44}
|
|
68
|
-
cy={65.07}
|
|
69
|
-
rx={3.54}
|
|
70
|
-
ry={3.51}
|
|
71
|
-
strokeMiterlimit={10}
|
|
72
|
-
stroke="var(--zd_emptysvg_medium_circle)"
|
|
73
|
-
fill="none"
|
|
74
|
-
/>
|
|
75
|
-
<ellipse cx={254.71} cy={426.04} rx={3.54} ry={3.51} fill="var(--zd_emptysvg_medium_circle)" />
|
|
76
|
-
<ellipse
|
|
77
|
-
cx={60.28}
|
|
78
|
-
cy={276.06}
|
|
79
|
-
rx={3.31}
|
|
80
|
-
ry={3.28}
|
|
81
|
-
stroke="var(--zd_emptysvg_tiny_circle)"
|
|
82
|
-
strokeMiterlimit={10}
|
|
83
|
-
fill="none"
|
|
84
|
-
/>
|
|
85
|
-
<ellipse cx={434.38} cy={281.34} rx={3.31} ry={3.28} fill="var(--zd_emptysvg_tiny_circle)" />
|
|
86
|
-
<path
|
|
87
|
-
className="ErrorUnauthorizedLogin_svg__cls-8"
|
|
88
|
-
d="M111.78 165.79l-.35 6.17M108.49 168.7l6.23.35"
|
|
89
|
-
/>
|
|
90
|
-
<ellipse
|
|
91
|
-
cx={392.54}
|
|
92
|
-
cy={383.2}
|
|
93
|
-
rx={2.46}
|
|
94
|
-
ry={2.44}
|
|
95
|
-
strokeLinecap="round"
|
|
96
|
-
strokeLinejoin="round"
|
|
97
|
-
stroke="var(--zd_emptysvg_small_circle)"
|
|
98
|
-
fill="none"
|
|
99
|
-
/>
|
|
100
|
-
<path
|
|
101
|
-
className="ErrorUnauthorizedLogin_svg__cls-10"
|
|
102
|
-
d="M391.61 121.34l4.15 4.62M391.36 125.71l4.65-4.12"
|
|
103
|
-
/>
|
|
104
|
-
</SVG>
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
UnauthorizedLogin.propTypes = {
|
|
110
|
-
alignHorizontal: PropTypes.bool,
|
|
111
|
-
className: PropTypes.string,
|
|
112
|
-
dataId: PropTypes.string,
|
|
113
|
-
isRender: PropTypes.bool
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
UnauthorizedLogin.defaultProps = {
|
|
117
|
-
alignHorizontal: true,
|
|
118
|
-
isRender: true,
|
|
119
|
-
className: '',
|
|
120
|
-
dataId: 'unauthorizedlogin'
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
if (__DOCS__) {
|
|
124
|
-
UnauthorizedLogin.docs = {
|
|
125
|
-
componentGroup: 'SVG'
|
|
126
|
-
};
|
|
127
|
-
}
|
package/es/SVG/SvgLoader.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
export default function SvgLoader(props) {
|
|
3
|
-
let uiProps = {};
|
|
4
|
-
Object.keys(props).filter(prop => prop != 'imageUrl').map(prop => {
|
|
5
|
-
uiProps[prop] = props[prop];
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
let image = require(`./images/${props.imageUrl}`);
|
|
9
|
-
|
|
10
|
-
return /*#__PURE__*/React.createElement("image", {
|
|
11
|
-
xlinkHref: image,
|
|
12
|
-
...uiProps
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export function StaticSvg(props) {
|
|
16
|
-
let uiProps = {},
|
|
17
|
-
[image, setImage] = useState(null);
|
|
18
|
-
Object.keys(props).filter(prop => prop != 'getImage').map(prop => {
|
|
19
|
-
uiProps[prop] = props[prop];
|
|
20
|
-
});
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
props.getImage().then(image => setImage(image));
|
|
23
|
-
}, [props.getImage]);
|
|
24
|
-
return image ? /*#__PURE__*/React.createElement("image", {
|
|
25
|
-
xlinkHref: image.default,
|
|
26
|
-
...uiProps
|
|
27
|
-
}) : null;
|
|
28
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EmptyStateProps } from "../props/propTypes";
|
|
3
|
-
import { EmptyStateDefaultProps } from "../props/defaultProps";
|
|
4
|
-
import SVG from "../../SVG/SVG";
|
|
5
|
-
export default function EmptyAPIs(props) {
|
|
6
|
-
return /*#__PURE__*/React.createElement(SVG, {
|
|
7
|
-
viewBox: "0 0 147 140",
|
|
8
|
-
name: "emptyApis",
|
|
9
|
-
...props
|
|
10
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
11
|
-
clipPath: "url(#APIs_svg__a)"
|
|
12
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
13
|
-
opacity: 0.1,
|
|
14
|
-
d: "M58.946 39.611s34.324-21.588 51.67-15.084c17.346 6.504 29.179 61.097-19.037 85.591-48.215 24.494-70.118-28.784-70.339-38.194-.147-9.203 0-30.929 37.706-32.313Z",
|
|
15
|
-
fill: "var(--zd_emptysvg_primary_fill)"
|
|
16
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
17
|
-
d: "M10.29 81.887c-.074 0 0 0 0 0a.382.382 0 0 1-.368-.346l.294-5.19c0-.207.147-.345.367-.345s.368.138.368.346l-.294 5.19c-.074.207-.22.345-.368.345Z",
|
|
18
|
-
fill: "var(--zd_emptysvg_plus)"
|
|
19
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
20
|
-
d: "m13.082 79.466-5.44-.277a.382.382 0 0 1-.367-.346c0-.208.22-.346.368-.346l5.365.277c.22 0 .368.207.368.346.073.207-.074.346-.294.346Z",
|
|
21
|
-
fill: "var(--zd_emptysvg_plus)"
|
|
22
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
23
|
-
d: "M125.831 15.117c-1.911 0-3.454 1.453-3.454 3.252 0 1.8 1.543 3.252 3.454 3.252 1.911 0 3.455-1.453 3.455-3.252 0-1.799-1.617-3.252-3.455-3.252Zm0 5.881c-1.47 0-2.719-1.176-2.719-2.629s1.249-2.63 2.719-2.63c1.47 0 2.72 1.177 2.72 2.63 0 1.453-1.25 2.63-2.72 2.63ZM91.433 120.497c-1.397 0-2.5 1.038-2.5 2.353 0 1.314 1.103 2.352 2.5 2.352 1.396 0 2.499-1.038 2.499-2.352 0-1.246-1.103-2.353-2.5-2.353Zm0 4.082c-.956 0-1.764-.761-1.764-1.729 0-.969.808-1.73 1.764-1.73.955 0 1.764.761 1.764 1.73 0 .968-.809 1.729-1.764 1.729Z",
|
|
24
|
-
fill: "var(--zd_emptysvg_medium_circle)"
|
|
25
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
26
|
-
d: "M59.46 14.563c-1.249 0-2.204.97-2.204 2.076 0 1.107.955 2.076 2.205 2.076s2.205-.969 2.205-2.076c0-1.107-.956-2.075-2.205-2.075Zm0 3.53c-.808 0-1.47-.623-1.47-1.385 0-.76.662-1.383 1.47-1.383.81 0 1.47.622 1.47 1.383 0 .762-.66 1.384-1.47 1.384ZM139.503 90.537a.37.37 0 0 0-.514 0l-1.764 1.522-1.544-1.66a.37.37 0 0 0-.514 0 .321.321 0 0 0 0 .484l1.543 1.66-1.764 1.523a.321.321 0 0 0 0 .484c.074.07.147.139.294.139.074 0 .147 0 .221-.07l1.764-1.522 1.543 1.66c.074.07.147.14.294.14.074 0 .147 0 .221-.07a.321.321 0 0 0 0-.484l-1.544-1.66 1.764-1.523c.147-.208.147-.484 0-.623Z",
|
|
27
|
-
fill: "var(--zd_emptysvg_cross)"
|
|
28
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
29
|
-
opacity: 0.1,
|
|
30
|
-
d: "M85.113 45.7S57.697 28.471 43.806 33.66c-13.892 5.19-23.373 48.85 15.214 68.432 38.588 19.582 56.081-23.04 56.228-30.583.147-7.334 0-24.77-30.135-25.809Z",
|
|
31
|
-
fill: "var(--zd_emptysvg_primary_fill)"
|
|
32
|
-
})), /*#__PURE__*/React.createElement("path", {
|
|
33
|
-
d: "m58.557 48.223 3.661-3.97c1.734-1.895 4.818-2.166 6.841-.541l2.409 1.894c3.18 2.527 7.997 2.166 10.791-.812 2.698-2.977 2.313-7.49-.867-10.106l-2.409-1.895c-2.023-1.625-2.312-4.512-.578-6.407l3.854-4.241c1.734-1.895 4.818-2.166 6.841-.542 4.529 3.61 11.369 3.159 15.32-1.173l1.831-1.985c1.734-1.895 4.817-2.166 6.84-.542l7.612 6.046c2.024 1.625 2.313 4.512.578 6.407l-1.349 1.444c-3.854 4.241-3.372 10.648 1.253 14.348l.578.451c2.023 1.624 2.312 4.512.578 6.407l-4.143 4.512c-1.734 1.895-4.817 2.166-6.841.541l-4.239-3.429c-3.18-2.526-7.997-2.165-10.792.812-2.697 2.978-2.312 7.49.868 10.107l4.239 3.43c2.023 1.623 2.312 4.511.578 6.406l-5.203 5.685c-1.734 1.895-4.817 2.166-6.84.542l-6.745-5.325c-2.024-1.624-5.107-1.443-6.841.542l-3.18 3.52c-2.698 2.977-7.419 3.338-10.598.811l-.193-.09c-3.18-2.527-3.565-6.948-.867-9.926l2.89-3.249c1.735-1.895 1.542-4.782-.578-6.407l-4.817-3.88c-2.024-1.624-5.107-1.444-6.841.542l-1.35 1.443c-3.564 3.97-9.923 4.422-14.163 1.083-2.023-1.624-5.106-1.444-6.84.542l-4.433 4.873c-1.638 1.804-1.349 4.692.675 6.316 4.24 3.339 4.72 9.295 1.156 13.265l-2.89 3.159c-1.735 1.894-1.542 4.782.577 6.406l5.974 4.693c2.024 1.624 5.107 1.444 6.841-.542l1.83-2.075c2.699-2.978 7.42-3.339 10.6-.812 3.179 2.526 3.564 6.948.867 9.926l-1.831 2.075c-1.734 1.895-1.542 4.783.578 6.407l5.781 4.602c2.023 1.625 5.107 1.444 6.84-.541l4.915-5.414c3.18-3.52 8.768-3.881 12.43-.903 2.022 1.625 5.106 1.444 6.84-.541l3.661-3.971c1.735-1.895 1.542-4.782-.578-6.406l-3.372-2.708c-2.505-1.985-2.89-5.594-.674-7.94",
|
|
34
|
-
stroke: "var(--zd_emptysvg_primary_stroke)",
|
|
35
|
-
fill: "transparent",
|
|
36
|
-
strokeMiterlimit: 10,
|
|
37
|
-
strokeLinecap: "round",
|
|
38
|
-
strokeLinejoin: "round"
|
|
39
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
40
|
-
d: "M58.269 50.119c.904 0 1.638-.687 1.638-1.534s-.734-1.534-1.638-1.534c-.905 0-1.638.687-1.638 1.534s.733 1.534 1.638 1.534ZM86.402 91.898c.904 0 1.638-.687 1.638-1.534s-.734-1.534-1.638-1.534c-.905 0-1.638.687-1.638 1.534s.733 1.534 1.638 1.534Z",
|
|
41
|
-
fill: "var(--zd_emptysvg_primary_stroke)"
|
|
42
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
43
|
-
opacity: 0.2,
|
|
44
|
-
d: "M65.013 57.247c-.77-.542-1.349-1.264-1.638-2.166-.578-1.715-.193-4.15 7.226-3.249 11.177 1.444 23.317-9.204 15.224-17.416-7.323-7.399.481-11.189 6.263-7.399 4.239 2.797 14.452-.632 17.343-3.52 2.119-2.165 8.96.903 7.997 4.874-.964 3.97-7.805 13.445-1.156 19.491 6.648 6.046-16.862.993-21.198 4.692-3.95 3.34-7.13 9.836-.578 15.34 5.878 5.054-2.89 12.363-13.585 2.076-1.253-1.173-3.565 2.798-4.914 3.88-2.023 1.625-5.01 3.43-7.323 2.347-3.95-1.715 2.409-9.927 1.638-13.085-.578-2.256-3.757-4.782-5.3-5.865Z",
|
|
45
|
-
fill: "var(--zd_emptysvg_primary_fill)"
|
|
46
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
47
|
-
opacity: 0.2,
|
|
48
|
-
d: "M63.664 110.307c-.578.632-1.253 1.173-2.12 1.444-1.734.451-4.047.181-3.18-6.226 1.35-9.566-8.96-19.853-16.957-12.995-7.227 6.227-10.888-.45-7.227-5.323 2.794-3.61-.674-12.363-3.468-14.8-2.12-1.804.867-7.67 4.72-6.858 3.855.813 13.104 6.678 18.982.993 5.877-5.685.963 14.438 4.528 18.048 3.276 3.338 9.54 6.045 14.935.45 4.914-5.053 12.044 2.437 2.023 11.641-1.156 1.083 2.698 3.069 3.758 4.242 1.541 1.714 3.372 4.241 2.312 6.226-1.734 3.339-9.635-2.075-12.718-1.444-2.12.632-4.529 3.249-5.588 4.602Z",
|
|
49
|
-
fill: "var(--zd_emptysvg_primary_fill)"
|
|
50
|
-
}), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
51
|
-
id: "APIs_svg__a"
|
|
52
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
53
|
-
fill: "#fff",
|
|
54
|
-
transform: "translate(7.35 14.563)",
|
|
55
|
-
d: "M0 0h132.3v110.708H0z"
|
|
56
|
-
}))));
|
|
57
|
-
}
|
|
58
|
-
EmptyAPIs.propTypes = EmptyStateProps;
|
|
59
|
-
EmptyAPIs.defaultProps = { ...EmptyStateDefaultProps,
|
|
60
|
-
dataId: 'emptyApis'
|
|
61
|
-
};
|
package/install.md
DELETED
package/lib/SVG/SvgLoader.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.StaticSvg = StaticSvg;
|
|
9
|
-
exports["default"] = SvgLoader;
|
|
10
|
-
|
|
11
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
-
|
|
15
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
|
|
17
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
-
|
|
19
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
-
|
|
21
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
|
-
|
|
23
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
24
|
-
|
|
25
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
26
|
-
|
|
27
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
|
-
|
|
29
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
30
|
-
|
|
31
|
-
function SvgLoader(props) {
|
|
32
|
-
var uiProps = {};
|
|
33
|
-
Object.keys(props).filter(function (prop) {
|
|
34
|
-
return prop != 'imageUrl';
|
|
35
|
-
}).map(function (prop) {
|
|
36
|
-
uiProps[prop] = props[prop];
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
var image = require("./images/".concat(props.imageUrl));
|
|
40
|
-
|
|
41
|
-
return /*#__PURE__*/_react["default"].createElement("image", _extends({
|
|
42
|
-
xlinkHref: image
|
|
43
|
-
}, uiProps));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function StaticSvg(props) {
|
|
47
|
-
var uiProps = {},
|
|
48
|
-
_useState = (0, _react.useState)(null),
|
|
49
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
50
|
-
image = _useState2[0],
|
|
51
|
-
setImage = _useState2[1];
|
|
52
|
-
|
|
53
|
-
Object.keys(props).filter(function (prop) {
|
|
54
|
-
return prop != 'getImage';
|
|
55
|
-
}).map(function (prop) {
|
|
56
|
-
uiProps[prop] = props[prop];
|
|
57
|
-
});
|
|
58
|
-
(0, _react.useEffect)(function () {
|
|
59
|
-
props.getImage().then(function (image) {
|
|
60
|
-
return setImage(image);
|
|
61
|
-
});
|
|
62
|
-
}, [props.getImage]);
|
|
63
|
-
return image ? /*#__PURE__*/_react["default"].createElement("image", _extends({
|
|
64
|
-
xlinkHref: image["default"]
|
|
65
|
-
}, uiProps)) : null;
|
|
66
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = EmptyAPIs;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = require("../props/propTypes");
|
|
11
|
-
|
|
12
|
-
var _defaultProps = require("../props/defaultProps");
|
|
13
|
-
|
|
14
|
-
var _SVG = _interopRequireDefault(require("../../SVG/SVG"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
-
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
-
|
|
22
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
-
|
|
24
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
26
|
-
function EmptyAPIs(props) {
|
|
27
|
-
return /*#__PURE__*/_react["default"].createElement(_SVG["default"], _extends({
|
|
28
|
-
viewBox: "0 0 147 140",
|
|
29
|
-
name: "emptyApis"
|
|
30
|
-
}, props), /*#__PURE__*/_react["default"].createElement("g", {
|
|
31
|
-
clipPath: "url(#APIs_svg__a)"
|
|
32
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
33
|
-
opacity: 0.1,
|
|
34
|
-
d: "M58.946 39.611s34.324-21.588 51.67-15.084c17.346 6.504 29.179 61.097-19.037 85.591-48.215 24.494-70.118-28.784-70.339-38.194-.147-9.203 0-30.929 37.706-32.313Z",
|
|
35
|
-
fill: "var(--zd_emptysvg_primary_fill)"
|
|
36
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
37
|
-
d: "M10.29 81.887c-.074 0 0 0 0 0a.382.382 0 0 1-.368-.346l.294-5.19c0-.207.147-.345.367-.345s.368.138.368.346l-.294 5.19c-.074.207-.22.345-.368.345Z",
|
|
38
|
-
fill: "var(--zd_emptysvg_plus)"
|
|
39
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
40
|
-
d: "m13.082 79.466-5.44-.277a.382.382 0 0 1-.367-.346c0-.208.22-.346.368-.346l5.365.277c.22 0 .368.207.368.346.073.207-.074.346-.294.346Z",
|
|
41
|
-
fill: "var(--zd_emptysvg_plus)"
|
|
42
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
43
|
-
d: "M125.831 15.117c-1.911 0-3.454 1.453-3.454 3.252 0 1.8 1.543 3.252 3.454 3.252 1.911 0 3.455-1.453 3.455-3.252 0-1.799-1.617-3.252-3.455-3.252Zm0 5.881c-1.47 0-2.719-1.176-2.719-2.629s1.249-2.63 2.719-2.63c1.47 0 2.72 1.177 2.72 2.63 0 1.453-1.25 2.63-2.72 2.63ZM91.433 120.497c-1.397 0-2.5 1.038-2.5 2.353 0 1.314 1.103 2.352 2.5 2.352 1.396 0 2.499-1.038 2.499-2.352 0-1.246-1.103-2.353-2.5-2.353Zm0 4.082c-.956 0-1.764-.761-1.764-1.729 0-.969.808-1.73 1.764-1.73.955 0 1.764.761 1.764 1.73 0 .968-.809 1.729-1.764 1.729Z",
|
|
44
|
-
fill: "var(--zd_emptysvg_medium_circle)"
|
|
45
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
46
|
-
d: "M59.46 14.563c-1.249 0-2.204.97-2.204 2.076 0 1.107.955 2.076 2.205 2.076s2.205-.969 2.205-2.076c0-1.107-.956-2.075-2.205-2.075Zm0 3.53c-.808 0-1.47-.623-1.47-1.385 0-.76.662-1.383 1.47-1.383.81 0 1.47.622 1.47 1.383 0 .762-.66 1.384-1.47 1.384ZM139.503 90.537a.37.37 0 0 0-.514 0l-1.764 1.522-1.544-1.66a.37.37 0 0 0-.514 0 .321.321 0 0 0 0 .484l1.543 1.66-1.764 1.523a.321.321 0 0 0 0 .484c.074.07.147.139.294.139.074 0 .147 0 .221-.07l1.764-1.522 1.543 1.66c.074.07.147.14.294.14.074 0 .147 0 .221-.07a.321.321 0 0 0 0-.484l-1.544-1.66 1.764-1.523c.147-.208.147-.484 0-.623Z",
|
|
47
|
-
fill: "var(--zd_emptysvg_cross)"
|
|
48
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
49
|
-
opacity: 0.1,
|
|
50
|
-
d: "M85.113 45.7S57.697 28.471 43.806 33.66c-13.892 5.19-23.373 48.85 15.214 68.432 38.588 19.582 56.081-23.04 56.228-30.583.147-7.334 0-24.77-30.135-25.809Z",
|
|
51
|
-
fill: "var(--zd_emptysvg_primary_fill)"
|
|
52
|
-
})), /*#__PURE__*/_react["default"].createElement("path", {
|
|
53
|
-
d: "m58.557 48.223 3.661-3.97c1.734-1.895 4.818-2.166 6.841-.541l2.409 1.894c3.18 2.527 7.997 2.166 10.791-.812 2.698-2.977 2.313-7.49-.867-10.106l-2.409-1.895c-2.023-1.625-2.312-4.512-.578-6.407l3.854-4.241c1.734-1.895 4.818-2.166 6.841-.542 4.529 3.61 11.369 3.159 15.32-1.173l1.831-1.985c1.734-1.895 4.817-2.166 6.84-.542l7.612 6.046c2.024 1.625 2.313 4.512.578 6.407l-1.349 1.444c-3.854 4.241-3.372 10.648 1.253 14.348l.578.451c2.023 1.624 2.312 4.512.578 6.407l-4.143 4.512c-1.734 1.895-4.817 2.166-6.841.541l-4.239-3.429c-3.18-2.526-7.997-2.165-10.792.812-2.697 2.978-2.312 7.49.868 10.107l4.239 3.43c2.023 1.623 2.312 4.511.578 6.406l-5.203 5.685c-1.734 1.895-4.817 2.166-6.84.542l-6.745-5.325c-2.024-1.624-5.107-1.443-6.841.542l-3.18 3.52c-2.698 2.977-7.419 3.338-10.598.811l-.193-.09c-3.18-2.527-3.565-6.948-.867-9.926l2.89-3.249c1.735-1.895 1.542-4.782-.578-6.407l-4.817-3.88c-2.024-1.624-5.107-1.444-6.841.542l-1.35 1.443c-3.564 3.97-9.923 4.422-14.163 1.083-2.023-1.624-5.106-1.444-6.84.542l-4.433 4.873c-1.638 1.804-1.349 4.692.675 6.316 4.24 3.339 4.72 9.295 1.156 13.265l-2.89 3.159c-1.735 1.894-1.542 4.782.577 6.406l5.974 4.693c2.024 1.624 5.107 1.444 6.841-.542l1.83-2.075c2.699-2.978 7.42-3.339 10.6-.812 3.179 2.526 3.564 6.948.867 9.926l-1.831 2.075c-1.734 1.895-1.542 4.783.578 6.407l5.781 4.602c2.023 1.625 5.107 1.444 6.84-.541l4.915-5.414c3.18-3.52 8.768-3.881 12.43-.903 2.022 1.625 5.106 1.444 6.84-.541l3.661-3.971c1.735-1.895 1.542-4.782-.578-6.406l-3.372-2.708c-2.505-1.985-2.89-5.594-.674-7.94",
|
|
54
|
-
stroke: "var(--zd_emptysvg_primary_stroke)",
|
|
55
|
-
fill: "transparent",
|
|
56
|
-
strokeMiterlimit: 10,
|
|
57
|
-
strokeLinecap: "round",
|
|
58
|
-
strokeLinejoin: "round"
|
|
59
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
60
|
-
d: "M58.269 50.119c.904 0 1.638-.687 1.638-1.534s-.734-1.534-1.638-1.534c-.905 0-1.638.687-1.638 1.534s.733 1.534 1.638 1.534ZM86.402 91.898c.904 0 1.638-.687 1.638-1.534s-.734-1.534-1.638-1.534c-.905 0-1.638.687-1.638 1.534s.733 1.534 1.638 1.534Z",
|
|
61
|
-
fill: "var(--zd_emptysvg_primary_stroke)"
|
|
62
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
63
|
-
opacity: 0.2,
|
|
64
|
-
d: "M65.013 57.247c-.77-.542-1.349-1.264-1.638-2.166-.578-1.715-.193-4.15 7.226-3.249 11.177 1.444 23.317-9.204 15.224-17.416-7.323-7.399.481-11.189 6.263-7.399 4.239 2.797 14.452-.632 17.343-3.52 2.119-2.165 8.96.903 7.997 4.874-.964 3.97-7.805 13.445-1.156 19.491 6.648 6.046-16.862.993-21.198 4.692-3.95 3.34-7.13 9.836-.578 15.34 5.878 5.054-2.89 12.363-13.585 2.076-1.253-1.173-3.565 2.798-4.914 3.88-2.023 1.625-5.01 3.43-7.323 2.347-3.95-1.715 2.409-9.927 1.638-13.085-.578-2.256-3.757-4.782-5.3-5.865Z",
|
|
65
|
-
fill: "var(--zd_emptysvg_primary_fill)"
|
|
66
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
67
|
-
opacity: 0.2,
|
|
68
|
-
d: "M63.664 110.307c-.578.632-1.253 1.173-2.12 1.444-1.734.451-4.047.181-3.18-6.226 1.35-9.566-8.96-19.853-16.957-12.995-7.227 6.227-10.888-.45-7.227-5.323 2.794-3.61-.674-12.363-3.468-14.8-2.12-1.804.867-7.67 4.72-6.858 3.855.813 13.104 6.678 18.982.993 5.877-5.685.963 14.438 4.528 18.048 3.276 3.338 9.54 6.045 14.935.45 4.914-5.053 12.044 2.437 2.023 11.641-1.156 1.083 2.698 3.069 3.758 4.242 1.541 1.714 3.372 4.241 2.312 6.226-1.734 3.339-9.635-2.075-12.718-1.444-2.12.632-4.529 3.249-5.588 4.602Z",
|
|
69
|
-
fill: "var(--zd_emptysvg_primary_fill)"
|
|
70
|
-
}), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
|
|
71
|
-
id: "APIs_svg__a"
|
|
72
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
73
|
-
fill: "#fff",
|
|
74
|
-
transform: "translate(7.35 14.563)",
|
|
75
|
-
d: "M0 0h132.3v110.708H0z"
|
|
76
|
-
}))));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
EmptyAPIs.propTypes = _propTypes.EmptyStateProps;
|
|
80
|
-
EmptyAPIs.defaultProps = _objectSpread(_objectSpread({}, _defaultProps.EmptyStateDefaultProps), {}, {
|
|
81
|
-
dataId: 'emptyApis'
|
|
82
|
-
});
|
package/postPublish.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { execSync } = require('child_process');
|
|
2
|
-
const { version, name } = require('./package.json');
|
|
3
|
-
const tagName = `${name}@${version}`;
|
|
4
|
-
// const tagName = `${name.replace(/^@/g, "").replace(/\//g, "-")}-v-${version}}@${version}`;
|
|
5
|
-
console.log(`going to add git tag... ${tagName}`);
|
|
6
|
-
|
|
7
|
-
execSync(`git tag -a ${tagName} -m ${tagName}`, { stdio: 'inherit' });
|
|
8
|
-
execSync(`git push origin ${tagName}`, { stdio: 'inherit' });
|
package/prePublish.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
const readline = require('readline');
|
|
2
|
-
const { exec } = require('child_process');
|
|
3
|
-
|
|
4
|
-
const rl = readline.createInterface({
|
|
5
|
-
input: process.stdin,
|
|
6
|
-
output: process.stdout
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
console.log('\nNode.js version:', process.version);
|
|
10
|
-
|
|
11
|
-
function runConsole(command, callback) {
|
|
12
|
-
exec(command, (error, stdout, stderr) => {
|
|
13
|
-
if (error) {
|
|
14
|
-
console.error('Error:', error.message);
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
if (stderr) {
|
|
19
|
-
console.error('Error:', stderr);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const npmVersion = stdout.trim();
|
|
24
|
-
console.log('\n' + command, npmVersion);
|
|
25
|
-
callback && callback();
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function askQuestion1() {
|
|
30
|
-
rl.question('\nHave you updated the changelog in README.md? (yes/no): ', (answer) => {
|
|
31
|
-
if (answer.toLowerCase() === 'yes') {
|
|
32
|
-
console.log('\nGreat! Proceeding...');
|
|
33
|
-
askQuestion2();
|
|
34
|
-
// rl.close();
|
|
35
|
-
// Call the function or code to proceed further here.
|
|
36
|
-
} else if (answer.toLowerCase() === 'no') {
|
|
37
|
-
rl.close();
|
|
38
|
-
console.log('\nPlease Update the ChangeLog in README.md, then try again');
|
|
39
|
-
// throw new Error('\nPlease Update the ChangeLog in README.md, then try again');
|
|
40
|
-
process.exitCode = 1; // Exit the Node.js process with a success code.
|
|
41
|
-
} else {
|
|
42
|
-
console.log('\nInvalid answer. Please enter "yes" or "no".');
|
|
43
|
-
askQuestion1(); // Ask the question again if the input is not "yes" or "no".
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function askQuestion2() {
|
|
49
|
-
rl.question('\nHave you verified the test snapshot? (yes/no): ', (answer) => {
|
|
50
|
-
if (answer.toLowerCase() === 'yes') {
|
|
51
|
-
console.log('\nGreat! Proceeding...');
|
|
52
|
-
rl.close();
|
|
53
|
-
// Call the function or code to proceed further here.
|
|
54
|
-
} else if (answer.toLowerCase() === 'no') {
|
|
55
|
-
rl.close();
|
|
56
|
-
//throw new Error('\nPlease Verify the snapshot results, then try again');
|
|
57
|
-
console.log('\nPlease Verify the snapshot results, then try again');
|
|
58
|
-
process.exitCode = 1; // Exit the Node.js process with a success code.
|
|
59
|
-
} else {
|
|
60
|
-
console.log('\nInvalid answer. Please enter "yes" or "no".');
|
|
61
|
-
askQuestion2(); // Ask the question again if the input is not "yes" or "no".
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function getReactCliVersion() {
|
|
67
|
-
runConsole('react-cli --version', askQuestion1);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
runConsole('npm --version', getReactCliVersion);
|