@zappie/foundations 0.3.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @zappie/foundations
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - acc553a: The kit's account page and the starter's account page show a "Problem with a payment? Message Zappie" link, a WhatsApp link to Zappie support from `zappieSupportUrl`. The kit's account page takes an optional `store`, and the branch's `name`, to name them in the message. `zappieSupportUrl` takes a branch without a name, and parts left `undefined`, so it type-checks under `exactOptionalPropertyTypes`.
8
+
3
9
  ## 0.3.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -962,13 +962,13 @@ declare function contactLinks(branch: Pick<Branch$1, "phone" | "socialLinks">):
962
962
  /** What a message to Zappie support names. Each part is optional. */
963
963
  type ZappieSupportContext = {
964
964
  /** The store. The message names the branch only when the store has more than one. */
965
- store?: Partial<Pick<Store, "name" | "slug" | "branches">>;
965
+ store?: Partial<Pick<Store, "name" | "slug" | "branches">> | undefined;
966
966
  /** The shopper's branch. */
967
- branch?: Pick<Branch$1, "name">;
967
+ branch?: Partial<Pick<Branch$1, "name">> | undefined;
968
968
  /** The reference of the order the shopper needs help with. */
969
- order?: string;
969
+ order?: string | undefined;
970
970
  /** The address of the page the shopper is on. */
971
- page?: string;
971
+ page?: string | undefined;
972
972
  };
973
973
  /**
974
974
  * A WhatsApp link to Zappie support, for a shopper with a problem such as a payment. The message
package/dist/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var PACKAGE_VERSION = true ? "0.3.0" : "0.0.0-development";
2
+ var PACKAGE_VERSION = true ? "0.3.1" : "0.0.0-development";
3
3
  export {
4
4
  PACKAGE_VERSION
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zappie/foundations",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "UI-less React primitives for Zappie storefronts: behaviour, state and accessibility without styles.",
5
5
  "type": "module",
6
6
  "sideEffects": false,