foldkit-mixins-builder 0.7.0 → 0.9.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/README.md +39 -15
- package/dist/gripPlace.d.ts +11 -0
- package/dist/gripPlace.d.ts.map +1 -0
- package/dist/gripPlace.js +67 -0
- package/dist/gripPlace.js.map +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +241 -42
- package/dist/index.js.map +1 -1
- package/dist/words.d.ts +3 -0
- package/dist/words.d.ts.map +1 -1
- package/dist/words.js +2 -0
- package/dist/words.js.map +1 -1
- package/package.json +10 -10
package/dist/words.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"words.js","names":[],"sources":["../src/words.ts"],"sourcesContent":["import { fillWords } from 'foldkit-form'\n\n/**\n * Every word the drawn Builder shows of its own, so an application can put\n * the editor in another language. Words are text; a word that takes a value\n * names it as a blank, `'Add {label}'`, so a translation puts it where its\n * language does. Text, not functions, because the words are a view input, and\n * Foldkit admits no function nested in one (`h.submodel` throws); it also lets\n * one object hold a form's words and these. The Catalog's words (a Block's\n * label and description) and the command table's labels are the\n * application's already, and are not here.\n */\nexport interface BuilderWords {\n /** The list of the narrow editor's panel tabs, and each tab. */\n readonly panels: string\n readonly addPanel: string\n readonly layersPanel: string\n readonly settingsPanel: string\n\n /** The palette, a tile (`'Add {label}'`), and its groups: Blocks given none, and the patterns. */\n readonly palette: string\n readonly addBlock: string\n readonly ungrouped: string\n readonly patterns: string\n /** Where a tile adds its Block, on its title; `{label}` is the node it goes after or inside. */\n readonly addsToEnd: string\n readonly addsAfter: string\n readonly addsInside: string\n /**\n * Why a tile adds nothing: nothing on the page can hold it yet (with nothing\n * selected, a tile goes anywhere that can), or the selected (`{label}`) cannot.\n */\n readonly nothingHoldsIt: string\n readonly cannotGoAt: string\n\n /** The layers' tree. */\n readonly layers: string\n\n /** The inspector, and what it says with nothing selected. */\n readonly properties: string\n readonly selectedBlock: string\n readonly selectToChange: string\n readonly shortcuts: string\n readonly treeUpDown: string\n readonly treeLeftRight: string\n /** A node whose Block this version of the application lacks. */\n readonly unknownBlock: string\n /** The inspector's sections. */\n readonly content: string\n readonly style: string\n readonly visibility: string\n readonly interactions: string\n /** A look: no choice, its field at a breakpoint (`{label}`, `{breakpoint}`), and a breakpoint that changes nothing. */\n readonly lookDefault: string\n readonly lookAt: string\n readonly lookUnchanged: string\n /** A condition over a context key (`{key}`), and the choice that is no condition. */\n readonly shownWhen: string\n readonly always: string\n /** What an event runs (`{event}`), and the choice that runs nothing. */\n readonly onEvent: string\n readonly runsNothing: string\n /** An action input's blank choice. */\n readonly none: string\n\n /** A command's button title, with its first key: `{label}` and `{keys}`. */\n readonly withKeys: string\n /** Keys with a name rather than a glyph or a letter, by `KeyboardEvent.key`: `{ Delete: 'Entf' }`. A key not here is its own name. */\n readonly keyNames: Readonly<Record<string, string>>\n /** Ctrl, Alt and Shift, as keys are named off a Mac. */\n readonly ctrlKey: string\n readonly altKey: string\n readonly shiftKey: string\n\n /** The toolbar, the crumbs and their first, the page. */\n readonly pageActions: string\n readonly crumbs: string\n readonly crumbPage: string\n /** The viewport buttons. */\n readonly viewports: string\n readonly wide: string\n readonly medium: string\n readonly narrow: string\n /** The preview's group, and a context key left unset. */\n readonly previewAs: string\n readonly unset: string\n /** The canvas, and what it says while the page is empty. */\n readonly canvas: string\n readonly emptyPage: string\n}\n\nexport const builderWords: BuilderWords = Object.freeze({\n panels: 'Panels',\n addPanel: 'Add',\n layersPanel: 'Layers',\n settingsPanel: 'Settings',\n palette: 'Add a block',\n addBlock: 'Add {label}',\n ungrouped: 'Blocks',\n patterns: 'Patterns',\n addsToEnd: 'Adds it to the end of the page',\n addsAfter: 'Adds it after the {label}',\n addsInside: 'Adds it inside the {label}',\n nothingHoldsIt: 'Nothing on the page can hold it yet: add a block that can first',\n cannotGoAt: 'It cannot go in or after the {label}',\n layers: 'Layers',\n properties: 'Properties',\n selectedBlock: 'Selected block',\n selectToChange: 'Select a block on the page or in the layers to change it.',\n shortcuts: 'Shortcuts, in the layers or on the page',\n treeUpDown: 'Go to the layer above or below',\n treeLeftRight: 'Close or open a layer',\n unknownBlock:\n 'This block is not in this version of the application, so its settings cannot be edited here.',\n content: 'Content',\n style: 'Style',\n visibility: 'Visibility',\n interactions: 'Interactions',\n lookDefault: 'Default',\n lookAt: '{label} at {breakpoint}',\n lookUnchanged: 'unchanged',\n shownWhen: 'Shown when {key} is',\n always: 'always',\n onEvent: 'On {event}',\n runsNothing: 'nothing',\n none: 'none',\n withKeys: '{label} ({keys})',\n keyNames: Object.freeze({}),\n ctrlKey: 'Ctrl',\n altKey: 'Alt',\n shiftKey: 'Shift',\n pageActions: 'Page actions',\n crumbs: 'Where the selection is',\n crumbPage: 'Page',\n viewports: 'Viewport',\n wide: 'Wide',\n medium: 'Medium',\n narrow: 'Narrow',\n previewAs: 'Preview as',\n unset: 'unset',\n canvas: 'Page',\n emptyPage: 'This page is empty. Begin with a block the palette offers: the others go inside it.',\n})\n\n// One resolved record per given one, so a part that reads `words` sees the same value each draw.\nconst resolved = new WeakMap<Partial<BuilderWords>, BuilderWords>()\n\n/** Words with their blanks filled: `say(w.addBlock, { label: 'Hero' })`. */\nexport const say = fillWords\n\n/** The words a view input gives, over the English ones. */\nexport const wordsOf = (given: Partial<BuilderWords> | undefined): BuilderWords => {\n if (given === undefined) return builderWords\n const known = resolved.get(given)\n if (known !== undefined) return known\n const words: BuilderWords = Object.freeze({ ...builderWords, ...given })\n resolved.set(given, words)\n return words\n}\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"words.js","names":[],"sources":["../src/words.ts"],"sourcesContent":["import { fillWords } from 'foldkit-form'\n\n/**\n * Every word the drawn Builder shows of its own, so an application can put\n * the editor in another language. Words are text; a word that takes a value\n * names it as a blank, `'Add {label}'`, so a translation puts it where its\n * language does. Text, not functions, because the words are a view input, and\n * Foldkit admits no function nested in one (`h.submodel` throws); it also lets\n * one object hold a form's words and these. The Catalog's words (a Block's\n * label and description) and the command table's labels are the\n * application's already, and are not here.\n */\nexport interface BuilderWords {\n /** The list of the narrow editor's panel tabs, and each tab. */\n readonly panels: string\n readonly addPanel: string\n readonly layersPanel: string\n readonly settingsPanel: string\n\n /** The palette, a tile (`'Add {label}'`), and its groups: Blocks given none, and the patterns. */\n readonly palette: string\n readonly addBlock: string\n readonly ungrouped: string\n readonly patterns: string\n /** Where a tile adds its Block, on its title; `{label}` is the node it goes after or inside. */\n readonly addsToEnd: string\n readonly addsAfter: string\n readonly addsInside: string\n /**\n * Why a tile adds nothing: nothing on the page can hold it yet (with nothing\n * selected, a tile goes anywhere that can), or the selected (`{label}`) cannot.\n */\n readonly nothingHoldsIt: string\n readonly cannotGoAt: string\n\n /** The layers' tree. */\n readonly layers: string\n\n /** The inspector, and what it says with nothing selected. */\n readonly properties: string\n readonly selectedBlock: string\n readonly selectToChange: string\n readonly shortcuts: string\n readonly treeUpDown: string\n readonly treeLeftRight: string\n /** A node whose Block this version of the application lacks. */\n readonly unknownBlock: string\n /** The inspector's sections. */\n readonly content: string\n readonly style: string\n readonly visibility: string\n readonly interactions: string\n /** A look: no choice, its field at a breakpoint (`{label}`, `{breakpoint}`), and a breakpoint that changes nothing. */\n readonly lookDefault: string\n readonly lookAt: string\n readonly lookUnchanged: string\n /** A condition over a context key (`{key}`), and the choice that is no condition. */\n readonly shownWhen: string\n readonly always: string\n /** What an event runs (`{event}`), and the choice that runs nothing. */\n readonly onEvent: string\n readonly runsNothing: string\n /** An action input's blank choice. */\n readonly none: string\n\n /** A command's button title, with its first key: `{label}` and `{keys}`. */\n readonly withKeys: string\n /** Keys with a name rather than a glyph or a letter, by `KeyboardEvent.key`: `{ Delete: 'Entf' }`. A key not here is its own name. */\n readonly keyNames: Readonly<Record<string, string>>\n /** Ctrl, Alt and Shift, as keys are named off a Mac. */\n readonly ctrlKey: string\n readonly altKey: string\n readonly shiftKey: string\n\n /** The toolbar, the crumbs and their first, the page. */\n readonly pageActions: string\n readonly crumbs: string\n readonly crumbPage: string\n /** The viewport buttons. */\n readonly viewports: string\n readonly wide: string\n readonly medium: string\n readonly narrow: string\n /** The preview's group, and a context key left unset. */\n readonly previewAs: string\n readonly unset: string\n /** The selected node's handle (`{label}`), and the group of commands it opens. */\n readonly moveNode: string\n readonly nodeActions: string\n /** The canvas, and what it says while the page is empty. */\n readonly canvas: string\n readonly emptyPage: string\n}\n\nexport const builderWords: BuilderWords = Object.freeze({\n panels: 'Panels',\n addPanel: 'Add',\n layersPanel: 'Layers',\n settingsPanel: 'Settings',\n palette: 'Add a block',\n addBlock: 'Add {label}',\n ungrouped: 'Blocks',\n patterns: 'Patterns',\n addsToEnd: 'Adds it to the end of the page',\n addsAfter: 'Adds it after the {label}',\n addsInside: 'Adds it inside the {label}',\n nothingHoldsIt: 'Nothing on the page can hold it yet: add a block that can first',\n cannotGoAt: 'It cannot go in or after the {label}',\n layers: 'Layers',\n properties: 'Properties',\n selectedBlock: 'Selected block',\n selectToChange: 'Select a block on the page or in the layers to change it.',\n shortcuts: 'Shortcuts, in the layers or on the page',\n treeUpDown: 'Go to the layer above or below',\n treeLeftRight: 'Close or open a layer',\n unknownBlock:\n 'This block is not in this version of the application, so its settings cannot be edited here.',\n content: 'Content',\n style: 'Style',\n visibility: 'Visibility',\n interactions: 'Interactions',\n lookDefault: 'Default',\n lookAt: '{label} at {breakpoint}',\n lookUnchanged: 'unchanged',\n shownWhen: 'Shown when {key} is',\n always: 'always',\n onEvent: 'On {event}',\n runsNothing: 'nothing',\n none: 'none',\n withKeys: '{label} ({keys})',\n keyNames: Object.freeze({}),\n ctrlKey: 'Ctrl',\n altKey: 'Alt',\n shiftKey: 'Shift',\n pageActions: 'Page actions',\n crumbs: 'Where the selection is',\n crumbPage: 'Page',\n viewports: 'Viewport',\n wide: 'Wide',\n medium: 'Medium',\n narrow: 'Narrow',\n previewAs: 'Preview as',\n unset: 'unset',\n moveNode: 'Move or change {label}',\n nodeActions: 'Actions for {label}',\n canvas: 'Page',\n emptyPage: 'This page is empty. Begin with a block the palette offers: the others go inside it.',\n})\n\n// One resolved record per given one, so a part that reads `words` sees the same value each draw.\nconst resolved = new WeakMap<Partial<BuilderWords>, BuilderWords>()\n\n/** Words with their blanks filled: `say(w.addBlock, { label: 'Hero' })`. */\nexport const say = fillWords\n\n/** The words a view input gives, over the English ones. */\nexport const wordsOf = (given: Partial<BuilderWords> | undefined): BuilderWords => {\n if (given === undefined) return builderWords\n const known = resolved.get(given)\n if (known !== undefined) return known\n const words: BuilderWords = Object.freeze({ ...builderWords, ...given })\n resolved.set(given, words)\n return words\n}\n"],"mappings":";;AA8FA,MAAa,eAA6B,OAAO,OAAO;CACtD,QAAQ;CACR,UAAU;CACV,aAAa;CACb,eAAe;CACf,SAAS;CACT,UAAU;CACV,WAAW;CACX,UAAU;CACV,WAAW;CACX,WAAW;CACX,YAAY;CACZ,gBAAgB;CAChB,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe;CACf,gBAAgB;CAChB,WAAW;CACX,YAAY;CACZ,eAAe;CACf,cACE;CACF,SAAS;CACT,OAAO;CACP,YAAY;CACZ,cAAc;CACd,aAAa;CACb,QAAQ;CACR,eAAe;CACf,WAAW;CACX,QAAQ;CACR,SAAS;CACT,aAAa;CACb,MAAM;CACN,UAAU;CACV,UAAU,OAAO,OAAO,CAAC,CAAC;CAC1B,SAAS;CACT,QAAQ;CACR,UAAU;CACV,aAAa;CACb,QAAQ;CACR,WAAW;CACX,WAAW;CACX,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,WAAW;CACX,OAAO;CACP,UAAU;CACV,aAAa;CACb,QAAQ;CACR,WAAW;AACb,CAAC;AAGD,MAAM,2BAAW,IAAI,QAA6C;;AAGlE,MAAa,MAAM;;AAGnB,MAAa,WAAW,UAA2D;CACjF,IAAI,UAAU,KAAA,GAAW,OAAO;CAChC,MAAM,QAAQ,SAAS,IAAI,KAAK;CAChC,IAAI,UAAU,KAAA,GAAW,OAAO;CAChC,MAAM,QAAsB,OAAO,OAAO;EAAE,GAAG;EAAc,GAAG;CAAM,CAAC;CACvE,SAAS,IAAI,OAAO,KAAK;CACzB,OAAO;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foldkit-mixins-builder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "The page builder drawn as accessible HTML through foldkit-mixins slots: a palette, a keyboard-driven layers tree, an inspector, and the page in edit mode.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"foldkit",
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
"foldkit": "^0.170.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"foldkit-
|
|
46
|
-
"foldkit-
|
|
47
|
-
"foldkit-
|
|
48
|
-
"foldkit-
|
|
49
|
-
"foldkit-mixins": "0.
|
|
50
|
-
"foldkit-
|
|
51
|
-
"foldkit-
|
|
45
|
+
"foldkit-form": "0.14.0",
|
|
46
|
+
"foldkit-entity": "0.18.0",
|
|
47
|
+
"foldkit-mixins": "0.26.0",
|
|
48
|
+
"foldkit-composition": "0.9.0",
|
|
49
|
+
"foldkit-mixins-form": "0.16.0",
|
|
50
|
+
"foldkit-primitives": "0.21.0",
|
|
51
|
+
"foldkit-builder": "0.9.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"effect": "
|
|
54
|
+
"effect": "4.1.4",
|
|
55
55
|
"foldkit": "0.170.0",
|
|
56
56
|
"jsdom": "30.1.3",
|
|
57
57
|
"tsdown": "^0.23.1",
|
|
58
58
|
"typescript": "7.0.2",
|
|
59
|
-
"foldkit-bundle": "0.
|
|
59
|
+
"foldkit-bundle": "0.14.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "node ../../scripts/declarations.mjs . && tsdown && node ../../scripts/declared-any.mjs .",
|