@kasuvia/sdk 0.0.4 → 0.0.6
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/hooks/index.d.mts +45 -3
- package/dist/hooks/index.d.ts +45 -3
- package/dist/index-C1chUA3P.d.mts +30 -0
- package/dist/index-C1chUA3P.d.ts +30 -0
- package/dist/index-D9ojrziq.d.mts +786 -0
- package/dist/{sdk-context-Cy51kEKT.d.mts → index-ac_Jx9NI.d.mts} +1 -74
- package/dist/{sdk-context-Cy51kEKT.d.ts → index-ac_Jx9NI.d.ts} +1 -74
- package/dist/index-hgK4j47a.d.ts +786 -0
- package/dist/index.d.mts +6 -787
- package/dist/index.d.ts +6 -787
- package/dist/index.js +0 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -13
- package/dist/index.mjs.map +1 -1
- package/dist/services/index.d.mts +2 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.js +2369 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/index.mjs +2252 -0
- package/dist/services/index.mjs.map +1 -0
- package/package.json +6 -1
- package/src/index.ts +3 -5
package/dist/index.js
CHANGED
|
@@ -22,7 +22,6 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
InvalidBaseURLError: () => InvalidBaseURLError,
|
|
24
24
|
STORAGE_KEYS: () => STORAGE_KEYS,
|
|
25
|
-
SdkProvider: () => SdkProvider,
|
|
26
25
|
ServiceLocationTypeEnum: () => ServiceLocationTypeEnum,
|
|
27
26
|
ServiceRecurringIntervalEnum: () => ServiceRecurringIntervalEnum,
|
|
28
27
|
ServiceTypeEnum: () => ServiceTypeEnum,
|
|
@@ -129,7 +128,6 @@ __export(index_exports, {
|
|
|
129
128
|
updateCmsEntry: () => updateCmsEntry,
|
|
130
129
|
updateGuestCartItemQuantity: () => updateGuestCartItemQuantity,
|
|
131
130
|
updateProfile: () => updateProfile,
|
|
132
|
-
useSdkContext: () => useSdkContext,
|
|
133
131
|
validateConfirmPassword: () => validateConfirmPassword,
|
|
134
132
|
validateEmail: () => validateEmail,
|
|
135
133
|
validateMessage: () => validateMessage,
|
|
@@ -142,17 +140,6 @@ __export(index_exports, {
|
|
|
142
140
|
});
|
|
143
141
|
module.exports = __toCommonJS(index_exports);
|
|
144
142
|
|
|
145
|
-
// src/context/sdk-context.tsx
|
|
146
|
-
var import_react = require("react");
|
|
147
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
148
|
-
var SdkContext = (0, import_react.createContext)(null);
|
|
149
|
-
function SdkProvider({ config, accessToken, children }) {
|
|
150
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SdkContext.Provider, { value: { config, accessToken }, children });
|
|
151
|
-
}
|
|
152
|
-
function useSdkContext() {
|
|
153
|
-
return (0, import_react.useContext)(SdkContext);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
143
|
// src/constants.ts
|
|
157
144
|
var STORAGE_KEYS = {
|
|
158
145
|
ACCESS_TOKEN: "kasuvia_access_token",
|
|
@@ -2682,7 +2669,6 @@ function validateMessage(message) {
|
|
|
2682
2669
|
0 && (module.exports = {
|
|
2683
2670
|
InvalidBaseURLError,
|
|
2684
2671
|
STORAGE_KEYS,
|
|
2685
|
-
SdkProvider,
|
|
2686
2672
|
ServiceLocationTypeEnum,
|
|
2687
2673
|
ServiceRecurringIntervalEnum,
|
|
2688
2674
|
ServiceTypeEnum,
|
|
@@ -2789,7 +2775,6 @@ function validateMessage(message) {
|
|
|
2789
2775
|
updateCmsEntry,
|
|
2790
2776
|
updateGuestCartItemQuantity,
|
|
2791
2777
|
updateProfile,
|
|
2792
|
-
useSdkContext,
|
|
2793
2778
|
validateConfirmPassword,
|
|
2794
2779
|
validateEmail,
|
|
2795
2780
|
validateMessage,
|