@lblod/ember-rdfa-editor-lblod-plugins 14.2.0 → 15.0.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +42 -30
  3. package/addon/components/article-structure-plugin/article-structure-card.hbs +2 -2
  4. package/addon/components/article-structure-plugin/article-structure-card.ts +1 -1
  5. package/addon/components/article-structure-plugin/structure-card.ts +1 -1
  6. package/addon/components/citation-plugin/citation-insert.hbs +2 -2
  7. package/addon/components/citation-plugin/citations/article-list.hbs +3 -3
  8. package/addon/components/citation-plugin/citations/legal-document-list.hbs +3 -3
  9. package/addon/components/citation-plugin/citations/search-modal.ts +1 -1
  10. package/addon/components/decision-plugin/decision-plugin-card.ts +1 -1
  11. package/addon/components/document-title-plugin/insert-title-card.hbs +2 -2
  12. package/addon/components/document-title-plugin/insert-title-card.ts +1 -1
  13. package/addon/components/hover-tooltip.hbs +2 -2
  14. package/addon/components/hover-tooltip.ts +2 -0
  15. package/addon/components/import-snippet-plugin/card.ts +1 -1
  16. package/addon/components/roadsign-regulation-plugin/measure-template.ts +1 -1
  17. package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +2 -2
  18. package/addon/components/roadsign-regulation-plugin/roadsigns-modal.ts +1 -1
  19. package/addon/components/snippet-plugin/snippet-insert.hbs +2 -2
  20. package/addon/components/snippet-plugin/snippets/snippet-list.hbs +3 -3
  21. package/addon/components/standard-template-plugin/card.hbs +2 -2
  22. package/addon/components/table-of-contents-plugin/ember-nodes/outline.hbs +3 -3
  23. package/addon/components/table-of-contents-plugin/ember-nodes/table-of-contents.ts +1 -1
  24. package/addon/components/template-comments-plugin/insert.hbs +2 -2
  25. package/addon/components/validation-plugin/validation-item.ts +1 -1
  26. package/addon/components/variable-plugin/address/edit.ts +1 -1
  27. package/addon/components/variable-plugin/address/insert.hbs +2 -2
  28. package/addon/components/variable-plugin/codelist/insert.ts +1 -1
  29. package/addon/components/variable-plugin/date/date-time-picker.ts +1 -1
  30. package/addon/components/variable-plugin/date/edit.hbs +3 -3
  31. package/addon/components/variable-plugin/date/edit.ts +4 -1
  32. package/addon/components/variable-plugin/date/insert.hbs +2 -2
  33. package/addon/components/variable-plugin/insert-variable-card.hbs +4 -5
  34. package/addon/components/variable-plugin/insert-variable-card.ts +3 -5
  35. package/addon/components/variable-plugin/location/insert.ts +1 -1
  36. package/addon/components/variable-plugin/number/insert.ts +1 -1
  37. package/addon/components/variable-plugin/number/nodeview.hbs +2 -2
  38. package/addon/components/variable-plugin/number/nodeview.ts +4 -1
  39. package/addon/helpers/capitalize.ts +1 -0
  40. package/addon/helpers/in-array.ts +1 -1
  41. package/addon/helpers/limit-text.ts +3 -2
  42. package/components/hover-tooltip.d.ts +2 -0
  43. package/components/variable-plugin/date/edit.d.ts +2 -0
  44. package/components/variable-plugin/insert-variable-card.d.ts +2 -4
  45. package/components/variable-plugin/number/nodeview.d.ts +2 -0
  46. package/helpers/capitalize.d.ts +2 -0
  47. package/helpers/in-array.d.ts +1 -0
  48. package/helpers/limit-text.d.ts +1 -0
  49. package/index.js +3 -0
  50. package/package.json +10 -9
  51. package/types/global.d.ts +0 -17
  52. package/types/n2words/index.d.ts +6 -0
  53. package/types/tracked-toolbox/index.d.ts +11 -0
  54. package/webpack-config.js +22 -0
  55. package/.woodpecker/.scenarios.yml +0 -13
  56. package/app/components/citation-plugin/citations/modal.js +0 -1
  57. package/app/components/template-comments-plugin/comment-editor.js +0 -1
  58. package/app/components/template-comments-plugin/insert-template-comment.js +0 -1
  59. package/app/services/rdfa-editor-roadsign-regulation-plugin.js +0 -1
  60. package/types/ember-mu-transform-helpers/transforms/string-set.d.ts +0 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,84 @@
1
1
  # @lblod/ember-rdfa-editor-lblod-plugins
2
2
 
