foldkit-builder 0.3.13 → 0.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/dist/{index.d.mts → index.d.ts} +8 -819
- package/dist/index.d.ts.map +1 -0
- package/dist/{index.mjs → index.js} +40 -205
- package/dist/index.js.map +1 -0
- package/dist/settings.d.ts +761 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/settings.js +134 -0
- package/dist/settings.js.map +1 -0
- package/dist/words.d.ts +61 -0
- package/dist/words.d.ts.map +1 -0
- package/dist/words.js +42 -0
- package/dist/words.js.map +1 -0
- package/package.json +14 -14
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","names":[],"sources":["../src/settings.ts"],"mappings":";;;;;;;;;;;qBA4Ba,WAAQ,OAAW,SAAS,eAAe,cAAY;;cAU9D,OAAI,cACI,QACJ,SAAS,eAAe,OAAO,OAAK,OACrC,SAAS,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AM"}
|
package/dist/settings.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { Option, Result, Schema } from "effect";
|
|
2
|
+
import { fieldsOf, spaced } from "foldkit-composition";
|
|
3
|
+
import { Form, Input } from "foldkit-form";
|
|
4
|
+
import { Entity, Words } from "foldkit-entity";
|
|
5
|
+
import { Metadata } from "foldkit-metadata";
|
|
6
|
+
// src/settings.ts
|
|
7
|
+
/**
|
|
8
|
+
* A node's values as `foldkit-form` forms: a Block's props, and the input of
|
|
9
|
+
* each action an event runs. The inspector edits a node through them. The
|
|
10
|
+
* Document owns the values; a form holds only what a field shows, including
|
|
11
|
+
* text that does not decode yet (a number typed as "1."), and each change
|
|
12
|
+
* that decodes becomes one Operation.
|
|
13
|
+
*/
|
|
14
|
+
const controlsKey = Metadata.key("foldkit-builder/controls", {
|
|
15
|
+
merge: (records) => [Object.assign({}, ...records)],
|
|
16
|
+
summarize: (record) => Object.entries(record).map(([key, control]) => `${key}: ${control.kind}`).join(", ")
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* Block metadata: the control the inspector draws a prop with, where its
|
|
20
|
+
* Schema alone does not say, as
|
|
21
|
+
* `Heading.pipe(Block.annotate(Builder.controls({ text: Input.multiline() })))`.
|
|
22
|
+
* `Input.hidden()` leaves a prop out of the inspector.
|
|
23
|
+
*/
|
|
24
|
+
const controls = (given) => controlsKey.of(given);
|
|
25
|
+
/** A prop's words: its Schema's `title`, else its key spaced, and its description. */
|
|
26
|
+
const wordsOf = (key, schema) => {
|
|
27
|
+
const { title, description } = Words.of(schema);
|
|
28
|
+
return {
|
|
29
|
+
label: Option.getOrElse(title, () => spaced(key)),
|
|
30
|
+
description
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/** A form over `fields`, named `name`, with the controls `hints` asks for. */
|
|
34
|
+
const make = (name, fields, hints) => {
|
|
35
|
+
const resolve = (key, schema) => hints[key] ?? Input.resolve(Entity.unmapped, schema);
|
|
36
|
+
const editable = Object.entries(fields).filter(([key, schema]) => resolve(key, Schema.toEncoded(schema)) !== void 0);
|
|
37
|
+
const decoders = Object.fromEntries(editable.map(([key, schema]) => [key, Schema.decodeUnknownResult(schema)]));
|
|
38
|
+
const Props = Schema.Struct(Object.fromEntries(editable.map(([key, schema]) => [key, Schema.toEncoded(schema).check(Schema.makeFilter((value) => Result.match(decoders[key](value), {
|
|
39
|
+
onSuccess: () => void 0,
|
|
40
|
+
onFailure: (error) => error.message
|
|
41
|
+
})))])));
|
|
42
|
+
const labels = Object.fromEntries(editable.map(([key, schema]) => {
|
|
43
|
+
const { label, description } = wordsOf(key, schema);
|
|
44
|
+
return [key, Form.label(label, Option.getOrUndefined(description))];
|
|
45
|
+
}));
|
|
46
|
+
const entity = Entity.define(name, Props).pipe(Entity.annotateMembers(labels));
|
|
47
|
+
const form = Form.make(name, Entity.input(entity, Props), { inputs: hints });
|
|
48
|
+
if (form.bundle.subscriptions !== void 0 || form.bundle.resources !== void 0) throw new Error(`Builder: "${name}" has a control with Subscriptions or Resources (an Input.bundle), which the inspector cannot run; give it a control that needs neither`);
|
|
49
|
+
const encodeModel = Schema.encodeSync(form.bundle.Model);
|
|
50
|
+
const decodeModel = Schema.decodeUnknownResult(form.bundle.Model);
|
|
51
|
+
const encodeMessage = Schema.encodeSync(form.bundle.Message);
|
|
52
|
+
const decodeMessage = Schema.decodeUnknownResult(form.bundle.Message, { onExcessProperty: "error" });
|
|
53
|
+
return {
|
|
54
|
+
form,
|
|
55
|
+
/** Every key the form's Schema names, edited or shown. */
|
|
56
|
+
keys: Object.keys(fields),
|
|
57
|
+
/** The props the form does not edit, labelled as its fields are, and as stored: shown, not changed. */
|
|
58
|
+
shown: (stored) => Object.entries(fields).filter(([key]) => !Object.hasOwn(decoders, key)).map(([key, schema]) => ({
|
|
59
|
+
key,
|
|
60
|
+
label: wordsOf(key, schema).label,
|
|
61
|
+
value: stored[key]
|
|
62
|
+
})),
|
|
63
|
+
/**
|
|
64
|
+
* `model` with the fields `keep` spares filled from a node's stored props.
|
|
65
|
+
* A stored prop that does not decode is shown as it is, with its error.
|
|
66
|
+
*/
|
|
67
|
+
fill: (model, stored, keep = () => false) => {
|
|
68
|
+
const keys = Object.keys(decoders).filter((key) => !keep(key));
|
|
69
|
+
const filled = form.fill(model, Object.fromEntries(keys.map((key) => [key, stored[key]]))).model;
|
|
70
|
+
return keys.filter((key) => stored[key] !== void 0 && Result.isFailure(decoders[key](stored[key]))).reduce((next, key) => form.bundle.update(next, form.Message.Validated({ key }), void 0).model, filled);
|
|
71
|
+
},
|
|
72
|
+
/** The form's Model as the Builder's Model holds it: JSON. */
|
|
73
|
+
encode: (model) => encodeModel(model),
|
|
74
|
+
/** A held form Model read back; none if it no longer fits, which a refill then replaces. */
|
|
75
|
+
decode: (held) => Result.getSuccess(decodeModel(held)),
|
|
76
|
+
encodeMessage: (message) => encodeMessage(message),
|
|
77
|
+
decodeMessage: (held) => Result.getSuccess(decodeMessage(held)),
|
|
78
|
+
/**
|
|
79
|
+
* A Message of the Bundle behind `key`'s control (an `Input.bundle`), as the
|
|
80
|
+
* form's own. Built from runtime fields, the form's type names no such key,
|
|
81
|
+
* so it is checked here: a key not edited by one throws.
|
|
82
|
+
*/
|
|
83
|
+
control: (key, message) => form.control(key).send(message),
|
|
84
|
+
/**
|
|
85
|
+
* What a new value starts from, as the Document stores it: each field's
|
|
86
|
+
* empty value where it decodes (`''`, `null`, `false`), else a number's
|
|
87
|
+
* zero or a select's first choice; a field with neither is left out. It is
|
|
88
|
+
* not checked: a zero a number's check refuses, or a field left out, makes
|
|
89
|
+
* a value the Document refuses when it is set.
|
|
90
|
+
*/
|
|
91
|
+
seed: () => {
|
|
92
|
+
const empty = form.partial(form.initial);
|
|
93
|
+
return Object.fromEntries(editable.flatMap(([key, schema]) => {
|
|
94
|
+
if (Object.hasOwn(empty, key)) return [[key, empty[key]]];
|
|
95
|
+
const control = resolve(key, Schema.toEncoded(schema));
|
|
96
|
+
if (control !== void 0 && Input.Number.is(control)) return [[key, 0]];
|
|
97
|
+
const [first] = control !== void 0 && Input.Select.is(control) ? control.data.options : [];
|
|
98
|
+
return first === void 0 ? [] : [[key, first]];
|
|
99
|
+
}));
|
|
100
|
+
},
|
|
101
|
+
/** A value from the form, as the Document stores it; none for a prop the form does not edit. */
|
|
102
|
+
stored: (key, value) => Object.hasOwn(decoders, key) ? Option.some(value) : Option.none()
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
const made = /* @__PURE__ */ new WeakMap();
|
|
106
|
+
/** A Block's props as a form, made at the first use and kept: one per Block. */
|
|
107
|
+
const settingsOf = (block) => {
|
|
108
|
+
const known = made.get(block);
|
|
109
|
+
if (known !== void 0) return known;
|
|
110
|
+
const settings = make(`${block.name}Settings`, fieldsOf(block.Props), controlsKey.get(block.metadata)[0] ?? {});
|
|
111
|
+
made.set(block, settings);
|
|
112
|
+
return settings;
|
|
113
|
+
};
|
|
114
|
+
const inputs = /* @__PURE__ */ new WeakMap();
|
|
115
|
+
/**
|
|
116
|
+
* The input an event of a Block runs an action with, as a form, made at the
|
|
117
|
+
* first use and kept. One per Block, event and action, so two events of one
|
|
118
|
+
* node that run the same action draw their fields under ids of their own.
|
|
119
|
+
*/
|
|
120
|
+
const inputOf = (block, event, action) => {
|
|
121
|
+
const name = `${block.name}-${event}-${action.name}`;
|
|
122
|
+
const known = inputs.get(action) ?? /* @__PURE__ */ new Map();
|
|
123
|
+
inputs.set(action, known);
|
|
124
|
+
const held = known.get(name);
|
|
125
|
+
if (held !== void 0) return held;
|
|
126
|
+
const settings = make(name, fieldsOf(action.input), {});
|
|
127
|
+
known.set(name, settings);
|
|
128
|
+
return settings;
|
|
129
|
+
};
|
|
130
|
+
/** The control a prop is drawn with: the Block's hint, else what its Schema says. */
|
|
131
|
+
const controlOf = (block, key, schema) => controlsKey.get(block.metadata)[0]?.[key] ?? Input.resolve(Entity.unmapped, schema);
|
|
132
|
+
export { controlOf, controls, inputOf, settingsOf };
|
|
133
|
+
|
|
134
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","names":[],"sources":["../src/settings.ts"],"sourcesContent":["/**\n * A node's values as `foldkit-form` forms: a Block's props, and the input of\n * each action an event runs. The inspector edits a node through them. The\n * Document owns the values; a form holds only what a field shows, including\n * text that does not decode yet (a number typed as \"1.\"), and each change\n * that decodes becomes one Operation.\n */\nimport { Option, Result, Schema } from 'effect'\nimport { fieldsOf, spaced, type AnyBlock, type CatalogAction } from 'foldkit-composition'\nimport { Entity, Words } from 'foldkit-entity'\nimport { Form, Input, type Control } from 'foldkit-form'\nimport { Metadata } from 'foldkit-metadata'\n\nconst controlsKey = Metadata.key<Readonly<Record<string, Control>>>('foldkit-builder/controls', {\n // One record per Block: a later annotation's prop replaces an earlier one's.\n merge: records => [Object.assign({}, ...records)],\n summarize: record =>\n Object.entries(record)\n .map(([key, control]) => `${key}: ${control.kind}`)\n .join(', '),\n})\n\n/**\n * Block metadata: the control the inspector draws a prop with, where its\n * Schema alone does not say, as\n * `Heading.pipe(Block.annotate(Builder.controls({ text: Input.multiline() })))`.\n * `Input.hidden()` leaves a prop out of the inspector.\n */\nexport const controls = (given: Readonly<Record<string, Control>>): Metadata =>\n controlsKey.of(given)\n\n/** A prop's words: its Schema's `title`, else its key spaced, and its description. */\nconst wordsOf = (key: string, schema: Schema.Top) => {\n const { title, description } = Words.of(schema)\n return { label: Option.getOrElse(title, () => spaced(key)), description }\n}\n\n/** A form over `fields`, named `name`, with the controls `hints` asks for. */\nconst make = (\n name: string,\n fields: Readonly<Record<string, Schema.Top>>,\n hints: Readonly<Record<string, Control>>,\n) => {\n const resolve = (key: string, schema: Schema.Top): Control | undefined =>\n hints[key] ?? Input.resolve(Entity.unmapped, schema)\n // A value is edited as the Document stores it, so a control fits it or not there:\n // an `Option` of an id is a picker or text; a struct, or a list that is not a\n // relation, fits none and is shown, not edited.\n const editable = Object.entries(fields).filter(\n ([key, schema]) => resolve(key, Schema.toEncoded(schema)) !== undefined,\n )\n // Checked against the whole Schema, so what it says (a brand, a length, a check\n // past a transformation, which the encoded side drops) is said at the field.\n const decoders = Object.fromEntries(\n editable.map(([key, schema]) => [\n key,\n // A Block's props are stored JSON: decoding one needs no services.\n Schema.decodeUnknownResult(schema as Schema.Codec<unknown, unknown>),\n ]),\n )\n const Props = Schema.Struct(\n Object.fromEntries(\n editable.map(([key, schema]) => [\n key,\n Schema.toEncoded(schema).check(\n Schema.makeFilter(value =>\n Result.match(decoders[key]!(value), {\n onSuccess: () => undefined,\n onFailure: error => error.message,\n }),\n ),\n ),\n ]),\n ) as Readonly<Record<string, Schema.Top>>,\n )\n // The encoded side has no words of its own to read, so they come from the prop.\n const labels = Object.fromEntries(\n editable.map(([key, schema]) => {\n const { label, description } = wordsOf(key, schema)\n return [key, Form.label(label, Option.getOrUndefined(description))]\n }),\n )\n const entity = Entity.define(name, Props).pipe(Entity.annotateMembers(labels))\n const form = Form.make(name, Entity.input(entity, Props), { inputs: hints })\n // The Builder runs a form as functions, so nothing would start these: fail here,\n // not with a picker whose popover never closes.\n if (form.bundle.subscriptions !== undefined || form.bundle.resources !== undefined)\n throw new Error(\n `Builder: \"${name}\" has a control with Subscriptions or Resources (an Input.bundle), which the inspector cannot run; give it a control that needs neither`,\n )\n const encodeModel = Schema.encodeSync(form.bundle.Model)\n const decodeModel = Schema.decodeUnknownResult(form.bundle.Model)\n const encodeMessage = Schema.encodeSync(form.bundle.Message)\n // Strict, as every boundary here: a held Message with a key its variant lacks is not one.\n const decodeMessage = Schema.decodeUnknownResult(form.bundle.Message, {\n onExcessProperty: 'error',\n })\n type FormModel = typeof form.initial\n\n return {\n form,\n /** Every key the form's Schema names, edited or shown. */\n keys: Object.keys(fields),\n /** The props the form does not edit, labelled as its fields are, and as stored: shown, not changed. */\n shown: (\n stored: Readonly<Record<string, unknown>>,\n ): ReadonlyArray<{ readonly key: string; readonly label: string; readonly value: unknown }> =>\n Object.entries(fields)\n .filter(([key]) => !Object.hasOwn(decoders, key))\n .map(([key, schema]) => ({ key, label: wordsOf(key, schema).label, value: stored[key] })),\n /**\n * `model` with the fields `keep` spares filled from a node's stored props.\n * A stored prop that does not decode is shown as it is, with its error.\n */\n fill: (\n model: FormModel,\n stored: Readonly<Record<string, unknown>>,\n keep: (key: string) => boolean = () => false,\n ): FormModel => {\n const keys = Object.keys(decoders).filter(key => !keep(key))\n const filled = form.fill(model, Object.fromEntries(keys.map(key => [key, stored[key]]))).model\n return keys\n .filter(key => stored[key] !== undefined && Result.isFailure(decoders[key]!(stored[key])))\n .reduce(\n (next, key) => form.bundle.update(next, form.Message.Validated({ key }), undefined).model,\n filled,\n )\n },\n /** The form's Model as the Builder's Model holds it: JSON. */\n encode: (model: FormModel): Schema.Json => encodeModel(model) as Schema.Json,\n /** A held form Model read back; none if it no longer fits, which a refill then replaces. */\n decode: (held: Schema.Json): Option.Option<FormModel> => Result.getSuccess(decodeModel(held)),\n encodeMessage: (message: typeof form.Message.Type): Schema.Json =>\n encodeMessage(message) as Schema.Json,\n decodeMessage: (held: Schema.Json): Option.Option<typeof form.Message.Type> =>\n Result.getSuccess(decodeMessage(held)),\n /**\n * A Message of the Bundle behind `key`'s control (an `Input.bundle`), as the\n * form's own. Built from runtime fields, the form's type names no such key,\n * so it is checked here: a key not edited by one throws.\n */\n control: (key: string, message: unknown): typeof form.Message.Type =>\n // `never`: the form's type knows no Bundle-backed key; `control` refuses a key\n // that is not one, and the Bundle drops a Message it does not take.\n form.control(key as never).send(message as never),\n /**\n * What a new value starts from, as the Document stores it: each field's\n * empty value where it decodes (`''`, `null`, `false`), else a number's\n * zero or a select's first choice; a field with neither is left out. It is\n * not checked: a zero a number's check refuses, or a field left out, makes\n * a value the Document refuses when it is set.\n */\n seed: (): Readonly<Record<string, Schema.Json>> => {\n const empty: Readonly<Record<string, unknown>> = form.partial(form.initial)\n return Object.fromEntries(\n editable.flatMap(([key, schema]): ReadonlyArray<readonly [string, Schema.Json]> => {\n if (Object.hasOwn(empty, key)) return [[key, empty[key] as Schema.Json]]\n const control = resolve(key, Schema.toEncoded(schema))\n if (control !== undefined && Input.Number.is(control)) return [[key, 0]]\n const [first] =\n control !== undefined && Input.Select.is(control) ? control.data.options : []\n return first === undefined ? [] : [[key, first]]\n }),\n )\n },\n /** A value from the form, as the Document stores it; none for a prop the form does not edit. */\n stored: (key: string, value: unknown): Option.Option<Schema.Json> =>\n Object.hasOwn(decoders, key) ? Option.some(value as Schema.Json) : Option.none(),\n }\n}\n\n/** A form over a node's values and the codecs the Builder holds it with. */\nexport type Settings = ReturnType<typeof make>\n\nconst made = new WeakMap<AnyBlock, Settings>()\n\n/** A Block's props as a form, made at the first use and kept: one per Block. */\nexport const settingsOf = (block: AnyBlock): Settings => {\n const known = made.get(block)\n if (known !== undefined) return known\n const settings = make(\n `${block.name}Settings`,\n fieldsOf(block.Props),\n controlsKey.get(block.metadata)[0] ?? {},\n )\n made.set(block, settings)\n return settings\n}\n\nconst inputs = new WeakMap<CatalogAction, Map<string, Settings>>()\n\n/**\n * The input an event of a Block runs an action with, as a form, made at the\n * first use and kept. One per Block, event and action, so two events of one\n * node that run the same action draw their fields under ids of their own.\n */\nexport const inputOf = (block: AnyBlock, event: string, action: CatalogAction): Settings => {\n const name = `${block.name}-${event}-${action.name}`\n const known = inputs.get(action) ?? new Map<string, Settings>()\n inputs.set(action, known)\n const held = known.get(name)\n if (held !== undefined) return held\n const settings = make(name, fieldsOf(action.input), {})\n known.set(name, settings)\n return settings\n}\n\n/** The control a prop is drawn with: the Block's hint, else what its Schema says. */\nexport const controlOf = (block: AnyBlock, key: string, schema: Schema.Top): Control | undefined =>\n controlsKey.get(block.metadata)[0]?.[key] ?? Input.resolve(Entity.unmapped, schema)\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAM,cAAc,SAAS,IAAuC,4BAA4B;CAE9F,QAAO,YAAW,CAAC,OAAO,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC;CAChD,YAAW,WACT,OAAO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AAiB,OAAe,WAAoC;CAC1F,MAAM,OAAO,GAAG,MAAM,KAAK,GAAG,MAAM,GAAG,OAAO;CAC9C,MAAM,QAAQ,OAAO,IAAI,MAAM,qBAAK,IAAI,IAAsB;CAC9D,OAAO,IAAI,QAAQ,KAAK;CACxB,MAAM,OAAO,MAAM,IAAI,IAAI;CAC3B,IAAI,SAAS,KAAA,GAAW,OAAO;CAC/B,MAAM,WAAW,KAAK,MAAM,SAAS,OAAO,KAAK,GAAG,CAAC,CAAC;CACtD,MAAM,IAAI,MAAM,QAAQ;CACxB,OAAO;AACT;;AAGA,MAAa,aAAa,OAAiB,KAAa,WACtD,YAAY,IAAI,MAAM,QAAQ,CAAC,CAAC,EAAE,GAAG,QAAQ,MAAM,QAAQ,OAAO,UAAU,MAAM"}
|
package/dist/words.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Builder's own words: what it says to assistive technology of each edit,
|
|
3
|
+
* its commands' labels, and the refusals it makes itself. Words are text; a
|
|
4
|
+
* word that takes a value names it as a blank (`'Moved {label}{at}'`), as a
|
|
5
|
+
* form's and a view's words do, so one object can hold them all. A Block is
|
|
6
|
+
* named by its label (`Block.words`), the Catalog's word.
|
|
7
|
+
*/
|
|
8
|
+
export interface EditWords {
|
|
9
|
+
/** Where a node is after an edit, after its name: ", 2 of 3 in Section body". Blanks `{position}`, `{count}`, `{container}`. */
|
|
10
|
+
readonly at: string;
|
|
11
|
+
/** The container of a root. */
|
|
12
|
+
readonly thePage: string;
|
|
13
|
+
/** The container of a node in a Region: the holder's `{label}` and the `{region}`. */
|
|
14
|
+
readonly inRegion: string;
|
|
15
|
+
/** An edit, said: its node's `{label}` and where it is now, `{at}`. */
|
|
16
|
+
readonly moved: string;
|
|
17
|
+
readonly added: string;
|
|
18
|
+
readonly duplicated: string;
|
|
19
|
+
/** A removal, said: the node's `{label}`. */
|
|
20
|
+
readonly removed: string;
|
|
21
|
+
readonly editedPage: string;
|
|
22
|
+
readonly undone: string;
|
|
23
|
+
readonly redone: string;
|
|
24
|
+
/** A drag that ended with nothing done: a node, or a new one from the palette. */
|
|
25
|
+
readonly notMoved: string;
|
|
26
|
+
readonly notAdded: string;
|
|
27
|
+
/** A copy and a cut, said: the node's `{label}`. */
|
|
28
|
+
readonly copied: string;
|
|
29
|
+
readonly cut: string;
|
|
30
|
+
/** The refusals the Builder makes itself: nothing to paste, as nothing copied or not a page. */
|
|
31
|
+
readonly nothingCopied: string;
|
|
32
|
+
readonly notAPage: string;
|
|
33
|
+
/** A Block that cannot be inserted: `{block}`. */
|
|
34
|
+
readonly noStartingProps: string;
|
|
35
|
+
readonly startingPropsFail: string;
|
|
36
|
+
/** A node the page does not hold, or one changed while its copy was made: `{id}`. */
|
|
37
|
+
readonly notANode: string;
|
|
38
|
+
readonly copyChanged: string;
|
|
39
|
+
/** A pattern the Catalog lacks: `{name}`. */
|
|
40
|
+
readonly unknownPattern: string;
|
|
41
|
+
/** A paste the page has no place for: its root's Block, `{label}`. */
|
|
42
|
+
readonly noPlace: string;
|
|
43
|
+
/** A refusal `apply` made: blanks `{code}` and `{message}`, by default its own message. */
|
|
44
|
+
readonly refusal: string;
|
|
45
|
+
/** The commands' labels. */
|
|
46
|
+
readonly moveUp: string;
|
|
47
|
+
readonly moveDown: string;
|
|
48
|
+
readonly moveOut: string;
|
|
49
|
+
readonly moveIn: string;
|
|
50
|
+
readonly duplicate: string;
|
|
51
|
+
readonly copy: string;
|
|
52
|
+
readonly cutCommand: string;
|
|
53
|
+
readonly delete: string;
|
|
54
|
+
readonly undo: string;
|
|
55
|
+
readonly redo: string;
|
|
56
|
+
readonly paste: string;
|
|
57
|
+
readonly editText: string;
|
|
58
|
+
readonly deselect: string;
|
|
59
|
+
}
|
|
60
|
+
export declare const editWords: EditWords;
|
|
61
|
+
//# sourceMappingURL=words.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"words.d.ts","names":[],"sources":["../src/words.ts"],"mappings":";;;;;;;iBAOiB;;WAEN;;WAEA;;WAEA;;WAEA;WACA;WACA;;WAEA;WACA;WACA;WACA;;WAEA;WACA;;WAEA;WACA;;WAGA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;;WAEA;;WAEA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;qBAGE,WAAW"}
|
package/dist/words.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// src/words.ts
|
|
2
|
+
const editWords = Object.freeze({
|
|
3
|
+
at: ", {position} of {count} in {container}",
|
|
4
|
+
thePage: "the page",
|
|
5
|
+
inRegion: "{label} {region}",
|
|
6
|
+
moved: "Moved {label}{at}",
|
|
7
|
+
added: "Added {label}{at}",
|
|
8
|
+
duplicated: "Duplicated {label}{at}",
|
|
9
|
+
removed: "Removed {label}",
|
|
10
|
+
editedPage: "Edited the page",
|
|
11
|
+
undone: "Undone",
|
|
12
|
+
redone: "Redone",
|
|
13
|
+
notMoved: "Not moved",
|
|
14
|
+
notAdded: "Not added",
|
|
15
|
+
copied: "Copied {label}",
|
|
16
|
+
cut: "Cut {label}",
|
|
17
|
+
nothingCopied: "Nothing has been copied",
|
|
18
|
+
notAPage: "The clipboard holds no part of a page",
|
|
19
|
+
noStartingProps: "\"{block}\" has no starting props, so it cannot be inserted",
|
|
20
|
+
startingPropsFail: "\"{block}\"'s starting props do not encode",
|
|
21
|
+
notANode: "\"{id}\" is not a node",
|
|
22
|
+
unknownPattern: "the Catalog has no pattern \"{name}\"",
|
|
23
|
+
noPlace: "There is no place on this page for a {label}",
|
|
24
|
+
copyChanged: "\"{id}\" changed while its copy was being made; copy it again",
|
|
25
|
+
refusal: "{message}",
|
|
26
|
+
moveUp: "Move up",
|
|
27
|
+
moveDown: "Move down",
|
|
28
|
+
moveOut: "Move out",
|
|
29
|
+
moveIn: "Move in",
|
|
30
|
+
duplicate: "Duplicate",
|
|
31
|
+
copy: "Copy",
|
|
32
|
+
cutCommand: "Cut",
|
|
33
|
+
delete: "Delete",
|
|
34
|
+
undo: "Undo",
|
|
35
|
+
redo: "Redo",
|
|
36
|
+
paste: "Paste",
|
|
37
|
+
editText: "Edit its text",
|
|
38
|
+
deselect: "Select nothing"
|
|
39
|
+
});
|
|
40
|
+
export { editWords };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=words.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"words.js","names":[],"sources":["../src/words.ts"],"sourcesContent":["/**\n * The Builder's own words: what it says to assistive technology of each edit,\n * its commands' labels, and the refusals it makes itself. Words are text; a\n * word that takes a value names it as a blank (`'Moved {label}{at}'`), as a\n * form's and a view's words do, so one object can hold them all. A Block is\n * named by its label (`Block.words`), the Catalog's word.\n */\nexport interface EditWords {\n /** Where a node is after an edit, after its name: \", 2 of 3 in Section body\". Blanks `{position}`, `{count}`, `{container}`. */\n readonly at: string\n /** The container of a root. */\n readonly thePage: string\n /** The container of a node in a Region: the holder's `{label}` and the `{region}`. */\n readonly inRegion: string\n /** An edit, said: its node's `{label}` and where it is now, `{at}`. */\n readonly moved: string\n readonly added: string\n readonly duplicated: string\n /** A removal, said: the node's `{label}`. */\n readonly removed: string\n readonly editedPage: string\n readonly undone: string\n readonly redone: string\n /** A drag that ended with nothing done: a node, or a new one from the palette. */\n readonly notMoved: string\n readonly notAdded: string\n /** A copy and a cut, said: the node's `{label}`. */\n readonly copied: string\n readonly cut: string\n\n /** The refusals the Builder makes itself: nothing to paste, as nothing copied or not a page. */\n readonly nothingCopied: string\n readonly notAPage: string\n /** A Block that cannot be inserted: `{block}`. */\n readonly noStartingProps: string\n readonly startingPropsFail: string\n /** A node the page does not hold, or one changed while its copy was made: `{id}`. */\n readonly notANode: string\n readonly copyChanged: string\n /** A pattern the Catalog lacks: `{name}`. */\n readonly unknownPattern: string\n /** A paste the page has no place for: its root's Block, `{label}`. */\n readonly noPlace: string\n /** A refusal `apply` made: blanks `{code}` and `{message}`, by default its own message. */\n readonly refusal: string\n\n /** The commands' labels. */\n readonly moveUp: string\n readonly moveDown: string\n readonly moveOut: string\n readonly moveIn: string\n readonly duplicate: string\n readonly copy: string\n readonly cutCommand: string\n readonly delete: string\n readonly undo: string\n readonly redo: string\n readonly paste: string\n readonly editText: string\n readonly deselect: string\n}\n\nexport const editWords: EditWords = Object.freeze({\n at: ', {position} of {count} in {container}',\n thePage: 'the page',\n inRegion: '{label} {region}',\n moved: 'Moved {label}{at}',\n added: 'Added {label}{at}',\n duplicated: 'Duplicated {label}{at}',\n removed: 'Removed {label}',\n editedPage: 'Edited the page',\n undone: 'Undone',\n redone: 'Redone',\n notMoved: 'Not moved',\n notAdded: 'Not added',\n copied: 'Copied {label}',\n cut: 'Cut {label}',\n nothingCopied: 'Nothing has been copied',\n notAPage: 'The clipboard holds no part of a page',\n noStartingProps: '\"{block}\" has no starting props, so it cannot be inserted',\n startingPropsFail: '\"{block}\"\\'s starting props do not encode',\n notANode: '\"{id}\" is not a node',\n unknownPattern: 'the Catalog has no pattern \"{name}\"',\n noPlace: 'There is no place on this page for a {label}',\n copyChanged: '\"{id}\" changed while its copy was being made; copy it again',\n refusal: '{message}',\n moveUp: 'Move up',\n moveDown: 'Move down',\n moveOut: 'Move out',\n moveIn: 'Move in',\n duplicate: 'Duplicate',\n copy: 'Copy',\n cutCommand: 'Cut',\n delete: 'Delete',\n undo: 'Undo',\n redo: 'Redo',\n paste: 'Paste',\n editText: 'Edit its text',\n deselect: 'Select nothing',\n})\n"],"mappings":";AA8DA,MAAa,YAAuB,OAAO,OAAO;CAChD,IAAI;CACJ,SAAS;CACT,UAAU;CACV,OAAO;CACP,OAAO;CACP,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,QAAQ;CACR,QAAQ;CACR,UAAU;CACV,UAAU;CACV,QAAQ;CACR,KAAK;CACL,eAAe;CACf,UAAU;CACV,iBAAiB;CACjB,mBAAmB;CACnB,UAAU;CACV,gBAAgB;CAChB,SAAS;CACT,aAAa;CACb,SAAS;CACT,QAAQ;CACR,UAAU;CACV,SAAS;CACT,QAAQ;CACR,WAAW;CACX,MAAM;CACN,YAAY;CACZ,QAAQ;CACR,MAAM;CACN,MAAM;CACN,OAAO;CACP,UAAU;CACV,UAAU;AACZ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foldkit-builder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "The page builder's state for Foldkit Plus: a Bundle that edits a foldkit-composition Document by Operations, with selection and undo, as one form key's control.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"foldkit",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
31
|
"foldkit-plus:source": "./src/index.ts",
|
|
32
|
-
"types": "./dist/index.d.
|
|
33
|
-
"import": "./dist/index.
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"import": "./dist/index.js"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
@@ -39,25 +39,25 @@
|
|
|
39
39
|
"LICENSE"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"effect": "^4.
|
|
43
|
-
"foldkit": "^0.
|
|
42
|
+
"effect": "^4.1.0",
|
|
43
|
+
"foldkit": "^0.170.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"foldkit-composition": "0.
|
|
47
|
-
"foldkit-entity": "0.
|
|
48
|
-
"foldkit-form": "0.8.0",
|
|
46
|
+
"foldkit-composition": "0.4.0",
|
|
47
|
+
"foldkit-entity": "0.14.0",
|
|
49
48
|
"foldkit-metadata": "0.1.0",
|
|
50
|
-
"foldkit-
|
|
51
|
-
"foldkit-
|
|
49
|
+
"foldkit-mixins": "0.21.0",
|
|
50
|
+
"foldkit-primitives": "0.16.0",
|
|
51
|
+
"foldkit-bundle": "0.9.0",
|
|
52
|
+
"foldkit-form": "0.9.0"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"effect": "^4.0
|
|
55
|
-
"foldkit": "0.
|
|
55
|
+
"effect": "^4.1.0",
|
|
56
|
+
"foldkit": "0.170.0",
|
|
56
57
|
"jsdom": "30.1.3",
|
|
57
58
|
"tsdown": "^0.23.1",
|
|
58
59
|
"typescript": "7.0.2",
|
|
59
|
-
"foldkit-mixins-form": "0.
|
|
60
|
-
"foldkit-mixins": "0.19.1"
|
|
60
|
+
"foldkit-mixins-form": "0.11.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsdown",
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/settings.ts","../src/words.ts","../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;cA4Ba,WAAQ,OAAW,SAAS,eAAe,cAAY;;cAU9D,OAAI,cACI,QACJ,SAAS,eAAe,OAAO,OAAK,OACrC,SAAS,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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