@rebilly/instruments 14.4.1 → 14.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,6 +1,6 @@
1
- ## [14.4.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v14.4.0...instruments/core-v14.4.1) (2025-08-04)
1
+ ## [14.6.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v14.5.0...instruments/core-v14.6.0) (2025-08-08)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * **rebilly-js-sdk:** Generate CollectionBC operations the same as Collection ([#14030](https://github.com/Rebilly/rebilly/issues/14030)) ([ddbe03b](https://github.com/Rebilly/rebilly/commit/ddbe03b74b5eeedfe1541b92d7faffed9315bef4))
6
+ * **instruments:** support apple pay in third party browsers ([#13940](https://github.com/Rebilly/rebilly/issues/13940)) ([6a43401](https://github.com/Rebilly/rebilly/commit/6a43401884b4843db89c94b62635bfb5b025571f))
package/dist/index.js CHANGED
@@ -5097,7 +5097,7 @@ function C$1({ options: e2 }) {
5097
5097
  }
5098
5098
  function o2() {
5099
5099
  const i = {
5100
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@ddbe03b`
5100
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@6a43401`
5101
5101
  };
5102
5102
  return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
5103
5103
  }
@@ -7029,6 +7029,7 @@ function je$1({ apiHandler: e2 }) {
7029
7029
  return e2.put(`journal-entries/${t2}`, s);
7030
7030
  },
7031
7031
  /**
7032
+ * @param { rebilly.GetJournalRecordCollectionBCRequest } request
7032
7033
  * @returns { rebilly.GetJournalRecordCollectionBCResponsePromise } response
7033
7034
  */
7034
7035
  getAllRecords({
@@ -7040,7 +7041,7 @@ function je$1({ apiHandler: e2 }) {
7040
7041
  expand: o2 = null
7041
7042
  }) {
7042
7043
  const l = { limit: s, offset: r2, filter: n2, sort: u, expand: o2 };
7043
- return e2.get(`journal-entries/${t2}/records`, l);
7044
+ return e2.getAll(`journal-entries/${t2}/records`, l);
7044
7045
  },
7045
7046
  createRecord({ id: t2, data: s }) {
7046
7047
  return e2.post(`journal-entries/${t2}/records`, s);
@@ -11709,15 +11710,6 @@ function getPaymentMethods() {
11709
11710
  result.methods.push(method);
11710
11711
  }
11711
11712
  });
11712
- if (!window.ApplePaySession) {
11713
- result.expressMethods = result.expressMethods.filter(
11714
- (method) => {
11715
- var _a2;
11716
- return ((_a2 = method == null ? void 0 : method.feature) == null ? void 0 : _a2.name) !== "Apple Pay";
11717
- }
11718
- );
11719
- state.loader.stopLoading({ id: "applePay-express" });
11720
- }
11721
11713
  return result;
11722
11714
  }
11723
11715
  class ProductModel extends BaseModel {
@@ -18427,10 +18419,14 @@ function mountExpressMethod({ state: state2, id }) {
18427
18419
  const {
18428
18420
  applePayDisplayOptions: { buttonHeight }
18429
18421
  } = state2.options.digitalWallet.applePay;
18430
- applePayButton.style.margin = "0px";
18431
- applePayButton.style.width = "100%";
18432
- applePayButton.style.height = buttonHeight;
18433
- applePayButton.style.cursor = "pointer";
18422
+ const buttonStyles = {
18423
+ margin: "0px",
18424
+ width: "100%",
18425
+ "--apple-pay-button-height": buttonHeight
18426
+ };
18427
+ Object.entries(buttonStyles).forEach(([property, value]) => {
18428
+ applePayButton.style.setProperty(property, value);
18429
+ });
18434
18430
  }
18435
18431
  return function mountButton() {
18436
18432
  if (!container.children.length) {
@@ -18504,7 +18500,6 @@ const getMethodData = (method) => {
18504
18500
  ).replace("-", "");
18505
18501
  return { METHOD_ID, METHOD_TYPE };
18506
18502
  };
18507
- const browserIsSafari = () => window.ApplePaySession;
18508
18503
  async function mountExpressMethods({ methods, container }) {
18509
18504
  const methodIds = methods.map((expressMethod) => {
18510
18505
  const { METHOD_ID } = getMethodData(expressMethod);
@@ -18538,7 +18533,6 @@ async function mountExpressMethods({ methods, container }) {
18538
18533
  const mountingMethods = [];
18539
18534
  methods.map((method) => {
18540
18535
  const { METHOD_ID: id } = getMethodData(method);
18541
- if (id === "apple-pay" && !browserIsSafari()) return;
18542
18536
  container.innerHTML += `
18543
18537
  <div class="rebilly-instruments-${id}-method" style="height: ${generateExpressMethodHeight(
18544
18538
  method