@donotdev/core 0.0.42 → 0.0.44
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/index.d.ts +7 -10
- package/next/index.js +25 -25
- package/package.json +2 -2
- package/server.d.ts +6 -9
- package/vite/index.js +31 -31
package/index.d.ts
CHANGED
|
@@ -7033,6 +7033,10 @@ interface EntityCardListProps extends EntityBrowseBaseProps {
|
|
|
7033
7033
|
* @default 'ghost' (transparent — inherits parent background)
|
|
7034
7034
|
*/
|
|
7035
7035
|
tone?: 'ghost' | 'base' | 'muted' | 'contrast' | 'accent';
|
|
7036
|
+
/** Make filter/results sections collapsible. @default false */
|
|
7037
|
+
collapsible?: boolean;
|
|
7038
|
+
/** Initial open state when collapsible. Only relevant when `collapsible` is true. */
|
|
7039
|
+
defaultOpen?: boolean;
|
|
7036
7040
|
}
|
|
7037
7041
|
/**
|
|
7038
7042
|
* Props for CrudCard — presentational card built from entity + item + field slots.
|
|
@@ -7047,13 +7051,8 @@ interface CrudCardProps {
|
|
|
7047
7051
|
/** The entity definition (for entity.fields and formatting) */
|
|
7048
7052
|
entity: Entity;
|
|
7049
7053
|
/**
|
|
7050
|
-
*
|
|
7051
|
-
*
|
|
7052
|
-
*/
|
|
7053
|
-
detailHref?: string;
|
|
7054
|
-
/**
|
|
7055
|
-
* Called when card is clicked. If detailHref is also set, Link handles navigation;
|
|
7056
|
-
* use onClick only when overriding (e.g. open sheet). If no detailHref, onClick is used for navigation.
|
|
7054
|
+
* Called when card is clicked (e.g. open sheet instead of navigating).
|
|
7055
|
+
* Navigation via Link is handled by the parent wrapper (CrudCardLink), not by CrudCard itself.
|
|
7057
7056
|
*/
|
|
7058
7057
|
onClick?: (id: string) => void;
|
|
7059
7058
|
/** Field names for card title (values joined with space) */
|
|
@@ -7068,8 +7067,6 @@ interface CrudCardProps {
|
|
|
7068
7067
|
showDelete?: boolean;
|
|
7069
7068
|
/** Optional actions slot (e.g. favorites heart) rendered in card corner */
|
|
7070
7069
|
renderActions?: ReactNode;
|
|
7071
|
-
/** Card elevated style */
|
|
7072
|
-
elevated?: boolean;
|
|
7073
7070
|
/** Optional className for the card wrapper */
|
|
7074
7071
|
className?: string;
|
|
7075
7072
|
}
|
|
@@ -16608,7 +16605,7 @@ declare function clearPartnerCache(): void;
|
|
|
16608
16605
|
declare function getPartnerCacheStatus(): {
|
|
16609
16606
|
authPartnersCached: boolean;
|
|
16610
16607
|
oauthPartnersCached: boolean;
|
|
16611
|
-
authPartners: ("
|
|
16608
|
+
authPartners: ("apple" | "discord" | "emailLink" | "facebook" | "github" | "google" | "linkedin" | "microsoft" | "password" | "reddit" | "spotify" | "twitch" | "twitter" | "yahoo")[] | null;
|
|
16612
16609
|
oauthPartners: ("discord" | "github" | "google" | "linkedin" | "reddit" | "spotify" | "twitch" | "twitter" | "notion" | "slack" | "medium" | "mastodon" | "youtube")[] | null;
|
|
16613
16610
|
};
|
|
16614
16611
|
/**
|