@protobase/layout 0.53.7 → 0.54.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/block-specs.js +4 -0
- package/dist/blocks.d.ts +4 -2
- package/dist/blocks.js +2 -1
- package/dist/check-account.js +2 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/presets/account-page.js +2 -2
- package/package.json +2 -2
package/dist/block-specs.js
CHANGED
package/dist/blocks.d.ts
CHANGED
|
@@ -209,8 +209,9 @@ export type SettingsProps = {
|
|
|
209
209
|
export type UsersProps = Record<string, never>;
|
|
210
210
|
/**
|
|
211
211
|
* A part of the signed-in person's own account, for the `account` page only: their profile, password, passkeys,
|
|
212
|
-
* two-factor authentication, connected accounts or
|
|
213
|
-
* itself where it does not apply, such as Connected apps without MCP
|
|
212
|
+
* two-factor authentication, connected accounts, connected apps, or the deletion of the account. Each takes no props,
|
|
213
|
+
* loads its own data, and hides itself where it does not apply, such as Connected apps without MCP, or Delete account
|
|
214
|
+
* with `auth.accountDeletion: false`.
|
|
214
215
|
*/
|
|
215
216
|
export type AccountBlockProps = Record<string, never>;
|
|
216
217
|
export declare const Page: Block<PageProps>;
|
|
@@ -240,4 +241,5 @@ export declare const TwoFactor: Block<AccountBlockProps>;
|
|
|
240
241
|
export declare const ConnectedAccounts: Block<AccountBlockProps>;
|
|
241
242
|
export declare const Devices: Block<AccountBlockProps>;
|
|
242
243
|
export declare const ConnectedApps: Block<AccountBlockProps>;
|
|
244
|
+
export declare const DeleteAccount: Block<AccountBlockProps>;
|
|
243
245
|
//#endregion
|
package/dist/blocks.js
CHANGED
|
@@ -27,5 +27,6 @@ const TwoFactor = defineBlock("TwoFactor", false);
|
|
|
27
27
|
const ConnectedAccounts = defineBlock("ConnectedAccounts", false);
|
|
28
28
|
const Devices = defineBlock("Devices", false);
|
|
29
29
|
const ConnectedApps = defineBlock("ConnectedApps", false);
|
|
30
|
+
const DeleteAccount = defineBlock("DeleteAccount", false);
|
|
30
31
|
//#endregion
|
|
31
|
-
export { Action, Card, CardRow, Chart, ConnectedAccounts, ConnectedApps, Devices, Field, Grid, Link, ModalForm, Page, Passkeys, Password, Profile, Progress, RecordCard, RecordCards, RecordRow, Settings, Show, Stat, Tab, Table, Tabs, TwoFactor, Users };
|
|
32
|
+
export { Action, Card, CardRow, Chart, ConnectedAccounts, ConnectedApps, DeleteAccount, Devices, Field, Grid, Link, ModalForm, Page, Passkeys, Password, Profile, Progress, RecordCard, RecordCards, RecordRow, Settings, Show, Stat, Tab, Table, Tabs, TwoFactor, Users };
|
package/dist/check-account.js
CHANGED
|
@@ -10,7 +10,8 @@ const accountBlocks = /* @__PURE__ */ new Set([
|
|
|
10
10
|
"TwoFactor",
|
|
11
11
|
"ConnectedAccounts",
|
|
12
12
|
"Devices",
|
|
13
|
-
"ConnectedApps"
|
|
13
|
+
"ConnectedApps",
|
|
14
|
+
"DeleteAccount"
|
|
14
15
|
]);
|
|
15
16
|
/** Each account block on a page other than the account page, with where it is. */
|
|
16
17
|
const accountBlockProblems = (name, tree) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Block, LayoutChild, LayoutChildren, LayoutNode, LayoutValue, isLayoutNode } from "./node.js";
|
|
2
|
-
import { AccountBlockProps, Action, ActionProps, ButtonVariant, Card, CardProps, CardRow, CardRowProps, CardWidth, CardsLayout, Chart, ChartBucket, ChartProps, ChartType, ConnectedAccounts, ConnectedApps, DataProps, Devices, Elements, Field, FieldProps, Grid, GridProps, GridSpan, Link, LinkProps, ModalForm, ModalFormProps, Page, PageProps, Passkeys, Password, Profile, Progress, ProgressProps, RecordCard, RecordCardProps, RecordCards, RecordCardsProps, RecordRow, RecordRowProps, Settings, SettingsProps, Show, ShowProps, Stat, StatProps, Tab, TabProps, Table, TableProps, Tabs, TabsProps, TwoFactor, Users, UsersProps } from "./blocks.js";
|
|
2
|
+
import { AccountBlockProps, Action, ActionProps, ButtonVariant, Card, CardProps, CardRow, CardRowProps, CardWidth, CardsLayout, Chart, ChartBucket, ChartProps, ChartType, ConnectedAccounts, ConnectedApps, DataProps, DeleteAccount, Devices, Elements, Field, FieldProps, Grid, GridProps, GridSpan, Link, LinkProps, ModalForm, ModalFormProps, Page, PageProps, Passkeys, Password, Profile, Progress, ProgressProps, RecordCard, RecordCardProps, RecordCards, RecordCardsProps, RecordRow, RecordRowProps, Settings, SettingsProps, Show, ShowProps, Stat, StatProps, Tab, TabProps, Table, TableProps, Tabs, TabsProps, TwoFactor, Users, UsersProps } from "./blocks.js";
|
|
3
3
|
import { ComponentOptions, component } from "./component.js";
|
|
4
4
|
import { accountBlocks, accountPageName } from "./check-account.js";
|
|
5
5
|
import { PageDefinition, PageModel, PageOptions, isPageDefinition, page } from "./page.js";
|
|
@@ -15,4 +15,4 @@ import { countedResource, evaluateCondition, parseCondition } from "./condition.
|
|
|
15
15
|
import { PathStep, resolveFieldPath } from "./field-path.js";
|
|
16
16
|
import { jsx_runtime_d_exports } from "./jsx-runtime.js";
|
|
17
17
|
import { FieldRefValue, fieldRef } from "@protobase/schema";
|
|
18
|
-
export { type AccountBlockProps, Action, type ActionProps, type Block, type ButtonVariant, Card, type CardProps, CardRow, type CardRowProps, type CardWidth, type CardsLayout, Chart, type ChartBucket, type ChartProps, type ChartType, type ComponentOptions, ConnectedAccounts, ConnectedApps, type DataProps, Devices, type Elements, Field, type FieldProps, type FieldRefValue, Grid, type GridProps, type GridSpan, type LayoutChild, type LayoutChildren, type LayoutNode, type LayoutValue, Link, type LinkProps, type Location, ModalForm, type ModalFormProps, Page, type PageDefinition, type PageModel, type PageOptions, type PageProps, Passkeys, Password, type PathStep, Profile, Progress, type ProgressProps, RecordCard, type RecordCardProps, RecordCards, type RecordCardsProps, RecordRow, type RecordRowProps, Settings, type SettingsProps, Show, type ShowProps, Stat, type StatProps, Tab, type TabProps, Table, type TableProps, Tabs, type TabsProps, TwoFactor, Users, type UsersProps, accountBlocks, accountPage, accountPageName, accountTabs, cardsLayoutOf, checkPages, component, conditionProblems, conditionReadable, countedResource, evaluateCondition, fieldRef, isLayoutNode, isPageDefinition, jsx_runtime_d_exports as jsxRuntime, mapTree, page, parseCondition, prunePage, resolveFieldPath, settingsFields, settingsResources, usersPage, walkTree, withSettingsFields };
|
|
18
|
+
export { type AccountBlockProps, Action, type ActionProps, type Block, type ButtonVariant, Card, type CardProps, CardRow, type CardRowProps, type CardWidth, type CardsLayout, Chart, type ChartBucket, type ChartProps, type ChartType, type ComponentOptions, ConnectedAccounts, ConnectedApps, type DataProps, DeleteAccount, Devices, type Elements, Field, type FieldProps, type FieldRefValue, Grid, type GridProps, type GridSpan, type LayoutChild, type LayoutChildren, type LayoutNode, type LayoutValue, Link, type LinkProps, type Location, ModalForm, type ModalFormProps, Page, type PageDefinition, type PageModel, type PageOptions, type PageProps, Passkeys, Password, type PathStep, Profile, Progress, type ProgressProps, RecordCard, type RecordCardProps, RecordCards, type RecordCardsProps, RecordRow, type RecordRowProps, Settings, type SettingsProps, Show, type ShowProps, Stat, type StatProps, Tab, type TabProps, Table, type TableProps, Tabs, type TabsProps, TwoFactor, Users, type UsersProps, accountBlocks, accountPage, accountPageName, accountTabs, cardsLayoutOf, checkPages, component, conditionProblems, conditionReadable, countedResource, evaluateCondition, fieldRef, isLayoutNode, isPageDefinition, jsx_runtime_d_exports as jsxRuntime, mapTree, page, parseCondition, prunePage, resolveFieldPath, settingsFields, settingsResources, usersPage, walkTree, withSettingsFields };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isLayoutNode } from "./node.js";
|
|
2
|
-
import { Action, Card, CardRow, Chart, ConnectedAccounts, ConnectedApps, Devices, Field, Grid, Link, ModalForm, Page, Passkeys, Password, Profile, Progress, RecordCard, RecordCards, RecordRow, Settings, Show, Stat, Tab, Table, Tabs, TwoFactor, Users } from "./blocks.js";
|
|
2
|
+
import { Action, Card, CardRow, Chart, ConnectedAccounts, ConnectedApps, DeleteAccount, Devices, Field, Grid, Link, ModalForm, Page, Passkeys, Password, Profile, Progress, RecordCard, RecordCards, RecordRow, Settings, Show, Stat, Tab, Table, Tabs, TwoFactor, Users } from "./blocks.js";
|
|
3
3
|
import { component } from "./component.js";
|
|
4
4
|
import { mapTree, walkTree } from "./walk.js";
|
|
5
5
|
import { accountBlocks, accountPageName } from "./check-account.js";
|
|
@@ -15,4 +15,4 @@ import { checkPages } from "./check-page.js";
|
|
|
15
15
|
import { prunePage } from "./prune-page.js";
|
|
16
16
|
import { jsx_runtime_exports } from "./jsx-runtime.js";
|
|
17
17
|
import { fieldRef } from "@protobase/schema";
|
|
18
|
-
export { Action, Card, CardRow, Chart, ConnectedAccounts, ConnectedApps, Devices, Field, Grid, Link, ModalForm, Page, Passkeys, Password, Profile, Progress, RecordCard, RecordCards, RecordRow, Settings, Show, Stat, Tab, Table, Tabs, TwoFactor, Users, accountBlocks, accountPage, accountPageName, accountTabs, cardsLayoutOf, checkPages, component, conditionProblems, conditionReadable, countedResource, evaluateCondition, fieldRef, isLayoutNode, isPageDefinition, jsx_runtime_exports as jsxRuntime, mapTree, page, parseCondition, prunePage, resolveFieldPath, settingsFields, settingsResources, usersPage, walkTree, withSettingsFields };
|
|
18
|
+
export { Action, Card, CardRow, Chart, ConnectedAccounts, ConnectedApps, DeleteAccount, Devices, Field, Grid, Link, ModalForm, Page, Passkeys, Password, Profile, Progress, RecordCard, RecordCards, RecordRow, Settings, Show, Stat, Tab, Table, Tabs, TwoFactor, Users, accountBlocks, accountPage, accountPageName, accountTabs, cardsLayoutOf, checkPages, component, conditionProblems, conditionReadable, countedResource, evaluateCondition, fieldRef, isLayoutNode, isPageDefinition, jsx_runtime_exports as jsxRuntime, mapTree, page, parseCondition, prunePage, resolveFieldPath, settingsFields, settingsResources, usersPage, walkTree, withSettingsFields };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConnectedAccounts, ConnectedApps, Devices, Page, Passkeys, Password, Profile, Tab, Tabs, TwoFactor } from "../blocks.js";
|
|
1
|
+
import { ConnectedAccounts, ConnectedApps, DeleteAccount, Devices, Page, Passkeys, Password, Profile, Tab, Tabs, TwoFactor } from "../blocks.js";
|
|
2
2
|
import { accountPageName } from "../check-account.js";
|
|
3
3
|
import { page } from "../page.js";
|
|
4
4
|
//#region src/presets/account-page.ts
|
|
@@ -10,7 +10,7 @@ const accountTabs = {
|
|
|
10
10
|
profile: Tab({
|
|
11
11
|
name: "profile",
|
|
12
12
|
label: "Profile",
|
|
13
|
-
children: [Profile({})]
|
|
13
|
+
children: [Profile({}), DeleteAccount({})]
|
|
14
14
|
}),
|
|
15
15
|
security: Tab({
|
|
16
16
|
name: "security",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/layout",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "Composed pages for Protobase, written as JSX that compiles to plain data, with its JSX runtime.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@protobase/schema": "0.
|
|
34
|
+
"@protobase/schema": "0.54.0",
|
|
35
35
|
"aip-parsers": "^1.0.0"
|
|
36
36
|
}
|
|
37
37
|
}
|