@formicoidea/labre-framework-ddd-core-domain 0.33.0 → 0.34.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.
@@ -0,0 +1,18 @@
1
+ import type { ShortcutManifestEntry } from '@formicoidea/labre-core/std';
2
+ /**
3
+ * The Core Domain Chart commands as SHORTCUT-MANIFEST rows — id, label, chord, scope,
4
+ * owner — and nothing else.
5
+ *
6
+ * DATA ONLY, and that is the whole point (`docs/adr/0008` § Packaging). A
7
+ * `CommandDescriptor` carries its `run`, so a host settings pane that imports
8
+ * the package entry to list names and chords drags the entire action graph —
9
+ * the import/export machinery, the surface and gfx deep paths — into its
10
+ * chunk. This module has type-only imports, so the published bundle exposes it
11
+ * as `./commands-manifest`: a few hundred bytes that reference nothing.
12
+ *
13
+ * GENERATED-SHAPED, hand-committed: `commands-manifest.unit.spec.ts` asserts
14
+ * row-for-row equality with `toShortcutManifestEntry` over {@link coreDomainCommands},
15
+ * so this file cannot drift from the commands it projects. Add a command and
16
+ * the test says exactly what to add here.
17
+ */
18
+ export declare const coreDomainCommandsManifest: ShortcutManifestEntry[];
@@ -0,0 +1,98 @@
1
+ /**
2
+ * The Core Domain Chart commands as SHORTCUT-MANIFEST rows — id, label, chord, scope,
3
+ * owner — and nothing else.
4
+ *
5
+ * DATA ONLY, and that is the whole point (`docs/adr/0008` § Packaging). A
6
+ * `CommandDescriptor` carries its `run`, so a host settings pane that imports
7
+ * the package entry to list names and chords drags the entire action graph —
8
+ * the import/export machinery, the surface and gfx deep paths — into its
9
+ * chunk. This module has type-only imports, so the published bundle exposes it
10
+ * as `./commands-manifest`: a few hundred bytes that reference nothing.
11
+ *
12
+ * GENERATED-SHAPED, hand-committed: `commands-manifest.unit.spec.ts` asserts
13
+ * row-for-row equality with `toShortcutManifestEntry` over {@link coreDomainCommands},
14
+ * so this file cannot drift from the commands it projects. Add a command and
15
+ * the test says exactly what to add here.
16
+ */
17
+ export const coreDomainCommandsManifest = [
18
+ {
19
+ id: 'ddd-core-domain.addChart',
20
+ owner: 'ddd-core-domain',
21
+ labelKey: 'com.labre.commands.ddd-core-domain.addChart',
22
+ labelFallback: 'Core Domain Chart',
23
+ scope: 'edgeless',
24
+ defaultKeys: { mac: [], other: [] },
25
+ },
26
+ {
27
+ id: 'ddd-core-domain.addBigBet',
28
+ owner: 'ddd-core-domain',
29
+ labelKey: 'com.labre.commands.ddd-core-domain.addBigBet',
30
+ labelFallback: 'Big-bet sub-domain',
31
+ scope: 'edgeless',
32
+ defaultKeys: { mac: [], other: [] },
33
+ },
34
+ {
35
+ id: 'ddd-core-domain.addPlatform',
36
+ owner: 'ddd-core-domain',
37
+ labelKey: 'com.labre.commands.ddd-core-domain.addPlatform',
38
+ labelFallback: 'Platform sub-domain',
39
+ scope: 'edgeless',
40
+ defaultKeys: { mac: [], other: [] },
41
+ },
42
+ {
43
+ id: 'ddd-core-domain.addOutsourced',
44
+ owner: 'ddd-core-domain',
45
+ labelKey: 'com.labre.commands.ddd-core-domain.addOutsourced',
46
+ labelFallback: 'Outsourced / purchased',
47
+ scope: 'edgeless',
48
+ defaultKeys: { mac: [], other: [] },
49
+ },
50
+ {
51
+ id: 'ddd-core-domain.addBcCurrent',
52
+ owner: 'ddd-core-domain',
53
+ labelKey: 'com.labre.commands.ddd-core-domain.addBcCurrent',
54
+ labelFallback: 'Bounded context',
55
+ scope: 'edgeless',
56
+ defaultKeys: { mac: [], other: [] },
57
+ },
58
+ {
59
+ id: 'ddd-core-domain.addBcFuture',
60
+ owner: 'ddd-core-domain',
61
+ labelKey: 'com.labre.commands.ddd-core-domain.addBcFuture',
62
+ labelFallback: 'Future position',
63
+ scope: 'edgeless',
64
+ defaultKeys: { mac: [], other: [] },
65
+ },
66
+ {
67
+ id: 'ddd-core-domain.addCollaboration',
68
+ owner: 'ddd-core-domain',
69
+ labelKey: 'com.labre.commands.ddd-core-domain.addCollaboration',
70
+ labelFallback: 'Collaboration',
71
+ scope: 'edgeless',
72
+ defaultKeys: { mac: [], other: [] },
73
+ },
74
+ {
75
+ id: 'ddd-core-domain.addXaas',
76
+ owner: 'ddd-core-domain',
77
+ labelKey: 'com.labre.commands.ddd-core-domain.addXaas',
78
+ labelFallback: 'X-as-a-Service',
79
+ scope: 'edgeless',
80
+ defaultKeys: { mac: [], other: [] },
81
+ },
82
+ {
83
+ id: 'ddd-core-domain.addFacilitating',
84
+ owner: 'ddd-core-domain',
85
+ labelKey: 'com.labre.commands.ddd-core-domain.addFacilitating',
86
+ labelFallback: 'Facilitating',
87
+ scope: 'edgeless',
88
+ defaultKeys: { mac: [], other: [] },
89
+ },
90
+ {
91
+ id: 'ddd-core-domain.addMovement',
92
+ owner: 'ddd-core-domain',
93
+ labelKey: 'com.labre.commands.ddd-core-domain.addMovement',
94
+ labelFallback: 'Movement over time',
95
+ scope: 'edgeless',
96
+ defaultKeys: { mac: [], other: [] },
97
+ },
98
+ ];
@@ -1,6 +1,6 @@
1
1
  import { createAutoLegend, dddLegendIcon } from '@formicoidea/labre-ddd-shared';
