@zohodesk/svg 1.0.0-temp.53 → 1.0.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/README.md +247 -212
- package/deprecated/june_2022/ErrorUnauthorizedLogin.js +127 -127
- package/es/Loader/Loader.js +3 -3
- package/es/SVG/SVG.js +5 -4
- package/es/SVG/SVG.module.css +31 -26
- package/es/SVG/SvgLoader.js +4 -1
- package/es/css/EmptyStateVariables.module.css +38 -38
- package/es/emptystate/version1/EmptyCustomDomain.js +4 -4
- package/es/emptystate/version2/EmptyBusinessHoliday.js +4 -5
- package/es/emptystate/version2/EmptyBusinessHour.js +4 -5
- package/es/emptystate/version2/EmptyFromAddress.js +4 -4
- package/es/emptystate/version2/EmptyImportHistory.js +4 -5
- package/es/emptystate/version2/EmptyNetwork.js +4 -4
- package/es/emptystate/version2/EmptyRecycleBin.js +4 -4
- package/es/emptystate/version2/EmptyRoles.js +4 -4
- package/es/emptystate/version2/EmptyWebhook.js +4 -4
- package/es/emptystate/version2/FailureLog.js +4 -5
- package/es/emptystate/version3/AuditLog.js +4 -4
- package/es/emptystate/version3/Bot.js +3 -2
- package/es/emptystate/version3/Contract.js +4 -4
- package/es/emptystate/version3/CustomModule.js +4 -4
- package/es/emptystate/version3/EmptyAPIAuthentication.js +92 -0
- package/es/emptystate/version3/EmptyAPIConfiguration.js +84 -0
- package/es/emptystate/version3/EmptyAPIs.js +3 -2
- package/es/emptystate/version3/EmptyAccounts.js +4 -4
- package/es/emptystate/version3/EmptyActiveCalls.js +4 -5
- package/es/emptystate/version3/EmptyActivity.js +4 -5
- package/es/emptystate/version3/EmptyAgent.js +4 -5
- package/es/emptystate/version3/EmptyAgentQueue.js +4 -5
- package/es/emptystate/version3/EmptyApplechat.js +4 -4
- package/es/emptystate/version3/EmptyApproval.js +4 -4
- package/es/emptystate/version3/EmptyArchived.js +4 -4
- package/es/emptystate/version3/EmptyArticle.js +4 -4
- package/es/emptystate/version3/EmptyAsapchat.js +4 -5
- package/es/emptystate/version3/EmptyAttach.js +4 -5
- package/es/emptystate/version3/EmptyAuthenticationPending.js +70 -0
- package/es/emptystate/version3/EmptyBlueprint.js +4 -5
- package/es/emptystate/version3/EmptyCallHistory.js +4 -5
- package/es/emptystate/version3/EmptyCanned.js +4 -5
- package/es/emptystate/version3/EmptyChat.js +4 -5
- package/es/emptystate/version3/EmptyCollision.js +4 -4
- package/es/emptystate/version3/EmptyColumn.js +4 -4
- package/es/emptystate/version3/EmptyContact.js +4 -5
- package/es/emptystate/version3/EmptyContract.js +4 -4
- package/es/emptystate/version3/EmptyConversation.js +4 -5
- package/es/emptystate/version3/EmptyCrm.js +4 -4
- package/es/emptystate/version3/EmptyCrmNotes.js +4 -4
- package/es/emptystate/version3/EmptyCrmPotential.js +4 -5
- package/es/emptystate/version3/EmptyCustomerHappiness.js +68 -0
- package/es/emptystate/version3/EmptyDashboard.js +4 -4
- package/es/emptystate/version3/EmptyDelete.js +4 -4
- package/es/emptystate/version3/EmptyDepartment.js +4 -4
- package/es/emptystate/version3/EmptyError.js +4 -5
- package/es/emptystate/version3/EmptyFeed.js +4 -4
- package/es/emptystate/version3/EmptyFollowers.js +4 -4
- package/es/emptystate/version3/EmptyFrame.js +4 -5
- package/es/emptystate/version3/EmptyHappiness.js +4 -5
- package/es/emptystate/version3/EmptyHistory.js +4 -4
- package/es/emptystate/version3/EmptyInstagram.js +4 -5
- package/es/emptystate/version3/EmptyInstantmessage.js +4 -5
- package/es/emptystate/version3/EmptyInvoice.js +4 -4
- package/es/emptystate/version3/EmptyLine.js +4 -5
- package/es/emptystate/version3/EmptyMessenger.js +4 -4
- package/es/emptystate/version3/EmptyNoData.js +4 -4
- package/es/emptystate/version3/EmptyNotification.js +4 -4
- package/es/emptystate/version3/EmptyPreference.js +4 -4
- package/es/emptystate/version3/EmptyProducts.js +4 -4
- package/es/emptystate/version3/EmptyReply.js +4 -4
- package/es/emptystate/version3/EmptyReports.js +4 -4
- package/es/emptystate/version3/EmptySandbox.js +32 -21
- package/es/emptystate/version3/EmptySchedule.js +4 -4
- package/es/emptystate/version3/EmptySearch.js +4 -4
- package/es/emptystate/version3/EmptySkills.js +4 -4
- package/es/emptystate/version3/EmptySla.js +4 -4
- package/es/emptystate/version3/EmptySnippet.js +4 -4
- package/es/emptystate/version3/EmptyTag.js +4 -4
- package/es/emptystate/version3/EmptyTask.js +4 -4
- package/es/emptystate/version3/EmptyTeams.js +4 -5
- package/es/emptystate/version3/EmptyTelegram.js +4 -5
- package/es/emptystate/version3/EmptyTemplate.js +4 -4
- package/es/emptystate/version3/EmptyTicket.js +4 -5
- package/es/emptystate/version3/EmptyTimeEntry.js +4 -4
- package/es/emptystate/version3/EmptyTimeline.js +4 -5
- package/es/emptystate/version3/EmptyTopic.js +4 -4
- package/es/emptystate/version3/EmptyTwilio.js +4 -5
- package/es/emptystate/version3/EmptyWechat.js +4 -5
- package/es/emptystate/version3/EmptyWhatsapp.js +4 -5
- package/es/emptystate/version3/EmptyZSCKey.js +88 -0
- package/es/emptystate/version3/Export.js +4 -5
- package/es/emptystate/version3/Extensions.js +4 -5
- package/es/emptystate/version3/Extractor.js +4 -5
- package/es/emptystate/version3/GCBot.js +4 -5
- package/es/emptystate/version3/GCConversation.js +4 -5
- package/es/emptystate/version3/Import.js +4 -5
- package/es/emptystate/version3/KBBot.js +4 -5
- package/es/emptystate/version3/Multilingual.js +4 -5
- package/es/emptystate/version3/NetworkError.js +4 -5
- package/es/emptystate/version3/Predictor.js +4 -5
- package/es/emptystate/version3/ReadRecipients.js +4 -5
- package/es/emptystate/version3/SupportPlan.js +4 -4
- package/es/emptystate/version3/Variable.js +4 -5
- package/es/emptystate/version3/ZiaAnamoly.js +4 -5
- package/es/errorstate/version1/EmptyInconvenience.js +4 -5
- package/es/errorstate/version1/NoRequestFound.js +4 -5
- package/es/errorstate/version1/PageNotFound.js +4 -5
- package/es/errorstate/version1/UnableToProcessRequest.js +4 -5
- package/es/errorstate/version1/UnauthorizedLogin.js +4 -5
- package/es/errorstate/version1/UrlNotFound.js +4 -5
- package/es/errorstate/version1/WillBeRightBack.js +4 -5
- package/es/errorstate/version2/EmptyUnauthorizedLogin.js +4 -5
- package/es/errorstate/version2/EmptyWillBeRightBack.js +4 -5
- package/es/errorstate/version2/NotImpossible.js +4 -5
- package/es/errorstate/version3/ErrorInconvenience.js +4 -5
- package/es/errorstate/version3/ErrorOopsSomethingMiss.js +4 -5
- package/es/errorstate/version3/ErrorUnableToProcessRequest.js +4 -5
- package/es/errorstate/version3/ErrorUnauthorizedLogin.js +4 -5
- package/es/errorstate/version3/ErrorUrlNotFound.js +4 -5
- package/es/errorstate/version3/ErrorWillBeRightBack.js +4 -5
- package/es/index.js +0 -6
- package/images/EmptyBusinessHoliday.svg +50 -50
- package/images/EmptyBusinessHour.svg +42 -42
- package/images/EmptyContactInfo.svg +27 -27
- package/images/EmptyCustomDomain.svg +85 -85
- package/images/EmptyFilter.svg +62 -62
- package/images/EmptyFromAddress.svg +41 -41
- package/images/EmptyImportHistory.svg +43 -43
- package/images/EmptyNetwork.svg +50 -50
- package/images/EmptyRecycleBin.svg +58 -58
- package/images/EmptyRoles.svg +30 -30
- package/images/EmptySkills.svg +83 -83
- package/images/EmptyWebhook.svg +44 -44
- package/images/FailureLog.svg +46 -46
- package/images/Inconvenience.svg +719 -719
- package/images/NoRequestFound.svg +247 -247
- package/images/PageNotFound.svg +405 -405
- package/images/ReguestUrlNotFound.svg +267 -267
- package/images/UnableToProcess.svg +752 -752
- package/images/UnauthorizedLogin.svg +1047 -1047
- package/images/WillBack.svg +633 -633
- package/install.md +11 -11
- package/lib/Loader/Loader.js +27 -6
- package/lib/Loader/props/propTypes.js +3 -0
- package/lib/SVG/SVG.js +41 -19
- package/lib/SVG/SVG.module.css +31 -26
- package/lib/SVG/SvgLoader.js +22 -6
- package/lib/SVG/props/propTypes.js +3 -0
- package/lib/css/EmptyStateVariables.module.css +38 -38
- package/lib/emptystate/index.js +9 -0
- package/lib/emptystate/props/propTypes.js +3 -0
- package/lib/emptystate/version1/EmptyCustomDomain.js +31 -6
- package/lib/emptystate/version1/index.js +2 -0
- package/lib/emptystate/version2/EmptyBusinessHoliday.js +31 -7
- package/lib/emptystate/version2/EmptyBusinessHour.js +31 -7
- package/lib/emptystate/version2/EmptyFromAddress.js +31 -6
- package/lib/emptystate/version2/EmptyImportHistory.js +31 -7
- package/lib/emptystate/version2/EmptyNetwork.js +31 -6
- package/lib/emptystate/version2/EmptyRecycleBin.js +31 -6
- package/lib/emptystate/version2/EmptyRoles.js +31 -6
- package/lib/emptystate/version2/EmptyWebhook.js +31 -6
- package/lib/emptystate/version2/FailureLog.js +31 -7
- package/lib/emptystate/version2/index.js +10 -0
- package/lib/emptystate/version3/AuditLog.js +30 -6
- package/lib/emptystate/version3/Bot.js +29 -4
- package/lib/emptystate/version3/Contract.js +30 -6
- package/lib/emptystate/version3/CustomModule.js +30 -6
- package/lib/emptystate/version3/EmptyAPIAuthentication.js +149 -0
- package/lib/emptystate/version3/EmptyAPIConfiguration.js +141 -0
- package/lib/emptystate/version3/EmptyAPIs.js +29 -4
- package/lib/emptystate/version3/EmptyAccounts.js +30 -6
- package/lib/emptystate/version3/EmptyActiveCalls.js +30 -7
- package/lib/emptystate/version3/EmptyActivity.js +30 -7
- package/lib/emptystate/version3/EmptyAgent.js +30 -7
- package/lib/emptystate/version3/EmptyAgentQueue.js +30 -7
- package/lib/emptystate/version3/EmptyApplechat.js +30 -6
- package/lib/emptystate/version3/EmptyApproval.js +30 -6
- package/lib/emptystate/version3/EmptyArchived.js +30 -6
- package/lib/emptystate/version3/EmptyArticle.js +30 -6
- package/lib/emptystate/version3/EmptyAsapchat.js +30 -7
- package/lib/emptystate/version3/EmptyAttach.js +30 -7
- package/lib/emptystate/version3/EmptyAuthenticationPending.js +127 -0
- package/lib/emptystate/version3/EmptyBlueprint.js +30 -7
- package/lib/emptystate/version3/EmptyCallHistory.js +30 -7
- package/lib/emptystate/version3/EmptyCanned.js +30 -7
- package/lib/emptystate/version3/EmptyChat.js +30 -7
- package/lib/emptystate/version3/EmptyCollision.js +30 -6
- package/lib/emptystate/version3/EmptyColumn.js +30 -6
- package/lib/emptystate/version3/EmptyContact.js +30 -7
- package/lib/emptystate/version3/EmptyContract.js +30 -6
- package/lib/emptystate/version3/EmptyConversation.js +30 -7
- package/lib/emptystate/version3/EmptyCrm.js +30 -6
- package/lib/emptystate/version3/EmptyCrmNotes.js +30 -6
- package/lib/emptystate/version3/EmptyCrmPotential.js +30 -7
- package/lib/emptystate/version3/EmptyCustomerHappiness.js +125 -0
- package/lib/emptystate/version3/EmptyDashboard.js +30 -6
- package/lib/emptystate/version3/EmptyDelete.js +30 -6
- package/lib/emptystate/version3/EmptyDepartment.js +30 -6
- package/lib/emptystate/version3/EmptyError.js +30 -7
- package/lib/emptystate/version3/EmptyFeed.js +30 -6
- package/lib/emptystate/version3/EmptyFollowers.js +30 -6
- package/lib/emptystate/version3/EmptyFrame.js +30 -7
- package/lib/emptystate/version3/EmptyHappiness.js +30 -7
- package/lib/emptystate/version3/EmptyHistory.js +30 -6
- package/lib/emptystate/version3/EmptyInstagram.js +30 -7
- package/lib/emptystate/version3/EmptyInstantmessage.js +30 -7
- package/lib/emptystate/version3/EmptyInvoice.js +30 -6
- package/lib/emptystate/version3/EmptyLine.js +30 -7
- package/lib/emptystate/version3/EmptyMessenger.js +30 -6
- package/lib/emptystate/version3/EmptyNoData.js +30 -6
- package/lib/emptystate/version3/EmptyNotification.js +30 -6
- package/lib/emptystate/version3/EmptyPreference.js +30 -6
- package/lib/emptystate/version3/EmptyProducts.js +30 -6
- package/lib/emptystate/version3/EmptyReply.js +30 -6
- package/lib/emptystate/version3/EmptyReports.js +30 -6
- package/lib/emptystate/version3/EmptySandbox.js +58 -23
- package/lib/emptystate/version3/EmptySchedule.js +30 -6
- package/lib/emptystate/version3/EmptySearch.js +30 -6
- package/lib/emptystate/version3/EmptySkills.js +30 -6
- package/lib/emptystate/version3/EmptySla.js +30 -6
- package/lib/emptystate/version3/EmptySnippet.js +30 -6
- package/lib/emptystate/version3/EmptyTag.js +30 -6
- package/lib/emptystate/version3/EmptyTask.js +30 -6
- package/lib/emptystate/version3/EmptyTeams.js +30 -7
- package/lib/emptystate/version3/EmptyTelegram.js +30 -7
- package/lib/emptystate/version3/EmptyTemplate.js +30 -6
- package/lib/emptystate/version3/EmptyTicket.js +30 -7
- package/lib/emptystate/version3/EmptyTimeEntry.js +30 -6
- package/lib/emptystate/version3/EmptyTimeline.js +30 -7
- package/lib/emptystate/version3/EmptyTopic.js +30 -6
- package/lib/emptystate/version3/EmptyTwilio.js +30 -7
- package/lib/emptystate/version3/EmptyWechat.js +30 -7
- package/lib/emptystate/version3/EmptyWhatsapp.js +30 -7
- package/lib/emptystate/version3/EmptyZSCKey.js +145 -0
- package/lib/emptystate/version3/Export.js +30 -7
- package/lib/emptystate/version3/Extensions.js +30 -7
- package/lib/emptystate/version3/Extractor.js +30 -7
- package/lib/emptystate/version3/GCBot.js +30 -7
- package/lib/emptystate/version3/GCConversation.js +30 -7
- package/lib/emptystate/version3/Import.js +30 -7
- package/lib/emptystate/version3/KBBot.js +30 -7
- package/lib/emptystate/version3/Multilingual.js +30 -7
- package/lib/emptystate/version3/NetworkError.js +30 -7
- package/lib/emptystate/version3/Predictor.js +30 -7
- package/lib/emptystate/version3/ReadRecipients.js +30 -7
- package/lib/emptystate/version3/SupportPlan.js +30 -6
- package/lib/emptystate/version3/Variable.js +30 -7
- package/lib/emptystate/version3/ZiaAnamoly.js +30 -7
- package/lib/emptystate/version3/index.js +79 -0
- package/lib/errorstate/index.js +9 -0
- package/lib/errorstate/props/propTypes.js +3 -0
- package/lib/errorstate/version1/EmptyInconvenience.js +31 -7
- package/lib/errorstate/version1/NoRequestFound.js +31 -7
- package/lib/errorstate/version1/PageNotFound.js +31 -7
- package/lib/errorstate/version1/UnableToProcessRequest.js +31 -7
- package/lib/errorstate/version1/UnauthorizedLogin.js +31 -7
- package/lib/errorstate/version1/UrlNotFound.js +31 -7
- package/lib/errorstate/version1/WillBeRightBack.js +31 -7
- package/lib/errorstate/version1/index.js +8 -0
- package/lib/errorstate/version2/EmptyUnauthorizedLogin.js +30 -7
- package/lib/errorstate/version2/EmptyWillBeRightBack.js +30 -7
- package/lib/errorstate/version2/NotImpossible.js +30 -7
- package/lib/errorstate/version2/index.js +3 -0
- package/lib/errorstate/version3/ErrorInconvenience.js +30 -7
- package/lib/errorstate/version3/ErrorOopsSomethingMiss.js +30 -7
- package/lib/errorstate/version3/ErrorUnableToProcessRequest.js +30 -7
- package/lib/errorstate/version3/ErrorUnauthorizedLogin.js +30 -7
- package/lib/errorstate/version3/ErrorUrlNotFound.js +30 -7
- package/lib/errorstate/version3/ErrorWillBeRightBack.js +30 -7
- package/lib/errorstate/version3/index.js +7 -0
- package/lib/index.js +10 -0
- package/package.json +75 -54
- package/postPublish.js +8 -0
- package/prePublish.js +70 -0
- package/css_error.log +0 -0
|
@@ -1,38 +1,61 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
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
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports["default"] = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
9
12
|
var _propTypes = require("./../props/propTypes");
|
|
13
|
+
|
|
10
14
|
var _defaultProps = require("./../props/defaultProps");
|
|
15
|
+
|
|
11
16
|
var _SVG = _interopRequireDefault(require("./../../SVG/SVG"));
|
|
17
|
+
|
|
12
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
13
20
|
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; }
|
|
21
|
+
|
|
14
22
|
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; }
|
|
15
|
-
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
16
26
|
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); }
|
|
27
|
+
|
|
17
28
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
|
-
|
|
29
|
+
|
|
30
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
31
|
+
|
|
19
32
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
-
|
|
21
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
33
|
+
|
|
22
34
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
|
+
|
|
23
36
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
+
|
|
24
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
39
|
+
|
|
25
40
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
41
|
+
|
|
26
42
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
|
+
|
|
27
44
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
|
+
|
|
28
46
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
|
+
|
|
29
48
|
var UrlNotFound = /*#__PURE__*/function (_React$Component) {
|
|
30
49
|
_inherits(UrlNotFound, _React$Component);
|
|
50
|
+
|
|
31
51
|
var _super = _createSuper(UrlNotFound);
|
|
52
|
+
|
|
32
53
|
function UrlNotFound() {
|
|
33
54
|
_classCallCheck(this, UrlNotFound);
|
|
55
|
+
|
|
34
56
|
return _super.apply(this, arguments);
|
|
35
57
|
}
|
|
58
|
+
|
|
36
59
|
_createClass(UrlNotFound, [{
|
|
37
60
|
key: "render",
|
|
38
61
|
value: function render() {
|
|
@@ -123,15 +146,15 @@ var UrlNotFound = /*#__PURE__*/function (_React$Component) {
|
|
|
123
146
|
}));
|
|
124
147
|
}
|
|
125
148
|
}]);
|
|
149
|
+
|
|
126
150
|
return UrlNotFound;
|
|
127
151
|
}(_react["default"].Component);
|
|
152
|
+
|
|
128
153
|
exports["default"] = UrlNotFound;
|
|
129
154
|
UrlNotFound.propTypes = _propTypes.ErrorStateProps;
|
|
130
155
|
UrlNotFound.defaultProps = _objectSpread(_objectSpread({}, _defaultProps.ErrorStateDefaultProps), {}, {
|
|
131
156
|
dataId: 'urlnotfound'
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
// if (__DOCS__) {
|
|
157
|
+
}); // if (__DOCS__) {
|
|
135
158
|
// UrlNotFound.docs = {
|
|
136
159
|
// componentGroup: 'Emptystate'
|
|
137
160
|
// };
|
|
@@ -1,38 +1,61 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
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
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports["default"] = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
9
12
|
var _propTypes = require("./../props/propTypes");
|
|
13
|
+
|
|
10
14
|
var _defaultProps = require("./../props/defaultProps");
|
|
15
|
+
|
|
11
16
|
var _SVG = _interopRequireDefault(require("./../../SVG/SVG"));
|
|
17
|
+
|
|
12
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
13
20
|
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; }
|
|
21
|
+
|
|
14
22
|
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; }
|
|
15
|
-
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
16
26
|
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); }
|
|
27
|
+
|
|
17
28
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
|
-
|
|
29
|
+
|
|
30
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
31
|
+
|
|
19
32
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
-
|
|
21
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
33
|
+
|
|
22
34
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
|
+
|
|
23
36
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
|
+
|
|
24
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
39
|
+
|
|
25
40
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
41
|
+
|
|
26
42
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
|
+
|
|
27
44
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45
|
+
|
|
28
46
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
|
+
|
|
29
48
|
var WillBeRightBack = /*#__PURE__*/function (_React$Component) {
|
|
30
49
|
_inherits(WillBeRightBack, _React$Component);
|
|
50
|
+
|
|
31
51
|
var _super = _createSuper(WillBeRightBack);
|
|
52
|
+
|
|
32
53
|
function WillBeRightBack() {
|
|
33
54
|
_classCallCheck(this, WillBeRightBack);
|
|
55
|
+
|
|
34
56
|
return _super.apply(this, arguments);
|
|
35
57
|
}
|
|
58
|
+
|
|
36
59
|
_createClass(WillBeRightBack, [{
|
|
37
60
|
key: "render",
|
|
38
61
|
value: function render() {
|
|
@@ -123,15 +146,15 @@ var WillBeRightBack = /*#__PURE__*/function (_React$Component) {
|
|
|
123
146
|
}));
|
|
124
147
|
}
|
|
125
148
|
}]);
|
|
149
|
+
|
|
126
150
|
return WillBeRightBack;
|
|
127
151
|
}(_react["default"].Component);
|
|
152
|
+
|
|
128
153
|
exports["default"] = WillBeRightBack;
|
|
129
154
|
WillBeRightBack.propTypes = _propTypes.ErrorStateProps;
|
|
130
155
|
WillBeRightBack.defaultProps = _objectSpread(_objectSpread({}, _defaultProps.ErrorStateDefaultProps), {}, {
|
|
131
156
|
dataId: 'willberightback'
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
// if (__DOCS__) {
|
|
157
|
+
}); // if (__DOCS__) {
|
|
135
158
|
// WillBeRightBack.docs = {
|
|
136
159
|
// componentGroup: 'Emptystate'
|
|
137
160
|
// };
|
|
@@ -39,10 +39,17 @@ Object.defineProperty(exports, "ErrorWillBeRightBack", {
|
|
|
39
39
|
return _ErrorWillBeRightBack["default"];
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
+
|
|
42
43
|
var _ErrorInconvenience = _interopRequireDefault(require("./ErrorInconvenience"));
|
|
44
|
+
|
|
43
45
|
var _ErrorOopsSomethingMiss = _interopRequireDefault(require("./ErrorOopsSomethingMiss"));
|
|
46
|
+
|
|
44
47
|
var _ErrorUnableToProcessRequest = _interopRequireDefault(require("./ErrorUnableToProcessRequest"));
|
|
48
|
+
|
|
45
49
|
var _ErrorUnauthorizedLogin = _interopRequireDefault(require("./ErrorUnauthorizedLogin"));
|
|
50
|
+
|
|
46
51
|
var _ErrorUrlNotFound = _interopRequireDefault(require("./ErrorUrlNotFound"));
|
|
52
|
+
|
|
47
53
|
var _ErrorWillBeRightBack = _interopRequireDefault(require("./ErrorWillBeRightBack"));
|
|
54
|
+
|
|
48
55
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
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
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -17,12 +18,21 @@ Object.defineProperty(exports, "SVG", {
|
|
|
17
18
|
return _SVG["default"];
|
|
18
19
|
}
|
|
19
20
|
});
|
|
21
|
+
|
|
20
22
|
var _SVG = _interopRequireDefault(require("./SVG/SVG"));
|
|
23
|
+
|
|
21
24
|
var _Loader = _interopRequireDefault(require("./Loader/Loader"));
|
|
25
|
+
|
|
22
26
|
var _EmptyState = _interopRequireWildcard(require("./emptystate/"));
|
|
27
|
+
|
|
23
28
|
exports.EmptyState = _EmptyState;
|
|
29
|
+
|
|
24
30
|
var _ErrorState = _interopRequireWildcard(require("./errorstate"));
|
|
31
|
+
|
|
25
32
|
exports.ErrorState = _ErrorState;
|
|
33
|
+
|
|
26
34
|
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); }
|
|
35
|
+
|
|
27
36
|
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; }
|
|
37
|
+
|
|
28
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/package.json
CHANGED
|
@@ -1,55 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zohodesk/svg",
|
|
3
|
-
"version": "1.0.0
|
|
4
|
-
"main": "lib/index",
|
|
5
|
-
"module": "es/index.js",
|
|
6
|
-
"jsnext:main": "es/index.js",
|
|
7
|
-
"private": false,
|
|
8
|
-
"publishConfig": {
|
|
9
|
-
"access": "public"
|
|
10
|
-
},
|
|
11
|
-
"author": "Z Team",
|
|
12
|
-
"homepage": "https://www.npmjs.com/search?q=@zohodesk",
|
|
13
|
-
"license": "ISC",
|
|
14
|
-
"keywords": [
|
|
15
|
-
"DOT",
|
|
16
|
-
"ZOHODESK",
|
|
17
|
-
"ZTEAM",
|
|
18
|
-
"LIBRARY"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"clean": "react-cli clean lib es coverage assets && mkdir assets",
|
|
22
|
-
"build": "react-cli build:component:cmjs",
|
|
23
|
-
"build:es": "react-cli build:library:es",
|
|
24
|
-
"build
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@zohodesk/svg",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "lib/index",
|
|
5
|
+
"module": "es/index.js",
|
|
6
|
+
"jsnext:main": "es/index.js",
|
|
7
|
+
"private": false,
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"author": "Z Team",
|
|
12
|
+
"homepage": "https://www.npmjs.com/search?q=@zohodesk",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"DOT",
|
|
16
|
+
"ZOHODESK",
|
|
17
|
+
"ZTEAM",
|
|
18
|
+
"LIBRARY"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"clean": "react-cli clean lib es coverage assets && mkdir assets",
|
|
22
|
+
"build:lib": "react-cli build:component:cmjs",
|
|
23
|
+
"build:es": "react-cli build:library:es",
|
|
24
|
+
"build": "npm run build:lib && npm run build:es",
|
|
25
|
+
"build:local": " npm run build && npm run rtl && npm run cssVariableConvert",
|
|
26
|
+
"build:watch": "npm run clean && npm run build:variables && npm run build && npm run build:es --module:mode=dev -- -w",
|
|
27
|
+
"rtl:watch": "react-cli rtl ./src ./es -w",
|
|
28
|
+
"prepare": "node prePublish.js && npm run init && npm run build && npm run rtl && npm run cssVariableConvert",
|
|
29
|
+
"init": "npm run clean && npm run build:variables",
|
|
30
|
+
"build:variables": "node ./preprocess/index",
|
|
31
|
+
"rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
|
|
32
|
+
"lint": "react-cli lint",
|
|
33
|
+
"common_package_build": "cd ../common && npm run build && cd ../svg",
|
|
34
|
+
"docs": "react-cli docs",
|
|
35
|
+
"postpublish": "node postPublish.js",
|
|
36
|
+
"download": "react-cli clean ./node_modules ./package-lock.json && npm install",
|
|
37
|
+
"expublish": "npm publish --tag experimental-version",
|
|
38
|
+
"cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
|
|
39
|
+
"variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
|
|
40
|
+
"variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
|
|
41
|
+
"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"
|
|
42
|
+
},
|
|
43
|
+
"react-cli": {
|
|
44
|
+
"preprocess": {
|
|
45
|
+
"runner": "./preprocess/index.js"
|
|
46
|
+
},
|
|
47
|
+
"css": {
|
|
48
|
+
"plugins": {
|
|
49
|
+
"hasRTL": true,
|
|
50
|
+
"cssVariableReplacement": true
|
|
51
|
+
},
|
|
52
|
+
"patterns": {
|
|
53
|
+
"cssVariableReplacement": [
|
|
54
|
+
"**/src/**",
|
|
55
|
+
"**/lib/**",
|
|
56
|
+
"**/es/**",
|
|
57
|
+
"!**/node_modules/**"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"cssVariableReplacementConfig": "./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json"
|
|
61
|
+
},
|
|
62
|
+
"docs": {
|
|
63
|
+
"cssUniqueness": "false",
|
|
64
|
+
"disableES5Transpile": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@zohodesk/variables": "1.0.0-beta.31",
|
|
70
|
+
"@svgr/cli": "6.2.1",
|
|
71
|
+
"@zohodesk-private/css-variable-migrator": "^1.0.5"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@zohodesk/variables": "1.0.0-beta.31"
|
|
75
|
+
}
|
|
55
76
|
}
|
package/postPublish.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
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);
|
package/css_error.log
DELETED
|
File without changes
|