@juv/codego-react-ui 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -2
- package/dist/index.global.js +14 -10
- package/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12880,7 +12880,7 @@ var setupInterceptors = () => {
|
|
|
12880
12880
|
(response) => {
|
|
12881
12881
|
const config = response.config;
|
|
12882
12882
|
if (config.onSuccessNotification && toastFn) {
|
|
12883
|
-
toastFn
|
|
12883
|
+
toastFn({
|
|
12884
12884
|
variant: "success",
|
|
12885
12885
|
title: config.successNotifTitle || "Success",
|
|
12886
12886
|
description: config.successNotifContent || "Operation completed successfully"
|
|
@@ -12891,7 +12891,7 @@ var setupInterceptors = () => {
|
|
|
12891
12891
|
(error) => {
|
|
12892
12892
|
const config = error.config;
|
|
12893
12893
|
if (config?.onErrorNotification && toastFn) {
|
|
12894
|
-
toastFn
|
|
12894
|
+
toastFn({
|
|
12895
12895
|
variant: "error",
|
|
12896
12896
|
title: config.errorNotifTitle || "Error",
|
|
12897
12897
|
description: config.errorNotifContent || error.response?.data?.message || "Something went wrong"
|
|
@@ -12905,6 +12905,10 @@ var setupInterceptors = () => {
|
|
|
12905
12905
|
);
|
|
12906
12906
|
};
|
|
12907
12907
|
|
|
12908
|
+
// src/lib/codego/provider.tsx
|
|
12909
|
+
var React51 = __toESM(require("react"), 1);
|
|
12910
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
12911
|
+
|
|
12908
12912
|
// src/lib/codego/index.ts
|
|
12909
12913
|
setupInterceptors();
|
|
12910
12914
|
var api = {
|
package/dist/index.global.js
CHANGED
|
@@ -12968,7 +12968,7 @@ var CodegoUI = (() => {
|
|
|
12968
12968
|
var require_react_dom_production = __commonJS({
|
|
12969
12969
|
"node_modules/react-dom/cjs/react-dom.production.js"(exports) {
|
|
12970
12970
|
"use strict";
|
|
12971
|
-
var
|
|
12971
|
+
var React55 = require_react();
|
|
12972
12972
|
function formatProdErrorMessage(code) {
|
|
12973
12973
|
var url2 = "https://react.dev/errors/" + code;
|
|
12974
12974
|
if (1 < arguments.length) {
|
|
@@ -13008,7 +13008,7 @@ var CodegoUI = (() => {
|
|
|
13008
13008
|
implementation
|
|
13009
13009
|
};
|
|
13010
13010
|
}
|
|
13011
|
-
var ReactSharedInternals =
|
|
13011
|
+
var ReactSharedInternals = React55.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
13012
13012
|
function getCrossOriginStringAs(as, input) {
|
|
13013
13013
|
if ("font" === as) return "";
|
|
13014
13014
|
if ("string" === typeof input)
|
|
@@ -13162,7 +13162,7 @@ var CodegoUI = (() => {
|
|
|
13162
13162
|
return dispatcher;
|
|
13163
13163
|
}
|
|
13164
13164
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
13165
|
-
var
|
|
13165
|
+
var React55 = require_react(), Internals = {
|
|
13166
13166
|
d: {
|
|
13167
13167
|
f: noop2,
|
|
13168
13168
|
r: function() {
|
|
@@ -13180,7 +13180,7 @@ var CodegoUI = (() => {
|
|
|
13180
13180
|
},
|
|
13181
13181
|
p: 0,
|
|
13182
13182
|
findDOMNode: null
|
|
13183
|
-
}, REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), ReactSharedInternals =
|
|
13183
|
+
}, REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), ReactSharedInternals = React55.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
13184
13184
|
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
|
|
13185
13185
|
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
13186
13186
|
);
|
|
@@ -13627,18 +13627,18 @@ var CodegoUI = (() => {
|
|
|
13627
13627
|
function isValidElement(object) {
|
|
13628
13628
|
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
13629
13629
|
}
|
|
13630
|
-
var
|
|
13630
|
+
var React55 = require_react(), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React55.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty2 = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
13631
13631
|
return null;
|
|
13632
13632
|
};
|
|
13633
|
-
|
|
13633
|
+
React55 = {
|
|
13634
13634
|
react_stack_bottom_frame: function(callStackForError) {
|
|
13635
13635
|
return callStackForError();
|
|
13636
13636
|
}
|
|
13637
13637
|
};
|
|
13638
13638
|
var specialPropKeyWarningShown;
|
|
13639
13639
|
var didWarnAboutElementRef = {};
|
|
13640
|
-
var unknownOwnerDebugStack =
|
|
13641
|
-
|
|
13640
|
+
var unknownOwnerDebugStack = React55.react_stack_bottom_frame.bind(
|
|
13641
|
+
React55,
|
|
13642
13642
|
UnknownOwner
|
|
13643
13643
|
)();
|
|
13644
13644
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
@@ -76436,7 +76436,7 @@ ${n2.shaderPreludeCode.vertexSource}`, define: n2.shaderDefine }, defaultProject
|
|
|
76436
76436
|
(response) => {
|
|
76437
76437
|
const config = response.config;
|
|
76438
76438
|
if (config.onSuccessNotification && toastFn) {
|
|
76439
|
-
toastFn
|
|
76439
|
+
toastFn({
|
|
76440
76440
|
variant: "success",
|
|
76441
76441
|
title: config.successNotifTitle || "Success",
|
|
76442
76442
|
description: config.successNotifContent || "Operation completed successfully"
|
|
@@ -76447,7 +76447,7 @@ ${n2.shaderPreludeCode.vertexSource}`, define: n2.shaderDefine }, defaultProject
|
|
|
76447
76447
|
(error) => {
|
|
76448
76448
|
const config = error.config;
|
|
76449
76449
|
if (config?.onErrorNotification && toastFn) {
|
|
76450
|
-
toastFn
|
|
76450
|
+
toastFn({
|
|
76451
76451
|
variant: "error",
|
|
76452
76452
|
title: config.errorNotifTitle || "Error",
|
|
76453
76453
|
description: config.errorNotifContent || error.response?.data?.message || "Something went wrong"
|
|
@@ -76461,6 +76461,10 @@ ${n2.shaderPreludeCode.vertexSource}`, define: n2.shaderDefine }, defaultProject
|
|
|
76461
76461
|
);
|
|
76462
76462
|
};
|
|
76463
76463
|
|
|
76464
|
+
// src/lib/codego/provider.tsx
|
|
76465
|
+
var React53 = __toESM(require_react(), 1);
|
|
76466
|
+
var import_jsx_runtime63 = __toESM(require_jsx_runtime(), 1);
|
|
76467
|
+
|
|
76464
76468
|
// src/lib/codego/index.ts
|
|
76465
76469
|
setupInterceptors();
|
|
76466
76470
|
var api = {
|
package/dist/index.js
CHANGED
|
@@ -12760,7 +12760,7 @@ var setupInterceptors = () => {
|
|
|
12760
12760
|
(response) => {
|
|
12761
12761
|
const config = response.config;
|
|
12762
12762
|
if (config.onSuccessNotification && toastFn) {
|
|
12763
|
-
toastFn
|
|
12763
|
+
toastFn({
|
|
12764
12764
|
variant: "success",
|
|
12765
12765
|
title: config.successNotifTitle || "Success",
|
|
12766
12766
|
description: config.successNotifContent || "Operation completed successfully"
|
|
@@ -12771,7 +12771,7 @@ var setupInterceptors = () => {
|
|
|
12771
12771
|
(error) => {
|
|
12772
12772
|
const config = error.config;
|
|
12773
12773
|
if (config?.onErrorNotification && toastFn) {
|
|
12774
|
-
toastFn
|
|
12774
|
+
toastFn({
|
|
12775
12775
|
variant: "error",
|
|
12776
12776
|
title: config.errorNotifTitle || "Error",
|
|
12777
12777
|
description: config.errorNotifContent || error.response?.data?.message || "Something went wrong"
|
|
@@ -12785,6 +12785,10 @@ var setupInterceptors = () => {
|
|
|
12785
12785
|
);
|
|
12786
12786
|
};
|
|
12787
12787
|
|
|
12788
|
+
// src/lib/codego/provider.tsx
|
|
12789
|
+
import * as React51 from "react";
|
|
12790
|
+
import { Fragment as Fragment21, jsx as jsx63 } from "react/jsx-runtime";
|
|
12791
|
+
|
|
12788
12792
|
// src/lib/codego/index.ts
|
|
12789
12793
|
setupInterceptors();
|
|
12790
12794
|
var api = {
|