2
2
  import { CoreDomainChartElementModel } from '@formicoidea/labre-core/model';
3
- import { TelemetryProvider, ToolbarModuleExtension, } from '@formicoidea/labre-core/shared/services';
3
+ import { BOARD_LEGEND_NOTATION, TelemetryProvider, ToolbarModuleExtension, } from '@formicoidea/labre-core/shared/services';
4
4
  import { BlockFlavourIdentifier } from '@formicoidea/labre-core/std';
5
5
  import { CORE_DOMAIN_AUTO_LEGEND } from './legend.js';
6
6
  /** Contextual toolbar for a selected Core Domain background: insert its legend. */
@@ -8,7 +8,7 @@ const coreDomainToolbarConfig = {
8
8
  actions: [
9
9
  {
10
10
  id: 'a.legend',
11
- tooltip: 'Generate the legend (notation present)',
11
+ tooltipWording: BOARD_LEGEND_NOTATION,
12
12
  icon: dddLegendIcon,
13
13
  run(ctx) {
14
14
  const bg = ctx.getSurfaceModelsByType(CoreDomainChartElementModel)[0];
@@ -1,4 +1,4 @@
1
- import { collectTranslationKeys, commandTranslationEntries, mergeTranslationEntries, } from '@formicoidea/labre-core/std';
1
+ import { collectTranslationKeys, commandCategoryTranslationEntries, commandTranslationEntries, mergeTranslationEntries, } from '@formicoidea/labre-core/std';
2
2
  import { coreDomainCommands } from './commands.js';
3
3
  import { CORE_DOMAIN_BACKGROUND } from './core-domain/background.js';
4
4
  import { CORE_DOMAIN_NUDGES } from './nudges.js';
@@ -17,4 +17,10 @@ import { CORE_DOMAIN_RULES } from './rules.js';
17
17
  * into the catalogue it builds — the same sentence that already holds for
18
18
  * `coreDomainCommands`.
19
19
  */
20
- export const coreDomainTranslationEntries = mergeTranslationEntries(commandTranslationEntries(coreDomainCommands), collectTranslationKeys('role', CORE_DOMAIN_ROLES), collectTranslationKeys('background', CORE_DOMAIN_BACKGROUND), collectTranslationKeys('rule', CORE_DOMAIN_RULES), collectTranslationKeys('nudge', CORE_DOMAIN_NUDGES), collectTranslationKeys('profile', CORE_DOMAIN_PROFILES));
20
+ export const coreDomainTranslationEntries = mergeTranslationEntries(commandTranslationEntries(coreDomainCommands),
21
+ // The catalogue's own group headers, derived from the very categories
22
+ // these commands declare. They ship WITH the framework because core's
23
+ // registry names no framework category in the bundled distribution, so a
24
+ // host that composed core's manifest alone drew translated entries under
25
+ // English headers (#183).
26
+ commandCategoryTranslationEntries(coreDomainCommands), collectTranslationKeys('role', CORE_DOMAIN_ROLES), collectTranslationKeys('background', CORE_DOMAIN_BACKGROUND), collectTranslationKeys('rule', CORE_DOMAIN_RULES), collectTranslationKeys('nudge', CORE_DOMAIN_NUDGES), collectTranslationKeys('profile', CORE_DOMAIN_PROFILES));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formicoidea/labre-framework-ddd-core-domain",
3
3
  "description": "Labre ddd-core-domain framework for @formicoidea/labre-core.",
4
- "version": "0.33.0",
4
+ "version": "0.34.1",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "author": "lajola",
@@ -21,14 +21,18 @@
21
21
  "./descriptor": {
22
22
  "types": "./dist/descriptor.d.ts",
23
23
  "import": "./dist/descriptor.js"
24
+ },
25
+ "./commands-manifest": {
26
+ "types": "./dist/commands-manifest.d.ts",
27
+ "import": "./dist/commands-manifest.js"
24
28
  }
25
29
  },
26
30
  "files": [
27
31
  "dist"
28
32
  ],
29
33
  "dependencies": {
30
- "@formicoidea/labre-core": "0.33.0",
31
- "@formicoidea/labre-ddd-shared": "0.33.0",
34
+ "@formicoidea/labre-core": "0.34.1",
35
+ "@formicoidea/labre-ddd-shared": "0.34.1",
32
36
  "lit": "^3.2.0"
33
37
  }
34
38
  }