@rebilly/instruments 7.5.1 → 7.6.0

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,3 +1,10 @@
1
+ ## [7.6.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v7.5.1...instruments/core-v7.6.0) (2023-11-15)
2
+
3
+
4
+ ### Features
5
+
6
+ * **instruments:** Remove use of `storefrontEnabled` ([#2192](https://github.com/Rebilly/rebilly/issues/2192)) ([addec11](https://github.com/Rebilly/rebilly/commit/addec115c7d78cd70b44b695a82387f179d644cd))
7
+
1
8
  ## [7.5.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v7.5.0...instruments/core-v7.5.1) (2023-11-14)
2
9
 
3
10
 
package/dist/index.js CHANGED
@@ -5975,7 +5975,7 @@ function cloneArrayDeep(val, instanceClone) {
5975
5975
  return res;
5976
5976
  }
5977
5977
  var cloneDeep_1 = cloneDeep;
5978
- const version = "54.4.1";
5978
+ const version = "54.4.2";
5979
5979
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
5980
5980
  let nanoid = (size2 = 21) => {
5981
5981
  let id2 = "";
@@ -13896,17 +13896,32 @@ function filterReadyToPay(readyToPay) {
13896
13896
  const paymentMethodsMetadata = [...paymentMethods];
13897
13897
  const EXPRESS_METHODS = ["Google Pay", "Apple Pay", "paypal"];
13898
13898
  const BLOCKED_METHODS = [
13899
- // account number, routing number, and account type required
13899
+ // Requires implementation.
13900
13900
  "echeck",
13901
+ // Required unique implementation
13902
+ // account number, routing number, and account type required
13903
+ "Khelocard",
13901
13904
  // payment instrument is required
13902
13905
  // card number is required
13903
13906
  // card cvv is required
13904
13907
  // expiration month is required
13905
13908
  // expiration year is required
13906
- "Khelocard",
13909
+ "Klarna",
13907
13910
  // Klarna authorization token is required
13908
13911
  // Klarna session ID is required
13909
- "Klarna"
13912
+ // Methods to ignore
13913
+ "Apple Pay",
13914
+ // Apple Pay should be used only from payment-card method
13915
+ "China UnionPay",
13916
+ // China UnionPay should not be used
13917
+ "Google Pay",
13918
+ // Google Pay should be used only from payment-card method
13919
+ "KakaoPay",
13920
+ // KakaoPay is unimplemented digital wallet
13921
+ "Payco",
13922
+ // Payco is unimplemented digital wallet
13923
+ "Samsung Pay"
13924
+ // Samsung Pay is unimplemented digital wallet
13910
13925
  ];
13911
13926
  const isExpressMethod = ({ method, feature }) => EXPRESS_METHODS.includes(method) || EXPRESS_METHODS.includes(feature == null ? void 0 : feature.name);
13912
13927
  return readyToPay.filter((readyData) => {
@@ -13924,7 +13939,7 @@ function filterReadyToPay(readyToPay) {
13924
13939
  metadata: metadata2,
13925
13940
  ...fields
13926
13941
  });
13927
- }).filter(({ metadata: metadata2 }) => metadata2.storefrontEnabled);
13942
+ });
13928
13943
  }
13929
13944
  async function fetchReadyToPay() {
13930
13945
  return Endpoint(async () => {
@@ -23051,7 +23066,7 @@ function handleComputedProperty(options) {
23051
23066
  var _a;
23052
23067
  return Object.assign({}, options, {
23053
23068
  _computed: {
23054
- version: "7.5.0",
23069
+ version: "7.5.1",
23055
23070
  paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
23056
23071
  }
23057
23072
  });
@@ -26199,7 +26214,7 @@ class RebillyInstrumentsInstance {
26199
26214
  await show({ componentName, payload });
26200
26215
  }
26201
26216
  get version() {
26202
- return `RebillyInstruments Ver.${"7.5.0"}`;
26217
+ return `RebillyInstruments Ver.${"7.5.1"}`;
26203
26218
  }
26204
26219
  on(eventName, callback) {
26205
26220
  on({ eventName, callback });