@protobase/schema 0.64.0 → 0.65.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/model.d.ts +3 -3
- package/dist/view.d.ts +1 -1
- package/dist/view.js +1 -1
- package/package.json +1 -1
package/dist/model.d.ts
CHANGED
|
@@ -566,8 +566,8 @@ export type SignInPromptModel = {
|
|
|
566
566
|
href: string;
|
|
567
567
|
};
|
|
568
568
|
};
|
|
569
|
-
/** A resource a visitor cannot open until they sign in, as `/meta` names it: what its view calls it and its prompt. */
|
|
570
|
-
export type SignInViewModel = Pick<ViewModel, 'resource' | 'names' | 'nav'> & {
|
|
569
|
+
/** A resource a visitor cannot open until they sign in, as `/meta` names it: what its view calls it, its icon and its prompt. */
|
|
570
|
+
export type SignInViewModel = Pick<ViewModel, 'resource' | 'names' | 'icon' | 'nav'> & {
|
|
571
571
|
/** What the visitor is told. */
|
|
572
572
|
signIn: SignInPromptModel;
|
|
573
573
|
};
|
|
@@ -1292,7 +1292,7 @@ export type ViewModel = {
|
|
|
1292
1292
|
/** The records' name, as in the sidebar. */
|
|
1293
1293
|
plural: string;
|
|
1294
1294
|
};
|
|
1295
|
-
/**
|
|
1295
|
+
/** The resource's icon in the admin's sidebar, bottom bar and user menu, a table when it names none or one the admin does not know. */
|
|
1296
1296
|
icon?: string;
|
|
1297
1297
|
/** A line under the list's title. */
|
|
1298
1298
|
help?: string;
|
package/dist/view.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare class ViewBuilder<R extends {
|
|
|
51
51
|
singular: string;
|
|
52
52
|
plural: string;
|
|
53
53
|
}): ViewBuilder<R>;
|
|
54
|
-
/**
|
|
54
|
+
/** The resource's icon in the sidebar, bottom bar and user menu; a table without one. See [Sidebar icons](docs/website/src/content/docs/reference/sidebar.md#sidebar-icons). */
|
|
55
55
|
icon(icon: string): ViewBuilder<R>;
|
|
56
56
|
/** Shows this view only to users with one of these roles; a view without roles is the default. */
|
|
57
57
|
forRoles(roles: string[]): ViewBuilder<R>;
|
package/dist/view.js
CHANGED
|
@@ -45,7 +45,7 @@ var ViewBuilder = class ViewBuilder {
|
|
|
45
45
|
names(names) {
|
|
46
46
|
return this.next({ names });
|
|
47
47
|
}
|
|
48
|
-
/**
|
|
48
|
+
/** The resource's icon in the sidebar, bottom bar and user menu; a table without one. See [Sidebar icons](docs/website/src/content/docs/reference/sidebar.md#sidebar-icons). */
|
|
49
49
|
icon(icon) {
|
|
50
50
|
return this.next({ icon });
|
|
51
51
|
}
|