@chrryai/chrry 1.2.26 → 1.2.27

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/App.module.scss CHANGED
@@ -30,10 +30,13 @@
30
30
  .appsGrid {
31
31
  position: relative;
32
32
  width: 100%;
33
- max-width: toRem.toRem(340);
33
+
34
+ max-width: toRem.toRem(650);
34
35
  padding: 0 toRem.toRem(10);
35
36
  }
36
37
  .apps {
38
+ max-width: 50%;
39
+ flex-grow: 1;
37
40
  position: relative;
38
41
  display: flex;
39
42
  flex-wrap: wrap;
@@ -55,16 +58,16 @@
55
58
  }
56
59
 
57
60
  .pacMan {
58
- position: absolute;
59
- left: toRem.toRem(-2.5) !important;
60
- bottom: toRem.toRem(2) !important;
61
+ position: relative;
62
+ left: toRem.toRem(-3) !important;
63
+ bottom: toRem.toRem(0) !important;
61
64
  animation: slideInFromLeft 0.5s ease-out forwards;
62
65
  @include utils.respect-reduced-motion;
63
66
  }
64
67
 
65
68
  .chrry {
66
69
  position: relative;
67
- left: toRem.toRem(-5) !important;
70
+ left: toRem.toRem(-3) !important;
68
71
  animation: slideInFromLeft 0.5s ease-out forwards;
69
72
  @include utils.respect-reduced-motion;
70
73
  }
@@ -30,10 +30,13 @@
30
30
  .appsGrid {
31
31
  position: relative;
32
32
  width: 100%;
33
- max-width: toRem.toRem(340);
33
+
34
+ max-width: toRem.toRem(650);
34
35
  padding: 0 toRem.toRem(10);
35
36
  }
36
37
  .apps {
38
+ max-width: 50%;
39
+ flex-grow: 1;
37
40
  position: relative;
38
41
  display: flex;
39
42
  flex-wrap: wrap;
@@ -55,16 +58,16 @@
55
58
  }
56
59
 
57
60
  .pacMan {
58
- position: absolute;
59
- left: toRem.toRem(-2.5) !important;
60
- bottom: toRem.toRem(2) !important;
61
+ position: relative;
62
+ left: toRem.toRem(-3) !important;
63
+ bottom: toRem.toRem(0) !important;
61
64
  animation: slideInFromLeft 0.5s ease-out forwards;
62
65
  @include utils.respect-reduced-motion;
63
66
  }
64
67
 