3
+ ## 15.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#323](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/323) [`5bedaab`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/5bedaabb7efa05626012333e63095671309e9f97) Thanks [@elpoelma](https://github.com/elpoelma)! - Remove usage of `component` helper in preparation of embroider-compatibility.
8
+
9
+ This removal also causes a change in the variable-plugin insert-component API, the insert-components now need to be passed directly (instead of their path).
10
+
11
+ Before:
12
+
13
+ ```typescript
14
+ get variableTypes(): VariableConfig[] {
15
+ return [
16
+ {
17
+ label: 'text',
18
+ component: {
19
+ path: 'variable-plugin/text/insert',
20
+ },
21
+ },
22
+ {
23
+ label: 'location',
24
+ component: {
25
+ path: 'variable-plugin/location/insert',
26
+ options: {
27
+ endpoint: 'https://dev.roadsigns.lblod.info/sparql',
28
+ },
29
+ },
30
+ },
31
+ ];
32
+ }
33
+ ```
34
+
35
+ After:
36
+
37
+ ```typescript
38
+ import TextVariableInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/text/insert';
39
+ import LocationInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/location/insert';
40
+ ...
41
+ get variableTypes() {
42
+ return [
43
+ {
44
+ label: 'text',
45
+ component: TextVariableInsertComponent,
46
+ },
47
+ {
48
+ label: 'location',
49
+ component: LocationInsertComponent,
50
+ options: {
51
+ endpoint: 'https://dev.roadsigns.lblod.info/sparql',
52
+ },
53
+ },
54
+ ];
55
+ }
56
+ ```
57
+
58
+ - [#333](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/333) [`04ea965`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/04ea96580189ee0a9440fe77618b8b2c1d9941a5) Thanks [@elpoelma](https://github.com/elpoelma)! - Drop support for ember 3.28
59
+ The minimum required version of `ember-source` is now 4.8.0.
60
+ The 5.x range remains untested.
61
+
62
+ ### Minor Changes
63
+
64
+ - [#332](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/332) [`cf7082f`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/cf7082fdd89c862936276cfb562a0a07e5a49c4b) Thanks [@elpoelma](https://github.com/elpoelma)! - Expose a Webpack config for Embroidered apps
65
+
66
+ - [#332](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/332) [`cf7082f`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/cf7082fdd89c862936276cfb562a0a07e5a49c4b) Thanks [@elpoelma](https://github.com/elpoelma)! - Specify `@ember/string` 3.x as a peerdep
67
+
68
+ - [#334](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/334) [`fd271a1`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/fd271a1dd9b32e4081707ea416f35be70f57aa30) Thanks [@elpoelma](https://github.com/elpoelma)! - Add support for the ember-concurrency 3.x range
69
+
70
+ - [#332](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/332) [`cf7082f`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/cf7082fdd89c862936276cfb562a0a07e5a49c4b) Thanks [@elpoelma](https://github.com/elpoelma)! - Specify `ember-power-select` 6.x|7.x as a peerdep
71
+
72
+ - [#325](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/325) [`4c402d2`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/4c402d21f6e45a03436fd5155bb508ce6c3fb091) Thanks [@elpoelma](https://github.com/elpoelma)! - Remove redundant types for `string-set` ember-data transform
73
+
74
+ - [#324](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/324) [`95634ed`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/95634eda12927736fa16945ff85b80876b7c0058) Thanks [@elpoelma](https://github.com/elpoelma)! - Remove direct usages of aulist::item in order to ensure compatibility with `@appuniversum/ember-appuniversum` 2.16.0
75
+
76
+ - [#325](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/325) [`4c402d2`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/4c402d21f6e45a03436fd5155bb508ce6c3fb091) Thanks [@elpoelma](https://github.com/elpoelma)! - Fix internal types for tracked-toolbox
77
+
78
+ ### Patch Changes
79
+
80
+ - [#331](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/331) [`910ec85`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/910ec8596b602a0ff408da0fcec4222ad81fb75a) Thanks [@piemonkey](https://github.com/piemonkey)! - Small internal changes to allow for embroider builds
81
+
3
82
  ## 14.2.0
4
83
 
5
84
  ### Minor Changes
package/README.md CHANGED
@@ -5,8 +5,8 @@ related to the LBLOD Project.
5
5
 
6
6
  ## Compatibility
7
7
 
8
- - Ember.js and ember data v3.28 or 4.x
9
- note: we smoke-test for 3.28 but develop on the latest 4.x minor. The 5.x range is currently untested and not officially supported, but we accept issues and PRs to do so.
8
+ - Ember.js 4.8+
9
+ The 5.x range is currently untested and not officially supported, but we accept issues and PRs to do so.
10
10
 
11
11
  - Embroider or ember-auto-import v2
12
12
  - Node 18 or above
@@ -368,7 +368,7 @@ This plugin provides an Ember service, `import-rdfa-snippet` which allows you to
368
368
  manner:
369
369
 
370
370
  ```js
371
- import { inject as service } from '@ember/service';
371
+ import { service } from '@ember/service';
372
372
 
373
373
  // An entry point to download the resouce (e.g a route) in your host app.
374
374
  // (...)
@@ -563,7 +563,7 @@ The `variable-plugin/insert-variable-card` can be easily configured: it expects
563
563
  - `controller`: An instance of the `SayController` class
564
564
  - `variableTypes`: A list of `VariableConfig` objects. With each `VariableConfig` containing:
565
565
  - the `label` which should be displayed in the variable-select dropdown
566
- - the `path` to the insert-variable component
566
+ - the `component`: class of the component which should be displayed upon selecting the variable type.
567
567
  - _optionally_ an `options` argument object which should be passed to the insert-variable component.
568
568
 
569
569
  * The `VariableConfig` type is defined as follows:
@@ -571,10 +571,8 @@ The `variable-plugin/insert-variable-card` can be easily configured: it expects
571
571
  ```js
572
572
  type VariableConfig = {
573
573
  label: string;
574
- component: {
575
- path: string;
576
- options?: unknown;
577
- };
574
+ component: ComponentLike;
575
+ options?: unknown;
578
576
  };
579
577
  ```
580
578
 
@@ -592,49 +590,44 @@ To allows users to insert variables into a document, add the following to the ed
592
590
  `this.controller` is an instance of `SayController` and `this.variableTypes` is the list of `VariableConfig` objects which should be defined in your controller/component class:
593
591
 
594
592
  ```js
593
+ import TextVariableInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/text/insert';
594
+ import NumberInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/number/insert';
595
+ import DateInsertVariableComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/date/insert-variable';
596
+ import LocationInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/location/insert';
597
+ import CodelistInsertComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/codelist/insert';
598
+ import VariablePluginAddressInsertVariableComponent from '@lblod/ember-rdfa-editor-lblod-plugins/components/variable-plugin/address/insert-variable';
599
+ ...
595
600
  get variableTypes() {
596
601
  return [
597
602
  {
598
603
  label: 'text',
599
- component: {
600
- path: 'variable-plugin/text/insert',
601
- },
604
+ component: TextVariableInsertComponent,
602
605
  },
603
606
  {
604
607
  label: 'number',
605
- component: {
606
- path: 'variable-plugin/number/insert',
607
- },
608
+ component: NumberInsertComponent,
608
609
  },
609
610
  {
610
611
  label: 'date',
611
- component: {
612
- path: 'variable-plugin/date/insert',
613
- },
612
+ component: DateInsertVariableComponent
614
613
  },
615
614
  {
616
615
  label: 'location',
617
- component: {
618
- path: 'variable-plugin/location/insert',
619
- options: {
620
- endpoint: 'https://dev.roadsigns.lblod.info/sparql',
621
- },
616
+ component: LocationInsertComponent,
617
+ options: {
618
+ endpoint: 'https://dev.roadsigns.lblod.info/sparql',
622
619
  },
623
620
  },
624
621
  {
625
622
  label: 'codelist',
626
- component: {
627
- path: 'variable-plugin/codelist/insert',
628
- options: {
629
- endpoint: 'https://dev.roadsigns.lblod.info/sparql',
630
- },
623
+ component: CodelistInsertComponent,
624
+ options: {
625
+ endpoint: 'https://dev.roadsigns.lblod.info/sparql',
631
626
  },
632
627
  },
633
628
  {
634
629
  label: 'address',
635
- component: {
636
- path: 'variable-plugin/address/insert-variable',
637
- },
630
+ component: VariablePluginAddressInsertVariableComponent,
638
631
  },
639
632
  ];
640
633
  }
@@ -817,6 +810,25 @@ Template comments have a specific style that can be imported in the stylesheet w
817
810
  @import 'template-comments-plugin';
818
811
  ```
819
812
 
813
+ ## Embroider
814
+ To use `@lblod/ember-rdfa-editor-lblod-plugins` with Embroider some extra Webpack configuration is needed, which you can import like this:
815
+
816
+ ```js
817
+ // ember-cli-build.js
818
+ // ...
819
+ const { Webpack } = require('@embroider/webpack');
820
+ return require('@embroider/compat').compatBuild(app, Webpack, {
821
+ // other Embroider options
822
+ packagerOptions: {
823
+ webpackConfig: require('@lblod/ember-rdfa-editor-lblod-plugins/webpack-config'),
824
+ },
825
+ extraPublicTrees: [],
826
+ });
827
+ };
828
+ ```
829
+
830
+ If you already provide some Webpack configuration, you can deep merge that with the config object we provide.
831
+
820
832
  ## Contributing
821
833
 
822
834
  See the [Contributing](CONTRIBUTING.md) guide for details.
@@ -1,10 +1,10 @@
1
1
  <div>
2
2
  {{#each this.structureTypes as |structureType|}}
3
- <AuList::Item>
3
+ <li class="au-c-list__item">
4
4
  <AuButton @icon="add" @iconAlignment="left" @skin="link" @disabled={{not (this.canInsertStructure structureType)}}
5
5
  {{on 'click' (fn this.insertStructure structureType)}}>
6
6
  {{t structureType.translations.insert}}
7
7
  </AuButton>
8
- </AuList::Item>
8
+ </li>
9
9
  {{/each}}
10
10
  </div>
@@ -1,5 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
- import { inject as service } from '@ember/service';
2
+ import { service } from '@ember/service';
3
3
  import IntlService from 'ember-intl/services/intl';
4
4
  import {
5
5
  ArticleStructurePluginOptions,
@@ -9,7 +9,7 @@ import {
9
9
  import { ArticleStructurePluginOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin';
10
10
  import { findAncestorOfType } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/article-structure-plugin/utils/structure';
11
11
  import { tracked } from '@glimmer/tracking';
12
- import { inject as service } from '@ember/service';
12
+ import { service } from '@ember/service';
13
13
  import IntlService from 'ember-intl/services/intl';
14
14
 
15
15
  type Args = {
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @icon='add'
4
4
  @iconAlignment='left'
@@ -8,7 +8,7 @@
8
8
  >
9
9
  {{t 'citaten-plugin.insert.title'}}
10
10
  </AuButton>
11
- </AuList::Item>
11
+ </li>
12
12
 
13
13
  <CitationPlugin::Citations::SearchModal
14
14
  @open={{this.showModal}}
@@ -1,11 +1,11 @@
1
1
  {{#if @articles.length}}
2
- <AuList @direction="vertical" @divider={{true}}>
2
+ <AuList @direction="vertical" @divider={{true}} as |Item|>
3
3
  {{#each @articles as |article|}}
4
- <AuList::Item>
4
+ <Item>
5
5
  <CitationPlugin::Citations::ArticlePreview
6
6
  @insertArticleCitation={{fn @insertArticleCitation article}}
7
7
  @article={{article}} />
8
- </AuList::Item>
8
+ </Item>
9
9
  {{/each}}
10
10
  </AuList>
11
11
  {{else}}
@@ -1,13 +1,13 @@
1
1
  {{#if @legalDocuments.length}}
2
- <AuList @direction="vertical" @divider={{true}}>
2
+ <AuList @direction="vertical" @divider={{true}} as |Item|>
3
3
  {{#each @legalDocuments as |legalDocument|}}
4
- <AuList::Item class="au-u-padding-left-small au-u-padding-right-small">
4
+ <Item class="au-u-padding-left-small au-u-padding-right-small">
5
5
  <CitationPlugin::Citations::LegalDocumentPreview
6
6
  @legalDocument={{legalDocument}}
7
7
  @onCitationInsert={{fn @onCitationInsert legalDocument}}
8
8
  @onCitationDetails={{fn @onCitationDetails legalDocument}}
9
9
  @fullSize={{@fullSize}} />
10
- </AuList::Item>
10
+ </Item>
11
11
  {{/each}}
12
12
  </AuList>
13
13
  {{else}}
@@ -2,7 +2,7 @@ import Component from '@glimmer/component';
2
2
  import { tracked } from '@glimmer/tracking';
3
3
  import { action } from '@ember/object';
4
4
  import { restartableTask, timeout } from 'ember-concurrency';
5
- import { inject as service } from '@ember/service';
5
+ import { service } from '@ember/service';
6
6
  import { capitalize } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/strings';
7
7
  import { task as trackedTask } from 'ember-resources/util/ember-concurrency';
8
8
  import {
@@ -5,7 +5,7 @@ import {
5
5
  insertArticleContainer,
6
6
  } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/decision-plugin/commands';
7
7
  import { SayController } from '@lblod/ember-rdfa-editor';
8
- import { inject as service } from '@ember/service';
8
+ import { service } from '@ember/service';
9
9
  import IntlService from 'ember-intl/services/intl';
10
10
  import { VALIDATION_KEY } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/validation';
11
11
 
@@ -1,5 +1,5 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton @icon="add" @iconAlignment="left" @skin="link" {{on 'click' this.insertTitle}} @disabled={{not this.canInsertTitle}}>
3
3
  {{t "document-title-plugin.insert-title"}}
4
4
  </AuButton>
5
- </AuList::Item>
5
+ </li>
@@ -1,6 +1,6 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { action } from '@ember/object';
3
- import { inject as service } from '@ember/service';
3
+ import { service } from '@ember/service';
4
4
  import { SayController } from '@lblod/ember-rdfa-editor';
5
5
  import IntlService from 'ember-intl/services/intl';
6
6
  import insertDocumentTitle from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/document-title-plugin/commands/insert-document-title';
@@ -1,8 +1,8 @@
1
- <Velcro @placement={{this.placement}} as |velcro|>
1
+ <this.Velcro @placement={{this.placement}} as |velcro|>
2
2
  {{#let velcro.loop as |loop|}}
3
3
  {{yield (hash velcroHook=velcro.hook handleHover=(modifier this.hover)) to='hover' }}
4
4
  {{#if this.tooltipOpen}}
5
5
  {{yield loop to='tooltip'}}
6
6
  {{/if}}
7
7
  {{/let}}
8
- </Velcro>
8
+ </this.Velcro>
@@ -1,12 +1,14 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { modifier } from 'ember-modifier';
3
3
  import { tracked } from '@glimmer/tracking';
4
+ import { Velcro } from 'ember-velcro';
4
5
 
5
6
  interface Args {
6
7
  placement?: string;
7
8
  }
8
9
 
9
10
  export default class HoverTooltip extends Component<Args> {
11
+ Velcro = Velcro;
10
12
  hover = modifier(
11
13
  (element) => {
12
14
  element.addEventListener('mouseenter', this.showTooltip);
@@ -1,5 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
- import { inject as service } from '@ember/service';
2
+ import { service } from '@ember/service';
3
3
  import { action } from '@ember/object';
4
4
  import { ProseParser } from '@lblod/ember-rdfa-editor';
5
5
  import { SayController } from '@lblod/ember-rdfa-editor';
@@ -1,5 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
- import { inject as service } from '@ember/service';
2
+ import { service } from '@ember/service';
3
3
  import includeInstructions from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/roadsign-regulation-plugin/utils/includeInstructions';
4
4
  import RoadsignRegistryService from '@lblod/ember-rdfa-editor-lblod-plugins/services/roadsign-registry';
5
5
  import { trackedFunction } from 'ember-resources/util/function';
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @skin="link"
4
4
  @icon="add"
@@ -8,5 +8,5 @@
8
8
  >
9
9
  {{t "editor-plugins.roadsign-regulation.card.insert-measure"}}
10
10
  </AuButton>
11
- </AuList::Item>
11
+ </li>
12
12
  <RoadsignRegulationPlugin::RoadsignsModal @modalOpen={{this.modalOpen}} @closeModal={{this.closeModal}} @controller={{@controller}} @options={{@options}}/>
@@ -3,7 +3,7 @@ import Component from '@glimmer/component';
3
3
  import { tracked } from '@glimmer/tracking';
4
4
  import { task } from 'ember-concurrency';
5
5
  import { v4 as uuid } from 'uuid';
6
- import { inject as service } from '@ember/service';
6
+ import { service } from '@ember/service';
7
7
  import includeInstructions from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/roadsign-regulation-plugin/utils/includeInstructions';
8
8
  import {
9
9
  NON_ZONAL_URI,
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @icon='add'
4
4
  @iconAlignment='left'
@@ -7,7 +7,7 @@
7
7
  >
8
8
  {{t 'snippet-plugin.insert.title'}}
9
9
  </AuButton>
10
- </AuList::Item>
10
+ </li>
11
11
 
12
12
  <SnippetPlugin::SearchModal
13
13
  @open={{this.showModal}}
@@ -1,12 +1,12 @@
1
1
  {{#if @snippets.length}}
2
- <AuList @direction='vertical'>
2
+ <AuList @direction='vertical' as |Item|>
3
3
  {{#each @snippets as |snippet|}}
4
- <AuList::Item>
4
+ <Item>
5
5
  <SnippetPlugin::Snippets::SnippetPreview
6
6
  @snippet={{snippet}}
7
7
  @onInsert={{@onInsert}}
8
8
  />
9
- </AuList::Item>
9
+ </Item>
10
10
  {{/each}}
11
11
  </AuList>
12
12
  {{/if}}
@@ -1,7 +1,7 @@
1
1
  <StandardTemplatePlugin::TemplateProvider @controller={{@controller}} @templates={{@templates}} as |provider|>
2
2
  {{#if provider.hasApplicableTemplates}}
3
3
  {{#each provider.applicableTemplates as |template|}}
4
- <AuList::Item>
4
+ <li class="au-c-list__item">
5
5
  <AuButton
6
6
  @skin="link"
7
7
  @icon="add"
@@ -10,7 +10,7 @@
10
10
  >
11
11
  {{template.title}}
12
12
  </AuButton>
13
- </AuList::Item>
13
+ </li>
14
14
  {{/each}}
15
15
  {{/if}}
16
16
  </StandardTemplatePlugin::TemplateProvider>
@@ -1,6 +1,6 @@
1
- <AuList @divider={{true}} class='table-of-contents'>
1
+ <AuList @divider={{true}} class='table-of-contents' as |Item|>
2
2
  {{#each @entries as |outlineEntry|}}
3
- <AuList::Item>
3
+ <Item>
4
4
  <AuButton
5
5
  @wrap={{true}}
6
6
  {{! template-lint-disable no-capital-arguments }}
@@ -16,6 +16,6 @@
16
16
  @onEntryClick={{@onEntryClick}}
17
17
  />
18
18
  {{/if}}
19
- </AuList::Item>
19
+ </Item>
20
20
  {{/each}}
21
21
  </AuList>
@@ -4,7 +4,7 @@ import { EmberNodeArgs } from '@lblod/ember-rdfa-editor/utils/ember-node';
4
4
  import { Selection } from '@lblod/ember-rdfa-editor';
5
5
  import { TableOfContentsConfig } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/table-of-contents-plugin';
6
6
  import { extractOutline } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/table-of-contents-plugin/utils';
7
- import { inject as service } from '@ember/service';
7
+ import { service } from '@ember/service';
8
8
  import IntlService from 'ember-intl/services/intl';
9
9
  export default class TableOfContentsComponent extends Component<EmberNodeArgs> {
10
10
  @service declare intl: IntlService;
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @icon='add'
4
4
  @iconAlignment='left'
@@ -8,4 +8,4 @@
8
8
  >
9
9
  {{t 'template-comments-plugin.insert.title'}}
10
10
  </AuButton>
11
- </AuList::Item>
11
+ </li>
@@ -1,7 +1,7 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { SayController } from '@lblod/ember-rdfa-editor';
3
3
  import { ValidationResult } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/validation';
4
- import { inject as service } from '@ember/service';
4
+ import { service } from '@ember/service';
5
5
  import IntlService from 'ember-intl/services/intl';
6
6
 
7
7
  interface Args {
@@ -12,7 +12,7 @@ import {
12
12
  import { restartableTask, timeout } from 'ember-concurrency';
13
13
  import { trackedReset } from 'tracked-toolbox';
14
14
  import { trackedTask } from 'ember-resources/util/ember-concurrency';
15
- import { inject as service } from '@ember/service';
15
+ import { service } from '@ember/service';
16
16
  import IntlService from 'ember-intl/services/intl';
17
17
 
18
18
  type Args = {
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @icon="add"
4
4
  @iconAlignment="left"
@@ -7,4 +7,4 @@
7
7
  @disabled={{not this.canInsertAddress}}>
8
8
  {{t "editor-plugins.address.insert"}}
9
9
  </AuButton>
10
- </AuList::Item>
10
+ </li>
@@ -6,7 +6,7 @@ import {
6
6
  CodeList,
7
7
  fetchCodeListsByPublisher,
8
8
  } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/fetch-data';
9
- import { inject as service } from '@ember/service';
9
+ import { service } from '@ember/service';
10
10
  import IntlService from 'ember-intl/services/intl';
11
11
  import { trackedFunction } from 'ember-resources/util/function';
12
12
  import { v4 as uuidv4 } from 'uuid';
@@ -1,6 +1,6 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { action } from '@ember/object';
3
- import { inject as service } from '@ember/service';
3
+ import { service } from '@ember/service';
4
4
  import { localCopy } from 'tracked-toolbox';
5
5
  import Intl from 'ember-intl/services/intl';
6
6
 
@@ -21,7 +21,7 @@
21
21
  @onChange={{this.changeIncludeTime}}
22
22
  />
23
23
  {{#if this.isCustom}}
24
- <Velcro @placement="top" @offsetOptions={{hash mainAxis=10}} as |velcro|>
24
+ <this.Velcro @placement="top" @offsetOptions={{hash mainAxis=10}} as |velcro|>
25
25
  <AuBadge
26
26
  @size="small"
27
27
  @icon="info-circle"
@@ -40,7 +40,7 @@
40
40
  {{t 'date-plugin.card.info-custom-time'}}
41
41
  </AuPill>
42
42
  {{/if}}
43
- </Velcro>
43
+ </this.Velcro>
44
44
  {{/if}}
45
45
  </AuFormRow>
46
46
  </VariablePlugin::Date::DateTimePicker>
@@ -67,7 +67,7 @@
67
67
  @onChange={{this.setDateFormatFromKey}}
68
68
  />
69
69
  </AuFormRow>
70
- {{/if}}
70
+ {{/if}}
71
71
  {{#if (eq this.dateFormatType "custom")}}
72
72
  <AuFormRow @alignment="post">
73
73
  <AuButton @skin="secondary" @icon="info-circle"
@@ -3,7 +3,7 @@ import { tracked } from '@glimmer/tracking';
3
3
  import { action } from '@ember/object';
4
4
  import { SayController } from '@lblod/ember-rdfa-editor';
5
5
  import { NodeSelection, PNode } from '@lblod/ember-rdfa-editor';
6
- import { inject as service } from '@ember/service';
6
+ import { service } from '@ember/service';
7
7
  import IntlService from 'ember-intl/services/intl';
8
8
  import {
9
9
  isNone,
@@ -22,6 +22,7 @@ import {
22
22
  formatContainsTime,
23
23
  validateDateFormat,
24
24
  } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/date-helpers';
25
+ import { Velcro } from 'ember-velcro';
25
26
 
26
27
  type Args = {
27
28
  controller: SayController;
@@ -29,6 +30,8 @@ type Args = {
29
30
  };
30
31
  const SECONDS_REGEX = new RegExp('[sStT]|p{2,}');
31
32
  export default class DateEditComponent extends Component<Args> {
33
+ Velcro = Velcro;
34
+
32
35
  @service
33
36
  declare intl: IntlService;
34
37
 
@@ -1,4 +1,4 @@
1
- <AuList::Item>
1
+ <li class="au-c-list__item">
2
2
  <AuButton
3
3
  @icon="add"
4
4
  @iconAlignment="left"
@@ -6,4 +6,4 @@
6
6
  {{on 'click' this.insert}}>
7
7
  {{t "date-plugin.insert.date"}}
8
8
  </AuButton>
9
- </AuList::Item>
9
+ </li>
@@ -25,11 +25,10 @@
25
25
  {{variable.label}}
26
26
  </PowerSelect>
27
27
  {{#if this.selectedVariable}}
28
- {{component
29
- this.selectedVariable.component.path
30
- controller=this.controller
31
- options=this.selectedVariable.component.options
32
- }}
28
+ <this.selectedVariable.component
29
+ @controller={{this.controller}}
30
+ @options={{this.selectedVariable.options}}
31
+ />
33
32
  {{/if}}
34
33
  </c.content>
35
34
  </AuCard>
@@ -3,15 +3,13 @@ import { tracked } from '@glimmer/tracking';
3
3
  import { action } from '@ember/object';
4
4
  import { NodeSelection, SayController } from '@lblod/ember-rdfa-editor';
5
5
  import { hasGroups } from '@lblod/ember-rdfa-editor/utils/node-utils';
6
- import { inject as service } from '@ember/service';
6
+ import { service } from '@ember/service';
7
7
  import IntlService from 'ember-intl/services/intl';
8
8
 
9
9
  export type VariableConfig = {
10
10
  label: string;
11
- component: {
12
- path: string;
13
- options?: unknown;
14
- };
11
+ component: typeof Component;
12
+ options?: unknown;
15
13
  };
16
14
 
17
15
  type Args = {
@@ -2,7 +2,7 @@ import Component from '@glimmer/component';
2
2
  import { tracked } from '@glimmer/tracking';
3
3
  import { action } from '@ember/object';
4
4
  import { SayController } from '@lblod/ember-rdfa-editor';
5
- import { inject as service } from '@ember/service';
5
+ import { service } from '@ember/service';
6
6
  import IntlService from 'ember-intl/services/intl';
7
7
  import { v4 as uuidv4 } from 'uuid';
8
8
 
@@ -4,7 +4,7 @@ import { action } from '@ember/object';
4
4
  import { SayController } from '@lblod/ember-rdfa-editor';
5
5
  import { v4 as uuidv4 } from 'uuid';
6
6
  import { isNumber } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/strings';
7
- import { inject as service } from '@ember/service';
7
+ import { service } from '@ember/service';
8
8
  import IntlService from 'ember-intl/services/intl';
9
9
  import { modifier } from 'ember-modifier';
10
10
 
@@ -1,4 +1,4 @@
1
- <Velcro
1
+ <this.Velcro
2
2
  @placement='bottom-start'
3
3
  @offsetOptions={{hash mainAxis=3}} as |velcro|
4
4
  >
@@ -57,4 +57,4 @@
57
57
  </AuCard>
58
58
  </div>
59
59
  {{/if}}
60
- </Velcro>
60
+ </this.Velcro>
@@ -6,12 +6,13 @@ import {
6
6
  SayView,
7
7
  } from '@lblod/ember-rdfa-editor';
8
8
  import { action } from '@ember/object';
9
- import { inject as service } from '@ember/service';
9
+ import { service } from '@ember/service';
10
10
  import intlService from 'ember-intl/services/intl';
11
11
  import { localCopy } from 'tracked-toolbox';
12
12
  import { isBlank } from '@ember/utils';
13
13
  import { isNumber } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/strings';
14
14
  import { numberToWords } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/number-to-words';
15
+ import { Velcro } from 'ember-velcro';
15
16
 
16
17
  type Args = {
17
18
  getPos: () => number | undefined;
@@ -24,6 +25,8 @@ type Args = {
24
25
  };
25
26
 
26
27
  export default class NumberNodeviewComponent extends Component<Args> {
28
+ Velcro = Velcro;
29
+
27
30
  @localCopy('args.node.attrs.value', '') declare inputNumber: string;
28
31
  @localCopy('args.node.attrs.writtenNumber', false)
29
32
  declare writtenNumber: boolean;
@@ -4,3 +4,4 @@ import { capitalize as utilCapitalize } from '../utils/strings';
4
4
  export default helper(function capitalize([string]: string[]) {
5
5
  return utilCapitalize(string);
6
6
  });
7
+ export const capitalize = utilCapitalize;
@@ -2,7 +2,7 @@ import { helper } from '@ember/component/helper';
2
2
 
3
3
  type PositionalParams = [array: unknown[], needle: unknown];
4
4
 
5
- function inArray([theArray, needle]: PositionalParams) {
5
+ export function inArray([theArray, needle]: PositionalParams) {
6
6
  if (!Array.isArray(theArray)) {
7
7
  return false;
8
8
  }
@@ -1,9 +1,10 @@
1
1
  import { helper } from '@ember/component/helper';
2
2
 
3
- export default helper(function limitText([string]: string[]) {
3
+ export function limitText([string]: string[]) {
4
4
  if (string && string.length > 140) {
5
5
  return string.slice(0, 140) + '...';
6
6
  } else {
7
7
  return string;
8
8
  }
9
- });
9
+ }
10
+ export default helper(limitText);
@@ -1,8 +1,10 @@
1
1
  import Component from '@glimmer/component';
2
+ import { Velcro } from 'ember-velcro';
2
3
  interface Args {
3
4
  placement?: string;
4
5
  }
5
6
  export default class HoverTooltip extends Component<Args> {
7
+ Velcro: typeof Velcro;
6
8
  hover: import("ember-modifier").FunctionBasedModifier<{
7
9
  Args: {
8
10
  Named: Record<string, unknown>;
@@ -5,11 +5,13 @@ import IntlService from 'ember-intl/services/intl';
5
5
  import { Option } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/option';
6
6
  import { DateFormat, DateOptions } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/variables/date';
7
7
  import { ValidationError } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/variable-plugin/utils/date-helpers';
8
+ import { Velcro } from 'ember-velcro';
8
9
  type Args = {
9
10
  controller: SayController;
10
11
  options: DateOptions;
11
12
  };
12
13
  export default class DateEditComponent extends Component<Args> {
14
+ Velcro: typeof Velcro;
13
15
  intl: IntlService;
14
16
  helpModalOpen: boolean;
15
17
  tooltipOpen: boolean;
@@ -3,10 +3,8 @@ import { SayController } from '@lblod/ember-rdfa-editor';
3
3
  import IntlService from 'ember-intl/services/intl';
4
4
  export type VariableConfig = {
5
5
  label: string;
6
- component: {
7
- path: string;
8
- options?: unknown;
9
- };
6
+ component: typeof Component;
7
+ options?: unknown;
10
8
  };
11
9
  type Args = {
12
10
  controller: SayController;
@@ -1,6 +1,7 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { DecorationSource, PNode, SayController, SayView } from '@lblod/ember-rdfa-editor';
3
3
  import intlService from 'ember-intl/services/intl';
4
+ import { Velcro } from 'ember-velcro';
4
5
  type Args = {
5
6
  getPos: () => number | undefined;
6
7
  node: PNode;
@@ -11,6 +12,7 @@ type Args = {
11
12
  contentDecorations?: DecorationSource;
12
13
  };
13
14
  export default class NumberNodeviewComponent extends Component<Args> {
15
+ Velcro: typeof Velcro;
14
16
  inputNumber: string;
15
17
  writtenNumber: boolean;
16
18
  intl: intlService;
@@ -1,3 +1,4 @@
1
+ import { capitalize as utilCapitalize } from '../utils/strings';
1
2
  declare const _default: import("@ember/component/helper").FunctionBasedHelper<{
2
3
  Args: {
3
4
  Positional: string[];
@@ -6,3 +7,4 @@ declare const _default: import("@ember/component/helper").FunctionBasedHelper<{
6
7
  Return: string;
7
8
  }>;
8
9
  export default _default;
10
+ export declare const capitalize: typeof utilCapitalize;
@@ -1,4 +1,5 @@
1
1
  type PositionalParams = [array: unknown[], needle: unknown];
2
+ export declare function inArray([theArray, needle]: PositionalParams): boolean;
2
3
  declare const _default: import("@ember/component/helper").FunctionBasedHelper<{
3
4
  Args: {
4
5
  Positional: PositionalParams;
@@ -1,3 +1,4 @@
1
+ export declare function limitText([string]: string[]): string;
1
2
  declare const _default: import("@ember/component/helper").FunctionBasedHelper<{
2
3
  Args: {
3
4
  Positional: string[];
package/index.js CHANGED
@@ -12,5 +12,8 @@ module.exports = {
12
12
  babel: {
13
13
  sourceMaps: 'inline',
14
14
  },
15
+ autoImport: {
16
+ webpack: require('./webpack-config'),
17
+ },
15
18
  },
16
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lblod/ember-rdfa-editor-lblod-plugins",
3
- "version": "14.2.0",
3
+ "version": "15.0.0",
4
4
  "description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -42,13 +42,13 @@
42
42
  "@types/rdfjs__parser-n3": "^2.0.1",
43
43
  "buffer": "^6.0.3",
44
44
  "codemirror": "^6.0.1",
45
+ "crypto-browserify": "^3.12.0",
45
46
  "date-fns": "^2.30.0",
46
47
  "ember-auto-import": "~2.6.3",
47
48
  "ember-cli-babel": "^7.26.11",
48
49
  "ember-cli-htmlbars": "^6.1.1",
49
- "ember-concurrency": "^2.3.7",
50
+ "ember-concurrency": "^2.x || ^3.1.0",
50
51
  "ember-mu-transform-helpers": "^2.0.0",
51
- "ember-power-select": "^6.0.1",
52
52
  "ember-resources": "^6.1.1",
53
53
  "ember-velcro": "^2.1.0",
54
54
  "fetch-sparql-endpoint": "^3.0.0",
@@ -66,7 +66,7 @@
66
66
  "@changesets/changelog-github": "^0.4.8",
67
67
  "@changesets/cli": "^2.26.2",
68
68
  "@ember/optional-features": "^2.0.0",
69
- "@ember/test-helpers": "^2.8.1",
69
+ "@ember/test-helpers": "^2.9.3",
70
70
  "@embroider/test-setup": "^3.0.1",
71
71
  "@glimmer/component": "^1.1.2",
72
72
  "@glimmer/tracking": "^1.1.2",
@@ -93,7 +93,6 @@
93
93
  "@types/ember__template": "^4.0.1",
94
94
  "@types/ember__test": "^4.0.1",
95
95
  "@types/ember__utils": "^4.0.2",
96
- "@types/ember-resolver": "^5.0.13",
97
96
  "@types/prosemirror-dev-tools": "^3.0.3",
98
97
  "@types/qunit": "^2.19.3",
99
98
  "@types/rdf-ext": "^1.3.11",
@@ -114,12 +113,12 @@
114
113
  "ember-cli-terser": "^4.0.2",
115
114
  "ember-cli-typescript": "^5.2.1",
116
115
  "ember-disable-prototype-extensions": "^1.1.3",
117
- "ember-functions-as-helper-polyfill": "^2.1.1",
118
116
  "ember-intl": "^5.7.2",
119
117
  "ember-load-initializers": "^2.1.2",
120
118
  "ember-page-title": "^8.0.0",
119
+ "ember-power-select": "^7.1.2",
121
120
  "ember-qunit": "^6.0.0",
122
- "ember-resolver": "^8.0.3",
121
+ "ember-resolver": "^11.0.1",
123
122
  "ember-simple-auth": "4.2.2",
124
123
  "ember-source": "~4.12.0",
125
124
  "ember-source-channel-url": "^3.0.0",
@@ -144,11 +143,13 @@
144
143
  },
145
144
  "peerDependencies": {
146
145
  "@appuniversum/ember-appuniversum": "^2.4.2",
146
+ "@ember/string": "3.x",
147
147
  "@glint/template": "^1.1.0",
148
148
  "@lblod/ember-rdfa-editor": "^6.0.0",
149
- "ember-concurrency": "^2.3.7",
149
+ "ember-concurrency": "2.x || ^3.1.0",
150
150
  "ember-modifier": "^3.2.7",
151
- "ember-source": "^3.28.0 || ^4.0.0"
151
+ "ember-power-select": "6.x || 7.x",
152
+ "ember-source": "^4.8.0"
152
153
  },
153
154
  "overrides": {
154
155
  "ember-intl": {
package/types/global.d.ts CHANGED
@@ -11,20 +11,3 @@ declare module 'n2words' {
11
11
  options: { lang: string },
12
12
  ): string;
13
13
  }
14
-
15
- declare module 'tracked-toolbox' {
16
- export function localCopy<C extends Component = Component, T = unknown>(
17
- memo: UsefulPropsOf<C>,
18
- initializer?: T | (() => T),
19
- ): PropertyDecorator;
20
- export function trackedReset<C extends Component = Component>(
21
- memo: UsefulPropsOf<C>,
22
- ): PropertyDecorator;
23
- export function trackedReset<
24
- C extends Component = Component,
25
- T = unknown,
26
- >(args: {
27
- memo: UsefulPropsOf<C>;
28
- update: (component: C, key: string, last: T) => T;
29
- }): PropertyDecorator;
30
- }
@@ -0,0 +1,6 @@
1
+ declare module 'n2words' {
2
+ export default function n2words(
3
+ number: number,
4
+ options: { lang: string },
5
+ ): string;
6
+ }
@@ -0,0 +1,11 @@
1
+ declare module 'tracked-toolbox' {
2
+ export function localCopy<T>(
3
+ memo: string,
4
+ initializer?: T | (() => T),
5
+ ): PropertyDecorator;
6
+ export function trackedReset(memo: string): PropertyDecorator;
7
+ export function trackedReset<C, T>(args: {
8
+ memo: string;
9
+ update: (component: C, key: string, last: T) => T;
10
+ }): PropertyDecorator;
11
+ }
@@ -0,0 +1,22 @@
1
+ // eslint-disable-next-line node/no-unpublished-require
2
+ const webpack = require('webpack');
3
+
4
+ module.exports = {
5
+ node: {
6
+ global: true,
7
+ __filename: true,
8
+ __dirname: true,
9
+ },
10
+ resolve: {
11
+ fallback: {
12
+ stream: require.resolve('stream-browserify'),
13
+ crypto: require.resolve('crypto-browserify'),
14
+ },
15
+ },
16
+ plugins: [
17
+ new webpack.ProvidePlugin({
18
+ process: 'process/browser.js',
19
+ Buffer: ['buffer', 'Buffer'],
20
+ }),
21
+ ],
22
+ };
@@ -1,13 +0,0 @@
1
- matrix:
2
- scenario:
3
- - ember-lts-3.28
4
-
5
- steps:
6
- - name: ${scenario}
7
- image: danlynn/ember-cli:4.8.0
8
- commands:
9
- - npm ci
10
- - ember try:one ${scenario} --skip-cleanup=true
11
-
12
- when:
13
- branch: [ master ]
@@ -1 +0,0 @@
1
- export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/citation-plugin/citations/modal';
@@ -1 +0,0 @@
1
- export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/template-comments-plugin/comment-editor';
@@ -1 +0,0 @@
1
- export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/components/template-comments-plugin/insert-template-comment';
@@ -1 +0,0 @@
1
- export { default } from '@lblod/ember-rdfa-editor-lblod-plugins/services/rdfa-editor-roadsign-regulation-plugin';
@@ -1,14 +0,0 @@
1
- declare module 'ember-mu-transform-helpers/transforms/string-set' {
2
- import Transform from '@ember-data/serializer/transform';
3
-
4
- module 'ember-data/types/registries/transform' {
5
- export default interface TransformRegistry {
6
- 'string-set': StringSetTransform;
7
- }
8
- }
9
- export default class StringSetTransform extends Transform {
10
- deserialize(serialized: unknown[]): unknown[];
11
-
12
- serialize(deserialized: unknown[]): unknown[];
13
- }
14
- }