@lblod/ember-rdfa-editor-lblod-plugins 24.3.1 → 24.3.2-dev.2ac9ceabc39305020bc2d6bbf37755c2dcb383ac

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.
Files changed (46) hide show
  1. package/.changeset/four-eagles-live.md +5 -0
  2. package/.changeset/gentle-berries-exist.md +5 -0
  3. package/.changeset/hungry-trees-perform.md +5 -0
  4. package/.changeset/tough-pugs-shave.md +5 -0
  5. package/CHANGELOG.md +6 -0
  6. package/addon/components/snippet-plugin/nodes/placeholder.gts +42 -23
  7. package/addon/components/snippet-plugin/nodes/snippet.gts +103 -39
  8. package/addon/components/snippet-plugin/search-modal.hbs +4 -1
  9. package/addon/components/snippet-plugin/search-modal.ts +8 -4
  10. package/addon/components/snippet-plugin/snippet-insert-placeholder.gts +4 -4
  11. package/addon/components/snippet-plugin/snippet-insert-rdfa.gts +14 -22
  12. package/addon/components/snippet-plugin/snippet-insert.gts +17 -19
  13. package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.hbs +1 -1
  14. package/addon/components/snippet-plugin/snippet-list/snippet-list-modal.ts +7 -9
  15. package/addon/components/snippet-plugin/snippet-list/snippet-list-view.hbs +1 -1
  16. package/addon/components/snippet-plugin/snippet-list/snippet-list-view.ts +5 -9
  17. package/addon/components/snippet-plugin/snippet-list-select.gts +2 -2
  18. package/addon/plugins/snippet-plugin/commands/insert-snippet.ts +5 -8
  19. package/addon/plugins/snippet-plugin/commands/update-snippet-placeholder.ts +2 -2
  20. package/addon/plugins/snippet-plugin/index.ts +9 -7
  21. package/addon/plugins/snippet-plugin/nodes/snippet-placeholder.ts +71 -23
  22. package/addon/plugins/snippet-plugin/nodes/snippet.ts +53 -20
  23. package/addon/plugins/snippet-plugin/utils/fetch-data.ts +8 -8
  24. package/addon/plugins/snippet-plugin/utils/rdfa-predicate.ts +20 -3
  25. package/addon/utils/has-descendant.ts +19 -0
  26. package/app/styles/snippet-plugin.scss +59 -23
  27. package/declarations/addon/components/snippet-plugin/nodes/placeholder.d.ts +7 -2
  28. package/declarations/addon/components/snippet-plugin/nodes/snippet.d.ts +4 -1
  29. package/declarations/addon/components/snippet-plugin/search-modal.d.ts +3 -1
  30. package/declarations/addon/components/snippet-plugin/snippet-insert-rdfa.d.ts +2 -6
  31. package/declarations/addon/components/snippet-plugin/snippet-insert.d.ts +3 -7
  32. package/declarations/addon/components/snippet-plugin/snippet-list/snippet-list-modal.d.ts +3 -3
  33. package/declarations/addon/components/snippet-plugin/snippet-list/snippet-list-view.d.ts +2 -2
  34. package/declarations/addon/components/snippet-plugin/snippet-list-select.d.ts +1 -1
  35. package/declarations/addon/plugins/snippet-plugin/commands/insert-snippet.d.ts +3 -4
  36. package/declarations/addon/plugins/snippet-plugin/index.d.ts +7 -2
  37. package/declarations/addon/plugins/snippet-plugin/nodes/snippet-placeholder.d.ts +13 -4
  38. package/declarations/addon/plugins/snippet-plugin/nodes/snippet.d.ts +4 -5
  39. package/declarations/addon/plugins/snippet-plugin/utils/fetch-data.d.ts +1 -1
  40. package/declarations/addon/plugins/snippet-plugin/utils/rdfa-predicate.d.ts +9 -2
  41. package/declarations/addon/utils/has-descendant.d.ts +2 -0
  42. package/package.json +2 -1
  43. package/pnpm-lock.yaml +11 -1
  44. package/translations/en-US.yaml +2 -2
  45. package/translations/nl-BE.yaml +2 -2
  46. package/types/lblod/template-uuid-instantiator.d.ts +3 -0
