@namiml/sdk-core 3.4.1-dev.202605262144 → 3.4.1-dev.202605270014

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/dist/index.cjs CHANGED
@@ -98,7 +98,7 @@ const {
98
98
  // version — stamped by scripts/version.sh
99
99
  NAMI_SDK_VERSION: exports.NAMI_SDK_VERSION = "3.4.1",
100
100
  // full package version including dev suffix — stamped by scripts/version.sh
101
- NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.1-dev.202605262144",
101
+ NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.1-dev.202605270014",
102
102
  // environments
103
103
  PRODUCTION: exports.PRODUCTION = "production", DEVELOPMENT: exports.DEVELOPMENT = "development",
104
104
  // error messages
@@ -12995,6 +12995,16 @@ class FlowLiquidResolver {
12995
12995
  const idx = screenState?.getSelectedSlideIndexForCurrentCarousel();
12996
12996
  return idx != null ? `${idx + 1}` : undefined;
12997
12997
  }
12998
+ case "productGroupId":
12999
+ return PaywallState.currentProvider?.state.currentGroupId || undefined;
13000
+ case "productGroupName": {
13001
+ const s = PaywallState.currentProvider?.state;
13002
+ return s?.groups?.find(g => g.id === s.currentGroupId)?.displayName ?? undefined;
13003
+ }
13004
+ case "productGroupRef": {
13005
+ const s = PaywallState.currentProvider?.state;
13006
+ return s?.groups?.find(g => g.id === s.currentGroupId)?.ref ?? undefined;
13007
+ }
12998
13008
  default:
12999
13009
  return undefined;
13000
13010
  }
package/dist/index.mjs CHANGED
@@ -96,7 +96,7 @@ const {
96
96
  // version — stamped by scripts/version.sh
97
97
  NAMI_SDK_VERSION = "3.4.1",
98
98
  // full package version including dev suffix — stamped by scripts/version.sh
99
- NAMI_SDK_PACKAGE_VERSION = "3.4.1-dev.202605262144",
99
+ NAMI_SDK_PACKAGE_VERSION = "3.4.1-dev.202605270014",
100
100
  // environments
101
101
  PRODUCTION = "production", DEVELOPMENT = "development",
102
102
  // error messages
@@ -12993,6 +12993,16 @@ class FlowLiquidResolver {
12993
12993
  const idx = screenState?.getSelectedSlideIndexForCurrentCarousel();
12994
12994
  return idx != null ? `${idx + 1}` : undefined;
12995
12995
  }
12996
+ case "productGroupId":
12997
+ return PaywallState.currentProvider?.state.currentGroupId || undefined;
12998
+ case "productGroupName": {
12999
+ const s = PaywallState.currentProvider?.state;
13000
+ return s?.groups?.find(g => g.id === s.currentGroupId)?.displayName ?? undefined;
13001
+ }
13002
+ case "productGroupRef": {
13003
+ const s = PaywallState.currentProvider?.state;
13004
+ return s?.groups?.find(g => g.id === s.currentGroupId)?.ref ?? undefined;
13005
+ }
12996
13006
  default:
12997
13007
  return undefined;
12998
13008
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@namiml/sdk-core",
3
- "version": "3.4.1-dev.202605262144",
3
+ "version": "3.4.1-dev.202605270014",
4
4
  "description": "Platform-agnostic core for the Nami SDK — business logic, API, types, and state management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",