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