@nebulr-group/bridge-svelte 0.6.1 → 0.6.2

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.d.ts CHANGED
@@ -51,3 +51,5 @@ export type { Operator, AttributeType, Condition, ConditionValue, ValidationErro
51
51
  export type { FlagResponse, CreateFlagInput, UpdateFlagInput, FlagSchedule, } from '@nebulr-group/bridge-auth-core';
52
52
  export { DEFAULT_RETURN_TO_PARAM, readReturnTo, sanitizeReturnTo, withReturnTo, } from '@nebulr-group/bridge-auth-core';
53
53
  export type { ReturnToConfig } from '@nebulr-group/bridge-auth-core';
54
+ export { createTranslator, en, hasLocale, interpolate, LOCALES, normalizeLocale, sv, } from '@nebulr-group/bridge-auth-core';
55
+ export type { MessageKey, MessageOverrides, Messages, Translator, } from '@nebulr-group/bridge-auth-core';
package/dist/index.js CHANGED
@@ -71,3 +71,12 @@ export { BridgeFlags, BridgeIdentity, MemoryIdentityStorage, attachIdentity, gen
71
71
  // login page can import the reader (and its open-redirect validation) from the
72
72
  // same package it already depends on, instead of reaching past bridge-svelte.
73
73
  export { DEFAULT_RETURN_TO_PARAM, readReturnTo, sanitizeReturnTo, withReturnTo, } from '@nebulr-group/bridge-auth-core';
74
+ // TBP-630 — SDK auth copy / translations. Re-exported from auth-core for the
75
+ // same reason as the return-to helpers above: a consumer building its own
76
+ // locale catalogue should import from the package it already depends on rather
77
+ // than reaching past bridge-svelte to a peer dependency it never declared —
78
+ // which pnpm's default layout and Yarn PnP refuse outright.
79
+ //
80
+ // bridge-react, -angular and -nextjs already export this surface; svelte was
81
+ // the odd one out.
82
+ export { createTranslator, en, hasLocale, interpolate, LOCALES, normalizeLocale, sv, } from '@nebulr-group/bridge-auth-core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebulr-group/bridge-svelte",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Bridge Svelte library, This library helps you to add bridge authentication and feature flags, and payments to your svelte application.",
5
5
  "author": "Iman Pouya",
6
6
  "license": "MIT",