@objectstack/plugin-sharing 7.3.0 → 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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +83 -0
- package/dist/index.d.mts +9703 -2
- package/dist/index.d.ts +9703 -2
- package/dist/index.js +1685 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1690 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/scripts/i18n-extract.config.ts +31 -0
- package/src/index.ts +1 -1
- package/src/objects/index.ts +14 -0
- package/src/objects/sys-record-share.object.ts +229 -0
- package/src/objects/sys-share-link.object.ts +255 -0
- package/src/objects/sys-sharing-rule.object.ts +190 -0
- package/src/sharing-plugin.ts +31 -1
- package/src/translations/en.objects.generated.ts +275 -0
- package/src/translations/es-ES.objects.generated.ts +275 -0
- package/src/translations/index.ts +23 -0
- package/src/translations/ja-JP.objects.generated.ts +275 -0
- package/src/translations/zh-CN.objects.generated.ts +275 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/plugin-sharing@7.
|
|
2
|
+
> @objectstack/plugin-sharing@7.4.0 build /home/runner/work/framework/framework/packages/plugins/plugin-sharing
|
|
3
3
|
> tsup --config ../../../tsup.config.ts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
17
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m109.73 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m191.43 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 263ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m111.70 KB[39m
|
|
17
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m191.45 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 267ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
22
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 26766ms
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m441.17 KB[39m
|
|
22
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m441.17 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
# @objectstack/plugin-sharing
|
|
2
2
|
|
|
3
|
+
## 7.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e478e0c: ADR-0029 K2 — security domain ownership (RBAC + sharing) + Setup nav contributions.
|
|
8
|
+
|
|
9
|
+
Moves the security objects out of the `@objectstack/platform-objects` monolith
|
|
10
|
+
into the two capability plugins that already register and operate them, split by
|
|
11
|
+
concern (the two are orthogonal — sharing objects never reference RBAC objects):
|
|
12
|
+
|
|
13
|
+
- **`@objectstack/plugin-security`** (RBAC) gains `sys_role`,
|
|
14
|
+
`sys_permission_set`, `sys_user_permission_set`, `sys_role_permission_set`,
|
|
15
|
+
and the `defaultPermissionSets` seed (which its `bootstrap-platform-admin`
|
|
16
|
+
already consumes). The RBAC + default-permission-set tests move with them.
|
|
17
|
+
- **`@objectstack/plugin-sharing`** gains `sys_record_share`,
|
|
18
|
+
`sys_sharing_rule`, `sys_share_link`.
|
|
19
|
+
- `@objectstack/platform-objects` no longer defines/exports any security
|
|
20
|
+
objects; the `/security` subpath is now an empty barrel. Runtime is unchanged
|
|
21
|
+
(both plugins already registered these objects at runtime).
|
|
22
|
+
|
|
23
|
+
**D7 navigation** — the Setup app's `group_access_control` is now assembled from
|
|
24
|
+
three sources: `plugin-security` contributes Roles / Permission Sets (priority
|
|
25
|
+
100), `plugin-sharing` contributes Sharing Rules / Record Shares (priority 200),
|
|
26
|
+
and `platform-objects` keeps only API Keys (`sys_api_key`, an identity object,
|
|
27
|
+
priority 300) — preserving the original menu order.
|
|
28
|
+
|
|
29
|
+
**i18n (D8)** — the objects are removed from the `platform-objects` i18n extract
|
|
30
|
+
config; existing generated bundles keep working at runtime (object-name keyed).
|
|
31
|
+
Migrating the i18n extraction to the owning plugins remains the tracked
|
|
32
|
+
follow-up.
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- 4404572: ADR-0029 D8 — migrate i18n ownership for the moved domains to their plugins.
|
|
37
|
+
|
|
38
|
+
The object translations for the domains decomposed in K2.a/K2.b/K2 previously
|
|
39
|
+
lived in the `@objectstack/platform-objects` generated bundles even though the
|
|
40
|
+
objects now live in their capability plugins. This moves each domain's i18n
|
|
41
|
+
extraction + bundles to the owning plugin, preserving every hand-translated
|
|
42
|
+
string (zh-CN / ja-JP / es-ES):
|
|
43
|
+
|
|
44
|
+
- Each plugin gains a build-time `scripts/i18n-extract.config.ts` and a
|
|
45
|
+
`src/translations/` bundle (`{locale}.objects.generated.ts` + an `index.ts`
|
|
46
|
+
barrel), generated with `os i18n extract` and self-baselined so re-runs
|
|
47
|
+
preserve translations.
|
|
48
|
+
- Each plugin loads its bundle at runtime on `kernel:ready` via
|
|
49
|
+
`i18n.loadTranslations` (the i18n service is optional — load is best-effort).
|
|
50
|
+
- `plugin-webhooks` ← `sys_webhook`, `sys_webhook_delivery`
|
|
51
|
+
- `plugin-approvals` ← `sys_approval_request`, `sys_approval_action`
|
|
52
|
+
- `plugin-security` ← `sys_role`, `sys_permission_set`,
|
|
53
|
+
`sys_user_permission_set`, `sys_role_permission_set`
|
|
54
|
+
- `plugin-sharing` ← `sys_record_share`, `sys_sharing_rule`, `sys_share_link`
|
|
55
|
+
- `@objectstack/platform-objects` translation bundles are regenerated to drop
|
|
56
|
+
those objects' keys (its extract config already excluded them); all other
|
|
57
|
+
objects' translations and the metadata-form bundles are preserved.
|
|
58
|
+
|
|
59
|
+
Net runtime effect is unchanged (same translations load, now contributed by the
|
|
60
|
+
package that owns each object) — closing the D8 follow-up tracked since K2.a.
|
|
61
|
+
|
|
62
|
+
- Updated dependencies [23c7107]
|
|
63
|
+
- Updated dependencies [c72daad]
|
|
64
|
+
- Updated dependencies [4404572]
|
|
65
|
+
- Updated dependencies [eea3f1b]
|
|
66
|
+
- Updated dependencies [e478e0c]
|
|
67
|
+
- Updated dependencies [4cc2ced]
|
|
68
|
+
- Updated dependencies [13632b1]
|
|
69
|
+
- Updated dependencies [f115182]
|
|
70
|
+
- Updated dependencies [2faf9f2]
|
|
71
|
+
- Updated dependencies [2faf9f2]
|
|
72
|
+
- Updated dependencies [2faf9f2]
|
|
73
|
+
- Updated dependencies [2faf9f2]
|
|
74
|
+
- Updated dependencies [a6d4cbb]
|
|
75
|
+
- Updated dependencies [58b450b]
|
|
76
|
+
- Updated dependencies [82eb6cf]
|
|
77
|
+
- Updated dependencies [c381977]
|
|
78
|
+
- Updated dependencies [13d8653]
|
|
79
|
+
- Updated dependencies [ff3d006]
|
|
80
|
+
- Updated dependencies [5e831de]
|
|
81
|
+
- @objectstack/spec@7.4.0
|
|
82
|
+
- @objectstack/objectql@7.4.0
|
|
83
|
+
- @objectstack/platform-objects@7.4.0
|
|
84
|
+
- @objectstack/core@7.4.0
|
|
85
|
+
|
|
3
86
|
## 7.3.0
|
|
4
87
|
|
|
5
88
|
### Patch Changes
|