@object-ui/plugin-detail 17.3.0 → 17.5.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 +640 -0
- package/README.md +20 -11
- package/dist/DetailSection.d.ts.map +1 -1
- package/dist/DetailView.d.ts.map +1 -1
- package/dist/HeaderHighlight.d.ts.map +1 -1
- package/dist/InlineFieldInput.d.ts +78 -5
- package/dist/InlineFieldInput.d.ts.map +1 -1
- package/dist/RelatedList.d.ts +31 -1
- package/dist/RelatedList.d.ts.map +1 -1
- package/dist/autoLayout.d.ts.map +1 -1
- package/dist/fieldEnrichment.d.ts +61 -0
- package/dist/fieldEnrichment.d.ts.map +1 -1
- package/dist/index.js +1972 -1863
- package/dist/index.umd.cjs +3 -3
- package/dist/renderers/record-details.d.ts.map +1 -1
- package/dist/renderers/record-quick-actions.d.ts.map +1 -1
- package/dist/renderers/record-related-list.d.ts +29 -1
- package/dist/renderers/record-related-list.d.ts.map +1 -1
- package/dist/synth/buildDefaultPageSchema.d.ts +21 -9
- package/dist/synth/buildDefaultPageSchema.d.ts.map +1 -1
- package/dist/useDetailTranslation.d.ts +7 -0
- package/dist/useDetailTranslation.d.ts.map +1 -1
- package/package.json +19 -18
|
@@ -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;AAI1B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAYpE,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;AAI1B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAYpE,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,CAgPtE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-quick-actions.d.ts","sourceRoot":"","sources":["../../src/renderers/record-quick-actions.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"record-quick-actions.d.ts","sourceRoot":"","sources":["../../src/renderers/record-quick-actions.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAOjE,MAAM,WAAW,+BAA+B;IAC9C,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;QACtB,QAAQ,CAAC,EAAE,cAAc,CAAC;QAC1B,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC/B,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;QACnC,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;QAC/B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,GAAG,MAAM,CAAC;QACjF,IAAI,CAAC,EAAE;YAAE,KAAK,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC1B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACjC,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;KAClB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,+BAA+B,CAuJhF,CAAC;AAsDF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,10 +1,38 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { RecordRelatedListComponentProps } from '@object-ui/types';
|
|
3
3
|
export interface RecordRelatedListRendererProps {
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* The AUTHORED node, before the per-element `dataSource` binding is resolved.
|
|
6
|
+
*
|
|
7
|
+
* `objectName` is optional HERE and required everywhere else, and the
|
|
8
|
+
* difference is the whole point of objectstack#6953: the exported name is the
|
|
9
|
+
* `ElementDataSourceGate` wrapper below, and the gate maps the binding's
|
|
10
|
+
* `object` onto `objectName` (its default target — see `ElementDataSourceGate`
|
|
11
|
+
* `objectKey = 'objectName'`) before `RecordRelatedListBody` ever sees the
|
|
12
|
+
* schema. A related list authored as `{ relationshipField, dataSource: {
|
|
13
|
+
* object, view } }` is therefore legal input to this component and illegal
|
|
14
|
+
* input to the spec's `RecordRelatedListProps`, which is correct on both
|
|
15
|
+
* sides — one describes what an author writes, the other what the block reads.
|
|
16
|
+
*
|
|
17
|
+
* Spelling it `RecordRelatedListComponentProps` flat said the opposite, and
|
|
18
|
+
* said it about the wrapper: the exact authoring shape #6953 added did not
|
|
19
|
+
* type-check against the component that exists to accept it. The body already
|
|
20
|
+
* reads the key defensively (`objectName && …`, `objectName || ''`) precisely
|
|
21
|
+
* because it can arrive unbound; this declaration now agrees with that code.
|
|
22
|
+
*/
|
|
23
|
+
schema?: Omit<RecordRelatedListComponentProps, 'objectName'> & Partial<Pick<RecordRelatedListComponentProps, 'objectName'>> & Record<string, any>;
|
|
5
24
|
className?: string;
|
|
6
25
|
[k: string]: any;
|
|
7
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* `record:related_list` with the spec's per-element `dataSource` binding mapped
|
|
29
|
+
* onto the keys the body reads (objectstack#6953).
|
|
30
|
+
*
|
|
31
|
+
* The gate wraps the EXPORTED name rather than being added at the registration
|
|
32
|
+
* site, so a host that imports this renderer directly gets the binding too — a
|
|
33
|
+
* block bound under one entry point and unbound under another is the same
|
|
34
|
+
* "declared but not reached" shape in miniature.
|
|
35
|
+
*/
|
|
8
36
|
export declare const RecordRelatedListRenderer: React.FC<RecordRelatedListRendererProps>;
|
|
9
37
|
export default RecordRelatedListRenderer;
|
|
10
38
|
//# sourceMappingURL=record-related-list.d.ts.map
|
|
@@ -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;
|
|
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;AAY1B,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AA4BxE,MAAM,WAAW,8BAA8B;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC,+BAA+B,EAAE,YAAY,CAAC,GAC1D,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,YAAY,CAAC,CAAC,GAC5D,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAiOD;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAiB9E,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ServiceObject } from '@objectstack/spec/data';
|
|
1
2
|
import { detectStatusField } from '@object-ui/types';
|
|
2
3
|
/** Minimal shape of an object definition we read here. We deliberately
|
|
3
4
|
* duck-type so this helper has zero hard dependency on a specific
|
|
@@ -31,16 +32,27 @@ export interface ObjectDefLike {
|
|
|
31
32
|
* Declared field groups from the object designer. Fields opt in via
|
|
32
33
|
* `field.group === group.key`; the detail synthesizer derives sections
|
|
33
34
|
* from them when no explicit sections are provided.
|
|
35
|
+
*
|
|
36
|
+
* DERIVED from the spec's own authorable group, not restated. This key is a
|
|
37
|
+
* pass-through: nothing here reads a member of it, `deriveFieldGroupLayout`
|
|
38
|
+
* (`@objectstack/spec/data`) does — so the set of members this type should
|
|
39
|
+
* admit is by definition the set the spec declares, and hand-listing them
|
|
40
|
+
* could only ever drift from it. It had: the hand-written list this replaces
|
|
41
|
+
* carried `key`/`label`/`collapse` and the deprecated `collapsible`/`collapsed`
|
|
42
|
+
* pair, but not `icon`, `description` or `defaultExpanded`. Two of those three
|
|
43
|
+
* are read by this very file — `deriveFieldGroupDetailSections` passes
|
|
44
|
+
* `s.icon`/`s.description` through to the section descriptors under a comment
|
|
45
|
+
* citing #2548 ("Dropping them here made the spec keys silently inert on
|
|
46
|
+
* detail pages") — so an author declaring the icon the synthesizer honours was
|
|
47
|
+
* rejected by the type of the function that honours it.
|
|
48
|
+
*
|
|
49
|
+
* `Partial` is the one shape difference and it is deliberate: the spec makes
|
|
50
|
+
* `key`/`label` required and `collapse` defaulted, but this is the duck type
|
|
51
|
+
* for a raw object definition that has NOT been through a spec parse (the
|
|
52
|
+
* whole reason it exists — see the interface header), so every member has to
|
|
53
|
+
* be admissible as absent. Nothing here requires a group member to be present.
|
|
34
54
|
*/
|
|
35
|
-
fieldGroups?: Array<
|
|
36
|
-
key?: string;
|
|
37
|
-
label?: string;
|
|
38
|
-
collapse?: 'none' | 'expanded' | 'collapsed';
|
|
39
|
-
/** @deprecated pre-ADR-0085 pair; honoured by the shared derivation. */
|
|
40
|
-
collapsible?: boolean;
|
|
41
|
-
/** @deprecated pre-ADR-0085 pair; honoured by the shared derivation. */
|
|
42
|
-
collapsed?: boolean;
|
|
43
|
-
}>;
|
|
55
|
+
fieldGroups?: Array<Partial<NonNullable<ServiceObject['fieldGroups']>[number]>>;
|
|
44
56
|
/**
|
|
45
57
|
* Spec `enable` capability toggles. Only `files` is read here:
|
|
46
58
|
* `enable.files === true` (opt-in, #2727) makes the synthesizer emit an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildDefaultPageSchema.d.ts","sourceRoot":"","sources":["../../src/synth/buildDefaultPageSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrD;;2BAE2B;AAC3B,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC5C;;mEAE+D;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC5B,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9C;gD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;;;;;;;;;GAsBG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,aAAa,GAAG,SAAS,EAC9B,OAAO,GAAE,gBAAqB,GAC7B,GAAG,CAmKL"}
|
|
@@ -15,6 +15,13 @@ export declare const createSafeTranslationHook: typeof createSafeTranslation;
|
|
|
15
15
|
/**
|
|
16
16
|
* Default English translations for detail view components.
|
|
17
17
|
* Used as fallback when no I18nProvider is available.
|
|
18
|
+
*
|
|
19
|
+
* Every row whose key the `en` pack also defines must stay byte-identical to it
|
|
20
|
+
* — otherwise this control is labelled one way on a provider-less host and
|
|
21
|
+
* another in the console. Enforced since objectui#4401 by
|
|
22
|
+
* `app-shell/src/__tests__/defaults-maps-mirror-en-pack.test.tsx`, which
|
|
23
|
+
* compares this map, `LIST_DEFAULT_TRANSLATIONS` and
|
|
24
|
+
* `DESIGNER_DEFAULT_TRANSLATIONS` key by key against the pack.
|
|
18
25
|
*/
|
|
19
26
|
export declare const DETAIL_DEFAULT_TRANSLATIONS: Record<string, string>;
|
|
20
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDetailTranslation.d.ts","sourceRoot":"","sources":["../src/useDetailTranslation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,8BAAwB,CAAC;AAE/D
|
|
1
|
+
{"version":3,"file":"useDetailTranslation.d.ts","sourceRoot":"","sources":["../src/useDetailTranslation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,8BAAwB,CAAC;AAE/D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAoM9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;4BAxOhC,CAAC;;;;;CA2OD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/plugin-detail",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.5.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,34 +24,35 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@objectstack/spec": "^17.0.0-rc.
|
|
28
|
-
"lucide-react": "^1.
|
|
29
|
-
"@object-ui/i18n": "17.
|
|
27
|
+
"@objectstack/spec": "^17.0.0-rc.6",
|
|
28
|
+
"lucide-react": "^1.29.0",
|
|
29
|
+
"@object-ui/i18n": "17.5.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
|
-
"
|
|
35
|
-
"@object-ui/
|
|
36
|
-
"@object-ui/
|
|
37
|
-
"@object-ui/
|
|
38
|
-
"@object-ui/
|
|
39
|
-
"@object-ui/
|
|
34
|
+
"react-router-dom": "^6.0.0 || ^7.0.0",
|
|
35
|
+
"@object-ui/components": "^17.5.0",
|
|
36
|
+
"@object-ui/core": "^17.5.0",
|
|
37
|
+
"@object-ui/fields": "^17.5.0",
|
|
38
|
+
"@object-ui/permissions": "^17.5.0",
|
|
39
|
+
"@object-ui/react": "^17.5.0",
|
|
40
|
+
"@object-ui/types": "^17.5.0"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"@types/react": "19.2.18",
|
|
43
44
|
"@types/react-dom": "19.2.4",
|
|
44
45
|
"@vitejs/plugin-react": "^6.0.5",
|
|
45
46
|
"typescript": "^6.0.3",
|
|
46
|
-
"vite": "^8.2.
|
|
47
|
+
"vite": "^8.2.1",
|
|
47
48
|
"vite-plugin-dts": "^5.0.3",
|
|
48
49
|
"vitest": "^4.1.10",
|
|
49
|
-
"@object-ui/components": "17.
|
|
50
|
-
"@object-ui/core": "17.
|
|
51
|
-
"@object-ui/fields": "17.
|
|
52
|
-
"@object-ui/permissions": "17.
|
|
53
|
-
"@object-ui/react": "17.
|
|
54
|
-
"@object-ui/types": "17.
|
|
50
|
+
"@object-ui/components": "17.5.0",
|
|
51
|
+
"@object-ui/core": "17.5.0",
|
|
52
|
+
"@object-ui/fields": "17.5.0",
|
|
53
|
+
"@object-ui/permissions": "17.5.0",
|
|
54
|
+
"@object-ui/react": "17.5.0",
|
|
55
|
+
"@object-ui/types": "17.5.0"
|
|
55
56
|
},
|
|
56
57
|
"keywords": [
|
|
57
58
|
"objectui",
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
"build": "vite build",
|
|
80
81
|
"test": "vitest run",
|
|
81
82
|
"test:watch": "vitest",
|
|
82
|
-
"type-check": "tsc --noEmit && tsc -p tsconfig.
|
|
83
|
+
"type-check": "tsc --noEmit && tsc -p tsconfig.test.json",
|
|
83
84
|
"lint": "eslint ."
|
|
84
85
|
}
|
|
85
86
|
}
|