@base316/react 0.5.2 → 0.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,5 +1,18 @@
1
1
  # @base316/react
2
2
 
3
+ ## 0.6.0 — Unreleased
4
+
5
+ Needs `@base316/sdk` 0.8.0 (`Base316Browser` `organizationId`), so release the SDK first.
6
+
7
+ ### Added
8
+
9
+ - `<Base316Provider organizationId>`: whose billing the components under it show
10
+ and change. `SubscriptionManager`, `PricingTable`, `Invoices`, `BillingPortal`
11
+ and the rest read the signed-in person's own account by default, which for
12
+ somebody in several organizations is their oldest one, so an app with a team
13
+ on screen showed, and could cancel, another organization's subscription. Set
14
+ it to the organization on screen.
15
+
3
16
  ## 0.5.2 — 2026-10-21
4
17
 
5
18
  Needs `@base316/sdk` 0.7.1 (`billing.startCancellation`), so release the SDK first.
package/dist/index.cjs CHANGED
@@ -714,12 +714,13 @@ function Base316Provider({
714
714
  onTokenChange,
715
715
  appearance: appearance2,
716
716
  tenant,
717
+ organizationId,
717
718
  className,
718
719
  children
719
720
  }) {
720
721
  const client = (0, import_react.useMemo)(
721
- () => new import_sdk.Base316Browser({ publishableKey, baseUrl }),
722
- [publishableKey, baseUrl]
722
+ () => new import_sdk.Base316Browser({ publishableKey, baseUrl, organizationId: organizationId ?? void 0 }),
723
+ [publishableKey, baseUrl, organizationId]
723
724
  );
724
725
  (0, import_react.useEffect)(() => {
725
726
  if (document.getElementById(STYLE_ELEMENT_ID)) {