@kasuvia/sdk 0.0.5 → 0.0.7

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.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",
@@ -17,6 +6,10 @@ var STORAGE_KEYS = {
17
6
  ORDERS_LINKED: "kasuvia_orders_linked",
18
7
  STOREFRONT_STATE: "storefront_state_v3"
19
8
  };
9
+ var PAYMENT_URLS = {
10
+ MONNIFY: "https://sdk.monnify.com/plugin/monnify.js",
11
+ FLUTTERWAVE: "https://checkout.flutterwave.com/v3.js"
12
+ };
20
13
 
21
14
  // src/types/store/index.ts
22
15
  var ServiceTypeEnum = /* @__PURE__ */ ((ServiceTypeEnum2) => {
@@ -2536,8 +2529,8 @@ function validateMessage(message) {
2536
2529
  }
2537
2530
  export {
2538
2531
  InvalidBaseURLError,
2532
+ PAYMENT_URLS,
2539
2533
  STORAGE_KEYS,
2540
- SdkProvider,
2541
2534
  ServiceLocationTypeEnum,
2542
2535
  ServiceRecurringIntervalEnum,
2543
2536
  ServiceTypeEnum,
@@ -2644,7 +2637,6 @@ export {
2644
2637
  updateCmsEntry,
2645
2638
  updateGuestCartItemQuantity,
2646
2639
  updateProfile,
2647
- useSdkContext,
2648
2640
  validateConfirmPassword,
2649
2641
  validateEmail,
2650
2642
  validateMessage,