@object-ui/plugin-detail 4.4.0 → 4.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.
@@ -1,10 +1,21 @@
1
+ export interface HistoryChange {
2
+ /** Raw field name from the schema (e.g. "industry"). */
3
+ field: string;
4
+ /** Optional human-readable field label (e.g. "Industry"). */
5
+ label?: string;
6
+ from?: unknown;
7
+ to?: unknown;
8
+ }
1
9
  export interface HistoryEntry {
2
10
  id?: string | number;
3
11
  created_at?: string | number | Date;
4
12
  action?: string;
5
13
  user_id?: string | number | null;
6
14
  user_name?: string | null;
15
+ user_avatar?: string | null;
7
16
  summary?: string | null;
17
+ /** Optional pre-computed field-level diff. */
18
+ changes?: HistoryChange[];
8
19
  [extra: string]: unknown;
9
20
  }
10
21
  export interface HistoryTimelineProps {
@@ -12,6 +23,8 @@ export interface HistoryTimelineProps {
12
23
  loading?: boolean;
13
24
  emptyText?: string;
14
25
  className?: string;
26
+ /** Locale used for relative time formatting. Defaults to browser locale. */
27
+ locale?: string;
15
28
  }
16
- export declare function HistoryTimeline({ entries, loading, emptyText, className, }: HistoryTimelineProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function HistoryTimeline({ entries, loading, emptyText, className, locale, }: HistoryTimelineProps): import("react/jsx-runtime").JSX.Element;
17
30
  //# sourceMappingURL=HistoryTimeline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HistoryTimeline.d.ts","sourceRoot":"","sources":["../../../../src/HistoryTimeline.tsx"],"names":[],"mappings":"AAWA,MAAM,WAAW,YAAY;IAC3B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,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AAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA8ED,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,OAAO,EACP,SAAS,EACT,SAAS,EACT,MAAM,GACP,EAAE,oBAAoB,2CA8FtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"record-highlights.d.ts","sourceRoot":"","sources":["../../../../../src/renderers/record-highlights.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAQvE,MAAM,WAAW,6BAA6B;IAC5C,MAAM,CAAC,EAAE,8BAA8B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAsD5E,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"record-highlights.d.ts","sourceRoot":"","sources":["../../../../../src/renderers/record-highlights.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAQvE,MAAM,WAAW,6BAA6B;IAC5C,MAAM,CAAC,EAAE,8BAA8B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA+D5E,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@object-ui/plugin-detail",
3
- "version": "4.4.0",
3
+ "version": "4.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",
@@ -29,12 +29,12 @@
29
29
  "peerDependencies": {
30
30
  "react": "^18.0.0 || ^19.0.0",
31
31
  "react-dom": "^18.0.0 || ^19.0.0",
32
- "@object-ui/components": "^4.4.0",
33
- "@object-ui/core": "^4.4.0",
34
- "@object-ui/fields": "^4.4.0",
35
- "@object-ui/permissions": "^4.4.0",
36
- "@object-ui/react": "^4.4.0",
37
- "@object-ui/types": "^4.4.0"
32
+ "@object-ui/components": "^4.5.0",
33
+ "@object-ui/core": "^4.5.0",
34
+ "@object-ui/fields": "^4.5.0",
35
+ "@object-ui/permissions": "^4.5.0",
36
+ "@object-ui/react": "^4.5.0",
37
+ "@object-ui/types": "^4.5.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/react": "19.2.14",
@@ -44,11 +44,11 @@
44
44
  "vite": "^8.0.13",
45
45
  "vite-plugin-dts": "^5.0.0",
46
46
  "vitest": "^4.1.6",
47
- "@object-ui/components": "4.4.0",
48
- "@object-ui/core": "4.4.0",
49
- "@object-ui/fields": "4.4.0",
50
- "@object-ui/react": "4.4.0",
51
- "@object-ui/types": "4.4.0"
47
+ "@object-ui/components": "4.5.0",
48
+ "@object-ui/core": "4.5.0",
49
+ "@object-ui/fields": "4.5.0",
50
+ "@object-ui/react": "4.5.0",
51
+ "@object-ui/types": "4.5.0"
52
52
  },
53
53
  "keywords": [
54
54
  "objectui",