@objectstack/plugin-approvals 7.2.1 → 7.4.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,5 +1,5 @@
1
1
 
2
- > @objectstack/plugin-approvals@7.2.1 build /home/runner/work/framework/framework/packages/plugins/plugin-approvals
2
+ > @objectstack/plugin-approvals@7.4.0 build /home/runner/work/framework/framework/packages/plugins/plugin-approvals
3
3
  > tsup --config ../../../tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,13 +10,13 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- ESM dist/index.mjs 42.73 KB
14
- ESM dist/index.mjs.map 91.14 KB
15
- ESM ⚡️ Build success in 118ms
16
- CJS dist/index.js 43.79 KB
17
- CJS dist/index.js.map 91.06 KB
18
- CJS ⚡️ Build success in 132ms
13
+ ESM dist/index.mjs 55.86 KB
14
+ ESM dist/index.mjs.map 97.27 KB
15
+ ESM ⚡️ Build success in 148ms
16
+ CJS dist/index.js 57.19 KB
17
+ CJS dist/index.js.map 98.45 KB
18
+ CJS ⚡️ Build success in 189ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 20074ms
21
- DTS dist/index.d.mts 9.33 KB
22
- DTS dist/index.d.ts 9.33 KB
20
+ DTS ⚡️ Build success in 20444ms
21
+ DTS dist/index.d.mts 286.36 KB
22
+ DTS dist/index.d.ts 286.36 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,91 @@
1
1
  # @objectstack/plugin-approvals
2
2
 
3
+ ## 7.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4cc2ced: ADR-0029 K2.b — approvals domain ownership + Setup nav contribution.
8
+
9
+ Moves `sys_approval_request` / `sys_approval_action` out of the
10
+ `@objectstack/platform-objects` monolith into `@objectstack/plugin-approvals`,
11
+ which already registers and operates them — so the plugin now owns its data
12
+ model, behavior, and admin menu as one unit.
13
+
14
+ - The object definitions move to `plugin-approvals`; `platform-objects` no
15
+ longer exports them from `/audit`. Runtime is unchanged (the plugin already
16
+ registered them at runtime).
17
+ - **D7 navigation** — the Setup app's `group_approvals` entries (`Requests`,
18
+ `Action History`) move out of `platform-objects`' `SETUP_NAV_CONTRIBUTIONS`
19
+ into `plugin-approvals`' `navigationContributions`. The plugin fills the slot
20
+ it owns; when the plugin is absent the slot stays empty.
21
+ - **i18n (D8)** — the objects are removed from the `platform-objects` i18n
22
+ extract config; their existing generated translation bundles keep working at
23
+ runtime (object-name keyed). Migrating the i18n extraction/bundles to the
24
+ plugin remains the tracked cross-cutting follow-up (best done with the
25
+ `os i18n extract` tooling, not hand-edited generated files).
26
+
27
+ ### Patch Changes
28
+
29
+ - 4404572: ADR-0029 D8 — migrate i18n ownership for the moved domains to their plugins.
30
+
31
+ The object translations for the domains decomposed in K2.a/K2.b/K2 previously
32
+ lived in the `@objectstack/platform-objects` generated bundles even though the
33
+ objects now live in their capability plugins. This moves each domain's i18n
34
+ extraction + bundles to the owning plugin, preserving every hand-translated
35
+ string (zh-CN / ja-JP / es-ES):
36
+
37
+ - Each plugin gains a build-time `scripts/i18n-extract.config.ts` and a
38
+ `src/translations/` bundle (`{locale}.objects.generated.ts` + an `index.ts`
39
+ barrel), generated with `os i18n extract` and self-baselined so re-runs
40
+ preserve translations.
41
+ - Each plugin loads its bundle at runtime on `kernel:ready` via
42
+ `i18n.loadTranslations` (the i18n service is optional — load is best-effort).
43
+ - `plugin-webhooks` ← `sys_webhook`, `sys_webhook_delivery`
44
+ - `plugin-approvals` ← `sys_approval_request`, `sys_approval_action`
45
+ - `plugin-security` ← `sys_role`, `sys_permission_set`,
46
+ `sys_user_permission_set`, `sys_role_permission_set`
47
+ - `plugin-sharing` ← `sys_record_share`, `sys_sharing_rule`, `sys_share_link`
48
+ - `@objectstack/platform-objects` translation bundles are regenerated to drop
49
+ those objects' keys (its extract config already excluded them); all other
50
+ objects' translations and the metadata-form bundles are preserved.
51
+
52
+ Net runtime effect is unchanged (same translations load, now contributed by the
53
+ package that owns each object) — closing the D8 follow-up tracked since K2.a.
54
+
55
+ - Updated dependencies [23c7107]
56
+ - Updated dependencies [c72daad]
57
+ - Updated dependencies [4404572]
58
+ - Updated dependencies [eea3f1b]
59
+ - Updated dependencies [e478e0c]
60
+ - Updated dependencies [4cc2ced]
61
+ - Updated dependencies [13632b1]
62
+ - Updated dependencies [f115182]
63
+ - Updated dependencies [2faf9f2]
64
+ - Updated dependencies [2faf9f2]
65
+ - Updated dependencies [2faf9f2]
66
+ - Updated dependencies [58b450b]
67
+ - Updated dependencies [82eb6cf]
68
+ - Updated dependencies [c381977]
69
+ - Updated dependencies [13d8653]
70
+ - Updated dependencies [ff3d006]
71
+ - Updated dependencies [5e831de]
72
+ - @objectstack/spec@7.4.0
73
+ - @objectstack/platform-objects@7.4.0
74
+ - @objectstack/core@7.4.0
75
+ - @objectstack/formula@7.4.0
76
+ - @objectstack/metadata-core@7.4.0
77
+
78
+ ## 7.3.0
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [5e7c554]
83
+ - @objectstack/spec@7.3.0
84
+ - @objectstack/core@7.3.0
85
+ - @objectstack/formula@7.3.0
86
+ - @objectstack/platform-objects@7.3.0
87
+ - @objectstack/metadata-core@7.3.0
88
+
3
89
  ## 7.2.1
4
90
 
5
91
  ### Patch Changes