@chrryai/chrry 1.2.70 → 1.2.71
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 +16 -10
- package/dist/index.d.ts +16 -10
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import z$1, { z } from 'zod';
|
|
2
|
-
import
|
|
3
|
-
import React__default, { ReactNode } from 'react';
|
|
2
|
+
import React$1, { ReactNode } from 'react';
|
|
4
3
|
import { Metadata } from 'next';
|
|
5
4
|
|
|
6
5
|
declare function useLocalStorage<T>(key: string, initialValue: T | (() => T)): readonly [T, (value: T | ((t: T) => T)) => Promise<void>];
|
|
@@ -41,7 +40,7 @@ type user = {
|
|
|
41
40
|
imagesGeneratedToday: number;
|
|
42
41
|
lastImageGenerationReset: Date | null;
|
|
43
42
|
lastMessage?: message;
|
|
44
|
-
favouriteAgent: "deepSeek" | "chatGPT" | "claude" | "gemini" | "flux" | "perplexity";
|
|
43
|
+
favouriteAgent: "deepSeek" | "chatGPT" | "claude" | "gemini" | "flux" | "perplexity" | string;
|
|
45
44
|
timezone: string | null;
|
|
46
45
|
appleId: string | null;
|
|
47
46
|
migratedFromGuest: boolean;
|
|
@@ -782,7 +781,7 @@ declare const isFirefox: boolean;
|
|
|
782
781
|
declare function getFlag({ code }: {
|
|
783
782
|
code?: string;
|
|
784
783
|
}): string;
|
|
785
|
-
declare const VERSION = "1.2.
|
|
784
|
+
declare const VERSION = "1.2.71";
|
|
786
785
|
type instructionBase = {
|
|
787
786
|
id: string;
|
|
788
787
|
title: string;
|
|
@@ -834,10 +833,10 @@ declare function checkThreadSummaryLimit({ user, guest, thread, }: {
|
|
|
834
833
|
}): boolean;
|
|
835
834
|
declare const getRedirectURL: () => any;
|
|
836
835
|
declare const getDailyImageLimit: ({ member, guest, }: {
|
|
837
|
-
member?: user & {
|
|
836
|
+
member?: Partial<user> & {
|
|
838
837
|
subscription?: subscription;
|
|
839
838
|
};
|
|
840
|
-
guest?: guest & {
|
|
839
|
+
guest?: Partial<guest> & {
|
|
841
840
|
subscription?: subscription;
|
|
842
841
|
};
|
|
843
842
|
}) => number;
|
|
@@ -1589,14 +1588,21 @@ type CreateCustomAiAgent = z.infer<typeof createCustomAiAgentSchema>;
|
|
|
1589
1588
|
|
|
1590
1589
|
declare function Sidebar({ useExtensionIcon, }: {
|
|
1591
1590
|
useExtensionIcon?: (slug?: string) => void;
|
|
1592
|
-
}): React.
|
|
1591
|
+
}): React.ReactElement;
|
|
1593
1592
|
|
|
1594
|
-
declare function Chrry():
|
|
1593
|
+
declare function Chrry(): React$1.JSX.Element;
|
|
1595
1594
|
|
|
1596
1595
|
declare function Store({ compact, slug, }: {
|
|
1597
1596
|
compact?: boolean;
|
|
1598
1597
|
slug?: string;
|
|
1599
|
-
}):
|
|
1598
|
+
}): React$1.JSX.Element | null;
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* HistoryRouterProvider - Makes window.history changes trigger React re-renders
|
|
1602
|
+
*
|
|
1603
|
+
* This provider ensures that when clientRouter.push() is called,
|
|
1604
|
+
* all components using pathname/searchParams will re-render properly
|
|
1605
|
+
*/
|
|
1600
1606
|
|
|
1601
1607
|
interface HistoryRouterProviderProps {
|
|
1602
1608
|
children: ReactNode;
|
|
@@ -1614,6 +1620,6 @@ interface HistoryRouterProviderProps {
|
|
|
1614
1620
|
* </HistoryRouterProvider>
|
|
1615
1621
|
* ```
|
|
1616
1622
|
*/
|
|
1617
|
-
declare function HistoryRouterProvider({ children, }: HistoryRouterProviderProps): React.
|
|
1623
|
+
declare function HistoryRouterProvider({ children, }: HistoryRouterProviderProps): React.ReactElement;
|
|
1618
1624
|
|
|
1619
1625
|
export { ADDITIONAL_CREDITS, API_URL, type AiAgent, type AiAgentCapabilities, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, type CreateCustomAiAgent, FREE_DAYS, FRONTEND_URL, HistoryRouterProvider, MAX_FILE_SIZES, MAX_TOOL_CALLS_PER_MESSAGE, OWNER_CREDITS, PDF_LIMITS, PLUS_PRICE, PROD_FRONTEND_URL, PROMPT_LIMITS, PRO_PRICE, Sidebar, Store, VERSION, WS_URL, addParam, aiAgentCapabilitiesSchema, aiAgentSchema, apiFetch, type appFormData, appSchema, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, createCustomAiAgentSchema, deleteApp, deleteCalendarEvent, deleteMemories, deleteMessage, deleteSubscription, exampleInstructions, expenseCategory, type expenseCategoryType, exportToGoogleCalendar, extensionSuggestions, generateAppMetadata, getActions, getApps, getBrowserAPI, getBrowserIdentity, getCalendarEvents, getDailyImageLimit, getExampleInstructions, getExtensionUrl, getFlag, getGuest, getHourlyLimit, getImageSrc, getInstructionConfig, getLastMessage, getMetadata, getRedirectURL, getSession, getSlugFromPathname, getThread, getThreadId, getThreads, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isValidUsername, isValidUuidV4, pageSizes, removeParam, removeUser, reorderApps, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import z$1, { z } from 'zod';
|
|
2
|
-
import
|
|
3
|
-
import React__default, { ReactNode } from 'react';
|
|
2
|
+
import React$1, { ReactNode } from 'react';
|
|
4
3
|
import { Metadata } from 'next';
|
|
5
4
|
|
|
6
5
|
declare function useLocalStorage<T>(key: string, initialValue: T | (() => T)): readonly [T, (value: T | ((t: T) => T)) => Promise<void>];
|
|
@@ -41,7 +40,7 @@ type user = {
|
|
|
41
40
|
imagesGeneratedToday: number;
|
|
42
41
|
lastImageGenerationReset: Date | null;
|
|
43
42
|
lastMessage?: message;
|
|
44
|
-
favouriteAgent: "deepSeek" | "chatGPT" | "claude" | "gemini" | "flux" | "perplexity";
|
|
43
|
+
favouriteAgent: "deepSeek" | "chatGPT" | "claude" | "gemini" | "flux" | "perplexity" | string;
|
|
45
44
|
timezone: string | null;
|
|
46
45
|
appleId: string | null;
|
|
47
46
|
migratedFromGuest: boolean;
|
|
@@ -782,7 +781,7 @@ declare const isFirefox: boolean;
|
|
|
782
781
|
declare function getFlag({ code }: {
|
|
783
782
|
code?: string;
|
|
784
783
|
}): string;
|
|
785
|
-
declare const VERSION = "1.2.
|
|
784
|
+
declare const VERSION = "1.2.71";
|
|
786
785
|
type instructionBase = {
|
|
787
786
|
id: string;
|
|
788
787
|
title: string;
|
|
@@ -834,10 +833,10 @@ declare function checkThreadSummaryLimit({ user, guest, thread, }: {
|
|
|
834
833
|
}): boolean;
|
|
835
834
|
declare const getRedirectURL: () => any;
|
|
836
835
|
declare const getDailyImageLimit: ({ member, guest, }: {
|
|
837
|
-
member?: user & {
|
|
836
|
+
member?: Partial<user> & {
|
|
838
837
|
subscription?: subscription;
|
|
839
838
|
};
|
|
840
|
-
guest?: guest & {
|
|
839
|
+
guest?: Partial<guest> & {
|
|
841
840
|
subscription?: subscription;
|
|
842
841
|
};
|
|
843
842
|
}) => number;
|
|
@@ -1589,14 +1588,21 @@ type CreateCustomAiAgent = z.infer<typeof createCustomAiAgentSchema>;
|
|
|
1589
1588
|
|
|
1590
1589
|
declare function Sidebar({ useExtensionIcon, }: {
|
|
1591
1590
|
useExtensionIcon?: (slug?: string) => void;
|
|
1592
|
-
}): React.
|
|
1591
|
+
}): React.ReactElement;
|
|
1593
1592
|
|
|
1594
|
-
declare function Chrry():
|
|
1593
|
+
declare function Chrry(): React$1.JSX.Element;
|
|
1595
1594
|
|
|
1596
1595
|
declare function Store({ compact, slug, }: {
|
|
1597
1596
|
compact?: boolean;
|
|
1598
1597
|
slug?: string;
|
|
1599
|
-
}):
|
|
1598
|
+
}): React$1.JSX.Element | null;
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* HistoryRouterProvider - Makes window.history changes trigger React re-renders
|
|
1602
|
+
*
|
|
1603
|
+
* This provider ensures that when clientRouter.push() is called,
|
|
1604
|
+
* all components using pathname/searchParams will re-render properly
|
|
1605
|
+
*/
|
|
1600
1606
|
|
|
1601
1607
|
interface HistoryRouterProviderProps {
|
|
1602
1608
|
children: ReactNode;
|
|
@@ -1614,6 +1620,6 @@ interface HistoryRouterProviderProps {
|
|
|
1614
1620
|
* </HistoryRouterProvider>
|
|
1615
1621
|
* ```
|
|
1616
1622
|
*/
|
|
1617
|
-
declare function HistoryRouterProvider({ children, }: HistoryRouterProviderProps): React.
|
|
1623
|
+
declare function HistoryRouterProvider({ children, }: HistoryRouterProviderProps): React.ReactElement;
|
|
1618
1624
|
|
|
1619
1625
|
export { ADDITIONAL_CREDITS, API_URL, type AiAgent, type AiAgentCapabilities, type ApiActions, BrowserInstance, CHRRY_URL, CREDITS_PRICE, type CalendarEventFormData, Chrry, type CreateCustomAiAgent, FREE_DAYS, FRONTEND_URL, HistoryRouterProvider, MAX_FILE_SIZES, MAX_TOOL_CALLS_PER_MESSAGE, OWNER_CREDITS, PDF_LIMITS, PLUS_PRICE, PROD_FRONTEND_URL, PROMPT_LIMITS, PRO_PRICE, Sidebar, Store, VERSION, WS_URL, addParam, aiAgentCapabilitiesSchema, aiAgentSchema, apiFetch, type appFormData, appSchema, budgetCategory, capitalizeFirstLetter, checkIsExtension, checkThreadSummaryLimit, createApp, createCalendarEvent, createCustomAiAgentSchema, deleteApp, deleteCalendarEvent, deleteMemories, deleteMessage, deleteSubscription, exampleInstructions, expenseCategory, type expenseCategoryType, exportToGoogleCalendar, extensionSuggestions, generateAppMetadata, getActions, getApps, getBrowserAPI, getBrowserIdentity, getCalendarEvents, getDailyImageLimit, getExampleInstructions, getExtensionUrl, getFlag, getGuest, getHourlyLimit, getImageSrc, getInstructionConfig, getLastMessage, getMetadata, getRedirectURL, getSession, getSlugFromPathname, getThread, getThreadId, getThreads, getUser, getUsers, getWeatherCacheTime, type instructionBase, isCI, isCollaborator, isDeepEqual, isDevelopment, isE2E, isFirefox, isOwner, isValidUsername, isValidUuidV4, pageSizes, removeParam, removeUser, reorderApps, storage, syncGoogleCalendar, updateApp, updateCalendarEvent, updateCollaboration, updateGuest, updateMessage, updateThread, updateUser, uploadUserImage, useCountdown, useDeviceInfo, useHasHydrated, useLocalStorage, usePWAInstall };
|
package/dist/index.js
CHANGED
|
@@ -20662,7 +20662,7 @@ function DataProvider({
|
|
|
20662
20662
|
const [instructions, setInstructions] = (0, import_react14.useState)([]);
|
|
20663
20663
|
const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
|
|
20664
20664
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
|
|
20665
|
-
const VERSION3 = "1.2.
|
|
20665
|
+
const VERSION3 = "1.2.71";
|
|
20666
20666
|
const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
|
|
20667
20667
|
const {
|
|
20668
20668
|
API_URL: API_URL2,
|
|
@@ -21712,7 +21712,7 @@ var init_utils = __esm({
|
|
|
21712
21712
|
window.history.replaceState({}, "", newUrl);
|
|
21713
21713
|
};
|
|
21714
21714
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
|
|
21715
|
-
VERSION = "1.2.
|
|
21715
|
+
VERSION = "1.2.71";
|
|
21716
21716
|
getSlugFromPathname = (path) => {
|
|
21717
21717
|
const siteConfig = getSiteConfig();
|
|
21718
21718
|
return getAppAndStoreSlugs(path, {
|