@objectstack/platform-objects 7.0.0 → 7.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/apps/index.js +25 -29
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/index.mjs +25 -29
- package/dist/apps/index.mjs.map +1 -1
- package/dist/audit/index.d.mts +192 -96
- package/dist/audit/index.d.ts +192 -96
- package/dist/identity/index.d.mts +244 -122
- package/dist/identity/index.d.ts +244 -122
- package/dist/identity/index.js +5 -2
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/index.mjs +5 -2
- package/dist/identity/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +180 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +180 -32
- package/dist/index.mjs.map +1 -1
- package/dist/integration/index.d.mts +12 -6
- package/dist/integration/index.d.ts +12 -6
- package/dist/metadata/index.d.mts +3252 -13
- package/dist/metadata/index.d.ts +3252 -13
- package/dist/metadata/index.js +130 -0
- package/dist/metadata/index.js.map +1 -1
- package/dist/metadata/index.mjs +130 -1
- package/dist/metadata/index.mjs.map +1 -1
- package/dist/pages/index.d.mts +8 -3
- package/dist/pages/index.d.ts +8 -3
- package/dist/pages/index.js.map +1 -1
- package/dist/pages/index.mjs.map +1 -1
- package/dist/plugin.js +4 -8
- package/dist/plugin.js.map +1 -1
- package/dist/plugin.mjs +4 -8
- package/dist/plugin.mjs.map +1 -1
- package/dist/security/index.d.mts +84 -42
- package/dist/security/index.d.ts +84 -42
- package/dist/security/index.js +20 -0
- package/dist/security/index.js.map +1 -1
- package/dist/security/index.mjs +20 -0
- package/dist/security/index.mjs.map +1 -1
- package/dist/system/index.d.mts +36 -18
- package/dist/system/index.d.ts +36 -18
- package/package.json +2 -2
package/dist/apps/index.js
CHANGED
|
@@ -10,6 +10,9 @@ var SETUP_APP = {
|
|
|
10
10
|
icon: "settings",
|
|
11
11
|
active: true,
|
|
12
12
|
isDefault: false,
|
|
13
|
+
// ADR-0010 — core admin UI must not be overlay-edited or deleted.
|
|
14
|
+
_lock: "full",
|
|
15
|
+
_lockReason: "Core admin UI shipped by @objectstack/platform-objects \u2014 see ADR-0010.",
|
|
13
16
|
branding: {
|
|
14
17
|
primaryColor: "#475569"
|
|
15
18
|
// Slate-600 — neutral admin palette
|
|
@@ -500,21 +503,20 @@ var ACCOUNT_APP = {
|
|
|
500
503
|
// manage their own 2FA / linked accounts / personal OAuth apps. RLS on
|
|
501
504
|
// each object scopes rows to the caller.
|
|
502
505
|
navigation: [
|
|
503
|
-
// Profile is the canonical landing —
|
|
504
|
-
//
|
|
505
|
-
//
|
|
506
|
-
// (
|
|
507
|
-
//
|
|
508
|
-
//
|
|
509
|
-
// (related lists,
|
|
506
|
+
// Profile is the canonical landing — a hand-written React settings card
|
|
507
|
+
// (Vercel/Linear style) registered in the Console SPA as
|
|
508
|
+
// `account:profile_card`. The renderer reads the current user via
|
|
509
|
+
// `useAuth()` and writes via `client.auth.updateUser`, so there is no
|
|
510
|
+
// sys_user record context here — this is intentional. The admin-facing
|
|
511
|
+
// sys_user record page (see `pages/sys-user.page.ts`) stays focused on
|
|
512
|
+
// record browsing (Identity/Audit fields, related lists, admin actions)
|
|
513
|
+
// and is reached through Setup, never from the Account App.
|
|
510
514
|
{
|
|
511
515
|
id: "nav_account_profile",
|
|
512
|
-
type: "
|
|
516
|
+
type: "component",
|
|
513
517
|
label: "Profile",
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
icon: "user-circle",
|
|
517
|
-
requiresObject: "sys_user"
|
|
518
|
+
componentRef: "account:profile_card",
|
|
519
|
+
icon: "user-circle"
|
|
518
520
|
},
|
|
519
521
|
// --- Inbox & work assigned to me -----------------------------------
|
|
520
522
|
// Notifications, approvals waiting on me, and the orgs I belong to.
|
|
@@ -618,16 +620,14 @@ var ACCOUNT_APP = {
|
|
|
618
620
|
requiresObject: "sys_oauth_application"
|
|
619
621
|
}
|
|
620
622
|
]
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
id: "nav_account_preferences",
|
|
624
|
-
type: "object",
|
|
625
|
-
label: "Preferences",
|
|
626
|
-
objectName: "sys_user_preference",
|
|
627
|
-
viewName: "mine",
|
|
628
|
-
icon: "sliders-horizontal",
|
|
629
|
-
requiresObject: "sys_user_preference"
|
|
630
623
|
}
|
|
624
|
+
// Note: `sys_user_preference` is intentionally NOT exposed in the
|
|
625
|
+
// Account App. It's an internal key-value store the UI uses for state
|
|
626
|
+
// like `ui.recent`, `ui.favorites`, theme, sidebar collapse — not
|
|
627
|
+
// a user-curatable settings surface. A future
|
|
628
|
+
// `account:preferences_card` React component should provide the
|
|
629
|
+
// curated theme / locale / timezone / notifications toggles when we
|
|
630
|
+
// need them; until then there is no nav entry.
|
|
631
631
|
]
|
|
632
632
|
};
|
|
633
633
|
var SystemOverviewDashboard = ui.Dashboard.create({
|
|
@@ -3846,8 +3846,7 @@ var en = {
|
|
|
3846
3846
|
nav_account_linked: { label: "Linked Accounts" },
|
|
3847
3847
|
nav_account_sessions: { label: "Active Sessions" },
|
|
3848
3848
|
nav_account_api_keys: { label: "API Keys" },
|
|
3849
|
-
nav_account_oauth_apps: { label: "OAuth Applications" }
|
|
3850
|
-
nav_account_preferences: { label: "Preferences" }
|
|
3849
|
+
nav_account_oauth_apps: { label: "OAuth Applications" }
|
|
3851
3850
|
}
|
|
3852
3851
|
},
|
|
3853
3852
|
setup: {
|
|
@@ -7058,8 +7057,7 @@ var zhCN = {
|
|
|
7058
7057
|
nav_account_linked: { label: "\u5DF2\u5173\u8054\u8D26\u6237" },
|
|
7059
7058
|
nav_account_sessions: { label: "\u6D3B\u52A8\u4F1A\u8BDD" },
|
|
7060
7059
|
nav_account_api_keys: { label: "API \u5BC6\u94A5" },
|
|
7061
|
-
nav_account_oauth_apps: { label: "OAuth \u5E94\u7528" }
|
|
7062
|
-
nav_account_preferences: { label: "\u504F\u597D\u8BBE\u7F6E" }
|
|
7060
|
+
nav_account_oauth_apps: { label: "OAuth \u5E94\u7528" }
|
|
7063
7061
|
}
|
|
7064
7062
|
},
|
|
7065
7063
|
setup: {
|
|
@@ -10231,8 +10229,7 @@ var jaJP = {
|
|
|
10231
10229
|
nav_account_linked: { label: "\u9023\u643A\u30A2\u30AB\u30A6\u30F3\u30C8" },
|
|
10232
10230
|
nav_account_sessions: { label: "\u30A2\u30AF\u30C6\u30A3\u30D6\u30BB\u30C3\u30B7\u30E7\u30F3" },
|
|
10233
10231
|
nav_account_api_keys: { label: "API \u30AD\u30FC" },
|
|
10234
|
-
nav_account_oauth_apps: { label: "OAuth \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3" }
|
|
10235
|
-
nav_account_preferences: { label: "\u74B0\u5883\u8A2D\u5B9A" }
|
|
10232
|
+
nav_account_oauth_apps: { label: "OAuth \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3" }
|
|
10236
10233
|
}
|
|
10237
10234
|
},
|
|
10238
10235
|
setup: {
|
|
@@ -13404,8 +13401,7 @@ var esES = {
|
|
|
13404
13401
|
nav_account_linked: { label: "Cuentas vinculadas" },
|
|
13405
13402
|
nav_account_sessions: { label: "Sesiones activas" },
|
|
13406
13403
|
nav_account_api_keys: { label: "Claves API" },
|
|
13407
|
-
nav_account_oauth_apps: { label: "Aplicaciones OAuth" }
|
|
13408
|
-
nav_account_preferences: { label: "Preferencias" }
|
|
13404
|
+
nav_account_oauth_apps: { label: "Aplicaciones OAuth" }
|
|
13409
13405
|
}
|
|
13410
13406
|
},
|
|
13411
13407
|
setup: {
|