# @lblod/say-ar-design-plugin

> Say Editor plugin as part of the LBLOD project

Latest version **3.1.0** (published 2026-09-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lblod/say-ar-design-plugin
pnpm add @lblod/say-ar-design-plugin
yarn add @lblod/say-ar-design-plugin
bun add @lblod/say-ar-design-plugin
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2026-09-02 |
| First published | 2026-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 14 |
| Unpacked size | 1.8 MB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 18 |
| Author | redpencil.io |
| Maintainers | erikap, nielsv, madnificent, cecemel, clairelovisa, dietr, oscar.redpencil, aatauil |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/@lblod/say-ar-design-plugin
- Repository: https://github.com/lblod/ember-rdfa-editor
- npm.io page: https://npm.io/package/@lblod/say-ar-design-plugin

## Dependencies (14)

- [zod](https://npm.io/package/zod.md) ^3.24.1
- [uuid](https://npm.io/package/uuid.md) ^9.0.1
- [typedoc](https://npm.io/package/typedoc.md) ^0.28.17
- [reactiveweb](https://npm.io/package/reactiveweb.md) ^1.9.1
- [ember-modifier](https://npm.io/package/ember-modifier.md) ^4.2.2
- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^8.2.0
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^6.3.0
- [ember-truth-helpers](https://npm.io/package/ember-truth-helpers.md) ^5.0.0
- [decorator-transforms](https://npm.io/package/decorator-transforms.md) ^2.3.1
- [@embroider/addon-shim](https://npm.io/package/@embroider/addon-shim.md) ^1.10.2
- [@glint/tsserver-plugin](https://npm.io/package/@glint/tsserver-plugin.md) 2.1.0
- [ember-template-imports](https://npm.io/package/ember-template-imports.md) ^4.4.0
- [@ember/render-modifiers](https://npm.io/package/@ember/render-modifiers.md) ^3.0.0
- [@ember/optional-features](https://npm.io/package/@ember/optional-features.md) ^2.3.0

## Recent versions

- 3.1.0 (latest) — 2026-09-02
- 3.1.0-dev.469420c20e471885aa64a4de810aeb39d10b9378 (dev) — 2026-11-30
- 3.1.0-dev.d7898a8e6f77d10ca41640efd8c0a9f00c644b87 — 2026-11-20
- 3.0.0-dev.97503517d2e00736f530ebb13a94de79d1eae7bc — 2026-08-04
- 3.0.0-dev.bfbbde6f74ad32efde22859d1374b2650512df7c — 2026-07-31
- 3.0.0-dev.7fcab1a9180e1d9cdeb23cdf04bb6dffaaa2ab3a — 2026-07-30
- 3.0.0-dev.af67741c185884607656df3877b624f1018bb77a — 2026-07-28
- 3.0.0-dev.6f980b289eb2adac7228ba883d558b63113b22fb — 2026-07-28
- 3.0.0-dev.bb65babbc80415927fcba277df686e67d0074b23 — 2026-07-28
- 3.0.0-dev.adbf36ab00e4ab810a9233be8613248cb476636d — 2026-07-28
- 3.0.0-dev.1ddfb3d4d413c25050fad81d110f4f2ee6eefb11 — 2026-07-28
- 3.0.0 — 2026-07-01
- 2.0.0 — 2026-06-26
- 1.0.0-dev.bf0afd49d398a6da5e6e06e57ef8a298a85f62c3 — 2026-06-26
- 1.0.0 — 2026-06-25
- … 3 more at https://npm.io/package/@lblod/say-ar-design-plugin/versions

## README

# @lblod/say-ar-design-plugin

[![Build Status](https://build.redpencil.io/api/badges/402/status.svg)](https://build.redpencil.io/repos/402)

A plugin for [say-editor](https://say-editor.com) RDFa aware text editor, which enables insertion of annotated "Aanvullend Reglementen" designs into Flemish municipality documents.

This documentation is incomplete, please use the [lblod-plugins page of the test-app](test-app/app/templates/lblod-plugins.gts) to see an example of integrating this plugin into an installation of say-editor.

### ArDesignQuery function

It is necessary to pass a function to the @designQuery argument of the SidebarWidget component to fetch AR design information.
This has the following signature:

```ts
type ArDesignQuery = (pagination: Pagination) => Promise<DesignInfo>;

type Pagination = {
  pageNumber: number;
  pageSize: number;
  sort?: "name" | "-name" | "date" | "-date";
  nameFilter?: string;
};

type DesignInfo = {
  /** the designs themselves */
  designs: ArDesign[];
  /**
   * for each design, a promise resolving to the number of documents this design is used in
   * (indexed by id)
   */
  inDocs: Record<string, Promise<number>>;
};

interface ArDesign {
  id: string | null;
  uri: string;
  name: string;
  date: Date;

  measureDesigns: AsyncHasMany<MeasureDesign> | Promise<MeasureDesign[]>;
}
interface MeasureDesign {
  id: string | null;
  uri: string;

  trafficSignals: HasMany<TrafficSignal> | TrafficSignal[];

  measureConcept: MeasureConcept;

  unusedSignalConcepts: HasMany<TrafficSignalConcept> | TrafficSignalConcept[];

  unIncludedSignalConcepts:
    | HasMany<TrafficSignalConcept>
    | TrafficSignalConcept[];

  variableInstances: HasMany<VariableInstance> | VariableInstance[];
}
interface TrafficSignal {
  id: string | null;
  uri: string;
  designStatus?: string;

  trafficSignalConcept: TrafficSignalConcept;
}
interface TrafficSignalConcept {
  id: string | null;
  uri: string;
  code: string;
  regulatoryNotation?: string;
  type: string;

  categories: RoadSignCategory[];
}
interface RoadSignCategory {
  id: string | null;
  uri: string;
  label: string;
}
interface MeasureConcept {
  id: string | null;
  uri: string;
  label: string;
  templateString: string;
  rawTemplateString: string;
}
interface VariableInstance {
  id: string | null;
  uri: string;
  value?: string;
  valueLabel?: string;

  variable: Variable;
}
export default interface Variable {
  id: string | null;
  type: "text" | "number" | "date" | "codelist" | "location";

  label: string;
  uri: string;
  source: string;
  codelist?: string;
}
```

---
_Source: https://npm.io/package/@lblod/say-ar-design-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
