@object-ui/plugin-detail 13.1.0 → 14.0.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.
@@ -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,KAA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QAAQ,CAAC,EAAE,QAAQ,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,GAAG,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAClE,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AA6BD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiI1D,CAAC;AAEF,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,CAqWtE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"record-details.d.ts","sourceRoot":"","sources":["../../src/renderers/record-details.tsx"],"names":[],"mappings":"AAAA;;;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@ -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,CAiJ9E,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
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;AAK1B,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,CAwK9E,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,22 @@
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
+ /**
9
+ * System / audit field names that are **never user-editable** — the framework's
10
+ * `applySystemFields` owns them (created_x, updated_x, modified_x) plus record
11
+ * identity and soft-delete bookkeeping. Used by the inline-edit gate so a
12
+ * double-click / pencil is never offered on them, even when a detail schema
13
+ * happens to surface one and doesn't flag it `readonly`.
14
+ *
15
+ * Intentionally NARROWER than the display-oriented system-field sets in
16
+ * `deriveLookupColumns.ts` / `RecordDetailDrawer.tsx`: it deliberately EXCLUDES
17
+ * `owner_id` / `organization_id` / `tenant_id` / `company_id` / `space`, which
18
+ * are legitimately editable in some contexts (e.g. reassigning the owner). This
19
+ * set is only the immutable, framework-managed bookkeeping fields.
20
+ */
21
+ export declare const NON_EDITABLE_SYSTEM_FIELDS: Set<string>;
22
+ //# sourceMappingURL=systemFields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"systemFields.d.ts","sourceRoot":"","sources":["../src/systemFields.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,aAOrC,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,CA0I9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;aAhLd,MAAM,YAAY,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;CAmL3D,CAAC"}
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.1.0",
3
+ "version": "14.0.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,33 +24,33 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@objectstack/spec": "^13.0.0",
28
- "lucide-react": "^1.22.0",
29
- "@object-ui/i18n": "13.1.0"
27
+ "@objectstack/spec": "^14.6.0",
28
+ "lucide-react": "^1.24.0",
29
+ "@object-ui/i18n": "14.0.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.1.0",
35
- "@object-ui/core": "^13.1.0",
36
- "@object-ui/fields": "^13.1.0",
37
- "@object-ui/permissions": "^13.1.0",
38
- "@object-ui/react": "^13.1.0",
39
- "@object-ui/types": "^13.1.0"
34
+ "@object-ui/components": "^14.0.0",
35
+ "@object-ui/core": "^14.0.0",
36
+ "@object-ui/fields": "^14.0.0",
37
+ "@object-ui/permissions": "^14.0.0",
38
+ "@object-ui/react": "^14.0.0",
39
+ "@object-ui/types": "^14.0.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/react": "19.2.17",
43
43
  "@types/react-dom": "19.2.3",
44
44
  "@vitejs/plugin-react": "^6.0.3",
45
45
  "typescript": "^6.0.3",
46
- "vite": "^8.1.3",
46
+ "vite": "^8.1.4",
47
47
  "vite-plugin-dts": "^5.0.3",
48
48
  "vitest": "^4.1.10",
49
- "@object-ui/components": "13.1.0",
50
- "@object-ui/core": "13.1.0",
51
- "@object-ui/fields": "13.1.0",
52
- "@object-ui/react": "13.1.0",
53
- "@object-ui/types": "13.1.0"
49
+ "@object-ui/components": "14.0.0",
50
+ "@object-ui/core": "14.0.0",
51
+ "@object-ui/fields": "14.0.0",
52
+ "@object-ui/react": "14.0.0",
53
+ "@object-ui/types": "14.0.0"
54
54
  },
55
55
  "keywords": [
56
56
  "objectui",