@graview/core 0.1.28 → 0.1.29
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 +17 -0
- package/dist/amount-input.d.ts +21 -0
- package/dist/amount-input.d.ts.map +1 -0
- package/dist/amount-input.js +96 -0
- package/dist/amount-input.js.map +1 -0
- package/dist/answer-seen.d.ts +38 -0
- package/dist/answer-seen.d.ts.map +1 -0
- package/dist/answer-seen.js +122 -0
- package/dist/answer-seen.js.map +1 -0
- package/dist/app-places.d.ts +56 -0
- package/dist/app-places.d.ts.map +1 -0
- package/dist/app-places.js +153 -0
- package/dist/app-places.js.map +1 -0
- package/dist/arrange.d.ts +2 -2
- package/dist/arrange.d.ts.map +1 -1
- package/dist/arrange.js +2 -2
- package/dist/arrange.js.map +1 -1
- package/dist/arrangement-words.d.ts +3 -0
- package/dist/arrangement-words.d.ts.map +1 -0
- package/dist/arrangement-words.js +50 -0
- package/dist/arrangement-words.js.map +1 -0
- package/dist/arrangement.d.ts +25 -3
- package/dist/arrangement.d.ts.map +1 -1
- package/dist/arrangement.js +36 -32
- package/dist/arrangement.js.map +1 -1
- package/dist/arranging.d.ts.map +1 -1
- package/dist/arranging.js +19 -8
- package/dist/arranging.js.map +1 -1
- package/dist/bind.d.ts +3 -0
- package/dist/bind.d.ts.map +1 -1
- package/dist/bind.js.map +1 -1
- package/dist/capabilities.js +1 -1
- package/dist/capabilities.js.map +1 -1
- package/dist/check.d.ts +3 -0
- package/dist/check.d.ts.map +1 -1
- package/dist/check.js +3 -0
- package/dist/check.js.map +1 -1
- package/dist/city.d.ts +58 -50
- package/dist/city.d.ts.map +1 -1
- package/dist/city.js +160 -147
- package/dist/city.js.map +1 -1
- package/dist/cli/check/brand.js +1 -1
- package/dist/cli/check/brand.js.map +1 -1
- package/dist/cli/check/clock-rules.d.ts +4 -0
- package/dist/cli/check/clock-rules.d.ts.map +1 -0
- package/dist/cli/check/clock-rules.js +26 -0
- package/dist/cli/check/clock-rules.js.map +1 -0
- package/dist/cli/check/field-sight.d.ts +11 -0
- package/dist/cli/check/field-sight.d.ts.map +1 -0
- package/dist/cli/check/field-sight.js +113 -0
- package/dist/cli/check/field-sight.js.map +1 -0
- package/dist/cli/check/index.d.ts +2 -0
- package/dist/cli/check/index.d.ts.map +1 -1
- package/dist/cli/check/index.js +2 -0
- package/dist/cli/check/index.js.map +1 -1
- package/dist/cli/check/lenses.d.ts +1 -1
- package/dist/cli/check/lenses.d.ts.map +1 -1
- package/dist/cli/check/lenses.js +43 -2
- package/dist/cli/check/lenses.js.map +1 -1
- package/dist/cli/check/relations.d.ts.map +1 -1
- package/dist/cli/check/relations.js +2 -1
- package/dist/cli/check/relations.js.map +1 -1
- package/dist/cli/check.d.ts.map +1 -1
- package/dist/cli/check.js +7 -4
- package/dist/cli/check.js.map +1 -1
- package/dist/cli/describe.d.ts.map +1 -1
- package/dist/cli/describe.js +44 -3
- package/dist/cli/describe.js.map +1 -1
- package/dist/cli/docs.d.ts.map +1 -1
- package/dist/cli/docs.js +4 -3
- package/dist/cli/docs.js.map +1 -1
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/types.js +10 -1
- package/dist/cli/types.js.map +1 -1
- package/dist/clock-readers.d.ts +18 -0
- package/dist/clock-readers.d.ts.map +1 -0
- package/dist/clock-readers.js +70 -0
- package/dist/clock-readers.js.map +1 -0
- package/dist/clock.d.ts +30 -0
- package/dist/clock.d.ts.map +1 -0
- package/dist/clock.js +41 -0
- package/dist/clock.js.map +1 -0
- package/dist/columns.d.ts.map +1 -1
- package/dist/columns.js +2 -1
- package/dist/columns.js.map +1 -1
- package/dist/conformance/fixtures.d.ts.map +1 -1
- package/dist/conformance/fixtures.js +326 -43
- package/dist/conformance/fixtures.js.map +1 -1
- package/dist/days.d.ts +53 -4
- package/dist/days.d.ts.map +1 -1
- package/dist/days.js +136 -16
- package/dist/days.js.map +1 -1
- package/dist/describe.d.ts +1 -0
- package/dist/describe.d.ts.map +1 -1
- package/dist/describe.js +1 -0
- package/dist/describe.js.map +1 -1
- package/dist/document/act-findings.d.ts.map +1 -1
- package/dist/document/act-findings.js +13 -3
- package/dist/document/act-findings.js.map +1 -1
- package/dist/document/amount.d.ts +4 -0
- package/dist/document/amount.d.ts.map +1 -0
- package/dist/document/amount.js +22 -0
- package/dist/document/amount.js.map +1 -0
- package/dist/document/block-context.d.ts.map +1 -1
- package/dist/document/block-context.js +1 -0
- package/dist/document/block-context.js.map +1 -1
- package/dist/document/blocks.d.ts +13 -3
- package/dist/document/blocks.d.ts.map +1 -1
- package/dist/document/blocks.js +56 -12
- package/dist/document/blocks.js.map +1 -1
- package/dist/document/compile-checked.d.ts.map +1 -1
- package/dist/document/compile-checked.js +3 -2
- package/dist/document/compile-checked.js.map +1 -1
- package/dist/document/compile.d.ts.map +1 -1
- package/dist/document/compile.js +30 -7
- package/dist/document/compile.js.map +1 -1
- package/dist/document/compiled.d.ts +4 -2
- package/dist/document/compiled.d.ts.map +1 -1
- package/dist/document/compiled.js +50 -19
- package/dist/document/compiled.js.map +1 -1
- package/dist/document/describe-coverage.d.ts.map +1 -1
- package/dist/document/describe-coverage.js +2 -1
- package/dist/document/describe-coverage.js.map +1 -1
- package/dist/document/describe-place.d.ts +6 -2
- package/dist/document/describe-place.d.ts.map +1 -1
- package/dist/document/describe-place.js +14 -8
- package/dist/document/describe-place.js.map +1 -1
- package/dist/document/diff.d.ts +2 -0
- package/dist/document/diff.d.ts.map +1 -1
- package/dist/document/diff.js +34 -6
- package/dist/document/diff.js.map +1 -1
- package/dist/document/durations.d.ts +8 -0
- package/dist/document/durations.d.ts.map +1 -0
- package/dist/document/durations.js +82 -0
- package/dist/document/durations.js.map +1 -0
- package/dist/document/edit.d.ts +1 -1
- package/dist/document/edit.d.ts.map +1 -1
- package/dist/document/edit.js +195 -22
- package/dist/document/edit.js.map +1 -1
- package/dist/document/expr/evaluate.d.ts +1 -1
- package/dist/document/expr/evaluate.d.ts.map +1 -1
- package/dist/document/expr/evaluate.js +17 -4
- package/dist/document/expr/evaluate.js.map +1 -1
- package/dist/document/field-spec.d.ts.map +1 -1
- package/dist/document/field-spec.js +15 -1
- package/dist/document/field-spec.js.map +1 -1
- package/dist/document/format-findings.d.ts +4 -0
- package/dist/document/format-findings.d.ts.map +1 -0
- package/dist/document/format-findings.js +39 -0
- package/dist/document/format-findings.js.map +1 -0
- package/dist/document/format-rules.d.ts +8 -0
- package/dist/document/format-rules.d.ts.map +1 -0
- package/dist/document/format-rules.js +19 -0
- package/dist/document/format-rules.js.map +1 -0
- package/dist/document/format-words.d.ts +9 -0
- package/dist/document/format-words.d.ts.map +1 -0
- package/dist/document/format-words.js +29 -0
- package/dist/document/format-words.js.map +1 -0
- package/dist/document/graview-template.d.ts +2 -2
- package/dist/document/migrate.d.ts +1 -0
- package/dist/document/migrate.d.ts.map +1 -1
- package/dist/document/migrate.js +45 -1
- package/dist/document/migrate.js.map +1 -1
- package/dist/document/money.d.ts +14 -0
- package/dist/document/money.d.ts.map +1 -0
- package/dist/document/money.js +14 -0
- package/dist/document/money.js.map +1 -0
- package/dist/document/policy-words.d.ts +2 -0
- package/dist/document/policy-words.d.ts.map +1 -1
- package/dist/document/policy-words.js +19 -4
- package/dist/document/policy-words.js.map +1 -1
- package/dist/document/rule-line.d.ts.map +1 -1
- package/dist/document/rule-line.js +16 -12
- package/dist/document/rule-line.js.map +1 -1
- package/dist/document/rules.d.ts.map +1 -1
- package/dist/document/rules.js +6 -5
- package/dist/document/rules.js.map +1 -1
- package/dist/document/schema.d.ts +62 -19
- package/dist/document/schema.d.ts.map +1 -1
- package/dist/document/schema.js +30 -4
- package/dist/document/schema.js.map +1 -1
- package/dist/document/template-parse.d.ts.map +1 -1
- package/dist/document/template-parse.js +9 -2
- package/dist/document/template-parse.js.map +1 -1
- package/dist/document/template.d.ts +3 -13
- package/dist/document/template.d.ts.map +1 -1
- package/dist/document/template.js +24 -22
- package/dist/document/template.js.map +1 -1
- package/dist/document/thumbnail.d.ts.map +1 -1
- package/dist/document/thumbnail.js +4 -3
- package/dist/document/thumbnail.js.map +1 -1
- package/dist/document/to-document.d.ts +0 -1
- package/dist/document/to-document.d.ts.map +1 -1
- package/dist/document/to-document.js +19 -2
- package/dist/document/to-document.js.map +1 -1
- package/dist/document/view-specs.d.ts.map +1 -1
- package/dist/document/view-specs.js +3 -0
- package/dist/document/view-specs.js.map +1 -1
- package/dist/document/views.d.ts +2 -0
- package/dist/document/views.d.ts.map +1 -1
- package/dist/document/views.js +18 -6
- package/dist/document/views.js.map +1 -1
- package/dist/document.schema.json +63 -6
- package/dist/excerpt-of.d.ts +14 -0
- package/dist/excerpt-of.d.ts.map +1 -0
- package/dist/excerpt-of.js +120 -0
- package/dist/excerpt-of.js.map +1 -0
- package/dist/excerpt.d.ts +9 -0
- package/dist/excerpt.d.ts.map +1 -0
- package/dist/excerpt.js +43 -0
- package/dist/excerpt.js.map +1 -0
- package/dist/field-sight.d.ts +33 -0
- package/dist/field-sight.d.ts.map +1 -0
- package/dist/field-sight.js +313 -0
- package/dist/field-sight.js.map +1 -0
- package/dist/forms.d.ts +1 -0
- package/dist/forms.d.ts.map +1 -1
- package/dist/forms.js +1 -0
- package/dist/forms.js.map +1 -1
- package/dist/graph/archived.d.ts +25 -0
- package/dist/graph/archived.d.ts.map +1 -0
- package/dist/graph/archived.js +16 -0
- package/dist/graph/archived.js.map +1 -0
- package/dist/graph/diff.d.ts.map +1 -1
- package/dist/graph/diff.js +2 -1
- package/dist/graph/diff.js.map +1 -1
- package/dist/graph/graph.d.ts +37 -13
- package/dist/graph/graph.d.ts.map +1 -1
- package/dist/graph/graph.js +86 -40
- package/dist/graph/graph.js.map +1 -1
- package/dist/graph/tracked.d.ts +8 -8
- package/dist/graph/tracked.d.ts.map +1 -1
- package/dist/graph/tracked.js +15 -20
- package/dist/graph/tracked.js.map +1 -1
- package/dist/graph/types.d.ts +16 -8
- package/dist/graph/types.d.ts.map +1 -1
- package/dist/graph/types.js.map +1 -1
- package/dist/import/coerce.d.ts +45 -0
- package/dist/import/coerce.d.ts.map +1 -0
- package/dist/import/coerce.js +252 -0
- package/dist/import/coerce.js.map +1 -0
- package/dist/import/csv.d.ts +16 -0
- package/dist/import/csv.d.ts.map +1 -0
- package/dist/import/csv.js +77 -0
- package/dist/import/csv.js.map +1 -0
- package/dist/import/index.d.ts +17 -0
- package/dist/import/index.d.ts.map +1 -0
- package/dist/import/index.js +13 -0
- package/dist/import/index.js.map +1 -0
- package/dist/import/mapping.d.ts +99 -0
- package/dist/import/mapping.d.ts.map +1 -0
- package/dist/import/mapping.js +182 -0
- package/dist/import/mapping.js.map +1 -0
- package/dist/import/rows.d.ts +116 -0
- package/dist/import/rows.d.ts.map +1 -0
- package/dist/import/rows.js +584 -0
- package/dist/import/rows.js.map +1 -0
- package/dist/index.d.ts +38 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -16
- package/dist/index.js.map +1 -1
- package/dist/invariants/engine.d.ts +5 -1
- package/dist/invariants/engine.d.ts.map +1 -1
- package/dist/invariants/engine.js +4 -3
- package/dist/invariants/engine.js.map +1 -1
- package/dist/invariants/types.d.ts +18 -3
- package/dist/invariants/types.d.ts.map +1 -1
- package/dist/json-schema.d.ts +1 -0
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +2 -0
- package/dist/json-schema.js.map +1 -1
- package/dist/labels.d.ts.map +1 -1
- package/dist/labels.js +2 -1
- package/dist/labels.js.map +1 -1
- package/dist/lines.d.ts +1 -0
- package/dist/lines.d.ts.map +1 -1
- package/dist/lines.js +5 -3
- package/dist/lines.js.map +1 -1
- package/dist/markdown.d.ts +102 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/markdown.js +460 -0
- package/dist/markdown.js.map +1 -0
- package/dist/mutations/arg-shape.d.ts +95 -0
- package/dist/mutations/arg-shape.d.ts.map +1 -0
- package/dist/mutations/arg-shape.js +101 -0
- package/dist/mutations/arg-shape.js.map +1 -0
- package/dist/mutations/define-mutation.d.ts +48 -2
- package/dist/mutations/define-mutation.d.ts.map +1 -1
- package/dist/mutations/define-mutation.js +103 -36
- package/dist/mutations/define-mutation.js.map +1 -1
- package/dist/mutations/derive-edits.d.ts +16 -1
- package/dist/mutations/derive-edits.d.ts.map +1 -1
- package/dist/mutations/derive-edits.js +67 -28
- package/dist/mutations/derive-edits.js.map +1 -1
- package/dist/mutations/derive-repeats.d.ts +8 -0
- package/dist/mutations/derive-repeats.d.ts.map +1 -0
- package/dist/mutations/derive-repeats.js +118 -0
- package/dist/mutations/derive-repeats.js.map +1 -0
- package/dist/mutations/derived-names.d.ts +20 -0
- package/dist/mutations/derived-names.d.ts.map +1 -0
- package/dist/mutations/derived-names.js +19 -0
- package/dist/mutations/derived-names.js.map +1 -0
- package/dist/mutations/form.d.ts +21 -1
- package/dist/mutations/form.d.ts.map +1 -1
- package/dist/mutations/form.js +19 -2
- package/dist/mutations/form.js.map +1 -1
- package/dist/mutations/invalid-arguments.d.ts +14 -0
- package/dist/mutations/invalid-arguments.d.ts.map +1 -0
- package/dist/mutations/invalid-arguments.js +18 -0
- package/dist/mutations/invalid-arguments.js.map +1 -0
- package/dist/mutations/keep-link.d.ts +27 -0
- package/dist/mutations/keep-link.d.ts.map +1 -0
- package/dist/mutations/keep-link.js +56 -0
- package/dist/mutations/keep-link.js.map +1 -0
- package/dist/mutations/kept-arguments.d.ts +26 -0
- package/dist/mutations/kept-arguments.d.ts.map +1 -0
- package/dist/mutations/kept-arguments.js +77 -0
- package/dist/mutations/kept-arguments.js.map +1 -0
- package/dist/mutations/node-ref.d.ts +0 -80
- package/dist/mutations/node-ref.d.ts.map +1 -1
- package/dist/mutations/node-ref.js +0 -93
- package/dist/mutations/node-ref.js.map +1 -1
- package/dist/mutations/types.d.ts +17 -1
- package/dist/mutations/types.d.ts.map +1 -1
- package/dist/mutations/words.d.ts +0 -13
- package/dist/mutations/words.d.ts.map +1 -1
- package/dist/mutations/words.js +1 -12
- package/dist/mutations/words.js.map +1 -1
- package/dist/ops/kept-fields.d.ts +7 -0
- package/dist/ops/kept-fields.d.ts.map +1 -0
- package/dist/ops/kept-fields.js +24 -0
- package/dist/ops/kept-fields.js.map +1 -0
- package/dist/ops/lineage.d.ts +37 -0
- package/dist/ops/lineage.d.ts.map +1 -0
- package/dist/ops/lineage.js +26 -0
- package/dist/ops/lineage.js.map +1 -0
- package/dist/ops/log.d.ts.map +1 -1
- package/dist/ops/log.js +1 -0
- package/dist/ops/log.js.map +1 -1
- package/dist/ops/provenance.d.ts +68 -0
- package/dist/ops/provenance.d.ts.map +1 -0
- package/dist/ops/provenance.js +83 -0
- package/dist/ops/provenance.js.map +1 -0
- package/dist/ops/types.d.ts +25 -0
- package/dist/ops/types.d.ts.map +1 -1
- package/dist/ops/withheld.d.ts +25 -2
- package/dist/ops/withheld.d.ts.map +1 -1
- package/dist/ops/withheld.js +6 -15
- package/dist/ops/withheld.js.map +1 -1
- package/dist/permissions/policy.d.ts +6 -1
- package/dist/permissions/policy.d.ts.map +1 -1
- package/dist/permissions/policy.js +29 -9
- package/dist/permissions/policy.js.map +1 -1
- package/dist/permissions/sight.d.ts +40 -2
- package/dist/permissions/sight.d.ts.map +1 -1
- package/dist/permissions/sight.js +25 -2
- package/dist/permissions/sight.js.map +1 -1
- package/dist/permissions/types.d.ts +21 -0
- package/dist/permissions/types.d.ts.map +1 -1
- package/dist/permissions/types.js.map +1 -1
- package/dist/places.d.ts +0 -49
- package/dist/places.d.ts.map +1 -1
- package/dist/places.js +2 -141
- package/dist/places.js.map +1 -1
- package/dist/provenance.d.ts +14 -0
- package/dist/provenance.d.ts.map +1 -0
- package/dist/provenance.js +13 -0
- package/dist/provenance.js.map +1 -0
- package/dist/repeat-words.d.ts +13 -0
- package/dist/repeat-words.d.ts.map +1 -0
- package/dist/repeat-words.js +56 -0
- package/dist/repeat-words.js.map +1 -0
- package/dist/repeat.d.ts +59 -0
- package/dist/repeat.d.ts.map +1 -0
- package/dist/repeat.js +155 -0
- package/dist/repeat.js.map +1 -0
- package/dist/scaffold/project.d.ts.map +1 -1
- package/dist/scaffold/project.js +13 -0
- package/dist/scaffold/project.js.map +1 -1
- package/dist/scaffold/ui.js +2 -2
- package/dist/scene-districts.d.ts +2 -1
- package/dist/scene-districts.d.ts.map +1 -1
- package/dist/scene-districts.js +2 -1
- package/dist/scene-districts.js.map +1 -1
- package/dist/scene.d.ts +4 -2
- package/dist/scene.d.ts.map +1 -1
- package/dist/scene.js +2 -1
- package/dist/scene.js.map +1 -1
- package/dist/schema/amount-mark.d.ts +13 -0
- package/dist/schema/amount-mark.d.ts.map +1 -0
- package/dist/schema/amount-mark.js +20 -0
- package/dist/schema/amount-mark.js.map +1 -0
- package/dist/schema/amount-words.d.ts +12 -0
- package/dist/schema/amount-words.d.ts.map +1 -0
- package/dist/schema/amount-words.js +31 -0
- package/dist/schema/amount-words.js.map +1 -0
- package/dist/schema/app-link-field.d.ts +4 -0
- package/dist/schema/app-link-field.d.ts.map +1 -0
- package/dist/schema/app-link-field.js +19 -0
- package/dist/schema/app-link-field.js.map +1 -0
- package/dist/schema/app-link.d.ts +41 -0
- package/dist/schema/app-link.d.ts.map +1 -0
- package/dist/schema/app-link.js +40 -0
- package/dist/schema/app-link.js.map +1 -0
- package/dist/schema/define-node.d.ts +25 -94
- package/dist/schema/define-node.d.ts.map +1 -1
- package/dist/schema/define-node.js +3 -247
- package/dist/schema/define-node.js.map +1 -1
- package/dist/schema/field-words.d.ts +45 -0
- package/dist/schema/field-words.d.ts.map +1 -0
- package/dist/schema/field-words.js +124 -0
- package/dist/schema/field-words.js.map +1 -0
- package/dist/schema/json-schema.d.ts +6 -1
- package/dist/schema/json-schema.d.ts.map +1 -1
- package/dist/schema/json-schema.js +83 -2
- package/dist/schema/json-schema.js.map +1 -1
- package/dist/schema/markdown-field.d.ts +4 -0
- package/dist/schema/markdown-field.d.ts.map +1 -0
- package/dist/schema/markdown-field.js +20 -0
- package/dist/schema/markdown-field.js.map +1 -0
- package/dist/schema/markdown.d.ts +6 -0
- package/dist/schema/markdown.d.ts.map +1 -0
- package/dist/schema/markdown.js +27 -0
- package/dist/schema/markdown.js.map +1 -0
- package/dist/schema/reading.d.ts +86 -0
- package/dist/schema/reading.d.ts.map +1 -0
- package/dist/schema/reading.js +270 -0
- package/dist/schema/reading.js.map +1 -0
- package/dist/schema/repeat-field.d.ts +5 -0
- package/dist/schema/repeat-field.d.ts.map +1 -0
- package/dist/schema/repeat-field.js +20 -0
- package/dist/schema/repeat-field.js.map +1 -0
- package/dist/schema/schema.d.ts.map +1 -1
- package/dist/schema/schema.js +5 -1
- package/dist/schema/schema.js.map +1 -1
- package/dist/schema/to-json-schema.d.ts +14 -0
- package/dist/schema/to-json-schema.d.ts.map +1 -0
- package/dist/schema/to-json-schema.js +616 -0
- package/dist/schema/to-json-schema.js.map +1 -0
- package/dist/schema/typed-field-builders.d.ts +8 -0
- package/dist/schema/typed-field-builders.d.ts.map +1 -0
- package/dist/schema/typed-field-builders.js +30 -0
- package/dist/schema/typed-field-builders.js.map +1 -0
- package/dist/schema/typed-field-of.d.ts +4 -0
- package/dist/schema/typed-field-of.d.ts.map +1 -0
- package/dist/schema/typed-field-of.js +14 -0
- package/dist/schema/typed-field-of.js.map +1 -0
- package/dist/schema/typed-fields.d.ts +11 -0
- package/dist/schema/typed-fields.d.ts.map +1 -0
- package/dist/schema/typed-fields.js +16 -0
- package/dist/schema/typed-fields.js.map +1 -0
- package/dist/schema/types.d.ts +14 -0
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/schema/value-words.d.ts +21 -0
- package/dist/schema/value-words.d.ts.map +1 -0
- package/dist/schema/value-words.js +32 -0
- package/dist/schema/value-words.js.map +1 -0
- package/dist/search.d.ts +91 -4
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +288 -53
- package/dist/search.js.map +1 -1
- package/dist/seat.d.ts +19 -0
- package/dist/seat.d.ts.map +1 -0
- package/dist/seat.js +19 -0
- package/dist/seat.js.map +1 -0
- package/dist/seen.d.ts +15 -33
- package/dist/seen.d.ts.map +1 -1
- package/dist/seen.js +44 -135
- package/dist/seen.js.map +1 -1
- package/dist/store.d.ts +46 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +121 -22
- package/dist/store.js.map +1 -1
- package/dist/theme/types.d.ts +7 -1
- package/dist/theme/types.d.ts.map +1 -1
- package/dist/theme/types.js.map +1 -1
- package/dist/typed.d.ts +12 -3
- package/dist/typed.d.ts.map +1 -1
- package/dist/typed.js.map +1 -1
- package/dist/validate-graph.d.ts.map +1 -1
- package/dist/validate-graph.js +3 -10
- package/dist/validate-graph.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/views/types.d.ts +57 -8
- package/dist/views/types.d.ts.map +1 -1
- package/dist/views/types.js +22 -3
- package/dist/views/types.js.map +1 -1
- package/dist/village.d.ts +63 -0
- package/dist/village.d.ts.map +1 -0
- package/dist/village.js +143 -0
- package/dist/village.js.map +1 -0
- package/dist/watched.d.ts +12 -45
- package/dist/watched.d.ts.map +1 -1
- package/dist/watched.js +7 -119
- package/dist/watched.js.map +1 -1
- package/dist/words.d.ts +33 -0
- package/dist/words.d.ts.map +1 -0
- package/dist/words.js +36 -0
- package/dist/words.js.map +1 -0
- package/package.json +37 -2
package/dist/village.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
const byId = (a, b) => (a < b ? -1 : a > b ? 1 : 0);
|
|
2
|
+
/*
|
|
3
|
+
* WHAT STANDS ON THE GROUND: the roads between the plots, and the blocks on
|
|
4
|
+
* each — a module of its own beside the map (`city.ts`), because the scene
|
|
5
|
+
* fetches the ground only when it first rises, and the map is laid out
|
|
6
|
+
* before it does.
|
|
7
|
+
*/
|
|
8
|
+
/** The roads between placed kinds: one per pair joined by any declared edge. */
|
|
9
|
+
export function roadsOf(schema, map) {
|
|
10
|
+
const kinds = [...map.keys()].sort(byId);
|
|
11
|
+
const roads = [];
|
|
12
|
+
for (let i = 0; i < kinds.length; i++) {
|
|
13
|
+
for (let j = i + 1; j < kinds.length; j++) {
|
|
14
|
+
const a = kinds[i];
|
|
15
|
+
const b = kinds[j];
|
|
16
|
+
const edges = [];
|
|
17
|
+
for (const [from, to] of [
|
|
18
|
+
[a, b],
|
|
19
|
+
[b, a],
|
|
20
|
+
]) {
|
|
21
|
+
const definition = schema.tryDefinition(from);
|
|
22
|
+
for (const [name, declaration] of Object.entries(definition?.edges ?? {})) {
|
|
23
|
+
const targets = declaration.to === "*" ? schema.kinds : declaration.to;
|
|
24
|
+
if (targets.includes(to))
|
|
25
|
+
edges.push(name);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if (edges.length > 0)
|
|
29
|
+
roads.push({ from: a, to: b, edges });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return roads;
|
|
33
|
+
}
|
|
34
|
+
/*
|
|
35
|
+
* THE VILLAGE ON A PLOT. From altitude a district stands one building per
|
|
36
|
+
* member on its plot's own sub-lattice. Pure arithmetic on the map, so it
|
|
37
|
+
* lives with the map: the scene draws it, and so does a picture of an app
|
|
38
|
+
* drawn without a browser.
|
|
39
|
+
*/
|
|
40
|
+
/** The most buildings a plot of this side holds: a sub-lattice of side+1 to a side, minus the square in the middle. */
|
|
41
|
+
export function villageCap(side) {
|
|
42
|
+
const n = side + 1;
|
|
43
|
+
return n * n - squareCells(n).length;
|
|
44
|
+
}
|
|
45
|
+
/** The sub-cells of an n×n sub-lattice that make the village square: the middle one, or the middle four; a 2×2 has no room for one. */
|
|
46
|
+
function squareCells(n) {
|
|
47
|
+
if (n < 3)
|
|
48
|
+
return [];
|
|
49
|
+
if (n % 2 === 1) {
|
|
50
|
+
const mid = (n - 1) / 2;
|
|
51
|
+
return [[mid, mid]];
|
|
52
|
+
}
|
|
53
|
+
const a = n / 2 - 1;
|
|
54
|
+
const b = n / 2;
|
|
55
|
+
return [
|
|
56
|
+
[a, a],
|
|
57
|
+
[b, a],
|
|
58
|
+
[a, b],
|
|
59
|
+
[b, b],
|
|
60
|
+
];
|
|
61
|
+
}
|
|
62
|
+
/** A stable number in [0, 1) from an id, so a village is not a barracks and does not reshuffle on every render. */
|
|
63
|
+
export function heightOf(id) {
|
|
64
|
+
let h = 2166136261;
|
|
65
|
+
for (let i = 0; i < id.length; i++)
|
|
66
|
+
h = Math.imul(h ^ id.charCodeAt(i), 16777619);
|
|
67
|
+
return ((h >>> 0) % 1000) / 1000;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* WHERE THE MEMBERS STAND. One building per member on the plot's own
|
|
71
|
+
* sub-lattice, back to front so the near ones are drawn last; the middle
|
|
72
|
+
* of the plot is the village square, where the nameplate and the kind's
|
|
73
|
+
* landmark stand, so no building is under them. Past the cap the rest are
|
|
74
|
+
* a number on the curb.
|
|
75
|
+
*/
|
|
76
|
+
export function villageOf(plot, memberIds) {
|
|
77
|
+
const n = plot.side + 1;
|
|
78
|
+
const square = new Set(squareCells(n).map(([c, r]) => `${c},${r}`));
|
|
79
|
+
const pitch = plot.side / n;
|
|
80
|
+
const cells = [];
|
|
81
|
+
for (let r = 0; r < n; r++)
|
|
82
|
+
for (let c = 0; c < n; c++)
|
|
83
|
+
if (!square.has(`${c},${r}`))
|
|
84
|
+
cells.push([c, r]);
|
|
85
|
+
// Back to front: a smaller col+row is further from the viewer on a 2:1 lattice.
|
|
86
|
+
cells.sort((a, b) => a[0] + a[1] - (b[0] + b[1]) || a[0] - b[0]);
|
|
87
|
+
const shown = memberIds.slice(0, cells.length);
|
|
88
|
+
const buildings = shown.map((id, i) => {
|
|
89
|
+
const [c, r] = cells[i];
|
|
90
|
+
return {
|
|
91
|
+
id,
|
|
92
|
+
col: plot.col + (c + 0.5) * pitch,
|
|
93
|
+
row: plot.row + (r + 0.5) * pitch,
|
|
94
|
+
footprint: pitch * 0.62,
|
|
95
|
+
height: 0.55 + heightOf(id) * 0.7,
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
return { buildings, rest: Math.max(0, memberIds.length - shown.length) };
|
|
99
|
+
}
|
|
100
|
+
/** How tall a block of each tier stands, as a share of its footprint: done lies flat. */
|
|
101
|
+
export const TIER_HEIGHT = { done: 0.12, waiting: 0.55, active: 1.05 };
|
|
102
|
+
/**
|
|
103
|
+
* THE BLOCKS ON A PLOT, A ROW PER VALUE. `lanes` holds each row's record
|
|
104
|
+
* ids, back row first; the plot is cut into that many rows across its
|
|
105
|
+
* depth, every block the same size so a row's length is its count, at the
|
|
106
|
+
* largest size the fullest row fits — and never smaller than an eighth of
|
|
107
|
+
* the plot, past which a row is cut and the rest counted where it begins.
|
|
108
|
+
*/
|
|
109
|
+
export function districtBlocks(plot, lanes, heights = []) {
|
|
110
|
+
const side = plot.side;
|
|
111
|
+
const depth = side / Math.max(1, lanes.length);
|
|
112
|
+
const most = Math.max(1, ...lanes.map((lane) => lane.length));
|
|
113
|
+
let pitch = depth;
|
|
114
|
+
for (let k = 1; depth / k >= side / 8 - 1e-9; k++) {
|
|
115
|
+
pitch = depth / k;
|
|
116
|
+
if (k * Math.floor(side / pitch + 1e-9) >= most)
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
const deep = Math.max(1, Math.floor(depth / pitch + 1e-9));
|
|
120
|
+
const across = Math.max(1, Math.floor(side / pitch + 1e-9));
|
|
121
|
+
const spread = side / across;
|
|
122
|
+
const blocks = [];
|
|
123
|
+
const rests = [];
|
|
124
|
+
lanes.forEach((ids, lane) => {
|
|
125
|
+
const shown = ids.slice(0, deep * across);
|
|
126
|
+
shown.forEach((id, n) => {
|
|
127
|
+
blocks.push({
|
|
128
|
+
id,
|
|
129
|
+
lane,
|
|
130
|
+
col: plot.col + ((n % across) + 0.5) * spread,
|
|
131
|
+
row: plot.row + lane * depth + (Math.floor(n / across) + 0.5) * pitch,
|
|
132
|
+
footprint: Math.min(spread, pitch) * 0.66,
|
|
133
|
+
height: heights[lane] ?? TIER_HEIGHT.waiting,
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
if (ids.length > shown.length)
|
|
137
|
+
rests.push({ lane, count: ids.length - shown.length, col: plot.col - 0.15, row: plot.row + (lane + 0.5) * depth });
|
|
138
|
+
});
|
|
139
|
+
// Back to front: a smaller col+row is further from the viewer.
|
|
140
|
+
blocks.sort((a, b) => a.col + a.row - (b.col + b.row) || a.col - b.col);
|
|
141
|
+
return { blocks, rests };
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=village.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"village.js","sourceRoot":"","sources":["../src/village.ts"],"names":[],"mappings":"AAGA,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAU,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE5E;;;;;GAKG;AAEH,gFAAgF;AAChF,MAAM,UAAU,OAAO,CAAC,MAAiB,EAAE,GAAY;IACrD,MAAM,KAAK,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,MAAM,KAAK,GAAW,EAAE,CAAC;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC1C,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAE,CAAC;YACpB,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAE,CAAC;YACpB,MAAM,KAAK,GAAa,EAAE,CAAC;YAC3B,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI;gBACvB,CAAC,CAAC,EAAE,CAAC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AG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACxE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;AAC3B,CAAC"}
|
package/dist/watched.d.ts
CHANGED
|
@@ -10,16 +10,13 @@
|
|
|
10
10
|
* then refused, which is an act offered to somebody who may not take it.
|
|
11
11
|
*
|
|
12
12
|
* A page is watched when the harness defined `globalThis.__graviewWatch`
|
|
13
|
-
* before the app ran. Anywhere else this is one property read.
|
|
13
|
+
* before the app ran. Anywhere else this is one property read. The store
|
|
14
|
+
* hands itself over and the watch works out the names, what a seat may not
|
|
15
|
+
* see and who has signed what — work that was done here, and downloaded by
|
|
16
|
+
* every reader of a hosted page for a harness's sake, until the ninth walk
|
|
17
|
+
* needed the room (the hosted page's budget).
|
|
14
18
|
*/
|
|
15
|
-
import type {
|
|
16
|
-
import type { AnySchema } from "./schema/schema.js";
|
|
17
|
-
import type { Principal } from "./permissions/types.js";
|
|
18
|
-
/** The declaration's names, and the words it has for them. */
|
|
19
|
-
export declare function tellTheWatchItsNames(schema: AnySchema, mutations: Iterable<{
|
|
20
|
-
readonly name: string;
|
|
21
|
-
readonly title?: string;
|
|
22
|
-
}>, policy: Policy | undefined): void;
|
|
19
|
+
import type { Principal, Refusal } from "./permissions/types.js";
|
|
23
20
|
/**
|
|
24
21
|
* THE STORE ITSELF, for a harness that measures whether a person got a job
|
|
25
22
|
* done (`scripts/verify-journeys.mjs`). It drives the page as a person
|
|
@@ -32,41 +29,11 @@ export declare function tellTheWatchOfAnAuthor(id: string | undefined): void;
|
|
|
32
29
|
/** A press reached the store and the policy refused it. */
|
|
33
30
|
export declare function tellTheWatchOfARefusal(refusal: Refusal, author: string | undefined): void;
|
|
34
31
|
/**
|
|
35
|
-
* WHAT THIS SEAT MAY NOT SEE,
|
|
36
|
-
* to
|
|
37
|
-
*
|
|
38
|
-
*
|
|
32
|
+
* WHAT THIS SEAT MAY NOT SEE, and who has signed what, for a watching
|
|
33
|
+
* harness to hold every screen to ("shown-what-is-not-theirs"): the store
|
|
34
|
+
* and the seat are handed over, and the watch reads them
|
|
35
|
+
* (`scripts/lib/watch.mjs`), as it reads a store's names. Which surface is
|
|
36
|
+
* telling (`from`): two embeds on one page may sit two different seats down.
|
|
39
37
|
*/
|
|
40
|
-
export declare function tellTheWatchWhatIsUnseen(store:
|
|
41
|
-
readonly policy?: {
|
|
42
|
-
readonly sees?: readonly unknown[];
|
|
43
|
-
};
|
|
44
|
-
readonly graph: {
|
|
45
|
-
allNodes(): readonly ({
|
|
46
|
-
id: string;
|
|
47
|
-
kind: string;
|
|
48
|
-
} & Record<string, unknown>)[];
|
|
49
|
-
};
|
|
50
|
-
readonly schema: AnySchema;
|
|
51
|
-
sees(principal: Principal, id: string): boolean;
|
|
52
|
-
}, principal: Principal,
|
|
53
|
-
/** Which surface is telling: two embeds on one page may sit two different seats down. */
|
|
54
|
-
from?: string): void;
|
|
55
|
-
/**
|
|
56
|
-
* WHO HAS AUTHORED, for a watching harness: every author id in the log that
|
|
57
|
-
* names no record — a migration ("ship:migration"), a seat — is an
|
|
58
|
-
* identifier, and no screen says one.
|
|
59
|
-
*/
|
|
60
|
-
export declare function tellTheWatchItsAuthors(store: {
|
|
61
|
-
readonly graph: {
|
|
62
|
-
getNode(id: string): unknown;
|
|
63
|
-
};
|
|
64
|
-
readonly log: {
|
|
65
|
-
all(): readonly {
|
|
66
|
-
readonly author: {
|
|
67
|
-
readonly id?: string;
|
|
68
|
-
};
|
|
69
|
-
}[];
|
|
70
|
-
};
|
|
71
|
-
}): void;
|
|
38
|
+
export declare function tellTheWatchWhatIsUnseen(store: unknown, principal: Principal, from?: string): void;
|
|
72
39
|
//# sourceMappingURL=watched.d.ts.map
|
package/dist/watched.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watched.d.ts","sourceRoot":"","sources":["../src/watched.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"watched.d.ts","sourceRoot":"","sources":["../src/watched.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAWjE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAEzD;AAED,+EAA+E;AAC/E,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAGnE;AAED,2DAA2D;AAC3D,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAEzF;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAElG"}
|
package/dist/watched.js
CHANGED
|
@@ -1,91 +1,4 @@
|
|
|
1
|
-
import { humanizeField, labelOf } from "./schema/define-node.js";
|
|
2
1
|
const theWatch = () => globalThis.__graviewWatch;
|
|
3
|
-
/** The declaration's names, and the words it has for them. */
|
|
4
|
-
export function tellTheWatchItsNames(schema, mutations, policy) {
|
|
5
|
-
const watch = theWatch();
|
|
6
|
-
if (!watch?.learn)
|
|
7
|
-
return;
|
|
8
|
-
const ids = [];
|
|
9
|
-
const words = [];
|
|
10
|
-
/*
|
|
11
|
-
* THE KEY'S WORDS WHERE THE DECLARATION HAS ITS OWN. "Vin" over a field
|
|
12
|
-
* the kind calls "VIN", "suv" in a picker the record says "SUV" in: a
|
|
13
|
-
* single word passes for prose, so these are caught only where they are
|
|
14
|
-
* the whole of what is shown.
|
|
15
|
-
*/
|
|
16
|
-
const unsaid = [];
|
|
17
|
-
for (const definition of schema.definitions) {
|
|
18
|
-
ids.push(definition.kind);
|
|
19
|
-
// A kind with a noun of its own is never shown by its id: "vehicle" where the declaration says "car".
|
|
20
|
-
if (definition.noun && humanizeField(definition.kind).toLowerCase() !== definition.noun.toLowerCase())
|
|
21
|
-
unsaid.push(definition.kind);
|
|
22
|
-
const fieldsOf = definition.fields.shape ?? {};
|
|
23
|
-
for (const [key, field] of Object.entries(fieldsOf)) {
|
|
24
|
-
const declared = definition.display?.labels?.[key];
|
|
25
|
-
if (declared !== undefined && humanizeField(key) !== declared)
|
|
26
|
-
unsaid.push(humanizeField(key));
|
|
27
|
-
const entries = field?.def?.entries;
|
|
28
|
-
const format = definition.display?.format?.[key];
|
|
29
|
-
for (const value of entries && typeof entries === "object" ? Object.values(entries) : []) {
|
|
30
|
-
if (typeof value !== "string")
|
|
31
|
-
continue;
|
|
32
|
-
ids.push(value);
|
|
33
|
-
if (!format)
|
|
34
|
-
continue;
|
|
35
|
-
const said = format(value);
|
|
36
|
-
/*
|
|
37
|
-
* The raw value only where the declaration says the same word another
|
|
38
|
-
* way ("suv" for "SUV"): a value that is an ordinary word ("open",
|
|
39
|
-
* "new") is a word the interface also says, and its spoken form
|
|
40
|
-
* ("Mon") one a calendar prints.
|
|
41
|
-
*/
|
|
42
|
-
if (said !== value && said.toLowerCase() === value.toLowerCase())
|
|
43
|
-
unsaid.push(value);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
words.push(definition.plural ?? "", definition.noun ?? "", definition.description ?? "");
|
|
47
|
-
const shape = definition.fields.shape ?? {};
|
|
48
|
-
ids.push(...Object.keys(shape));
|
|
49
|
-
for (const label of Object.values(definition.display?.labels ?? {}))
|
|
50
|
-
words.push(label);
|
|
51
|
-
for (const [name, edge] of Object.entries(definition.edges ?? {})) {
|
|
52
|
-
ids.push(name);
|
|
53
|
-
// An edge's name spoken ("Drives", "On show at") where it has words of its own ("the test drives booked in it").
|
|
54
|
-
if (edge.description || edge.inverse)
|
|
55
|
-
unsaid.push(humanizeField(name));
|
|
56
|
-
words.push(edge.description ?? "", edge.inverse ?? "");
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
for (const mutation of mutations) {
|
|
60
|
-
ids.push(mutation.name);
|
|
61
|
-
words.push(mutation.title ?? "");
|
|
62
|
-
}
|
|
63
|
-
for (const grant of policy?.grants ?? [])
|
|
64
|
-
if (grant.roles !== "*")
|
|
65
|
-
ids.push(...grant.roles);
|
|
66
|
-
ids.push(...(policy?.roles ?? []));
|
|
67
|
-
// A word one kind declares is never another's key: "Status" is a test drive's own label even where a car says "Availability".
|
|
68
|
-
const declared = new Set();
|
|
69
|
-
for (const definition of schema.definitions) {
|
|
70
|
-
// A kind's own words: what a picker asks for ("Owner") is a noun, not an edge's name.
|
|
71
|
-
declared.add(definition.plural ?? "");
|
|
72
|
-
declared.add(humanizeField(definition.noun ?? definition.kind));
|
|
73
|
-
for (const label of Object.values(definition.display?.labels ?? {}))
|
|
74
|
-
declared.add(label);
|
|
75
|
-
const fieldsOf = definition.fields.shape ?? {};
|
|
76
|
-
for (const [key, field] of Object.entries(fieldsOf)) {
|
|
77
|
-
const format = definition.display?.format?.[key];
|
|
78
|
-
const entries = field?.def?.entries;
|
|
79
|
-
if (!format && !definition.display?.labels?.[key])
|
|
80
|
-
declared.add(humanizeField(key));
|
|
81
|
-
// A value is said by its format, or spoken plainly where there is none ("Given", a talk's state).
|
|
82
|
-
if (entries && typeof entries === "object")
|
|
83
|
-
for (const value of Object.values(entries))
|
|
84
|
-
declared.add(format ? format(value) : humanizeField(String(value)));
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
watch.learn({ ids, words: words.filter(Boolean), unsaid: [...new Set(unsaid)].filter((word) => !declared.has(word)) });
|
|
88
|
-
}
|
|
89
2
|
/**
|
|
90
3
|
* THE STORE ITSELF, for a harness that measures whether a person got a job
|
|
91
4
|
* done (`scripts/verify-journeys.mjs`). It drives the page as a person
|
|
@@ -106,38 +19,13 @@ export function tellTheWatchOfARefusal(refusal, author) {
|
|
|
106
19
|
theWatch()?.refused?.({ ...refusal, ...(author === undefined ? {} : { author }) });
|
|
107
20
|
}
|
|
108
21
|
/**
|
|
109
|
-
* WHAT THIS SEAT MAY NOT SEE,
|
|
110
|
-
* to
|
|
111
|
-
*
|
|
112
|
-
*
|
|
22
|
+
* WHAT THIS SEAT MAY NOT SEE, and who has signed what, for a watching
|
|
23
|
+
* harness to hold every screen to ("shown-what-is-not-theirs"): the store
|
|
24
|
+
* and the seat are handed over, and the watch reads them
|
|
25
|
+
* (`scripts/lib/watch.mjs`), as it reads a store's names. Which surface is
|
|
26
|
+
* telling (`from`): two embeds on one page may sit two different seats down.
|
|
113
27
|
*/
|
|
114
|
-
export function tellTheWatchWhatIsUnseen(store, principal,
|
|
115
|
-
|
|
116
|
-
from) {
|
|
117
|
-
const watch = theWatch();
|
|
118
|
-
if (!watch?.unseen || !store.policy?.sees?.length)
|
|
119
|
-
return;
|
|
120
|
-
const unseen = new Set();
|
|
121
|
-
const seen = new Set();
|
|
122
|
-
for (const node of store.graph.allNodes()) {
|
|
123
|
-
const definition = store.schema.tryDefinition(node.kind);
|
|
124
|
-
const said = [labelOf(definition, node), ...Object.values(node).filter((value) => typeof value === "string" && /^[^\s@]+@[^\s@]+$/.test(value))];
|
|
125
|
-
for (const word of said)
|
|
126
|
-
(store.sees(principal, node.id) ? seen : unseen).add(word);
|
|
127
|
-
}
|
|
128
|
-
watch.unseen({ words: [...unseen].filter((word) => word.length >= 5 && !seen.has(word)), ...(from ? { from } : {}) });
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* WHO HAS AUTHORED, for a watching harness: every author id in the log that
|
|
132
|
-
* names no record — a migration ("ship:migration"), a seat — is an
|
|
133
|
-
* identifier, and no screen says one.
|
|
134
|
-
*/
|
|
135
|
-
export function tellTheWatchItsAuthors(store) {
|
|
136
|
-
const watch = theWatch();
|
|
137
|
-
if (!watch?.learn)
|
|
138
|
-
return;
|
|
139
|
-
const ids = [...new Set(store.log.all().map((op) => op.author.id).filter((id) => typeof id === "string" && store.graph.getNode(id) === undefined))];
|
|
140
|
-
if (ids.length > 0)
|
|
141
|
-
watch.learn({ ids, words: [] });
|
|
28
|
+
export function tellTheWatchWhatIsUnseen(store, principal, from) {
|
|
29
|
+
theWatch()?.seat?.(store, principal, from);
|
|
142
30
|
}
|
|
143
31
|
//# sourceMappingURL=watched.js.map
|
package/dist/watched.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"watched.js","sourceRoot":"","sources":["../src/watched.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"watched.js","sourceRoot":"","sources":["../src/watched.ts"],"names":[],"mappings":"AA2BA,MAAM,QAAQ,GAAG,GAAsB,EAAE,CAAE,UAAyC,CAAC,cAAc,CAAC;AAEpG;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAc;IACjD,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,sBAAsB,CAAC,EAAsB;IAC3D,IAAI,EAAE,KAAK,SAAS;QAAE,OAAO;IAC7B,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;AAChD,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,sBAAsB,CAAC,OAAgB,EAAE,MAA0B;IACjF,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,OAAO,EAAE,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AACrF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CAAC,KAAc,EAAE,SAAoB,EAAE,IAAa;IAC1F,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;AAC7C,CAAC"}
|
package/dist/words.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@graview/core/words` — A RECORD, AN ARGUMENT AND A REFUSAL, SAID.
|
|
3
|
+
*
|
|
4
|
+
* A record read as a person reads it (`readableFields`, `pageSections`,
|
|
5
|
+
* `isLongText`, `describeNode`), two records of one name told apart
|
|
6
|
+
* (`tellApart`), what an argument asks for (`argShape`, `describeArg`), an
|
|
7
|
+
* argument and a refusal in the record's own words (`argumentWords`,
|
|
8
|
+
* `failureWords`), the channel a change came through (`viaSaid`), a
|
|
9
|
+
* field's value and a relation in the declaration's words (`valueWords`,
|
|
10
|
+
* `edgeWords`), and an amount asked for as it is said (`amountBox`,
|
|
11
|
+
* `amountInBox`, `readAmount`).
|
|
12
|
+
*
|
|
13
|
+
* Apart from `@graview/core` because a bundler places a whole file in a
|
|
14
|
+
* page's first chunk when the first chunk can reach it and any chunk uses
|
|
15
|
+
* it (FR-179): each of these is said by a face as it draws a record, a form
|
|
16
|
+
* as it asks, or the seat as it answers — all fetched as they are first
|
|
17
|
+
* drawn or asked — and never by the bar and the frame a page draws first.
|
|
18
|
+
* The types (`ReadableField`, `FieldSection`, `ArgShape`) stay on
|
|
19
|
+
* `@graview/core`.
|
|
20
|
+
*/
|
|
21
|
+
export { describeNode, isLongText, pageSections, readableFields, tellApart } from "./schema/reading.js";
|
|
22
|
+
export { argShape, describeArg } from "./mutations/arg-shape.js";
|
|
23
|
+
export { argumentWords, failureWords } from "./mutations/words.js";
|
|
24
|
+
export { viaSaid } from "./via.js";
|
|
25
|
+
export { edgeWords, valueWords } from "./schema/value-words.js";
|
|
26
|
+
export { repeatAsRead, repeatingDateAsRead } from "./repeat-words.js";
|
|
27
|
+
export { excerptOf } from "./excerpt-of.js";
|
|
28
|
+
export { isMarkdownField } from "./schema/markdown.js";
|
|
29
|
+
export { fieldSays, mapsHref, parseDuration, sayDuration, sayPhone, telHref, typedHref, typedWords } from "./schema/field-words.js";
|
|
30
|
+
export { typedFieldOf } from "./schema/typed-field-of.js";
|
|
31
|
+
export { amountBox, amountInBox, readAmount } from "./amount-input.js";
|
|
32
|
+
export type { AmountBox } from "./amount-input.js";
|
|
33
|
+
//# sourceMappingURL=words.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"words.d.ts","sourceRoot":"","sources":["../src/words.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxG,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACpI,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACvE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/words.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@graview/core/words` — A RECORD, AN ARGUMENT AND A REFUSAL, SAID.
|
|
3
|
+
*
|
|
4
|
+
* A record read as a person reads it (`readableFields`, `pageSections`,
|
|
5
|
+
* `isLongText`, `describeNode`), two records of one name told apart
|
|
6
|
+
* (`tellApart`), what an argument asks for (`argShape`, `describeArg`), an
|
|
7
|
+
* argument and a refusal in the record's own words (`argumentWords`,
|
|
8
|
+
* `failureWords`), the channel a change came through (`viaSaid`), a
|
|
9
|
+
* field's value and a relation in the declaration's words (`valueWords`,
|
|
10
|
+
* `edgeWords`), and an amount asked for as it is said (`amountBox`,
|
|
11
|
+
* `amountInBox`, `readAmount`).
|
|
12
|
+
*
|
|
13
|
+
* Apart from `@graview/core` because a bundler places a whole file in a
|
|
14
|
+
* page's first chunk when the first chunk can reach it and any chunk uses
|
|
15
|
+
* it (FR-179): each of these is said by a face as it draws a record, a form
|
|
16
|
+
* as it asks, or the seat as it answers — all fetched as they are first
|
|
17
|
+
* drawn or asked — and never by the bar and the frame a page draws first.
|
|
18
|
+
* The types (`ReadableField`, `FieldSection`, `ArgShape`) stay on
|
|
19
|
+
* `@graview/core`.
|
|
20
|
+
*/
|
|
21
|
+
export { describeNode, isLongText, pageSections, readableFields, tellApart } from "./schema/reading.js";
|
|
22
|
+
export { argShape, describeArg } from "./mutations/arg-shape.js";
|
|
23
|
+
export { argumentWords, failureWords } from "./mutations/words.js";
|
|
24
|
+
export { viaSaid } from "./via.js";
|
|
25
|
+
export { edgeWords, valueWords } from "./schema/value-words.js";
|
|
26
|
+
// A date that repeats, in words: "Every Tuesday, next Oct 27".
|
|
27
|
+
export { repeatAsRead, repeatingDateAsRead } from "./repeat-words.js";
|
|
28
|
+
// A text's start at a glance, Markdown's syntax taken out (FR-180): what a row, a card, a describe line and a search hit say of prose.
|
|
29
|
+
export { excerptOf } from "./excerpt-of.js";
|
|
30
|
+
// Whether a field is written in Markdown (FR-180), as a record is read.
|
|
31
|
+
export { isMarkdownField } from "./schema/markdown.js";
|
|
32
|
+
// A phone, a place and a duration, said, linked, and read from what was typed.
|
|
33
|
+
export { fieldSays, mapsHref, parseDuration, sayDuration, sayPhone, telHref, typedHref, typedWords } from "./schema/field-words.js";
|
|
34
|
+
export { typedFieldOf } from "./schema/typed-field-of.js";
|
|
35
|
+
export { amountBox, amountInBox, readAmount } from "./amount-input.js";
|
|
36
|
+
//# sourceMappingURL=words.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"words.js","sourceRoot":"","sources":["../src/words.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxG,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,+DAA+D;AAC/D,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACtE,uIAAuI;AACvI,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,wEAAwE;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,+EAA+E;AAC/E,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACpI,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graview/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
"types": "./dist/scene.d.ts",
|
|
34
34
|
"default": "./dist/scene.js"
|
|
35
35
|
},
|
|
36
|
+
"./city": {
|
|
37
|
+
"types": "./dist/city.d.ts",
|
|
38
|
+
"default": "./dist/city.js"
|
|
39
|
+
},
|
|
36
40
|
"./check": {
|
|
37
41
|
"types": "./dist/check.d.ts",
|
|
38
42
|
"default": "./dist/check.js"
|
|
@@ -45,6 +49,30 @@
|
|
|
45
49
|
"types": "./dist/arrange.d.ts",
|
|
46
50
|
"default": "./dist/arrange.js"
|
|
47
51
|
},
|
|
52
|
+
"./provenance": {
|
|
53
|
+
"types": "./dist/provenance.d.ts",
|
|
54
|
+
"default": "./dist/provenance.js"
|
|
55
|
+
},
|
|
56
|
+
"./markdown": {
|
|
57
|
+
"types": "./dist/markdown.d.ts",
|
|
58
|
+
"default": "./dist/markdown.js"
|
|
59
|
+
},
|
|
60
|
+
"./words": {
|
|
61
|
+
"types": "./dist/words.d.ts",
|
|
62
|
+
"default": "./dist/words.js"
|
|
63
|
+
},
|
|
64
|
+
"./seat": {
|
|
65
|
+
"types": "./dist/seat.d.ts",
|
|
66
|
+
"default": "./dist/seat.js"
|
|
67
|
+
},
|
|
68
|
+
"./field-sight": {
|
|
69
|
+
"types": "./dist/field-sight.d.ts",
|
|
70
|
+
"default": "./dist/field-sight.js"
|
|
71
|
+
},
|
|
72
|
+
"./search": {
|
|
73
|
+
"types": "./dist/search.d.ts",
|
|
74
|
+
"default": "./dist/search.js"
|
|
75
|
+
},
|
|
48
76
|
"./forms": {
|
|
49
77
|
"types": "./dist/forms.d.ts",
|
|
50
78
|
"default": "./dist/forms.js"
|
|
@@ -61,6 +89,10 @@
|
|
|
61
89
|
"types": "./dist/sync/index.d.ts",
|
|
62
90
|
"default": "./dist/sync/index.js"
|
|
63
91
|
},
|
|
92
|
+
"./import": {
|
|
93
|
+
"types": "./dist/import/index.d.ts",
|
|
94
|
+
"default": "./dist/import/index.js"
|
|
95
|
+
},
|
|
64
96
|
"./snapshot": {
|
|
65
97
|
"types": "./dist/snapshot.d.ts",
|
|
66
98
|
"default": "./dist/snapshot.js"
|
|
@@ -119,7 +151,10 @@
|
|
|
119
151
|
"dist",
|
|
120
152
|
"README.md"
|
|
121
153
|
],
|
|
122
|
-
"sideEffects":
|
|
154
|
+
"sideEffects": [
|
|
155
|
+
"./dist/field-sight.js",
|
|
156
|
+
"./src/field-sight.ts"
|
|
157
|
+
],
|
|
123
158
|
"repository": {
|
|
124
159
|
"type": "git",
|
|
125
160
|
"url": "git+https://github.com/en-dash-consulting/graview.git",
|