@chrryai/chrry 1.2.9 → 1.2.10

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.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.2.9";
1374
+ declare const VERSION = "1.2.10";
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.2.9";
1374
+ declare const VERSION = "1.2.10";
1375
1375
  type instructionBase = {
1376
1376
  id: string;
1377
1377
  title: string;
package/dist/index.js CHANGED
@@ -17245,7 +17245,7 @@ function DataProvider({
17245
17245
  const [instructions, setInstructions] = (0, import_react14.useState)([]);
17246
17246
  const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
17247
17247
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
17248
- const VERSION3 = "1.2.9";
17248
+ const VERSION3 = "1.2.10";
17249
17249
  const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
17250
17250
  const {
17251
17251
  API_URL: API_URL2,
@@ -18220,7 +18220,7 @@ var init_utils = __esm({
18220
18220
  window.history.replaceState({}, "", newUrl);
18221
18221
  };
18222
18222
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
18223
- VERSION = "1.2.9";
18223
+ VERSION = "1.2.10";
18224
18224
  getSlugFromPathname = (path) => {
18225
18225
  const siteConfig = getSiteConfig();
18226
18226
  const defaultValues = {
@@ -30535,33 +30535,32 @@ function Menu({
30535
30535
  }
30536
30536
  ) : thread2.visibility === "public" ? /* @__PURE__ */ import_react55.default.createElement(icons_exports.LockOpen, { color: "var(--accent-1)", size: 13 }) : thread2.visibility === "protected" ? /* @__PURE__ */ import_react55.default.createElement(icons_exports.UserLock, { color: "var(--accent-1)", size: 13 }) : null
30537
30537
  ) : null,
30538
- /* @__PURE__ */ import_react55.default.createElement(
30539
- "a",
30540
- {
30541
- "data-testid": `thread-link-${thread2.id}`,
30542
- onClick: (e) => {
30543
- const threadApp = thread2.appId ? allApps.find(
30544
- (app2) => app2.id === thread2.appId
30545
- ) : void 0;
30546
- track({
30547
- name: "thread-click-menu",
30548
- props: {
30549
- threadId: thread2.id
30538
+ (() => {
30539
+ const threadApp = thread2.appId ? allApps.find((app2) => app2.id === thread2.appId) : void 0;
30540
+ const url = threadApp ? `${getAppSlug(threadApp, "")}/threads/${thread2.id}` : `/threads/${thread2.id}`;
30541
+ return /* @__PURE__ */ import_react55.default.createElement(
30542
+ "a",
30543
+ {
30544
+ "data-testid": `thread-link-${thread2.id}`,
30545
+ onClick: (e) => {
30546
+ track({
30547
+ name: "thread-click-menu",
30548
+ props: {
30549
+ threadId: thread2.id
30550
+ }
30551
+ });
30552
+ if (e.metaKey || e.ctrlKey) {
30553
+ return;
30550
30554
  }
30551
- });
30552
- if (e.metaKey || e.ctrlKey) {
30553
- return;
30554
- }
30555
- e.preventDefault();
30556
- isSmallDevice ? toggleMenu() : addHapticFeedback();
30557
- router.push(
30558
- threadApp ? `${getAppSlug(threadApp, "")}/threads/${thread2.id}` : `/threads/${thread2.id}`
30559
- );
30555
+ e.preventDefault();
30556
+ isSmallDevice ? toggleMenu() : addHapticFeedback();
30557
+ router.push(url);
30558
+ },
30559
+ href: url
30560
30560
  },
30561
- href: `/threads/${thread2.id}`
30562
- },
30563
- thread2.title
30564
- ),
30561
+ thread2.title
30562
+ );
30563
+ })(),
30565
30564
  collaborationStatus === "pending" ? /* @__PURE__ */ import_react55.default.createElement(
30566
30565
  CollaborationStatus,
30567
30566
  {