@objectstack/plugin-approvals 7.3.0 → 7.4.1

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