@shipengine/elements 1.4.0 → 1.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/elements",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "peerDependencies": {
5
5
  "@shipengine/alchemy": "5.x.x",
6
6
  "@emotion/react": "11.x",
@@ -9,6 +9,7 @@ export type OnChangeAddressOptions = {
9
9
  };
10
10
  export type ShipmentFormMode = "browse_rates" | "select_service";
11
11
  export type ShipmentFormFeatures = {
12
+ addOns?: boolean;
12
13
  browseRates?: boolean;
13
14
  includeShipsuranceInsurance?: boolean;
14
15
  includeThirdPartyInsurance?: boolean;
@@ -3,7 +3,9 @@ export * from "./list-carriers";
3
3
  export * from "./manage-warehouses";
4
4
  export * from "./purchase-label";
5
5
  export * from "./external-carriers";
6
+ export * from "./labels-grid";
6
7
  export * from "./shipengine-workflow";
8
+ export * from "./shipments-grid";
7
9
  export * from "./theme-creator";
8
10
  export * from "./view-shipment";
9
11
  export * from "./void-label";
@@ -1,5 +1,8 @@
1
1
  import React from "react";
2
2
  import { Shipment } from "@shipengine/js-api";
3
+ import { PurchaseLabel } from "../purchase-label";
4
+ import { ViewShipment } from "../view-shipment";
5
+ import { VoidLabel } from "../void-label";
3
6
  /**
4
7
  * @internal
5
8
  *
@@ -26,7 +29,7 @@ export type LabelWorkflowProps = {
26
29
  /**
27
30
  * `features` is a set of feature flags you would like to enable or disable in this component.
28
31
  */
29
- features: any;
32
+ features: PurchaseLabel.PurchaseLabelCommonProps["features"] & ViewShipment.ComponentProps["features"] & VoidLabel.ComponentProps["features"];
30
33
  /**
31
34
  * `labelId` is the unique identifier for the label you wish to view.
32
35
  */
@@ -115,6 +115,11 @@ export declare const featureFlags: {
115
115
  * `<PurchaseLabel />` element.
116
116
  */
117
117
  readonly shipmentForm: {
118
+ /**
119
+ * `addOns` enables the `Add-Ons` section of the shipment form. This allows users to
120
+ * add additional services to their shipment such as delivery confirmation and insurance.
121
+ */
122
+ readonly addOns: true;
118
123
  /**
119
124
  * `browseRates` enables the `browse rates` button in the shipment form. This allows users
120
125
  * to browse rates for a shipment with varying shipment configurations. This is useful for