@thebes/cadmea 1.6.0 → 1.7.1
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/index.d.ts +8 -1
- package/dist/index/index.js +244 -224
- package/dist/index/index.js.map +1 -1
- package/dist/index/server.js +63 -54
- package/dist/index/server.js.map +1 -1
- package/dist/tanstack-start/index.d.ts +2 -0
- package/dist/tanstack-start/index.js +273 -229
- package/dist/tanstack-start/index.js.map +1 -1
- package/dist/tanstack-start/server.js +93 -62
- package/dist/tanstack-start/server.js.map +1 -1
- package/package.json +1 -1
package/dist/index/index.d.ts
CHANGED
|
@@ -96,6 +96,8 @@ interface DraftActions {
|
|
|
96
96
|
autosave?: boolean;
|
|
97
97
|
/** Debounce window for autosave, in ms. Default 1500. */
|
|
98
98
|
autosaveMs?: number;
|
|
99
|
+
/** Ask for confirmation (a dialog) before publishing. */
|
|
100
|
+
confirmPublish?: boolean;
|
|
99
101
|
}
|
|
100
102
|
interface CollectionEditProps {
|
|
101
103
|
config: CollectionConfig;
|
|
@@ -179,8 +181,13 @@ interface CollectionListProps {
|
|
|
179
181
|
selectable?: boolean;
|
|
180
182
|
selectedIds?: ReadonlySet<number>;
|
|
181
183
|
onSelectionChange?: (selectedIds: Set<number>) => void;
|
|
184
|
+
/**
|
|
185
|
+
* Friendly empty state shown when there are no rows — pass one with a "New"
|
|
186
|
+
* CTA (the list factory does this). Falls back to a simple default.
|
|
187
|
+
*/
|
|
188
|
+
emptyState?: JSX.Element;
|
|
182
189
|
}
|
|
183
|
-
declare function CollectionList(props: CollectionListProps):
|
|
190
|
+
declare function CollectionList(props: CollectionListProps): JSX.Element;
|
|
184
191
|
//#endregion
|
|
185
192
|
//#region src/SearchPalette.d.ts
|
|
186
193
|
interface SearchPaletteResult {
|