@chrryai/chrry 1.1.98 → 1.1.99

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/README.md CHANGED
@@ -107,7 +107,9 @@ import Chrry from "@chrryai/chrry/Chrry"
107
107
 
108
108
  export default function App({ children, session }) {
109
109
  return (
110
- <Chrry session={session}>
110
+ <Chrry apiKey={process.env.API_KEY}
111
+ locale="en"
112
+ >
111
113
  {children}
112
114
  </Chrry>
113
115
  )
package/dist/index.d.mts CHANGED
@@ -1371,7 +1371,7 @@ declare const isFirefox: boolean;
1371
1371
  declare function getFlag({ code }: {
1372
1372
  code?: string;
1373
1373
  }): string;
1374
- declare const VERSION = "1.1.98";
1374
+ declare const VERSION = "1.1.99";
1375
1375
  type instructionBase = {
1376
1376
  id: string;
1377
1377
  title: string;
package/dist/index.d.ts CHANGED
@@ -1371,7 +1371,7 @@ declare const isFirefox: boolean;
1371
1371
  declare function getFlag({ code }: {
1372
1372
  code?: string;
1373
1373
  }): string;
1374
- declare const VERSION = "1.1.98";
1374
+ declare const VERSION = "1.1.99";
1375
1375
  type instructionBase = {
1376
1376
  id: string;
1377
1377
  title: string;
package/dist/index.js CHANGED
@@ -812,7 +812,7 @@ var init_utils = __esm({
812
812
  window.history.replaceState({}, "", newUrl);
813
813
  };
814
814
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
815
- VERSION = "1.1.98";
815
+ VERSION = "1.1.99";
816
816
  getSlugFromPathname = (path) => {
817
817
  const d = { appSlug: "chrry", storeSlug: "chrry" };
818
818
  if (path === "/") return d;
@@ -17158,6 +17158,7 @@ function AuthProvider({
17158
17158
  signInContext,
17159
17159
  signOutContext,
17160
17160
  error,
17161
+ locale: locale4,
17161
17162
  ...rest
17162
17163
  }) {
17163
17164
  const [wasGifted, setWasGifted] = (0, import_react14.useState)(false);
@@ -17403,7 +17404,7 @@ function AuthProvider({
17403
17404
  }, [user, guest]);
17404
17405
  const [language, setLanguageInternal] = useLocalStorage2(
17405
17406
  "language",
17406
- session2?.locale || i18n_default.language || "en"
17407
+ locale4 || session2?.locale || i18n_default.language || "en"
17407
17408
  );
17408
17409
  const setLanguage = async (language2) => {
17409
17410
  setLanguageInternal(language2);
@@ -17944,7 +17945,7 @@ function DataProvider({
17944
17945
  const [instructions, setInstructions] = (0, import_react16.useState)([]);
17945
17946
  const [affiliateStats, setAffiliateStats] = (0, import_react16.useState)(null);
17946
17947
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react16.useState)(false);
17947
- const VERSION3 = "1.1.98";
17948
+ const VERSION3 = "1.1.99";
17948
17949
  const [weather, setWeather] = useLocalStorage2("weather", user?.weather || guest?.weather || void 0);
17949
17950
  const {
17950
17951
  API_URL: API_URL2,
@@ -20984,7 +20985,8 @@ function AppProviders({
20984
20985
  signInContext,
20985
20986
  signOutContext,
20986
20987
  viewPortWidth,
20987
- viewPortHeight
20988
+ viewPortHeight,
20989
+ locale: locale4
20988
20990
  }) {
20989
20991
  const [error, setError] = (0, import_react29.useState)("");
20990
20992
  const swrConfig = {
@@ -21016,6 +21018,7 @@ function AppProviders({
21016
21018
  /* @__PURE__ */ import_react29.default.createElement(ErrorProvider, null, /* @__PURE__ */ import_react29.default.createElement(ThemeProvider, { session: session2 }, /* @__PURE__ */ import_react29.default.createElement(
21017
21019
  AuthProvider,
21018
21020
  {
21021
+ locale: locale4,
21019
21022
  error,
21020
21023
  apiKey,
21021
21024
  onSetLanguage,