@@ -1,12 +1,17 @@
1
1
  import Component from '@glimmer/component';
2
- import { type EmberNodeArgs } from '@lblod/ember-rdfa-editor/utils/_private/ember-node';
3
2
  import IntlService from 'ember-intl/services/intl';
3
+ import { type EmberNodeArgs } from '@lblod/ember-rdfa-editor/utils/_private/ember-node';
4
+ import { type SnippetPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
4
5
  interface Signature {
5
- Args: EmberNodeArgs;
6
+ Args: Pick<EmberNodeArgs, 'node' | 'selectNode'> & {
7
+ insertSnippet: () => void;
8
+ };
6
9
  }
7
10
  export default class SnippetPluginPlaceholder extends Component<Signature> {
8
11
  intl: IntlService;
12
+ get node(): import("prosemirror-model").Node;
9
13
  get listNames(): any;
14
+ get config(): SnippetPluginConfig;
10
15
  get isSingleList(): boolean;
11
16
  get alertTitle(): string;
12
17
  }
@@ -11,10 +11,13 @@ export default class SnippetNode extends Component<Signature> {
11
11
  showModal: boolean;
12
12
  mode: string;
13
13
  get controller(): import("@lblod/ember-rdfa-editor").SayController;
14
+ get schema(): import("prosemirror-model").Schema<any, any>;
15
+ get snippetOrPlaceholder(): import("prosemirror-model").NodeType[];
14
16
  get node(): PNode;
17
+ get isPlaceholder(): boolean;
18
+ get allowMultipleSnippets(): boolean;
15
19
  closeModal(): void;
16
20
  openModal(): void;
17
- get allowMultipleSnippets(): boolean;
18
21
  addFragment(): void;
19
22
  editFragment(): void;
20
23
  deleteFragment(): void;
@@ -2,7 +2,8 @@ import Component from '@glimmer/component';
2
2
  import { SnippetPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
3
3
  interface Args {
4
4
  config: SnippetPluginConfig;
5
- assignedSnippetListsIds: string[] | undefined;
5
+ snippetListIds: string[] | undefined;
6
+ snippetListNames: string[] | undefined;
6
7
  closeModal: () => void;
7
8
  open: boolean;
8
9
  onInsert: (content: string, title: string) => void;
@@ -15,6 +16,7 @@ export default class SnippetPluginSearchModalComponent extends Component<Args> {
15
16
  totalCount: number;
16
17
  get config(): SnippetPluginConfig;
17
18
  get searchText(): string | null;
19
+ get snippetListNames(): string | undefined;
18
20
  setInputSearchText(event: InputEvent): void;
19
21
  closeModal(): Promise<void>;
20
22
  snippetsSearch: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, () => Promise<import("@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin").Snippet[]>>;
@@ -1,6 +1,6 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { SayController } from '@lblod/ember-rdfa-editor';
3
- import { type ImportedResourceMap, type SnippetPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
3
+ import { type SnippetListProperties, type SnippetPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
4
4
  import { ResolvedPNode } from '@lblod/ember-rdfa-editor/utils/_private/types';
5
5
  interface Sig {
6
6
  Args: {
@@ -10,11 +10,7 @@ interface Sig {
10
10
  };
11
11
  }
12
12
  export default class SnippetInsertRdfaComponent extends Component<Sig> {
13
- get disableInsert(): boolean;
14
- get snippetListProperties(): {
15
- listIds: string[];
16
- importedResources: ImportedResourceMap;
17
- } | undefined;
13
+ get listProperties(): SnippetListProperties | undefined;
18
14
  get allowMultipleSnippets(): boolean;
19
15
  }
20
16
  export {};
@@ -1,26 +1,22 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { type SayController, Slice } from '@lblod/ember-rdfa-editor';
3
3
  import { SnippetPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
4
- import { type ImportedResourceMap } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
4
+ import { type SnippetListProperties } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
5
5
  interface Sig {
6
6
  Args: {
7
7
  controller: SayController;
8
8
  config: SnippetPluginConfig;
9
- snippetListProperties: {
10
- listIds: string[];
11
- importedResources: ImportedResourceMap;
12
- } | undefined;
13
- disabled?: boolean;
9
+ listProperties: SnippetListProperties | undefined;
14
10
  allowMultipleSnippets?: boolean;
15
11
  };
16
12
  }
17
13
  export default class SnippetInsertComponent extends Component<Sig> {
18
14
  showModal: boolean;
19
15
  get controller(): SayController;
16
+ get disabled(): boolean;
20
17
  openModal(): void;
21
18
  closeModal(): void;
22
19
  createSliceFromElement(element: Element): Slice;
23
20
  onInsert(content: string, title: string): void;
24
- get disabled(): boolean;
25
21
  }
26
22
  export {};
@@ -5,7 +5,7 @@ interface Signature {
5
5
  Args: {
6
6
  config: SnippetPluginConfig;
7
7
  onSaveSnippetLists: (lists: SnippetList[], allowMultipleSnippets: boolean) => void;
8
- assignedSnippetListsIds: string[] | undefined;
8
+ snippetListIds: string[] | undefined;
9
9
  closeModal: () => void;
10
10
  open: boolean;
11
11
  allowMultipleSnippets?: boolean;
@@ -15,7 +15,7 @@ export default class SnippetListModalComponent extends Component<Signature> {
15
15
  nameFilterText: string | null;
16
16
  sort: OrderBy;
17
17
  error: unknown;
18
- assignedSnippetListsIds: string[];
18
+ snippetListIds: string[];
19
19
  allowMultipleSnippets: boolean;
20
20
  handleMultipleSnippetsCheckbox(checked: boolean): void;
21
21
  get config(): SnippetPluginConfig;
@@ -23,6 +23,6 @@ export default class SnippetListModalComponent extends Component<Signature> {
23
23
  saveAndClose(): void;
24
24
  snippetListSearch: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, () => Promise<SnippetList[]>>;
25
25
  snippetListResource: import("reactiveweb/ember-concurrency").TaskInstance<SnippetList[]>;
26
- onChange(assignedSnippetListsIds: string[]): void;
26
+ onChange(snippetListIds: string[]): void;
27
27
  }
28
28
  export {};
@@ -2,10 +2,10 @@ import Component from '@glimmer/component';
2
2
  import { SnippetList } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
3
3
  interface Args {
4
4
  snippetLists: SnippetList[];
5
- assignedSnippetListsIds: string[];
5
+ snippetListIds: string[];
6
6
  listNameFilter: string | null;
7
7
  isLoading: boolean;
8
- onChange: (assignedSnippetListsIds: string[]) => void;
8
+ onChange: (snippetListIds: string[]) => void;
9
9
  }
10
10
  export default class SnippetListViewComponent extends Component<Args> {
11
11
  onChange(snippetId: string, isSelected: boolean): void;
@@ -17,7 +17,7 @@ export default class SnippetListSelect extends Component<Signature> {
17
17
  get currentResource(): string | undefined;
18
18
  get isResourceNode(): boolean;
19
19
  get snippetListIdsProperties(): OutgoingTriple[];
20
- get assignedSnippetListsIds(): string[];
20
+ get snippetListIds(): string[];
21
21
  get allowMultipleSnippets(): boolean;
22
22
  get imported(): ImportedResourceMap;
23
23
  onSaveSnippetLists(lists: SnippetList[], allowMultipleSnippets: boolean): void;
@@ -1,15 +1,14 @@
1
1
  import { Command } from '@lblod/ember-rdfa-editor';
2
- import { type ImportedResourceMap } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
2
+ import { type SnippetListProperties } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
3
3
  export interface InsertSnippetCommandArgs {
4
4
  content: string;
5
5
  title: string;
6
- assignedSnippetListsIds: string[];
7
- importedResources?: ImportedResourceMap;
6
+ listProperties: SnippetListProperties;
8
7
  range?: {
9
8
  start: number;
10
9
  end: number;
11
10
  };
12
11
  allowMultipleSnippets?: boolean;
13
12
  }
14
- declare const insertSnippet: ({ content, title, assignedSnippetListsIds, importedResources, range, allowMultipleSnippets, }: InsertSnippetCommandArgs) => Command;
13
+ declare const insertSnippet: ({ content, title, listProperties, range, allowMultipleSnippets, }: InsertSnippetCommandArgs) => Command;
15
14
  export default insertSnippet;
@@ -4,6 +4,7 @@ export declare const DEFAULT_CONTENT_STRING = "block+";
4
4
  export type SnippetPluginConfig = {
5
5
  endpoint: string;
6
6
  allowedContent?: string;
7
+ hidePlaceholderInsertButton?: boolean;
7
8
  };
8
9
  interface SnippetArgs {
9
10
  title: string | null;
@@ -17,14 +18,18 @@ export declare class Snippet {
17
18
  constructor({ title, createdOn, content }: SnippetArgs);
18
19
  }
19
20
  export type ImportedResourceMap = Record<string, Option<string>>;
21
+ export type SnippetListProperties = {
22
+ placeholderId: string;
23
+ listIds: string[];
24
+ names: string[];
25
+ importedResources: ImportedResourceMap;
26
+ };
20
27
  export type SnippetListArgs = {
21
28
  id: string;
22
29
  label: string;
23
30
  createdOn: string;
24
31
  importedResources: string[];
25
32
  };
26
- export declare const getSnippetUriFromId: (id: string) => string;
27
- export declare const getSnippetIdFromUri: (uri: string) => string;
28
33
  export declare class SnippetList {
29
34
  id: string;
30
35
  label: string;
@@ -1,8 +1,17 @@
1
1
  import { type Schema } from '@lblod/ember-rdfa-editor';
2
- import { type ImportedResourceMap, type SnippetList } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
2
+ import { type SnippetListProperties, type ImportedResourceMap, type SnippetList, type SnippetPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
3
3
  export declare function importedResourcesFromSnippetLists(lists: SnippetList[], existing?: ImportedResourceMap): {
4
4
  [k: string]: import("../../../utils/option").Option<string>;
5
5
  };
6
- export declare function createSnippetPlaceholder(lists: SnippetList[], schema: Schema, allowMultipleSnippets?: boolean): import("prosemirror-model").Node;
7
- export declare const snippetPlaceholder: import("@lblod/ember-rdfa-editor/core/say-node-spec").default;
8
- export declare const snippetPlaceholderView: (controller: import("@lblod/ember-rdfa-editor").SayController) => import("@lblod/ember-rdfa-editor/utils/ember-node").SayNodeViewConstructor;
6
+ type CreateSnippetPlaceholderArgs = {
7
+ schema: Schema;
8
+ allowMultipleSnippets?: boolean;
9
+ } & ({
10
+ listProperties: SnippetListProperties;
11
+ } | {
12
+ lists: SnippetList[];
13
+ });
14
+ export declare function createSnippetPlaceholder({ schema, allowMultipleSnippets, ...args }: CreateSnippetPlaceholderArgs): import("prosemirror-model").Node;
15
+ export declare const snippetPlaceholder: (config: SnippetPluginConfig) => import("@lblod/ember-rdfa-editor/core/say-node-spec").default;
16
+ export declare const snippetPlaceholderView: (config: SnippetPluginConfig) => (controller: import("@lblod/ember-rdfa-editor").SayController) => import("@lblod/ember-rdfa-editor/utils/ember-node").SayNodeViewConstructor;
17
+ export {};
@@ -1,13 +1,12 @@
1
1
  import { type PNode, type Schema } from '@lblod/ember-rdfa-editor';
2
2
  import { type OutgoingTriple } from '@lblod/ember-rdfa-editor/core/rdfa-processor';
3
- import { type ImportedResourceMap, type SnippetPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
3
+ import { SnippetListProperties, type SnippetPluginConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/snippet-plugin';
4
4
  interface CreateSnippetArgs {
5
5
  schema: Schema;
6
+ allowMultipleSnippets?: boolean;
6
7
  content: string;
7
8
  title: string;
8
- snippetListIds: string[];
9
- importedResources?: ImportedResourceMap;
10
- allowMultipleSnippets?: boolean;
9
+ listProperties: SnippetListProperties;
11
10
  }
12
11
  /**
13
12
  * Creates a Snippet node wrapping the given content while allowing for further snippets to be added
@@ -15,7 +14,7 @@ interface CreateSnippetArgs {
15
14
  * @returns a tuple containing the Node and the map of imported resources to the new outgoing
16
15
  * properties that these resources will have after the snippet is inserted into the document.
17
16
  **/
18
- export declare function createSnippet({ schema, content, title, snippetListIds, importedResources, allowMultipleSnippets, }: CreateSnippetArgs): [PNode, Map<string, OutgoingTriple[]>];
17
+ export declare function createSnippet({ schema, content, title, allowMultipleSnippets, listProperties: { listIds, names: snippetListNames, importedResources, placeholderId, }, }: CreateSnippetArgs): [PNode, Map<string, OutgoingTriple[]>];
19
18
  export declare const snippet: (config: SnippetPluginConfig) => import("@lblod/ember-rdfa-editor/core/say-node-spec").default;
20
19
  export declare const snippetView: (config: SnippetPluginConfig) => (controller: import("@lblod/ember-rdfa-editor").SayController) => import("@lblod/ember-rdfa-editor/utils/ember-node").SayNodeViewConstructor;
21
20
  export {};
@@ -1,7 +1,7 @@
1
1
  import { Snippet, SnippetList } from '../index';
2
2
  type Filter = {
3
3
  name?: string;
4
- assignedSnippetListIds?: string[];
4
+ snippetListIds?: string[];
5
5
  };
6
6
  export type OrderBy = 'label' | 'created-on' | '-label' | '-created-on' | '' | null;
7
7
  type Pagination = {
@@ -1,5 +1,12 @@
1
- import { PNode } from '@lblod/ember-rdfa-editor';
2
- import { OutgoingTriple } from '@lblod/ember-rdfa-editor/core/rdfa-processor';
1
+ import { type PNode } from '@lblod/ember-rdfa-editor';
2
+ import { type OutgoingTriple } from '@lblod/ember-rdfa-editor/core/rdfa-processor';
3
3
  export declare const SNIPPET_LIST_RDFA_PREDICATE: import("@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace").Resource;
4
+ export declare const getSnippetUriFromId: (id: string) => string;
5
+ export declare const getSnippetIdFromUri: (uri: string) => string;
6
+ export declare function tripleForSnippetListId(id: string): {
7
+ predicate: string;
8
+ object: import("@lblod/ember-rdfa-editor/core/say-data-factory").SayNamedNode<string>;
9
+ };
4
10
  export declare const getSnippetListIdsProperties: (node: PNode) => OutgoingTriple[];
5
11
  export declare const getAssignedSnippetListsIdsFromProperties: (snippetListIdsProperty?: OutgoingTriple[] | undefined) => string[];
12
+ export declare const getSnippetListIdsFromNode: (node: PNode) => string[];
@@ -0,0 +1,2 @@
1
+ import { type PNode } from '@lblod/ember-rdfa-editor';
2
+ export declare function hasDecendant(nodeToDescendInto: PNode, matchFunc: (node: PNode) => boolean): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "24.3.1",
3
+ "version": "24.3.2-dev.2ac9ceabc39305020bc2d6bbf37755c2dcb383ac",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -57,6 +57,7 @@
57
57
  "@curvenote/prosemirror-utils": "^1.0.5",
58
58
  "@embroider/macros": "^1.16.5",
59
59
  "@lblod/marawa": "0.8.0-beta.6",
60
+ "@lblod/template-uuid-instantiator": "^1.0.2",
60
61
  "@rdfjs/data-model": "^2.0.2",
61
62
  "@rdfjs/dataset": "^2.0.2",
62
63
  "@rdfjs/parser-n3": "^2.0.2",
package/pnpm-lock.yaml CHANGED
@@ -29,6 +29,9 @@ importers:
29
29
  '@lblod/marawa':
30
30
  specifier: 0.8.0-beta.6
31
31
  version: 0.8.0-beta.6
32
+ '@lblod/template-uuid-instantiator':
33
+ specifier: ^1.0.2
34
+ version: 1.0.2
32
35
  '@rdfjs/data-model':
33
36
  specifier: ^2.0.2
34
37
  version: 2.0.2
@@ -1618,6 +1621,9 @@ packages:
1618
1621
  '@lblod/marawa@0.8.0-beta.6':
1619
1622
  resolution: {integrity: sha512-BW3yCpeQlk9EPnQAEQnM9uViA8RC5DkuoiaPJzbuhMcLvKHfI4cjc6dTg9i8qAijbL/xObmQ/Aexko2Xcj9ktw==}
1620
1623
 
1624
+ '@lblod/template-uuid-instantiator@1.0.2':
1625
+ resolution: {integrity: sha512-gw6nJnWCcHZYOG/Z/5Br8Txjqi5qV4S95ApoBpxeJKFzFyXMpl1Gh6LOKeOtuJerLp4NtZ71uVTJ3LzrrS2bdQ==}
1626
+
1621
1627
  '@lezer/common@1.2.1':
1622
1628
  resolution: {integrity: sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ==}
1623
1629
 
@@ -4968,7 +4974,7 @@ packages:
4968
4974
  resolution: {integrity: sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==}
4969
4975
  engines: {node: '>= 4.0'}
4970
4976
  os: [darwin]
4971
- deprecated: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
4977
+ deprecated: Upgrade to fsevents v2 to mitigate potential security issues
4972
4978
 
4973
4979
  fsevents@2.3.3:
4974
4980
  resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
@@ -10804,6 +10810,10 @@ snapshots:
10804
10810
  '@rdfjs/data-model': 1.3.4
10805
10811
  '@rdfjs/dataset': 1.1.1
10806
10812
 
10813
+ '@lblod/template-uuid-instantiator@1.0.2':
10814
+ dependencies:
10815
+ uuid: 9.0.1
10816
+
10807
10817
  '@lezer/common@1.2.1': {}
10808
10818
 
10809
10819
  '@lezer/css@1.1.8':
@@ -301,10 +301,10 @@ snippet-plugin:
301
301
  placeholder:
302
302
  title-single: Snippet from the list "{listName}"
303
303
  title-multiple: Snippet from multiple lists
304
- text: Select this then insert the desired snippet
304
+ button: Select the desired snippet
305
305
  active-lists: 'Active lists:'
306
306
  modal:
307
- title: Choose a snippet
307
+ title: Choose a snippet from {snippetListNames}
308
308
  preview-button:
309
309
  title: Show snippet preview
310
310
  select-button:
@@ -300,10 +300,10 @@ snippet-plugin:
300
300
  placeholder:
301
301
  title-single: Fragment uit de lijst "{listName}"
302
302
  title-multiple: Fragment uit meerdere lijsten
303
- text: Selecteer dit en voeg het gewenste fragment in
303
+ button: Selecteer het gewenste fragment
304
304
  active-lists: 'Actieve lijsten:'
305
305
  modal:
306
- title: Kies een fragment
306
+ title: Kies een fragment uit {snippetListNames}
307
307
  preview-button:
308
308
  title: Preview van fragment tonen
309
309
  select-button:
@@ -0,0 +1,3 @@
1
+ declare module '@lblod/template-uuid-instantiator' {
2
+ export default function (content: string): string;
3
+ }