@returnflows/shop-overlay 1.0.2 → 1.0.3

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.
@@ -1,4 +1,4 @@
1
- import { ShopifyCartItem } from "../../../lib/types";
1
+ import { OrderProduct, ShopifyCartItem } from "../../../lib/types";
2
2
  export interface QuantityPickerConstraints {
3
3
  min: {
4
4
  limit: number;
@@ -16,4 +16,5 @@ export declare function getNormalizedQuantityRule(quantityRule: ShopifyCartItem[
16
16
  increment: number;
17
17
  constraints: QuantityPickerConstraints;
18
18
  };
19
+ export declare function getSafeProductUrl(getProductUrl: ((product: ShopifyCartItem | OrderProduct) => string) | undefined, product: ShopifyCartItem | OrderProduct): string;
19
20
  export declare function clampQuantity(quantity: number, constraints?: QuantityPickerConstraints): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@returnflows/shop-overlay",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Returnflows Shop Overlay Widget - Modular exchange/return widget with programmatic API",
5
5
  "type": "module",
6
6
  "main": "dist/index.esm.js",
@@ -44,8 +44,7 @@
44
44
  "version:patch": "npm version patch --no-git-tag-version",
45
45
  "version:minor": "npm version minor --no-git-tag-version",
46
46
  "version:major": "npm version major --no-git-tag-version",
47
- "prepublishOnly": "pnpm build:esm",
48
- "publish:staging": "pnpm build:esm:staging && VERSION=$(node -p \"require('./package.json').version\") && npm version \"$VERSION-staging.$(git rev-parse --short HEAD)\" --no-git-tag-version && npm publish --tag staging --ignore-scripts && npm version \"$VERSION\" --no-git-tag-version",
47
+ "publish:staging": "VERSION=$(node -p \"require('./package.json').version\") && trap 'npm version \"$VERSION\" --no-git-tag-version' EXIT && npm version \"$VERSION-staging.$(git rev-parse --short HEAD)\" --no-git-tag-version && pnpm build:esm:staging && npm publish --tag staging --ignore-scripts",
49
48
  "publish:production": "pnpm build:esm:production && npm publish --tag latest --ignore-scripts"
50
49
  },
51
50
  "dependencies": {