@kasuvia/sdk 0.0.5 → 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 -4
- package/dist/hooks/index.d.ts +45 -4
- package/dist/index-C1chUA3P.d.mts +30 -0
- package/dist/index-C1chUA3P.d.ts +30 -0
- package/dist/{index-Dowl5224.d.mts → index-D9ojrziq.d.mts} +1 -1
- package/dist/{index-CzVMyUs4.d.mts → index-ac_Jx9NI.d.mts} +1 -1
- package/dist/{index-CzVMyUs4.d.ts → index-ac_Jx9NI.d.ts} +1 -1
- package/dist/{index-CxNLI4nw.d.ts → index-hgK4j47a.d.ts} +1 -1
- package/dist/index.d.mts +5 -6
- package/dist/index.d.ts +5 -6
- 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 -2
- package/dist/services/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/index.ts +3 -5
- package/dist/sdk-context-BuarJbeb.d.ts +0 -75
- package/dist/sdk-context-Db8kf1Tv.d.mts +0 -75
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
// src/context/sdk-context.tsx
|
|
2
|
-
import { createContext, useContext } from "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
var SdkContext = createContext(null);
|
|
5
|
-
function SdkProvider({ config, accessToken, children }) {
|
|
6
|
-
return /* @__PURE__ */ jsx(SdkContext.Provider, { value: { config, accessToken }, children });
|
|
7
|
-
}
|
|
8
|
-
function useSdkContext() {
|
|
9
|
-
return useContext(SdkContext);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
1
|
// src/constants.ts
|
|
13
2
|
var STORAGE_KEYS = {
|
|
14
3
|
ACCESS_TOKEN: "kasuvia_access_token",
|
|
@@ -2537,7 +2526,6 @@ function validateMessage(message) {
|
|
|
2537
2526
|
export {
|
|
2538
2527
|
InvalidBaseURLError,
|
|
2539
2528
|
STORAGE_KEYS,
|
|
2540
|
-
SdkProvider,
|
|
2541
2529
|
ServiceLocationTypeEnum,
|
|
2542
2530
|
ServiceRecurringIntervalEnum,
|
|
2543
2531
|
ServiceTypeEnum,
|
|
@@ -2644,7 +2632,6 @@ export {
|
|
|
2644
2632
|
updateCmsEntry,
|
|
2645
2633
|
updateGuestCartItemQuantity,
|
|
2646
2634
|
updateProfile,
|
|
2647
|
-
useSdkContext,
|
|
2648
2635
|
validateConfirmPassword,
|
|
2649
2636
|
validateEmail,
|
|
2650
2637
|
validateMessage,
|