@formicoidea/labre-framework-ddd-event-storming 0.33.0 → 0.34.2
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 Event Storming 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 eventStormingCommands},
|
|
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 eventStormingCommandsManifest: ShortcutManifestEntry[];
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Event Storming 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 eventStormingCommands},
|
|
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 eventStormingCommandsManifest = [
|
|
18
|
+
{
|
|
19
|
+
id: 'ddd-event-storming.addBoard',
|
|
20
|
+
owner: 'ddd-event-storming',
|
|
21
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addBoard',
|
|
22
|
+
labelFallback: 'Event Storming board',
|
|
23
|
+
scope: 'edgeless',
|
|
24
|
+
defaultKeys: { mac: [], other: [] },
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'ddd-event-storming.addDomainEvent',
|
|
28
|
+
owner: 'ddd-event-storming',
|
|
29
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addDomainEvent',
|
|
30
|
+
labelFallback: 'Domain event',
|
|
31
|
+
scope: 'edgeless',
|
|
32
|
+
defaultKeys: { mac: [], other: [] },
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'ddd-event-storming.addCommand',
|
|
36
|
+
owner: 'ddd-event-storming',
|
|
37
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addCommand',
|
|
38
|
+
labelFallback: 'Command',
|
|
39
|
+
scope: 'edgeless',
|
|
40
|
+
defaultKeys: { mac: [], other: [] },
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 'ddd-event-storming.addAggregate',
|
|
44
|
+
owner: 'ddd-event-storming',
|
|
45
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addAggregate',
|
|
46
|
+
labelFallback: 'Aggregate',
|
|
47
|
+
scope: 'edgeless',
|
|
48
|
+
defaultKeys: { mac: [], other: [] },
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'ddd-event-storming.addActor',
|
|
52
|
+
owner: 'ddd-event-storming',
|
|
53
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addActor',
|
|
54
|
+
labelFallback: 'Actor',
|
|
55
|
+
scope: 'edgeless',
|
|
56
|
+
defaultKeys: { mac: [], other: [] },
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: 'ddd-event-storming.addConstraint',
|
|
60
|
+
owner: 'ddd-event-storming',
|
|
61
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addConstraint',
|
|
62
|
+
labelFallback: 'Constraint',
|
|
63
|
+
scope: 'edgeless',
|
|
64
|
+
defaultKeys: { mac: [], other: [] },
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: 'ddd-event-storming.addPolicy',
|
|
68
|
+
owner: 'ddd-event-storming',
|
|
69
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addPolicy',
|
|
70
|
+
labelFallback: 'Policy',
|
|
71
|
+
scope: 'edgeless',
|
|
72
|
+
defaultKeys: { mac: [], other: [] },
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'ddd-event-storming.addReadModel',
|
|
76
|
+
owner: 'ddd-event-storming',
|
|
77
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addReadModel',
|
|
78
|
+
labelFallback: 'Read model',
|
|
79
|
+
scope: 'edgeless',
|
|
80
|
+
defaultKeys: { mac: [], other: [] },
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'ddd-event-storming.addSystem',
|
|
84
|
+
owner: 'ddd-event-storming',
|
|
85
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addSystem',
|
|
86
|
+
labelFallback: 'External system',
|
|
87
|
+
scope: 'edgeless',
|
|
88
|
+
defaultKeys: { mac: [], other: [] },
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: 'ddd-event-storming.addHotspot',
|
|
92
|
+
owner: 'ddd-event-storming',
|
|
93
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addHotspot',
|
|
94
|
+
labelFallback: 'Hotspot',
|
|
95
|
+
scope: 'edgeless',
|
|
96
|
+
defaultKeys: { mac: [], other: [] },
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 'ddd-event-storming.addFlow',
|
|
100
|
+
owner: 'ddd-event-storming',
|
|
101
|
+
labelKey: 'com.labre.commands.ddd-event-storming.addFlow',
|
|
102
|
+
labelFallback: 'Flow',
|
|
103
|
+
scope: 'edgeless',
|
|
104
|
+
defaultKeys: { mac: [], other: [] },
|
|
105
|
+
},
|
|
106
|
+
];
|
|
@@ -14,13 +14,13 @@ import { type ToolbarContext } from '@formicoidea/labre-core/shared/services';
|
|
|
14
14
|
export declare const eventStormingBoardToolbarConfig: {
|
|
15
15
|
readonly actions: [{
|
|
16
16
|
readonly id: "a.toggle-resize";
|
|
17
|
-
readonly
|
|
17
|
+
readonly tooltipWording: import("@formicoidea/labre-core/shared/services").ChromeWording;
|
|
18
18
|
readonly icon: import("lit-html").TemplateResult<1>;
|
|
19
19
|
readonly active: (ctx: ToolbarContext) => boolean;
|
|
20
20
|
readonly run: (ctx: ToolbarContext) => void;
|
|
21
21
|
}, {
|
|
22
22
|
readonly id: "b.legend";
|
|
23
|
-
readonly
|
|
23
|
+
readonly tooltipWording: import("@formicoidea/labre-core/shared/services").ChromeWording;
|
|
24
24
|
readonly icon: import("lit-html").TemplateResult<1>;
|
|
25
25
|
readonly run: (ctx: ToolbarContext) => void;
|
|
26
26
|
}];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EdgelessCRUDIdentifier } from '@formicoidea/labre-core/blocks/surface';
|
|
2
2
|
import { createAutoLegend, dddLegendIcon } from '@formicoidea/labre-ddd-shared';
|
|
3
3
|
import { EventStormingBoardElementModel } from '@formicoidea/labre-core/model';
|
|
4
|
-
import { TelemetryProvider, ToolbarModuleExtension, } from '@formicoidea/labre-core/shared/services';
|
|
4
|
+
import { BOARD_LEGEND_NOTATION, BOARD_RESIZE_TOGGLE, TelemetryProvider, ToolbarModuleExtension, } from '@formicoidea/labre-core/shared/services';
|
|
5
5
|
import { BlockFlavourIdentifier } from '@formicoidea/labre-core/std';
|
|
6
6
|
import { html } from 'lit';
|
|
7
7
|
import { EVENT_STORMING_AUTO_LEGEND } from '../legend.js';
|
|
@@ -34,7 +34,7 @@ export const eventStormingBoardToolbarConfig = {
|
|
|
34
34
|
actions: [
|
|
35
35
|
{
|
|
36
36
|
id: 'a.toggle-resize',
|
|
37
|
-
|
|
37
|
+
tooltipWording: BOARD_RESIZE_TOGGLE,
|
|
38
38
|
icon: ResizeIcon,
|
|
39
39
|
active(ctx) {
|
|
40
40
|
const models = ctx.getSurfaceModelsByType(EventStormingBoardElementModel);
|
|
@@ -54,7 +54,7 @@ export const eventStormingBoardToolbarConfig = {
|
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
id: 'b.legend',
|
|
57
|
-
|
|
57
|
+
tooltipWording: BOARD_LEGEND_NOTATION,
|
|
58
58
|
icon: dddLegendIcon,
|
|
59
59
|
run(ctx) {
|
|
60
60
|
const board = ctx.getSurfaceModelsByType(EventStormingBoardElementModel)[0];
|
package/dist/translations.js
CHANGED
|
@@ -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 { EVENT_STORMING_BACKGROUND } from './background.js';
|
|
3
3
|
import { eventStormingCommands } from './commands.js';
|
|
4
4
|
import { EVENT_STORMING_NUDGES } from './nudges.js';
|
|
@@ -19,4 +19,10 @@ import { EVENT_STORMING_RULES } from './rules.js';
|
|
|
19
19
|
* `eventStormingCommands` into the command registry. See
|
|
20
20
|
* `packages/affine/all/src/translations.ts`.
|
|
21
21
|
*/
|
|
22
|
-
export const eventStormingTranslationEntries = mergeTranslationEntries(commandTranslationEntries(eventStormingCommands),
|
|
22
|
+
export const eventStormingTranslationEntries = mergeTranslationEntries(commandTranslationEntries(eventStormingCommands),
|
|
23
|
+
// The catalogue's own group headers, derived from the very categories
|
|
24
|
+
// these commands declare. They ship WITH the framework because core's
|
|
25
|
+
// registry names no framework category in the bundled distribution, so a
|
|
26
|
+
// host that composed core's manifest alone drew translated entries under
|
|
27
|
+
// English headers (#183).
|
|
28
|
+
commandCategoryTranslationEntries(eventStormingCommands), collectTranslationKeys('role', EVENT_STORMING_ROLES), collectTranslationKeys('background', EVENT_STORMING_BACKGROUND), collectTranslationKeys('rule', EVENT_STORMING_RULES), collectTranslationKeys('nudge', EVENT_STORMING_NUDGES), collectTranslationKeys('profile', EVENT_STORMING_PROFILES));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-ddd-event-storming",
|
|
3
3
|
"description": "Labre ddd-event-storming framework for @formicoidea/labre-core.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.34.2",
|
|
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.
|
|
31
|
-
"@formicoidea/labre-ddd-shared": "0.
|
|
34
|
+
"@formicoidea/labre-core": "0.34.2",
|
|
35
|
+
"@formicoidea/labre-ddd-shared": "0.34.2",
|
|
32
36
|
"lit": "^3.2.0"
|
|
33
37
|
}
|
|
34
38
|
}
|