65
68
  .chrry {
66
69
  position: relative;
67
- left: toRem.toRem(-5) !important;
70
+ left: toRem.toRem(-3) !important;
68
71
  animation: slideInFromLeft 0.5s ease-out forwards;
69
72
  @include utils.respect-reduced-motion;
70
73
  }
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.26";
1374
+ declare const VERSION = "1.2.27";
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.26";
1374
+ declare const VERSION = "1.2.27";
1375
1375
  type instructionBase = {
1376
1376
  id: string;
1377
1377
  title: string;
package/dist/index.js CHANGED
@@ -2030,10 +2030,12 @@ var init_App_styles = __esm({
2030
2030
  appsGrid: {
2031
2031
  position: "relative",
2032
2032
  width: "100%",
2033
- maxWidth: 340,
2033
+ maxWidth: 650,
2034
2034
  padding: "0 10px"
2035
2035
  },
2036
2036
  apps: {
2037
+ maxWidth: "50%",
2038
+ flexGrow: 1,
2037
2039
  position: "relative",
2038
2040
  display: "flex",
2039
2041
  flexWrap: "wrap",
@@ -2047,13 +2049,13 @@ var init_App_styles = __esm({
2047
2049
  },
2048
2050
  appItem: {},
2049
2051
  pacMan: {
2050
- position: "absolute",
2051
- left: -2,
2052
- bottom: 2
2052
+ position: "relative",
2053
+ left: -3,
2054
+ bottom: 0
2053
2055
  },
2054
2056
  chrry: {
2055
2057
  position: "relative",
2056
- left: -5
2058
+ left: -3
2057
2059
  },
2058
2060
  grip: {},
2059
2061
  instructions: {},
@@ -17326,7 +17328,7 @@ function DataProvider({
17326
17328
  const [instructions, setInstructions] = (0, import_react14.useState)([]);
17327
17329
  const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
17328
17330
  const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
17329
- const VERSION3 = "1.2.26";
17331
+ const VERSION3 = "1.2.27";
17330
17332
  const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
17331
17333
  const {
17332
17334
  API_URL: API_URL2,
@@ -18303,7 +18305,7 @@ var init_utils = __esm({
18303
18305
  window.history.replaceState({}, "", newUrl);
18304
18306
  };
18305
18307
  isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
18306
- VERSION = "1.2.26";
18308
+ VERSION = "1.2.27";
18307
18309
  getSlugFromPathname = (path) => {
18308
18310
  const siteConfig = getSiteConfig();
18309
18311
  return getAppAndStoreSlugs(path, {
@@ -21595,16 +21597,16 @@ function ImageComponent(props) {
21595
21597
  const color = COLORS2[app?.themeColor] || "var(--accent-6)";
21596
21598
  if (app?.store?.slug === "movies" && app.slug !== "popcorn") {
21597
21599
  if (app.slug === "fightClub") {
21598
- return /* @__PURE__ */ import_react32.default.createElement("span", { style: { fontSize: size } }, "\u{1F94A}");
21600
+ return /* @__PURE__ */ import_react32.default.createElement("span", { style: { fontSize: size } }, "\u{1F9FC}");
21599
21601
  }
21600
21602
  if (app.slug === "inception") {
21601
- return /* @__PURE__ */ import_react32.default.createElement("span", { style: { fontSize: size } }, "\u{1F6CF}\uFE0F");
21603
+ return /* @__PURE__ */ import_react32.default.createElement("span", { style: { fontSize: size } }, "\u{1F300}");
21602
21604
  }
21603
21605
  if (app.slug === "pulpFiction") {
21604
21606
  return /* @__PURE__ */ import_react32.default.createElement("span", { style: { fontSize: size } }, "\u{1F354}");
21605
21607
  }
21606
21608
  if (app.slug === "hungerGames") {
21607
- return /* @__PURE__ */ import_react32.default.createElement("span", { style: { fontSize: size } }, "\u{1F5FA}\uFE0F");
21609
+ return /* @__PURE__ */ import_react32.default.createElement("span", { style: { fontSize: size } }, "\u{1F3F9}");
21608
21610
  }
21609
21611
  return /* @__PURE__ */ import_react32.default.createElement(icons_exports.Clapperboard, { color, size });
21610
21612
  }
@@ -25878,6 +25880,7 @@ function App({
25878
25880
  return 0;
25879
25881
  });
25880
25882
  };
25883
+ const appNameLength = store?.apps?.slice(store?.apps?.length - 2, store?.apps?.length)?.map((app2) => app2.name)?.join(", ")?.length || 0;
25881
25884
  const [appsState, setApps] = import_react49.default.useState(getApps2());
25882
25885
  const popcorn = appsState.find((app2) => app2.slug === "popcorn");
25883
25886
  (0, import_react49.useEffect)(() => {
@@ -26465,164 +26468,173 @@ function App({
26465
26468
  title: t5("Drag and drop to reorder apps")
26466
26469
  },
26467
26470
  /* @__PURE__ */ import_react49.default.createElement(icons_exports.Grip, { size: 24, color: "var(--accent-1)" })
26468
- )), !isManagingApp && /* @__PURE__ */ import_react49.default.createElement("div", { className: (0, import_clsx12.default)(import_App_module.default.section, import_App_module.default.appsGrid) }, /* @__PURE__ */ import_react49.default.createElement(DraggableAppList, { className: (0, import_clsx12.default)(import_App_module.default.apps) }, appsState.filter((app2) => app2.slug !== popcorn?.slug).slice(0, 5)?.map((item, index) => {
26469
- const showPacmanHere = app?.store?.appId === chrry?.id ? index === 2 : store?.slug === "deepSeekStore" || store?.slug === "claudeStore" ? index === 2 : index === 3;
26470
- const showSpaceInvaderHere = app?.store?.appId === chrry?.id ? index === 3 : store?.slug === "deepSeekStore" || store?.slug === "claudeStore" ? index === 4 : index === 4;
26471
- return /* @__PURE__ */ import_react49.default.createElement(
26472
- DraggableAppItem,
26473
- {
26474
- key: item.id,
26475
- id: item.id,
26476
- index,
26477
- onMove: reorder.moveApp,
26478
- onDragStart: reorder.handleDragStart,
26479
- onDragEnd: reorder.handleDragEnd,
26480
- onDrop: reorder.handleDrop,
26481
- className: (0, import_clsx12.default)(import_App_module.default.appItem),
26482
- style: {
26483
- display: "inline-flex"
26484
- }
26485
- },
26486
- /* @__PURE__ */ import_react49.default.createElement(import_react49.default.Fragment, null, item.id === chrry?.id && /* @__PURE__ */ import_react49.default.createElement(
26487
- Anchor,
26471
+ )), !isManagingApp && /* @__PURE__ */ import_react49.default.createElement(
26472
+ Div,
26473
+ {
26474
+ style: {
26475
+ ...appStyles.section.style,
26476
+ ...appStyles.appsGrid.style
26477
+ }
26478
+ },
26479
+ /* @__PURE__ */ import_react49.default.createElement(DraggableAppList, { className: (0, import_clsx12.default)(import_App_module.default.apps) }, appsState.filter((app2) => app2.slug !== popcorn?.slug).slice(0, 5)?.map((item, index) => {
26480
+ const showPacmanHere = app?.id === chrry?.id ? index === 2 : index === 3;
26481
+ const showSpaceInvaderHere = app?.id === chrry?.id ? index === 3 : index === 4;
26482
+ return /* @__PURE__ */ import_react49.default.createElement(
26483
+ DraggableAppItem,
26488
26484
  {
26489
- href: getAppSlug(item),
26490
- onClick: (e) => {
26491
- if (isManagingApp) {
26492
- e.preventDefault();
26493
- return;
26494
- }
26495
- if (e.metaKey || e.ctrlKey) {
26496
- return;
26497
- }
26498
- e.preventDefault();
26499
- setIsNewChat(true, getAppSlug(item));
26500
- },
26501
- className: (0, import_clsx12.default)("link", import_App_module.default.chrry)
26485
+ key: item.id,
26486
+ id: item.id,
26487
+ index,
26488
+ onMove: reorder.moveApp,
26489
+ onDragStart: reorder.handleDragStart,
26490
+ onDragEnd: reorder.handleDragEnd,
26491
+ onDrop: reorder.handleDrop,
26492
+ className: (0, import_clsx12.default)(import_App_module.default.appItem),
26493
+ style: {
26494
+ display: "inline-flex"
26495
+ }
26502
26496
  },
26503
- /* @__PURE__ */ import_react49.default.createElement(
26504
- ImageComponent,
26497
+ /* @__PURE__ */ import_react49.default.createElement(import_react49.default.Fragment, null, item.id === chrry?.id && /* @__PURE__ */ import_react49.default.createElement(
26498
+ Anchor,
26505
26499
  {
26506
- className: (0, import_clsx12.default)("link", import_App_module.default.chrry),
26507
- containerClass: (0, import_clsx12.default)("link", import_App_module.default.chrry),
26508
- logo: "chrry",
26509
- alt: "Chrry",
26510
- title: "Chrry",
26511
- width: 28,
26512
- height: 28
26513
- }
26514
- )
26515
- ), showPacmanHere ? popcorn ? /* @__PURE__ */ import_react49.default.createElement(
26516
- Anchor,
26517
- {
26518
- href: getAppSlug(popcorn),
26519
- onClick: (e) => {
26520
- if (isManagingApp) {
26500
+ href: getAppSlug(item),
26501
+ onClick: (e) => {
26502
+ if (isManagingApp) {
26503
+ e.preventDefault();
26504
+ return;
26505
+ }
26506
+ if (e.metaKey || e.ctrlKey) {
26507
+ return;
26508
+ }
26521
26509
  e.preventDefault();
26522
- return;
26523
- }
26524
- if (e.metaKey || e.ctrlKey) {
26525
- return;
26526
- }
26527
- e.preventDefault();
26528
- setIsNewChat(true, getAppSlug(popcorn));
26510
+ setIsNewChat(true, getAppSlug(item));
26511
+ },
26512
+ className: (0, import_clsx12.default)("link", import_App_module.default.chrry)
26529
26513
  },
26530
- className: (0, import_clsx12.default)("link", import_App_module.default.chrry)
26531
- },
26532
- /* @__PURE__ */ import_react49.default.createElement(
26533
- ImageComponent,
26514
+ /* @__PURE__ */ import_react49.default.createElement(
26515
+ ImageComponent,
26516
+ {
26517
+ className: (0, import_clsx12.default)("link", import_App_module.default.chrry),
26518
+ containerClass: (0, import_clsx12.default)("link", import_App_module.default.chrry),
26519
+ logo: "chrry",
26520
+ alt: "Chrry",
26521
+ title: "Chrry",
26522
+ width: 28,
26523
+ height: 28
26524
+ }
26525
+ )
26526
+ ), showPacmanHere ? popcorn ? /* @__PURE__ */ import_react49.default.createElement(
26527
+ Anchor,
26534
26528
  {
26535
- className: (0, import_clsx12.default)("link", import_App_module.default.chrry),
26536
- containerClass: (0, import_clsx12.default)("link", import_App_module.default.chrry),
26537
- app: popcorn,
26538
- width: 80,
26539
- height: 80
26540
- }
26541
- )
26542
- ) : /* @__PURE__ */ import_react49.default.createElement(
26543
- "button",
26544
- {
26545
- onClick: () => setAppStatus({
26546
- currentStep: "add",
26547
- part: "highlights"
26548
- }),
26549
- className: (0, import_clsx12.default)("link", import_App_module.default.pacMan)
26550
- },
26551
- /* @__PURE__ */ import_react49.default.createElement(
26552
- ImageComponent,
26529
+ href: getAppSlug(popcorn),
26530
+ onClick: (e) => {
26531
+ if (isManagingApp) {
26532
+ e.preventDefault();
26533
+ return;
26534
+ }
26535
+ if (e.metaKey || e.ctrlKey) {
26536
+ return;
26537
+ }
26538
+ e.preventDefault();
26539
+ setIsNewChat(true, getAppSlug(popcorn));
26540
+ },
26541
+ className: (0, import_clsx12.default)("link", import_App_module.default.chrry)
26542
+ },
26543
+ /* @__PURE__ */ import_react49.default.createElement(
26544
+ ImageComponent,
26545
+ {
26546
+ className: (0, import_clsx12.default)("link", import_App_module.default.chrry),
26547
+ containerClass: (0, import_clsx12.default)("link", import_App_module.default.chrry),
26548
+ app: popcorn,
26549
+ width: 80,
26550
+ height: 80
26551
+ }
26552
+ )
26553
+ ) : /* @__PURE__ */ import_react49.default.createElement(
26554
+ "button",
26553
26555
  {
26554
- className: (0, import_clsx12.default)("link", import_App_module.default.pacMan),
26555
- containerClass: (0, import_clsx12.default)("link", import_App_module.default.pacMan),
26556
- icon: "pacman",
26557
- alt: "Pacman",
26558
- title: "Pacman",
26559
- width: 26,
26560
- height: 26
26561
- }
26562
- )
26563
- ) : null, slug && index === appsState.findIndex(
26564
- (a) => getAppSlug(a) === slug
26565
- ) ? /* @__PURE__ */ import_react49.default.createElement(import_react49.default.Fragment, null, /* @__PURE__ */ import_react49.default.createElement(StoreApp, { key: "vex" })) : item.id !== chrry?.id && item.id !== app?.id && /* @__PURE__ */ import_react49.default.createElement(
26566
- Anchor,
26567
- {
26568
- key: item.slug,
26569
- title: t5(item.title),
26570
- style: {
26571
- display: "inline-flex",
26572
- alignItems: "center",
26573
- gap: "0.35rem"
26556
+ onClick: () => setAppStatus({
26557
+ currentStep: "add",
26558
+ part: "highlights"
26559
+ }),
26560
+ className: (0, import_clsx12.default)("link", import_App_module.default.pacMan)
26574
26561
  },
26575
- href: getAppSlug(item),
26576
- className: (0, import_clsx12.default)(
26577
- "button small",
26578
- isManagingApp ? "transparent" : "inverted"
26579
- ),
26580
- onClick: (e) => {
26581
- if (isManagingApp) {
26562
+ /* @__PURE__ */ import_react49.default.createElement(
26563
+ ImageComponent,
26564
+ {
26565
+ className: (0, import_clsx12.default)("link", import_App_module.default.pacMan),
26566
+ containerClass: (0, import_clsx12.default)("link", import_App_module.default.pacMan),
26567
+ icon: "pacman",
26568
+ alt: "Pacman",
26569
+ title: "Pacman",
26570
+ width: 26,
26571
+ height: 26
26572
+ }
26573
+ )
26574
+ ) : null, slug && index === appsState.findIndex(
26575
+ (a) => getAppSlug(a) === slug
26576
+ ) ? /* @__PURE__ */ import_react49.default.createElement(import_react49.default.Fragment, null, /* @__PURE__ */ import_react49.default.createElement(StoreApp, { key: "vex" })) : item.id !== chrry?.id && item.id !== app?.id && /* @__PURE__ */ import_react49.default.createElement(
26577
+ Anchor,
26578
+ {
26579
+ key: item.slug,
26580
+ title: t5(item.title),
26581
+ style: {
26582
+ display: "inline-flex",
26583
+ alignItems: "center",
26584
+ gap: "0.35rem"
26585
+ },
26586
+ href: getAppSlug(item),
26587
+ className: (0, import_clsx12.default)(
26588
+ "button small",
26589
+ isManagingApp ? "transparent" : "inverted"
26590
+ ),
26591
+ onClick: (e) => {
26592
+ if (isManagingApp) {
26593
+ e.preventDefault();
26594
+ return;
26595
+ }
26596
+ addHapticFeedback();
26597
+ if (e.metaKey || e.ctrlKey) {
26598
+ return;
26599
+ }
26582
26600
  e.preventDefault();
26583
- return;
26584
26601
  }
26585
- addHapticFeedback();
26586
- if (e.metaKey || e.ctrlKey) {
26587
- return;
26602
+ },
26603
+ /* @__PURE__ */ import_react49.default.createElement(
26604
+ ImageComponent,
26605
+ {
26606
+ showLoading: false,
26607
+ app: item,
26608
+ alt: item.title,
26609
+ size: 24
26588
26610
  }
26589
- e.preventDefault();
26590
- }
26591
- },
26592
- /* @__PURE__ */ import_react49.default.createElement(
26593
- ImageComponent,
26594
- {
26595
- showLoading: false,
26596
- app: item,
26597
- alt: item.title,
26598
- size: 24
26599
- }
26600
- ),
26601
- /* @__PURE__ */ import_react49.default.createElement("span", null, item.name)
26602
- ), showSpaceInvaderHere && /* @__PURE__ */ import_react49.default.createElement(
26603
- "button",
26604
- {
26605
- className: (0, import_clsx12.default)("link", import_App_module.default.spaceInvader),
26606
- onClick: () => setAppStatus({
26607
- currentStep: "add",
26608
- part: "name"
26609
- })
26610
- },
26611
- /* @__PURE__ */ import_react49.default.createElement(
26612
- ImageComponent,
26611
+ ),
26612
+ /* @__PURE__ */ import_react49.default.createElement("span", null, item.name)
26613
+ ), showSpaceInvaderHere && /* @__PURE__ */ import_react49.default.createElement(
26614
+ "button",
26613
26615
  {
26614
26616
  className: (0, import_clsx12.default)("link", import_App_module.default.spaceInvader),
26615
- containerClass: (0, import_clsx12.default)(import_App_module.default.spaceInvader),
26616
- icon: "spaceInvader",
26617
- alt: "Space Invader",
26618
- title: t5("Space Invader"),
26619
- width: 26,
26620
- height: 26
26621
- }
26622
- )
26623
- ))
26624
- );
26625
- })))), /* @__PURE__ */ import_react49.default.createElement("div", { className: import_App_module.default.instructions }, isManagingApp && /* @__PURE__ */ import_react49.default.createElement(
26617
+ onClick: () => setAppStatus({
26618
+ currentStep: "add",
26619
+ part: "name"
26620
+ })
26621
+ },
26622
+ /* @__PURE__ */ import_react49.default.createElement(
26623
+ ImageComponent,
26624
+ {
26625
+ className: (0, import_clsx12.default)("link", import_App_module.default.spaceInvader),
26626
+ containerClass: (0, import_clsx12.default)(import_App_module.default.spaceInvader),
26627
+ icon: "spaceInvader",
26628
+ alt: "Space Invader",
26629
+ title: t5("Space Invader"),
26630
+ width: 26,
26631
+ height: 26
26632
+ }
26633
+ )
26634
+ ))
26635
+ );
26636
+ }))
26637
+ )), /* @__PURE__ */ import_react49.default.createElement("div", { className: import_App_module.default.instructions }, isManagingApp && /* @__PURE__ */ import_react49.default.createElement(
26626
26638
  Instructions,
26627
26639
  {
26628
26640
  showButton: true,
@@ -26653,7 +26665,7 @@ var init_App = __esm({
26653
26665
  import_react49 = __toESM(require("react"));
26654
26666
  init_platform();
26655
26667
  import_clsx12 = __toESM(require("clsx"));
26656
- import_App_module = __toESM(require("./App.module-QMVPLXZC.scss"));
26668
+ import_App_module = __toESM(require("./App.module-UPUZTZ7J.scss"));
26657
26669
  init_EnableNotifications();
26658
26670
  init_Image();
26659
26671
  init_Image();