@object-ui/plugin-detail 13.1.0 → 13.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/CHANGELOG.md +54 -0
- package/dist/DetailSection.d.ts +9 -0
- package/dist/DetailSection.d.ts.map +1 -1
- package/dist/DetailView.d.ts.map +1 -1
- package/dist/RelatedList.d.ts +19 -0
- package/dist/RelatedList.d.ts.map +1 -1
- package/dist/SectionGroup.d.ts +4 -0
- package/dist/SectionGroup.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1068 -941
- package/dist/index.umd.cjs +3 -3
- package/dist/renderers/PermissionFacetLink.d.ts +38 -0
- package/dist/renderers/PermissionFacetLink.d.ts.map +1 -0
- package/dist/renderers/record-details.d.ts.map +1 -1
- package/dist/renderers/record-related-list.d.ts.map +1 -1
- package/dist/useDetailTranslation.d.ts.map +1 -1
- package/package.json +14 -14
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ObjectUI
|
|
3
|
+
* Copyright (c) 2024-present ObjectStack Inc.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* PermissionFacetLink — read-only summary + "Design in Studio →" deep-link for
|
|
11
|
+
* the six authorization facets on a `sys_permission_set` record (ADR-0056 /
|
|
12
|
+
* epic #2398, phase P1).
|
|
13
|
+
*
|
|
14
|
+
* In the pure model an app developer *designs* every permission facet in
|
|
15
|
+
* Studio's structured editors; a system admin only *assigns users* in Setup.
|
|
16
|
+
* So Setup must never render a facet as raw `[Object]`/JSON or let it be edited
|
|
17
|
+
* inline — it shows a compact summary of the current grant plus a deep-link
|
|
18
|
+
* into the structured editor for that set:
|
|
19
|
+
*
|
|
20
|
+
* /apps/:appName/metadata/permission/:setName (env scope; :name = api name)
|
|
21
|
+
*
|
|
22
|
+
* Registered as the `permission-facet-link` field widget (so the record form
|
|
23
|
+
* and inline edit render it) and special-cased in DetailSection's read branch,
|
|
24
|
+
* so all three surfaces render read-only and identically. The renderer pulls
|
|
25
|
+
* the set's api-name from `useRecordContext()` and the app from `useParams()`
|
|
26
|
+
* — the same pattern the reference rail uses.
|
|
27
|
+
*/
|
|
28
|
+
type FacetValue = unknown;
|
|
29
|
+
export interface PermissionFacetLinkProps {
|
|
30
|
+
value: FacetValue;
|
|
31
|
+
field?: {
|
|
32
|
+
name?: string;
|
|
33
|
+
label?: string;
|
|
34
|
+
} | null;
|
|
35
|
+
}
|
|
36
|
+
export declare function PermissionFacetLink({ value, field, }: PermissionFacetLinkProps): React.ReactElement;
|
|
37
|
+
export default PermissionFacetLink;
|
|
38
|
+
//# sourceMappingURL=PermissionFacetLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermissionFacetLink.d.ts","sourceRoot":"","sources":["../../src/renderers/PermissionFacetLink.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;;;;;;;;;;;;;GAkBG;AAEH,KAAK,UAAU,GAAG,OAAO,CAAC;AAyB1B,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAClD;AAED,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,KAAK,GACN,EAAE,wBAAwB,GAAG,KAAK,CAAC,YAAY,CA2F/C;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-details.d.ts","sourceRoot":"","sources":["../../src/renderers/record-details.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAoBpE,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,2BAA2B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"record-details.d.ts","sourceRoot":"","sources":["../../src/renderers/record-details.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAoBpE,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,2BAA2B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAgXtE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-related-list.d.ts","sourceRoot":"","sources":["../../src/renderers/record-related-list.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAkBxE,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,
|
|
1
|
+
{"version":3,"file":"record-related-list.d.ts","sourceRoot":"","sources":["../../src/renderers/record-related-list.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAkBxE,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA8J9E,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDetailTranslation.d.ts","sourceRoot":"","sources":["../src/useDetailTranslation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,OAAO,EAAE,MAAM;aAQE,MAAM,YAAY,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;EA0B3D;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useDetailTranslation.d.ts","sourceRoot":"","sources":["../src/useDetailTranslation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,OAAO,EAAE,MAAM;aAQE,MAAM,YAAY,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;EA0B3D;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2I9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;aAjLd,MAAM,YAAY,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;CAoL3D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/plugin-detail",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "DetailView plugin for Object UI - comprehensive detail page with sections, tabs, and related lists",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@objectstack/spec": "^
|
|
27
|
+
"@objectstack/spec": "^14.3.0",
|
|
28
28
|
"lucide-react": "^1.22.0",
|
|
29
|
-
"@object-ui/i18n": "13.
|
|
29
|
+
"@object-ui/i18n": "13.2.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": "^18.0.0 || ^19.0.0",
|
|
33
33
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
34
|
-
"@object-ui/components": "^13.
|
|
35
|
-
"@object-ui/core": "^13.
|
|
36
|
-
"@object-ui/fields": "^13.
|
|
37
|
-
"@object-ui/permissions": "^13.
|
|
38
|
-
"@object-ui/react": "^13.
|
|
39
|
-
"@object-ui/types": "^13.
|
|
34
|
+
"@object-ui/components": "^13.2.0",
|
|
35
|
+
"@object-ui/core": "^13.2.0",
|
|
36
|
+
"@object-ui/fields": "^13.2.0",
|
|
37
|
+
"@object-ui/permissions": "^13.2.0",
|
|
38
|
+
"@object-ui/react": "^13.2.0",
|
|
39
|
+
"@object-ui/types": "^13.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/react": "19.2.17",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"vite": "^8.1.3",
|
|
47
47
|
"vite-plugin-dts": "^5.0.3",
|
|
48
48
|
"vitest": "^4.1.10",
|
|
49
|
-
"@object-ui/components": "13.
|
|
50
|
-
"@object-ui/core": "13.
|
|
51
|
-
"@object-ui/fields": "13.
|
|
52
|
-
"@object-ui/react": "13.
|
|
53
|
-
"@object-ui/types": "13.
|
|
49
|
+
"@object-ui/components": "13.2.0",
|
|
50
|
+
"@object-ui/core": "13.2.0",
|
|
51
|
+
"@object-ui/fields": "13.2.0",
|
|
52
|
+
"@object-ui/react": "13.2.0",
|
|
53
|
+
"@object-ui/types": "13.2.0"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
56
56
|
"objectui",
|