@shipengine/alchemy 4.0.1 → 4.1.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.
@@ -4,6 +4,7 @@ export type AlchemyErrorHandler = (err: Error) => void;
4
4
  export type AlchemyContextValue = {
5
5
  baseURL: string;
6
6
  cdnURL: string;
7
+ container?: HTMLElement;
7
8
  getToken: ShipEngineProps["getToken"];
8
9
  locale?: string;
9
10
  onError: AlchemyErrorHandler;
@@ -15,6 +16,7 @@ export interface AlchemyProviderProps {
15
16
  baseURL?: string;
16
17
  cdnURL?: string;
17
18
  children: React.ReactNode;
19
+ container?: HTMLElement;
18
20
  getToken: ShipEngineProps["getToken"];
19
21
  locale?: string;
20
22
  onError?: AlchemyErrorHandler;
@@ -22,5 +24,5 @@ export interface AlchemyProviderProps {
22
24
  scope?: string | null;
23
25
  themeConfig?: CustomThemeData;
24
26
  }
25
- export declare const AlchemyProvider: ({ baseURL, cdnURL, children, getToken, locale: localeProp, onError, scope, themeConfig, }: AlchemyProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
27
+ export declare const AlchemyProvider: ({ baseURL, cdnURL, container, children, getToken, locale: localeProp, onError, scope, themeConfig, }: AlchemyProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
26
28
  export declare const useAlchemy: () => AlchemyContextValue;
@@ -0,0 +1,2 @@
1
+ import { EmotionCache } from "@emotion/react";
2
+ export declare const getEmotionCache: (scope: string, container?: HTMLElement) => EmotionCache;
@@ -1 +1 @@
1
- export * from "./memoized-create-cache";
1
+ export * from "./get-emotion-cache";
package/index.js CHANGED
@@ -2469,17 +2469,17 @@ Object.defineProperty(dist, "__esModule", { value: true });
2469
2469
  var _default = dist.default = (function () {
2470
2470
  });
2471
2471
 
2472
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2473
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2474
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2472
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2473
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2474
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2475
2475
  var __objRest$8 = (source, exclude) => {
2476
2476
  var target = {};
2477
2477
  for (var prop in source)
2478
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
2478
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
2479
2479
  target[prop] = source[prop];
2480
- if (source != null && __getOwnPropSymbols$c)
2481
- for (var prop of __getOwnPropSymbols$c(source)) {
2482
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
2480
+ if (source != null && __getOwnPropSymbols$d)
2481
+ for (var prop of __getOwnPropSymbols$d(source)) {
2482
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
2483
2483
  target[prop] = source[prop];
2484
2484
  }
2485
2485
  return target;
@@ -5279,21 +5279,21 @@ const getEndUserIpAddress = () => __async$v(void 0, null, function* () {
5279
5279
  }
5280
5280
  });
5281
5281
 
5282
- var __defProp$5 = Object.defineProperty;
5282
+ var __defProp$6 = Object.defineProperty;
5283
5283
  var __defProps$3 = Object.defineProperties;
5284
5284
  var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
5285
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
5286
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
5287
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
5288
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5289
- var __spreadValues$5 = (a, b) => {
5285
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
5286
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
5287
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
5288
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5289
+ var __spreadValues$6 = (a, b) => {
5290
5290
  for (var prop in b || (b = {}))
5291
- if (__hasOwnProp$b.call(b, prop))
5292
- __defNormalProp$5(a, prop, b[prop]);
5293
- if (__getOwnPropSymbols$b)
5294
- for (var prop of __getOwnPropSymbols$b(b)) {
5295
- if (__propIsEnum$b.call(b, prop))
5296
- __defNormalProp$5(a, prop, b[prop]);
5291
+ if (__hasOwnProp$c.call(b, prop))
5292
+ __defNormalProp$6(a, prop, b[prop]);
5293
+ if (__getOwnPropSymbols$c)
5294
+ for (var prop of __getOwnPropSymbols$c(b)) {
5295
+ if (__propIsEnum$c.call(b, prop))
5296
+ __defNormalProp$6(a, prop, b[prop]);
5297
5297
  }
5298
5298
  return a;
5299
5299
  };
@@ -5301,11 +5301,11 @@ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
5301
5301
  var __objRest$7 = (source, exclude) => {
5302
5302
  var target = {};
5303
5303
  for (var prop in source)
5304
- if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
5304
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
5305
5305
  target[prop] = source[prop];
5306
- if (source != null && __getOwnPropSymbols$b)
5307
- for (var prop of __getOwnPropSymbols$b(source)) {
5308
- if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
5306
+ if (source != null && __getOwnPropSymbols$c)
5307
+ for (var prop of __getOwnPropSymbols$c(source)) {
5308
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
5309
5309
  target[prop] = source[prop];
5310
5310
  }
5311
5311
  return target;
@@ -5353,7 +5353,7 @@ class CarriersAPI {
5353
5353
  const endUserIpAddress = yield getEndUserIpAddress();
5354
5354
  if (!endUserIpAddress)
5355
5355
  return Promise.reject([new CodedError("Unable to get IP address")]);
5356
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$3(__spreadValues$5({}, connection), {
5356
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$3(__spreadValues$6({}, connection), {
5357
5357
  endUserIpAddress
5358
5358
  }));
5359
5359
  });
@@ -7622,6 +7622,19 @@ var lib = {
7622
7622
  stringify: stringify
7623
7623
  };
7624
7624
 
7625
+ class AccountBillingPlanAPI {
7626
+ constructor(client) {
7627
+ this.client = client;
7628
+ /**
7629
+ * The `get` method retrieves the account billing plan for the current user.
7630
+ */
7631
+ this.get = () => {
7632
+ return this.client.get("/v1/account/billing_plan");
7633
+ };
7634
+ this.client = client;
7635
+ }
7636
+ }
7637
+
7625
7638
  class CustomPackagesAPI {
7626
7639
  constructor(client) {
7627
7640
  this.client = client;
@@ -7635,19 +7648,19 @@ class CustomPackagesAPI {
7635
7648
  }
7636
7649
  }
7637
7650
 
7638
- var __defProp$4 = Object.defineProperty;
7639
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
7640
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
7641
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
7642
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7643
- var __spreadValues$4 = (a, b) => {
7651
+ var __defProp$5 = Object.defineProperty;
7652
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
7653
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
7654
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
7655
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7656
+ var __spreadValues$5 = (a, b) => {
7644
7657
  for (var prop in b || (b = {}))
7645
- if (__hasOwnProp$a.call(b, prop))
7646
- __defNormalProp$4(a, prop, b[prop]);
7647
- if (__getOwnPropSymbols$a)
7648
- for (var prop of __getOwnPropSymbols$a(b)) {
7649
- if (__propIsEnum$a.call(b, prop))
7650
- __defNormalProp$4(a, prop, b[prop]);
7658
+ if (__hasOwnProp$b.call(b, prop))
7659
+ __defNormalProp$5(a, prop, b[prop]);
7660
+ if (__getOwnPropSymbols$b)
7661
+ for (var prop of __getOwnPropSymbols$b(b)) {
7662
+ if (__propIsEnum$b.call(b, prop))
7663
+ __defNormalProp$5(a, prop, b[prop]);
7651
7664
  }
7652
7665
  return a;
7653
7666
  };
@@ -7694,7 +7707,7 @@ class FundingSourcesAPI {
7694
7707
  const endUserIpAddress = yield getEndUserIpAddress();
7695
7708
  if (!endUserIpAddress)
7696
7709
  return Promise.reject([new CodedError("Unable to get IP address")]);
7697
- return yield this.client.post("/v1/funding_sources", __spreadValues$4({
7710
+ return yield this.client.post("/v1/funding_sources", __spreadValues$5({
7698
7711
  endUserIpAddress
7699
7712
  }, createFundingSource));
7700
7713
  });
@@ -7724,7 +7737,7 @@ class FundingSourcesAPI {
7724
7737
  const endUserIpAddress = yield getEndUserIpAddress();
7725
7738
  if (!endUserIpAddress)
7726
7739
  return Promise.reject([new CodedError("Unable to get IP address")]);
7727
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$4({
7740
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$5({
7728
7741
  endUserIpAddress
7729
7742
  }, carrier));
7730
7743
  });
@@ -8052,21 +8065,21 @@ class WarehousesAPI {
8052
8065
  }
8053
8066
  }
8054
8067
 
8055
- var __defProp$3 = Object.defineProperty;
8068
+ var __defProp$4 = Object.defineProperty;
8056
8069
  var __defProps$2 = Object.defineProperties;
8057
8070
  var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
8058
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
8059
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
8060
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
8061
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8062
- var __spreadValues$3 = (a, b) => {
8071
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
8072
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
8073
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
8074
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8075
+ var __spreadValues$4 = (a, b) => {
8063
8076
  for (var prop in b || (b = {}))
8064
- if (__hasOwnProp$9.call(b, prop))
8065
- __defNormalProp$3(a, prop, b[prop]);
8066
- if (__getOwnPropSymbols$9)
8067
- for (var prop of __getOwnPropSymbols$9(b)) {
8068
- if (__propIsEnum$9.call(b, prop))
8069
- __defNormalProp$3(a, prop, b[prop]);
8077
+ if (__hasOwnProp$a.call(b, prop))
8078
+ __defNormalProp$4(a, prop, b[prop]);
8079
+ if (__getOwnPropSymbols$a)
8080
+ for (var prop of __getOwnPropSymbols$a(b)) {
8081
+ if (__propIsEnum$a.call(b, prop))
8082
+ __defNormalProp$4(a, prop, b[prop]);
8070
8083
  }
8071
8084
  return a;
8072
8085
  };
@@ -8093,7 +8106,7 @@ var __async$r = (__this, __arguments, generator) => {
8093
8106
  };
8094
8107
  const logger$1 = E({
8095
8108
  name: "shipengine-api",
8096
- serializers: __spreadProps$2(__spreadValues$3({}, k), {
8109
+ serializers: __spreadProps$2(__spreadValues$4({}, k), {
8097
8110
  req: (req) => ({
8098
8111
  headers: req.headers,
8099
8112
  method: req.method,
@@ -8118,7 +8131,7 @@ class ShipEngineAPI {
8118
8131
  constructor(token, { baseURL, headers, getToken }) {
8119
8132
  const client = axios.create({
8120
8133
  baseURL,
8121
- headers: __spreadProps$2(__spreadValues$3({}, headers), {
8134
+ headers: __spreadProps$2(__spreadValues$4({}, headers), {
8122
8135
  Authorization: `Bearer ${token}`,
8123
8136
  "Content-Type": "application/json"
8124
8137
  }),
@@ -8220,6 +8233,13 @@ class ShipEngineAPI {
8220
8233
  get accountSettings() {
8221
8234
  return new AccountSettingsAPI(this.client);
8222
8235
  }
8236
+ /**
8237
+ * The `accountBillingPlan` method provides access to the Account Billing Plan endpoints
8238
+ * in ShipEngine API.
8239
+ */
8240
+ get accountBillingPlan() {
8241
+ return new AccountBillingPlanAPI(this.client);
8242
+ }
8223
8243
  /**
8224
8244
  * The `addresses` method provides access to the Address Validation endpoints
8225
8245
  * in ShipEngine API. e.g. Validate Addresses, Parse Addresses, etc.
@@ -8392,21 +8412,21 @@ const delay = (ms) => new Promise((resolve) => {
8392
8412
 
8393
8413
  const onError = (errors) => errors.forEach(console.log);
8394
8414
 
8395
- var __defProp$2 = Object.defineProperty;
8415
+ var __defProp$3 = Object.defineProperty;
8396
8416
  var __defProps$1 = Object.defineProperties;
8397
8417
  var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
8398
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
8399
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
8400
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
8401
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8402
- var __spreadValues$2 = (a, b) => {
8418
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
8419
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
8420
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
8421
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8422
+ var __spreadValues$3 = (a, b) => {
8403
8423
  for (var prop in b || (b = {}))
8404
- if (__hasOwnProp$8.call(b, prop))
8405
- __defNormalProp$2(a, prop, b[prop]);
8406
- if (__getOwnPropSymbols$8)
8407
- for (var prop of __getOwnPropSymbols$8(b)) {
8408
- if (__propIsEnum$8.call(b, prop))
8409
- __defNormalProp$2(a, prop, b[prop]);
8424
+ if (__hasOwnProp$9.call(b, prop))
8425
+ __defNormalProp$3(a, prop, b[prop]);
8426
+ if (__getOwnPropSymbols$9)
8427
+ for (var prop of __getOwnPropSymbols$9(b)) {
8428
+ if (__propIsEnum$9.call(b, prop))
8429
+ __defNormalProp$3(a, prop, b[prop]);
8410
8430
  }
8411
8431
  return a;
8412
8432
  };
@@ -8419,7 +8439,7 @@ if (process.env.NODE_ENV === "production") {
8419
8439
  }
8420
8440
  const logger = E({
8421
8441
  name: "shipengine",
8422
- serializers: __spreadProps$1(__spreadValues$2({}, k), {
8442
+ serializers: __spreadProps$1(__spreadValues$3({}, k), {
8423
8443
  req: (req) => ({
8424
8444
  headers: req.headers,
8425
8445
  method: req.method,
@@ -8976,17 +8996,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
8976
8996
  });
8977
8997
  };
8978
8998
 
8979
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
8980
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
8981
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
8999
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
9000
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
9001
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
8982
9002
  var __objRest$6 = (source, exclude) => {
8983
9003
  var target = {};
8984
9004
  for (var prop in source)
8985
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
9005
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
8986
9006
  target[prop] = source[prop];
8987
- if (source != null && __getOwnPropSymbols$7)
8988
- for (var prop of __getOwnPropSymbols$7(source)) {
8989
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
9007
+ if (source != null && __getOwnPropSymbols$8)
9008
+ for (var prop of __getOwnPropSymbols$8(source)) {
9009
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
8990
9010
  target[prop] = source[prop];
8991
9011
  }
8992
9012
  return target;
@@ -9397,17 +9417,17 @@ const useListSalesOrders = (params = {}) => {
9397
9417
  });
9398
9418
  };
9399
9419
 
9400
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
9401
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
9402
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
9420
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
9421
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
9422
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
9403
9423
  var __objRest$5 = (source, exclude) => {
9404
9424
  var target = {};
9405
9425
  for (var prop in source)
9406
- if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
9426
+ if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
9407
9427
  target[prop] = source[prop];
9408
- if (source != null && __getOwnPropSymbols$6)
9409
- for (var prop of __getOwnPropSymbols$6(source)) {
9410
- if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
9428
+ if (source != null && __getOwnPropSymbols$7)
9429
+ for (var prop of __getOwnPropSymbols$7(source)) {
9430
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
9411
9431
  target[prop] = source[prop];
9412
9432
  }
9413
9433
  return target;
@@ -9445,17 +9465,17 @@ const useNotifySalesOrderShipped = () => {
9445
9465
  });
9446
9466
  };
9447
9467
 
9448
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
9449
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
9450
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
9468
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
9469
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
9470
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
9451
9471
  var __objRest$4 = (source, exclude) => {
9452
9472
  var target = {};
9453
9473
  for (var prop in source)
9454
- if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
9474
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
9455
9475
  target[prop] = source[prop];
9456
- if (source != null && __getOwnPropSymbols$5)
9457
- for (var prop of __getOwnPropSymbols$5(source)) {
9458
- if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
9476
+ if (source != null && __getOwnPropSymbols$6)
9477
+ for (var prop of __getOwnPropSymbols$6(source)) {
9478
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
9459
9479
  target[prop] = source[prop];
9460
9480
  }
9461
9481
  return target;
@@ -9519,17 +9539,17 @@ const useListSalesOrderShipments = (params) => {
9519
9539
  });
9520
9540
  };
9521
9541
 
9522
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
9523
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
9524
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
9542
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
9543
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
9544
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
9525
9545
  var __objRest$3 = (source, exclude) => {
9526
9546
  var target = {};
9527
9547
  for (var prop in source)
9528
- if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
9548
+ if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
9529
9549
  target[prop] = source[prop];
9530
- if (source != null && __getOwnPropSymbols$4)
9531
- for (var prop of __getOwnPropSymbols$4(source)) {
9532
- if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
9550
+ if (source != null && __getOwnPropSymbols$5)
9551
+ for (var prop of __getOwnPropSymbols$5(source)) {
9552
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
9533
9553
  target[prop] = source[prop];
9534
9554
  }
9535
9555
  return target;
@@ -9567,21 +9587,21 @@ const useUpdateSalesOrderShipment = () => {
9567
9587
  });
9568
9588
  };
9569
9589
 
9570
- var __defProp$1 = Object.defineProperty;
9590
+ var __defProp$2 = Object.defineProperty;
9571
9591
  var __defProps = Object.defineProperties;
9572
9592
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
9573
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
9574
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
9575
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
9576
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9577
- var __spreadValues$1 = (a, b) => {
9593
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
9594
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
9595
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
9596
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9597
+ var __spreadValues$2 = (a, b) => {
9578
9598
  for (var prop in b || (b = {}))
9579
- if (__hasOwnProp$3.call(b, prop))
9580
- __defNormalProp$1(a, prop, b[prop]);
9581
- if (__getOwnPropSymbols$3)
9582
- for (var prop of __getOwnPropSymbols$3(b)) {
9583
- if (__propIsEnum$3.call(b, prop))
9584
- __defNormalProp$1(a, prop, b[prop]);
9599
+ if (__hasOwnProp$4.call(b, prop))
9600
+ __defNormalProp$2(a, prop, b[prop]);
9601
+ if (__getOwnPropSymbols$4)
9602
+ for (var prop of __getOwnPropSymbols$4(b)) {
9603
+ if (__propIsEnum$4.call(b, prop))
9604
+ __defNormalProp$2(a, prop, b[prop]);
9585
9605
  }
9586
9606
  return a;
9587
9607
  };
@@ -9627,7 +9647,7 @@ const useCreateShipment = () => {
9627
9647
  postalCode: "",
9628
9648
  stateProvince: ""
9629
9649
  };
9630
- return (yield client.shipments.create(__spreadProps(__spreadValues$1({}, shipment), {
9650
+ return (yield client.shipments.create(__spreadProps(__spreadValues$2({}, shipment), {
9631
9651
  shipTo
9632
9652
  }))).data;
9633
9653
  }),
@@ -9668,17 +9688,17 @@ const useGetShipment = (shipmentId) => {
9668
9688
  });
9669
9689
  };
9670
9690
 
9671
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
9672
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
9673
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
9691
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
9692
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
9693
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
9674
9694
  var __objRest$2 = (source, exclude) => {
9675
9695
  var target = {};
9676
9696
  for (var prop in source)
9677
- if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
9697
+ if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
9678
9698
  target[prop] = source[prop];
9679
- if (source != null && __getOwnPropSymbols$2)
9680
- for (var prop of __getOwnPropSymbols$2(source)) {
9681
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
9699
+ if (source != null && __getOwnPropSymbols$3)
9700
+ for (var prop of __getOwnPropSymbols$3(source)) {
9701
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
9682
9702
  target[prop] = source[prop];
9683
9703
  }
9684
9704
  return target;
@@ -9771,17 +9791,17 @@ const useListWarehouses = (options) => {
9771
9791
  });
9772
9792
  };
9773
9793
 
9774
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
9775
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
9776
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
9794
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
9795
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
9796
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
9777
9797
  var __objRest$1 = (source, exclude) => {
9778
9798
  var target = {};
9779
9799
  for (var prop in source)
9780
- if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
9800
+ if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
9781
9801
  target[prop] = source[prop];
9782
- if (source != null && __getOwnPropSymbols$1)
9783
- for (var prop of __getOwnPropSymbols$1(source)) {
9784
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
9802
+ if (source != null && __getOwnPropSymbols$2)
9803
+ for (var prop of __getOwnPropSymbols$2(source)) {
9804
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
9785
9805
  target[prop] = source[prop];
9786
9806
  }
9787
9807
  return target;
@@ -9819,6 +9839,16 @@ const useUpdateWarehouse = () => {
9819
9839
  });
9820
9840
  };
9821
9841
 
9842
+ const useGetAccountBillingPlan = () => {
9843
+ const { client } = useShipEngine();
9844
+ return reactQuery.useQuery({
9845
+ onError,
9846
+ queryFn: () => client.accountBillingPlan.get(),
9847
+ queryKey: ["useGetAccountBillingPlan"],
9848
+ select: (result) => result.data
9849
+ });
9850
+ };
9851
+
9822
9852
  const fallbackThemeData = {
9823
9853
  borderRadius: {
9824
9854
  L: "16px",
@@ -10233,6 +10263,7 @@ const getDefaultLocale = () => {
10233
10263
  const AlchemyProvider = ({
10234
10264
  baseURL = "https://api.shipengine.com",
10235
10265
  cdnURL = "/",
10266
+ container,
10236
10267
  children,
10237
10268
  getToken,
10238
10269
  locale: localeProp,
@@ -10246,6 +10277,7 @@ const AlchemyProvider = ({
10246
10277
  const contextValue = {
10247
10278
  baseURL,
10248
10279
  cdnURL,
10280
+ container,
10249
10281
  getToken,
10250
10282
  locale,
10251
10283
  onError,
@@ -10797,22 +10829,66 @@ const useI18n = ({ resources }) => {
10797
10829
  }, [resources]);
10798
10830
  };
10799
10831
 
10800
- const memoizedCreateCache = memoize((scope) => {
10801
- const className = `.${scope}`;
10802
- const scopeSelectors = (element) => {
10803
- if ((element == null ? void 0 : element.type) === "rule" && (element == null ? void 0 : element.value.startsWith(".css"))) {
10804
- element.props = [element.props].flat().map((value) => {
10805
- if (value.includes(className))
10806
- return value;
10807
- return `${className} ${value}`;
10808
- });
10832
+ var __defProp$1 = Object.defineProperty;
10833
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
10834
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
10835
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
10836
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10837
+ var __spreadValues$1 = (a, b) => {
10838
+ for (var prop in b || (b = {}))
10839
+ if (__hasOwnProp$1.call(b, prop))
10840
+ __defNormalProp$1(a, prop, b[prop]);
10841
+ if (__getOwnPropSymbols$1)
10842
+ for (var prop of __getOwnPropSymbols$1(b)) {
10843
+ if (__propIsEnum$1.call(b, prop))
10844
+ __defNormalProp$1(a, prop, b[prop]);
10809
10845
  }
10810
- };
10811
- return createCache({
10812
- key: "css",
10813
- stylisPlugins: [scopeSelectors, prefixer$1]
10814
- });
10815
- });
10846
+ return a;
10847
+ };
10848
+ const getScopeSelectors = (className) => (...[element]) => {
10849
+ if ((element == null ? void 0 : element.type) === "rule" && (element == null ? void 0 : element.value.startsWith(".css"))) {
10850
+ element.props = [element.props].flat().map((value) => {
10851
+ if (value.includes(className))
10852
+ return value;
10853
+ return `${className} ${value}`;
10854
+ });
10855
+ }
10856
+ };
10857
+ class EmotionScopeCacheForContainer {
10858
+ constructor(container) {
10859
+ this.container = container;
10860
+ this.cacheByScope = /* @__PURE__ */ new Map();
10861
+ this.initializeCacheForScope = (scope) => {
10862
+ const emotionCache = createCache(__spreadValues$1({
10863
+ key: "css",
10864
+ stylisPlugins: [getScopeSelectors(`.${scope}`), prefixer$1]
10865
+ }, this.container && { container: this.container, prepend: true }));
10866
+ this.cacheByScope.set(scope, emotionCache);
10867
+ return emotionCache;
10868
+ };
10869
+ this.getEmotionCache = (scope) => {
10870
+ var _a;
10871
+ return (_a = this.cacheByScope.get(scope)) != null ? _a : this.initializeCacheForScope(scope);
10872
+ };
10873
+ }
10874
+ }
10875
+ class EmotionScopeContainerCache {
10876
+ constructor() {
10877
+ // allow undefined element for normal no container scope group
10878
+ this.scopeGroupByContainer = /* @__PURE__ */ new Map();
10879
+ this.getEmotionCache = (scope, container) => {
10880
+ var _a;
10881
+ const scopeGroup = (_a = this.scopeGroupByContainer.get(container)) != null ? _a : this.initializeScopeCacheForContainer(container);
10882
+ return scopeGroup.getEmotionCache(scope);
10883
+ };
10884
+ }
10885
+ initializeScopeCacheForContainer(container) {
10886
+ const scopeGroup = new EmotionScopeCacheForContainer(container);
10887
+ this.scopeGroupByContainer.set(container, scopeGroup);
10888
+ return scopeGroup;
10889
+ }
10890
+ }
10891
+ const { getEmotionCache } = new EmotionScopeContainerCache();
10816
10892
 
10817
10893
  const Element = ({
10818
10894
  children,
@@ -10820,11 +10896,11 @@ const Element = ({
10820
10896
  fallback: FallbackComponent,
10821
10897
  resources
10822
10898
  }) => {
10823
- const { scope, onError } = useAlchemy();
10899
+ const { scope, onError, container } = useAlchemy();
10824
10900
  const i18n = useI18n({ resources });
10825
10901
  const elementContainerRef = React.useRef(null);
10826
10902
  const renderProviders = () => /* @__PURE__ */ jsx(reactI18next.I18nextProvider, { i18n, children: /* @__PURE__ */ jsx(ErrorBoundary, { fallback: FallbackComponent, onError, children }) });
10827
- return /* @__PURE__ */ jsx("div", { className: cx(scope, className), "data-testid": scope, ref: elementContainerRef, children: /* @__PURE__ */ jsx(giger.DefaultPortalRefProvider, { portalRef: elementContainerRef, children: scope ? /* @__PURE__ */ jsx(react.CacheProvider, { value: memoizedCreateCache(scope), children: renderProviders() }) : renderProviders() }) });
10903
+ return /* @__PURE__ */ jsx("div", { className: cx(scope, className), "data-testid": scope, ref: elementContainerRef, children: /* @__PURE__ */ jsx(giger.DefaultPortalRefProvider, { portalRef: elementContainerRef, children: scope ? /* @__PURE__ */ jsx(react.CacheProvider, { value: getEmotionCache(scope, container), children: renderProviders() }) : renderProviders() }) });
10828
10904
  };
10829
10905
 
10830
10906
  var __defProp = Object.defineProperty;
@@ -10922,11 +10998,11 @@ exports.WarehousesAPI = WarehousesAPI;
10922
10998
  exports.alchemy = alchemy;
10923
10999
  exports.default = alchemy;
10924
11000
  exports.delay = delay;
11001
+ exports.getEmotionCache = getEmotionCache;
10925
11002
  exports.getEndUserIpAddress = getEndUserIpAddress;
10926
11003
  exports.isCodedError = isCodedError;
10927
11004
  exports.isCodedErrors = isCodedErrors;
10928
11005
  exports.logger = logger;
10929
- exports.memoizedCreateCache = memoizedCreateCache;
10930
11006
  exports.onError = onError;
10931
11007
  exports.retryUntil = retryUntil;
10932
11008
  exports.useAddFunds = useAddFunds;
@@ -10943,6 +11019,7 @@ exports.useDeleteRateCard = useDeleteRateCard;
10943
11019
  exports.useDeleteWarehouse = useDeleteWarehouse;
10944
11020
  exports.useDownloadRateCard = useDownloadRateCard;
10945
11021
  exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;
11022
+ exports.useGetAccountBillingPlan = useGetAccountBillingPlan;
10946
11023
  exports.useGetAccountSettings = useGetAccountSettings;
10947
11024
  exports.useGetAutoFundingConfiguration = useGetAutoFundingConfiguration;
10948
11025
  exports.useGetCarrierById = useGetCarrierById;
package/index.mjs CHANGED
@@ -2447,17 +2447,17 @@ Object.defineProperty(dist, "__esModule", { value: true });
2447
2447
  var _default = dist.default = (function () {
2448
2448
  });
2449
2449
 
2450
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2451
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2452
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
2450
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
2451
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
2452
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
2453
2453
  var __objRest$8 = (source, exclude) => {
2454
2454
  var target = {};
2455
2455
  for (var prop in source)
2456
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
2456
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
2457
2457
  target[prop] = source[prop];
2458
- if (source != null && __getOwnPropSymbols$c)
2459
- for (var prop of __getOwnPropSymbols$c(source)) {
2460
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
2458
+ if (source != null && __getOwnPropSymbols$d)
2459
+ for (var prop of __getOwnPropSymbols$d(source)) {
2460
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
2461
2461
  target[prop] = source[prop];
2462
2462
  }
2463
2463
  return target;
@@ -5257,21 +5257,21 @@ const getEndUserIpAddress = () => __async$v(void 0, null, function* () {
5257
5257
  }
5258
5258
  });
5259
5259
 
5260
- var __defProp$5 = Object.defineProperty;
5260
+ var __defProp$6 = Object.defineProperty;
5261
5261
  var __defProps$3 = Object.defineProperties;
5262
5262
  var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
5263
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
5264
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
5265
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
5266
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5267
- var __spreadValues$5 = (a, b) => {
5263
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
5264
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
5265
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
5266
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5267
+ var __spreadValues$6 = (a, b) => {
5268
5268
  for (var prop in b || (b = {}))
5269
- if (__hasOwnProp$b.call(b, prop))
5270
- __defNormalProp$5(a, prop, b[prop]);
5271
- if (__getOwnPropSymbols$b)
5272
- for (var prop of __getOwnPropSymbols$b(b)) {
5273
- if (__propIsEnum$b.call(b, prop))
5274
- __defNormalProp$5(a, prop, b[prop]);
5269
+ if (__hasOwnProp$c.call(b, prop))
5270
+ __defNormalProp$6(a, prop, b[prop]);
5271
+ if (__getOwnPropSymbols$c)
5272
+ for (var prop of __getOwnPropSymbols$c(b)) {
5273
+ if (__propIsEnum$c.call(b, prop))
5274
+ __defNormalProp$6(a, prop, b[prop]);
5275
5275
  }
5276
5276
  return a;
5277
5277
  };
@@ -5279,11 +5279,11 @@ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
5279
5279
  var __objRest$7 = (source, exclude) => {
5280
5280
  var target = {};
5281
5281
  for (var prop in source)
5282
- if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
5282
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
5283
5283
  target[prop] = source[prop];
5284
- if (source != null && __getOwnPropSymbols$b)
5285
- for (var prop of __getOwnPropSymbols$b(source)) {
5286
- if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
5284
+ if (source != null && __getOwnPropSymbols$c)
5285
+ for (var prop of __getOwnPropSymbols$c(source)) {
5286
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
5287
5287
  target[prop] = source[prop];
5288
5288
  }
5289
5289
  return target;
@@ -5331,7 +5331,7 @@ class CarriersAPI {
5331
5331
  const endUserIpAddress = yield getEndUserIpAddress();
5332
5332
  if (!endUserIpAddress)
5333
5333
  return Promise.reject([new CodedError("Unable to get IP address")]);
5334
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$3(__spreadValues$5({}, connection), {
5334
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$3(__spreadValues$6({}, connection), {
5335
5335
  endUserIpAddress
5336
5336
  }));
5337
5337
  });
@@ -7600,6 +7600,19 @@ var lib = {
7600
7600
  stringify: stringify
7601
7601
  };
7602
7602
 
7603
+ class AccountBillingPlanAPI {
7604
+ constructor(client) {
7605
+ this.client = client;
7606
+ /**
7607
+ * The `get` method retrieves the account billing plan for the current user.
7608
+ */
7609
+ this.get = () => {
7610
+ return this.client.get("/v1/account/billing_plan");
7611
+ };
7612
+ this.client = client;
7613
+ }
7614
+ }
7615
+
7603
7616
  class CustomPackagesAPI {
7604
7617
  constructor(client) {
7605
7618
  this.client = client;
@@ -7613,19 +7626,19 @@ class CustomPackagesAPI {
7613
7626
  }
7614
7627
  }
7615
7628
 
7616
- var __defProp$4 = Object.defineProperty;
7617
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
7618
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
7619
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
7620
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7621
- var __spreadValues$4 = (a, b) => {
7629
+ var __defProp$5 = Object.defineProperty;
7630
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
7631
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
7632
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
7633
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7634
+ var __spreadValues$5 = (a, b) => {
7622
7635
  for (var prop in b || (b = {}))
7623
- if (__hasOwnProp$a.call(b, prop))
7624
- __defNormalProp$4(a, prop, b[prop]);
7625
- if (__getOwnPropSymbols$a)
7626
- for (var prop of __getOwnPropSymbols$a(b)) {
7627
- if (__propIsEnum$a.call(b, prop))
7628
- __defNormalProp$4(a, prop, b[prop]);
7636
+ if (__hasOwnProp$b.call(b, prop))
7637
+ __defNormalProp$5(a, prop, b[prop]);
7638
+ if (__getOwnPropSymbols$b)
7639
+ for (var prop of __getOwnPropSymbols$b(b)) {
7640
+ if (__propIsEnum$b.call(b, prop))
7641
+ __defNormalProp$5(a, prop, b[prop]);
7629
7642
  }
7630
7643
  return a;
7631
7644
  };
@@ -7672,7 +7685,7 @@ class FundingSourcesAPI {
7672
7685
  const endUserIpAddress = yield getEndUserIpAddress();
7673
7686
  if (!endUserIpAddress)
7674
7687
  return Promise.reject([new CodedError("Unable to get IP address")]);
7675
- return yield this.client.post("/v1/funding_sources", __spreadValues$4({
7688
+ return yield this.client.post("/v1/funding_sources", __spreadValues$5({
7676
7689
  endUserIpAddress
7677
7690
  }, createFundingSource));
7678
7691
  });
@@ -7702,7 +7715,7 @@ class FundingSourcesAPI {
7702
7715
  const endUserIpAddress = yield getEndUserIpAddress();
7703
7716
  if (!endUserIpAddress)
7704
7717
  return Promise.reject([new CodedError("Unable to get IP address")]);
7705
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$4({
7718
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$5({
7706
7719
  endUserIpAddress
7707
7720
  }, carrier));
7708
7721
  });
@@ -8030,21 +8043,21 @@ class WarehousesAPI {
8030
8043
  }
8031
8044
  }
8032
8045
 
8033
- var __defProp$3 = Object.defineProperty;
8046
+ var __defProp$4 = Object.defineProperty;
8034
8047
  var __defProps$2 = Object.defineProperties;
8035
8048
  var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
8036
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
8037
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
8038
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
8039
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8040
- var __spreadValues$3 = (a, b) => {
8049
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
8050
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
8051
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
8052
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8053
+ var __spreadValues$4 = (a, b) => {
8041
8054
  for (var prop in b || (b = {}))
8042
- if (__hasOwnProp$9.call(b, prop))
8043
- __defNormalProp$3(a, prop, b[prop]);
8044
- if (__getOwnPropSymbols$9)
8045
- for (var prop of __getOwnPropSymbols$9(b)) {
8046
- if (__propIsEnum$9.call(b, prop))
8047
- __defNormalProp$3(a, prop, b[prop]);
8055
+ if (__hasOwnProp$a.call(b, prop))
8056
+ __defNormalProp$4(a, prop, b[prop]);
8057
+ if (__getOwnPropSymbols$a)
8058
+ for (var prop of __getOwnPropSymbols$a(b)) {
8059
+ if (__propIsEnum$a.call(b, prop))
8060
+ __defNormalProp$4(a, prop, b[prop]);
8048
8061
  }
8049
8062
  return a;
8050
8063
  };
@@ -8071,7 +8084,7 @@ var __async$r = (__this, __arguments, generator) => {
8071
8084
  };
8072
8085
  const logger$1 = E({
8073
8086
  name: "shipengine-api",
8074
- serializers: __spreadProps$2(__spreadValues$3({}, k), {
8087
+ serializers: __spreadProps$2(__spreadValues$4({}, k), {
8075
8088
  req: (req) => ({
8076
8089
  headers: req.headers,
8077
8090
  method: req.method,
@@ -8096,7 +8109,7 @@ class ShipEngineAPI {
8096
8109
  constructor(token, { baseURL, headers, getToken }) {
8097
8110
  const client = axios.create({
8098
8111
  baseURL,
8099
- headers: __spreadProps$2(__spreadValues$3({}, headers), {
8112
+ headers: __spreadProps$2(__spreadValues$4({}, headers), {
8100
8113
  Authorization: `Bearer ${token}`,
8101
8114
  "Content-Type": "application/json"
8102
8115
  }),
@@ -8198,6 +8211,13 @@ class ShipEngineAPI {
8198
8211
  get accountSettings() {
8199
8212
  return new AccountSettingsAPI(this.client);
8200
8213
  }
8214
+ /**
8215
+ * The `accountBillingPlan` method provides access to the Account Billing Plan endpoints
8216
+ * in ShipEngine API.
8217
+ */
8218
+ get accountBillingPlan() {
8219
+ return new AccountBillingPlanAPI(this.client);
8220
+ }
8201
8221
  /**
8202
8222
  * The `addresses` method provides access to the Address Validation endpoints
8203
8223
  * in ShipEngine API. e.g. Validate Addresses, Parse Addresses, etc.
@@ -8370,21 +8390,21 @@ const delay = (ms) => new Promise((resolve) => {
8370
8390
 
8371
8391
  const onError = (errors) => errors.forEach(console.log);
8372
8392
 
8373
- var __defProp$2 = Object.defineProperty;
8393
+ var __defProp$3 = Object.defineProperty;
8374
8394
  var __defProps$1 = Object.defineProperties;
8375
8395
  var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
8376
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
8377
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
8378
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
8379
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8380
- var __spreadValues$2 = (a, b) => {
8396
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
8397
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
8398
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
8399
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8400
+ var __spreadValues$3 = (a, b) => {
8381
8401
  for (var prop in b || (b = {}))
8382
- if (__hasOwnProp$8.call(b, prop))
8383
- __defNormalProp$2(a, prop, b[prop]);
8384
- if (__getOwnPropSymbols$8)
8385
- for (var prop of __getOwnPropSymbols$8(b)) {
8386
- if (__propIsEnum$8.call(b, prop))
8387
- __defNormalProp$2(a, prop, b[prop]);
8402
+ if (__hasOwnProp$9.call(b, prop))
8403
+ __defNormalProp$3(a, prop, b[prop]);
8404
+ if (__getOwnPropSymbols$9)
8405
+ for (var prop of __getOwnPropSymbols$9(b)) {
8406
+ if (__propIsEnum$9.call(b, prop))
8407
+ __defNormalProp$3(a, prop, b[prop]);
8388
8408
  }
8389
8409
  return a;
8390
8410
  };
@@ -8397,7 +8417,7 @@ if (process.env.NODE_ENV === "production") {
8397
8417
  }
8398
8418
  const logger = E({
8399
8419
  name: "shipengine",
8400
- serializers: __spreadProps$1(__spreadValues$2({}, k), {
8420
+ serializers: __spreadProps$1(__spreadValues$3({}, k), {
8401
8421
  req: (req) => ({
8402
8422
  headers: req.headers,
8403
8423
  method: req.method,
@@ -8954,17 +8974,17 @@ const useGetInsuranceAccount = (insuranceProvider) => {
8954
8974
  });
8955
8975
  };
8956
8976
 
8957
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
8958
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
8959
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
8977
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
8978
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
8979
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
8960
8980
  var __objRest$6 = (source, exclude) => {
8961
8981
  var target = {};
8962
8982
  for (var prop in source)
8963
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
8983
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
8964
8984
  target[prop] = source[prop];
8965
- if (source != null && __getOwnPropSymbols$7)
8966
- for (var prop of __getOwnPropSymbols$7(source)) {
8967
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
8985
+ if (source != null && __getOwnPropSymbols$8)
8986
+ for (var prop of __getOwnPropSymbols$8(source)) {
8987
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
8968
8988
  target[prop] = source[prop];
8969
8989
  }
8970
8990
  return target;
@@ -9375,17 +9395,17 @@ const useListSalesOrders = (params = {}) => {
9375
9395
  });
9376
9396
  };
9377
9397
 
9378
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
9379
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
9380
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
9398
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
9399
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
9400
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
9381
9401
  var __objRest$5 = (source, exclude) => {
9382
9402
  var target = {};
9383
9403
  for (var prop in source)
9384
- if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
9404
+ if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
9385
9405
  target[prop] = source[prop];
9386
- if (source != null && __getOwnPropSymbols$6)
9387
- for (var prop of __getOwnPropSymbols$6(source)) {
9388
- if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
9406
+ if (source != null && __getOwnPropSymbols$7)
9407
+ for (var prop of __getOwnPropSymbols$7(source)) {
9408
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
9389
9409
  target[prop] = source[prop];
9390
9410
  }
9391
9411
  return target;
@@ -9423,17 +9443,17 @@ const useNotifySalesOrderShipped = () => {
9423
9443
  });
9424
9444
  };
9425
9445
 
9426
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
9427
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
9428
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
9446
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
9447
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
9448
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
9429
9449
  var __objRest$4 = (source, exclude) => {
9430
9450
  var target = {};
9431
9451
  for (var prop in source)
9432
- if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
9452
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
9433
9453
  target[prop] = source[prop];
9434
- if (source != null && __getOwnPropSymbols$5)
9435
- for (var prop of __getOwnPropSymbols$5(source)) {
9436
- if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
9454
+ if (source != null && __getOwnPropSymbols$6)
9455
+ for (var prop of __getOwnPropSymbols$6(source)) {
9456
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
9437
9457
  target[prop] = source[prop];
9438
9458
  }
9439
9459
  return target;
@@ -9497,17 +9517,17 @@ const useListSalesOrderShipments = (params) => {
9497
9517
  });
9498
9518
  };
9499
9519
 
9500
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
9501
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
9502
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
9520
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
9521
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
9522
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
9503
9523
  var __objRest$3 = (source, exclude) => {
9504
9524
  var target = {};
9505
9525
  for (var prop in source)
9506
- if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
9526
+ if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
9507
9527
  target[prop] = source[prop];
9508
- if (source != null && __getOwnPropSymbols$4)
9509
- for (var prop of __getOwnPropSymbols$4(source)) {
9510
- if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
9528
+ if (source != null && __getOwnPropSymbols$5)
9529
+ for (var prop of __getOwnPropSymbols$5(source)) {
9530
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
9511
9531
  target[prop] = source[prop];
9512
9532
  }
9513
9533
  return target;
@@ -9545,21 +9565,21 @@ const useUpdateSalesOrderShipment = () => {
9545
9565
  });
9546
9566
  };
9547
9567
 
9548
- var __defProp$1 = Object.defineProperty;
9568
+ var __defProp$2 = Object.defineProperty;
9549
9569
  var __defProps = Object.defineProperties;
9550
9570
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
9551
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
9552
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
9553
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
9554
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9555
- var __spreadValues$1 = (a, b) => {
9571
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
9572
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
9573
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
9574
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9575
+ var __spreadValues$2 = (a, b) => {
9556
9576
  for (var prop in b || (b = {}))
9557
- if (__hasOwnProp$3.call(b, prop))
9558
- __defNormalProp$1(a, prop, b[prop]);
9559
- if (__getOwnPropSymbols$3)
9560
- for (var prop of __getOwnPropSymbols$3(b)) {
9561
- if (__propIsEnum$3.call(b, prop))
9562
- __defNormalProp$1(a, prop, b[prop]);
9577
+ if (__hasOwnProp$4.call(b, prop))
9578
+ __defNormalProp$2(a, prop, b[prop]);
9579
+ if (__getOwnPropSymbols$4)
9580
+ for (var prop of __getOwnPropSymbols$4(b)) {
9581
+ if (__propIsEnum$4.call(b, prop))
9582
+ __defNormalProp$2(a, prop, b[prop]);
9563
9583
  }
9564
9584
  return a;
9565
9585
  };
@@ -9605,7 +9625,7 @@ const useCreateShipment = () => {
9605
9625
  postalCode: "",
9606
9626
  stateProvince: ""
9607
9627
  };
9608
- return (yield client.shipments.create(__spreadProps(__spreadValues$1({}, shipment), {
9628
+ return (yield client.shipments.create(__spreadProps(__spreadValues$2({}, shipment), {
9609
9629
  shipTo
9610
9630
  }))).data;
9611
9631
  }),
@@ -9646,17 +9666,17 @@ const useGetShipment = (shipmentId) => {
9646
9666
  });
9647
9667
  };
9648
9668
 
9649
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
9650
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
9651
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
9669
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
9670
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
9671
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
9652
9672
  var __objRest$2 = (source, exclude) => {
9653
9673
  var target = {};
9654
9674
  for (var prop in source)
9655
- if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
9675
+ if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
9656
9676
  target[prop] = source[prop];
9657
- if (source != null && __getOwnPropSymbols$2)
9658
- for (var prop of __getOwnPropSymbols$2(source)) {
9659
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
9677
+ if (source != null && __getOwnPropSymbols$3)
9678
+ for (var prop of __getOwnPropSymbols$3(source)) {
9679
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$3.call(source, prop))
9660
9680
  target[prop] = source[prop];
9661
9681
  }
9662
9682
  return target;
@@ -9749,17 +9769,17 @@ const useListWarehouses = (options) => {
9749
9769
  });
9750
9770
  };
9751
9771
 
9752
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
9753
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
9754
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
9772
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
9773
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
9774
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
9755
9775
  var __objRest$1 = (source, exclude) => {
9756
9776
  var target = {};
9757
9777
  for (var prop in source)
9758
- if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
9778
+ if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
9759
9779
  target[prop] = source[prop];
9760
- if (source != null && __getOwnPropSymbols$1)
9761
- for (var prop of __getOwnPropSymbols$1(source)) {
9762
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
9780
+ if (source != null && __getOwnPropSymbols$2)
9781
+ for (var prop of __getOwnPropSymbols$2(source)) {
9782
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
9763
9783
  target[prop] = source[prop];
9764
9784
  }
9765
9785
  return target;
@@ -9797,6 +9817,16 @@ const useUpdateWarehouse = () => {
9797
9817
  });
9798
9818
  };
9799
9819
 
9820
+ const useGetAccountBillingPlan = () => {
9821
+ const { client } = useShipEngine();
9822
+ return useQuery({
9823
+ onError,
9824
+ queryFn: () => client.accountBillingPlan.get(),
9825
+ queryKey: ["useGetAccountBillingPlan"],
9826
+ select: (result) => result.data
9827
+ });
9828
+ };
9829
+
9800
9830
  const fallbackThemeData = {
9801
9831
  borderRadius: {
9802
9832
  L: "16px",
@@ -10211,6 +10241,7 @@ const getDefaultLocale = () => {
10211
10241
  const AlchemyProvider = ({
10212
10242
  baseURL = "https://api.shipengine.com",
10213
10243
  cdnURL = "/",
10244
+ container,
10214
10245
  children,
10215
10246
  getToken,
10216
10247
  locale: localeProp,
@@ -10224,6 +10255,7 @@ const AlchemyProvider = ({
10224
10255
  const contextValue = {
10225
10256
  baseURL,
10226
10257
  cdnURL,
10258
+ container,
10227
10259
  getToken,
10228
10260
  locale,
10229
10261
  onError,
@@ -10775,22 +10807,66 @@ const useI18n = ({ resources }) => {
10775
10807
  }, [resources]);
10776
10808
  };
10777
10809
 
10778
- const memoizedCreateCache = memoize((scope) => {
10779
- const className = `.${scope}`;
10780
- const scopeSelectors = (element) => {
10781
- if ((element == null ? void 0 : element.type) === "rule" && (element == null ? void 0 : element.value.startsWith(".css"))) {
10782
- element.props = [element.props].flat().map((value) => {
10783
- if (value.includes(className))
10784
- return value;
10785
- return `${className} ${value}`;
10786
- });
10810
+ var __defProp$1 = Object.defineProperty;
10811
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
10812
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
10813
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
10814
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10815
+ var __spreadValues$1 = (a, b) => {
10816
+ for (var prop in b || (b = {}))
10817
+ if (__hasOwnProp$1.call(b, prop))
10818
+ __defNormalProp$1(a, prop, b[prop]);
10819
+ if (__getOwnPropSymbols$1)
10820
+ for (var prop of __getOwnPropSymbols$1(b)) {
10821
+ if (__propIsEnum$1.call(b, prop))
10822
+ __defNormalProp$1(a, prop, b[prop]);
10787
10823
  }
10788
- };
10789
- return createCache({
10790
- key: "css",
10791
- stylisPlugins: [scopeSelectors, prefixer$1]
10792
- });
10793
- });
10824
+ return a;
10825
+ };
10826
+ const getScopeSelectors = (className) => (...[element]) => {
10827
+ if ((element == null ? void 0 : element.type) === "rule" && (element == null ? void 0 : element.value.startsWith(".css"))) {
10828
+ element.props = [element.props].flat().map((value) => {
10829
+ if (value.includes(className))
10830
+ return value;
10831
+ return `${className} ${value}`;
10832
+ });
10833
+ }
10834
+ };
10835
+ class EmotionScopeCacheForContainer {
10836
+ constructor(container) {
10837
+ this.container = container;
10838
+ this.cacheByScope = /* @__PURE__ */ new Map();
10839
+ this.initializeCacheForScope = (scope) => {
10840
+ const emotionCache = createCache(__spreadValues$1({
10841
+ key: "css",
10842
+ stylisPlugins: [getScopeSelectors(`.${scope}`), prefixer$1]
10843
+ }, this.container && { container: this.container, prepend: true }));
10844
+ this.cacheByScope.set(scope, emotionCache);
10845
+ return emotionCache;
10846
+ };
10847
+ this.getEmotionCache = (scope) => {
10848
+ var _a;
10849
+ return (_a = this.cacheByScope.get(scope)) != null ? _a : this.initializeCacheForScope(scope);
10850
+ };
10851
+ }
10852
+ }
10853
+ class EmotionScopeContainerCache {
10854
+ constructor() {
10855
+ // allow undefined element for normal no container scope group
10856
+ this.scopeGroupByContainer = /* @__PURE__ */ new Map();
10857
+ this.getEmotionCache = (scope, container) => {
10858
+ var _a;
10859
+ const scopeGroup = (_a = this.scopeGroupByContainer.get(container)) != null ? _a : this.initializeScopeCacheForContainer(container);
10860
+ return scopeGroup.getEmotionCache(scope);
10861
+ };
10862
+ }
10863
+ initializeScopeCacheForContainer(container) {
10864
+ const scopeGroup = new EmotionScopeCacheForContainer(container);
10865
+ this.scopeGroupByContainer.set(container, scopeGroup);
10866
+ return scopeGroup;
10867
+ }
10868
+ }
10869
+ const { getEmotionCache } = new EmotionScopeContainerCache();
10794
10870
 
10795
10871
  const Element = ({
10796
10872
  children,
@@ -10798,11 +10874,11 @@ const Element = ({
10798
10874
  fallback: FallbackComponent,
10799
10875
  resources
10800
10876
  }) => {
10801
- const { scope, onError } = useAlchemy();
10877
+ const { scope, onError, container } = useAlchemy();
10802
10878
  const i18n = useI18n({ resources });
10803
10879
  const elementContainerRef = useRef(null);
10804
10880
  const renderProviders = () => /* @__PURE__ */ jsx(I18nextProvider, { i18n, children: /* @__PURE__ */ jsx(ErrorBoundary, { fallback: FallbackComponent, onError, children }) });
10805
- return /* @__PURE__ */ jsx("div", { className: cx(scope, className), "data-testid": scope, ref: elementContainerRef, children: /* @__PURE__ */ jsx(DefaultPortalRefProvider, { portalRef: elementContainerRef, children: scope ? /* @__PURE__ */ jsx(CacheProvider, { value: memoizedCreateCache(scope), children: renderProviders() }) : renderProviders() }) });
10881
+ return /* @__PURE__ */ jsx("div", { className: cx(scope, className), "data-testid": scope, ref: elementContainerRef, children: /* @__PURE__ */ jsx(DefaultPortalRefProvider, { portalRef: elementContainerRef, children: scope ? /* @__PURE__ */ jsx(CacheProvider, { value: getEmotionCache(scope, container), children: renderProviders() }) : renderProviders() }) });
10806
10882
  };
10807
10883
 
10808
10884
  var __defProp = Object.defineProperty;
@@ -10866,4 +10942,4 @@ const alchemy = {
10866
10942
  createElement
10867
10943
  };
10868
10944
 
10869
- export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, WarehousesAPI, alchemy, alchemy as default, delay, getEndUserIpAddress, isCodedError, isCodedErrors, logger, memoizedCreateCache, onError, retryUntil, useAddFunds, useAlchemy, useCalculateRates, useConnectCarrier, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateShipment, useCreateWarehouse, useDeleteRateCard, useDeleteWarehouse, useDownloadRateCard, useFundingSourcesAddFunds, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetInsuranceAccount, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetWalletHistory, useGetZonesByCarrier, useI18n, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListShipments, useListWarehouses, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUploadRateCard, useValidateAddresses, useVoidLabel };
10945
+ export { AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, CarriersAPI, CodedError, ConfirmationType, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, LabelsAPI, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, WarehousesAPI, alchemy, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, logger, onError, retryUntil, useAddFunds, useAlchemy, useCalculateRates, useConnectCarrier, useCreateFundingSource, useCreateLabel, useCreateRateCard, useCreateSalesOrderShipment, useCreateShipment, useCreateWarehouse, useDeleteRateCard, useDeleteWarehouse, useDownloadRateCard, useFundingSourcesAddFunds, useGetAccountBillingPlan, useGetAccountSettings, useGetAutoFundingConfiguration, useGetCarrierById, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetInsuranceAccount, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderShipment, useGetServicesByCarrier, useGetShipment, useGetShipmentRates, useGetWalletHistory, useGetZonesByCarrier, useI18n, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListOrderSources, useListRateCards, useListSalesOrderShipments, useListSalesOrders, useListShipments, useListWarehouses, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePublishRateCard, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useShipEngine, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateFundingSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUploadRateCard, useValidateAddresses, useVoidLabel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/alchemy",
3
- "version": "4.0.1",
3
+ "version": "4.1.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1 +0,0 @@
1
- export declare const memoizedCreateCache: import("@emotion/memoize").Fn<import("@emotion/utils").EmotionCache>;