@thebes/cadmea 1.1.0 → 1.2.0
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 -8
- package/dist/index/index.js +678 -245
- package/dist/index/index.js.map +1 -1
- package/dist/index/server.js +448 -145
- package/dist/index/server.js.map +1 -1
- package/dist/tanstack-start/index.d.ts +4 -5
- package/dist/tanstack-start/index.js +678 -244
- package/dist/tanstack-start/index.js.map +1 -1
- package/dist/tanstack-start/server.js +448 -144
- package/dist/tanstack-start/server.js.map +1 -1
- package/package.json +8 -6
package/dist/index/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JSX } from "solid-js";
|
|
2
1
|
import { CollectionConfig, EditRef } from "@thebes/cadmus/cms";
|
|
2
|
+
import { JSX } from "solid-js";
|
|
3
3
|
import { ImageCrop, ImageHotspot } from "@thebes/cadmus/storage";
|
|
4
4
|
|
|
5
5
|
//#region src/capabilities.d.ts
|
|
@@ -107,11 +107,10 @@ interface CollectionEditProps {
|
|
|
107
107
|
url: string;
|
|
108
108
|
}>;
|
|
109
109
|
/**
|
|
110
|
-
* Options for `relationship` fields (hasMany
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
* and passes them in.
|
|
110
|
+
* Options for `relationship` fields (both single and `hasMany`), keyed by
|
|
111
|
+
* the field's `relationTo` collection slug. `CollectionEdit` can't query
|
|
112
|
+
* another collection itself, so the consuming route fetches the related
|
|
113
|
+
* rows and passes them in; the field renders them as a searchable combobox.
|
|
115
114
|
*/
|
|
116
115
|
relationshipOptions?: Partial<Record<string, RelationshipOption[]>>;
|
|
117
116
|
/**
|
|
@@ -140,10 +139,11 @@ interface CollectionEditProps {
|
|
|
140
139
|
declare function CollectionEdit(props: CollectionEditProps): JSX.Element;
|
|
141
140
|
//#endregion
|
|
142
141
|
//#region src/CollectionList.d.ts
|
|
142
|
+
type Row = Record<string, unknown>;
|
|
143
143
|
interface CollectionListProps {
|
|
144
144
|
config: CollectionConfig;
|
|
145
|
-
rows:
|
|
146
|
-
onRowClick?: (row:
|
|
145
|
+
rows: Row[];
|
|
146
|
+
onRowClick?: (row: Row) => void;
|
|
147
147
|
/**
|
|
148
148
|
* 1-based current page. Omit (along with `pageSize`) to render without
|
|
149
149
|
* the pagination bar entirely — list views with no `find()` paging
|