@formicoidea/labre-framework-wardley 4.0.0 → 4.1.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/dist/commands.js +12 -4
- package/package.json +2 -2
package/dist/commands.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import { frameworkChord } from '@formicoidea/labre-core/shared/utils';
|
|
1
2
|
import { GfxControllerIdentifier } from '@formicoidea/labre-core/std/gfx';
|
|
2
3
|
import { activateWardleyAreaPolygon, activateWardleyConnector, createWardleyAccelerator, createWardleyArea, createWardleyBackground, createWardleyInertia, createWardleyMarket, createWardleyNode, createWardleyPipeline, createWardleyPorter, exportOwmFile, importOwmFile, importWardleySvgFile, wardleyMapsSelected, } from './actions.js';
|
|
3
4
|
import { WARDLEY_LEGEND_BOX, wardleyLegendEntries, } from './legend.js';
|
|
4
5
|
import { WARDLEY_ROLE, WARDLEY_ROLES } from './roles.js';
|
|
5
6
|
import { wardleyAcceleratorIcon, wardleyAnchorIcon, wardleyAreaPolygonIcon, wardleyAreaRectIcon, wardleyArrowIcon, wardleyBackgroundIcon, wardleyDeceleratorIcon, wardleyBenefitIcon, wardleyComponentIcon, wardleyEcosystemIcon, wardleyEvolutionGradientIcon, wardleyExportOwmIcon, wardleyImportOwmIcon, wardleyImportSvgIcon, wardleyInertiaIcon, wardleyLinkIcon, wardleyMarketIcon, wardleyMethodIcon, wardleyOpportunityIcon, wardleyPipelineIcon, wardleyPorterIcon, wardleyToolbarIcon, } from './toolbar/icons.js';
|
|
7
|
+
/**
|
|
8
|
+
* The first keystroke of every Wardley chord (`w c` places a component).
|
|
9
|
+
* `FrameworkDescriptor.chordPrefix` in `@labre/affine`'s `frameworks.ts` spells
|
|
10
|
+
* it again for the host, which this package cannot import, and
|
|
11
|
+
* `chord-prefixes.unit.spec.ts` holds the two together (`docs/adr/0055`).
|
|
12
|
+
*/
|
|
13
|
+
const WARDLEY_CHORD_PREFIX = 'w';
|
|
6
14
|
const SPECS = [
|
|
7
15
|
{
|
|
8
16
|
id: 'addBackground',
|
|
@@ -256,10 +264,10 @@ const toolboxCommands = SPECS.map((spec, order) => ({
|
|
|
256
264
|
surfaces: ['senior-menu', 'catalogue', 'palette', 'agent'],
|
|
257
265
|
order,
|
|
258
266
|
scope: 'edgeless',
|
|
259
|
-
defaultKeys: spec.key
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
availability: '
|
|
267
|
+
defaultKeys: frameworkChord(WARDLEY_CHORD_PREFIX, spec.key),
|
|
268
|
+
// It WRITES: a read-only document is one it cannot run on, so no surface
|
|
269
|
+
// offers it there and no chord arms for it (`docs/adr/0055`).
|
|
270
|
+
availability: 'editable',
|
|
263
271
|
run: std => spec.run(std.get(GfxControllerIdentifier)),
|
|
264
272
|
telemetry: { framework: 'wardley', element: spec.element, board: spec.board },
|
|
265
273
|
// The legend, SUBSCRIBED rather than tabulated (`docs/adr/0009`'s sibling):
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-wardley",
|
|
3
3
|
"description": "Labre wardley framework for @formicoidea/labre-core.",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "lajola",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@formicoidea/labre-core": "4.
|
|
38
|
+
"@formicoidea/labre-core": "4.1.0",
|
|
39
39
|
"lit": "^3.2.0"
|
|
40
40
|
}
|
|
41
41
|
}
|