@lblod/ember-rdfa-editor-lblod-plugins 39.0.0 → 39.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.woodpecker/.verify-pr.yml +7 -1
- package/CHANGELOG.md +12 -0
- package/addon/components/lmb-plugin/search-modal.gts +1 -1
- package/addon/components/location-plugin/edit.gts +4 -4
- package/addon/components/locked-placeholder-plugin/insert.gts +2 -2
- package/addon/components/mandatee-table-plugin/configure.gts +1 -1
- package/addon/components/placeholder-utils-plugin/edit.gts +1 -1
- package/addon/components/roadsign-regulation-plugin/roadsigns-modal.gts +1 -1
- package/addon/components/snippet-plugin/search-modal.gts +1 -1
- package/addon/components/structure-plugin/control-card.gts +1 -1
- package/addon/components/variable-plugin/autofilled/edit.gts +1 -1
- package/addon/components/variable-plugin/autofilled/insert.gts +2 -2
- package/addon/components/variable-plugin/date/edit.gts +1 -1
- package/addon/components/variable-plugin/utils/label-input.gts +1 -1
- package/addon/plugins/location-plugin/node.ts +4 -4
- package/addon/plugins/variable-plugin/variables/address.ts +5 -4
- package/addon/plugins/variable-plugin/variables/date.ts +10 -3
- package/addon/plugins/variable-plugin/variables/number.ts +3 -1
- package/addon/plugins/variable-plugin/variables/person.ts +2 -1
- package/declarations/addon/components/lmb-plugin/search-modal.d.ts +1 -1
- package/declarations/addon/components/location-plugin/edit.d.ts +3 -3
- package/declarations/addon/components/locked-placeholder-plugin/insert.d.ts +2 -2
- package/declarations/addon/components/mandatee-table-plugin/configure.d.ts +1 -1
- package/declarations/addon/components/placeholder-utils-plugin/edit.d.ts +1 -1
- package/declarations/addon/components/roadsign-regulation-plugin/roadsigns-modal.d.ts +1 -1
- package/declarations/addon/components/snippet-plugin/search-modal.d.ts +1 -1
- package/declarations/addon/components/structure-plugin/control-card.d.ts +1 -1
- package/declarations/addon/components/variable-plugin/autofilled/edit.d.ts +1 -1
- package/declarations/addon/components/variable-plugin/autofilled/insert.d.ts +2 -2
- package/declarations/addon/components/variable-plugin/date/edit.d.ts +1 -1
- package/declarations/addon/components/variable-plugin/utils/label-input.d.ts +1 -1
- package/package.json +8 -11
- package/tsconfig.declarations.json +3 -7
- package/tsconfig.json +45 -7
- package/declarations/addon/components/citation-plugin/citations/article-list.d.ts +0 -1
- package/declarations/addon/components/citation-plugin/citations/legal-document-list.d.ts +0 -1
- package/declarations/addon/components/confidentiality-plugin/toolbar.d.ts +0 -1
- package/declarations/addon/components/table-of-contents-plugin/ember-nodes/outline.d.ts +0 -1
- package/declarations/addon/components/worship-plugin/list.d.ts +0 -1
- package/scripts/generate-type-declarations.sh +0 -16
- package/tsconfig.main.json +0 -51
|
@@ -3,9 +3,15 @@ steps:
|
|
|
3
3
|
image: node:22-slim
|
|
4
4
|
commands:
|
|
5
5
|
- npm config set ignore-scripts true
|
|
6
|
-
- npm i -g corepack@0.35
|
|
7
6
|
- corepack enable
|
|
8
7
|
- pnpm i --frozen-lockfile
|
|
8
|
+
check-dev-packages:
|
|
9
|
+
image: node:22-slim
|
|
10
|
+
commands:
|
|
11
|
+
- corepack enable
|
|
12
|
+
- apt-get update
|
|
13
|
+
- apt-get install -y --no-install-recommends jq
|
|
14
|
+
- "pnpm list --json | jq -e '[ .. | .version? ] | map(select(. != null)) | map(test(\"dev\")) | any | not'"
|
|
9
15
|
lint-js:
|
|
10
16
|
image: node:22-slim
|
|
11
17
|
group: lint
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @lblod/ember-rdfa-editor-lblod-plugins
|
|
2
2
|
|
|
3
|
+
## 39.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#683](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/683) [`69858cb`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/69858cb1b537e7e7ed43adcd78bc858b21a5bab3) Thanks [@elpoelma](https://github.com/elpoelma)! - Move to glint v2
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#679](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/679) [`e08902b`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/e08902b088d4e649abe0f4396341e581d8949fa2) Thanks [@lagartoverde](https://github.com/lagartoverde)! - Fix variable serialization to include label
|
|
12
|
+
|
|
13
|
+
- [#684](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/pull/684) [`9781fc2`](https://github.com/lblod/ember-rdfa-editor-lblod-plugins/commit/9781fc21da2f4a1a1aece249ee207b0d0e8cc350) Thanks [@abeforgit](https://github.com/abeforgit)! - add ci check for dev-packages
|
|
14
|
+
|
|
3
15
|
## 39.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
|
@@ -211,7 +211,7 @@ export default class SearchModal extends Component<Signature> {
|
|
|
211
211
|
this.sort = sort;
|
|
212
212
|
}
|
|
213
213
|
@action
|
|
214
|
-
setInputSearchText(event:
|
|
214
|
+
setInputSearchText(event: Event) {
|
|
215
215
|
assert(
|
|
216
216
|
'inputSearchText must be bound to an input element',
|
|
217
217
|
event.target instanceof HTMLInputElement,
|
|
@@ -340,18 +340,18 @@ export default class LocationPluginEditComponent extends Component<Signature> {
|
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
@action
|
|
343
|
-
updateHousenumber(event:
|
|
343
|
+
updateHousenumber(event: Event) {
|
|
344
344
|
this.newHousenumber = (event.target as HTMLInputElement).value;
|
|
345
345
|
this.newBusnumber = '';
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
@action
|
|
349
|
-
updateBusnumber(event:
|
|
349
|
+
updateBusnumber(event: Event) {
|
|
350
350
|
this.newBusnumber = (event.target as HTMLInputElement).value;
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
@action
|
|
354
|
-
updatePlaceName(event:
|
|
354
|
+
updatePlaceName(event: Event) {
|
|
355
355
|
this.args.setPlaceName((event.target as HTMLInputElement).value);
|
|
356
356
|
}
|
|
357
357
|
|
|
@@ -434,7 +434,7 @@ export default class LocationPluginEditComponent extends Component<Signature> {
|
|
|
434
434
|
@allowClear={{true}}
|
|
435
435
|
@renderInPlace={{true}}
|
|
436
436
|
@searchEnabled={{true}}
|
|
437
|
-
@search={{
|
|
437
|
+
@search={{this.searchMunicipality.perform}}
|
|
438
438
|
@selected={{this.newMunicipality}}
|
|
439
439
|
@onChange={{this.selectMunicipality}}
|
|
440
440
|
as |municipality|
|
|
@@ -74,12 +74,12 @@ export default class LockedPlaceholderPluginInsert extends Component<Signature>
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
@action
|
|
77
|
-
updateKey(event:
|
|
77
|
+
updateKey(event: Event) {
|
|
78
78
|
this.key = (event.target as HTMLInputElement).value;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
@action
|
|
82
|
-
updateLabel(event:
|
|
82
|
+
updateLabel(event: Event) {
|
|
83
83
|
this.label = (event.target as HTMLInputElement).value;
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -64,7 +64,7 @@ export default class PlaceholderUtilsEditCardComponent extends Component<Args> {
|
|
|
64
64
|
get showCard() {
|
|
65
65
|
return !!this.selectedPlaceholderNode;
|
|
66
66
|
}
|
|
67
|
-
updateLabelPlaceholder = (event:
|
|
67
|
+
updateLabelPlaceholder = (event: Event) => {
|
|
68
68
|
this.placeholderLabel = (event.target as HTMLInputElement).value;
|
|
69
69
|
};
|
|
70
70
|
updatePlaceholder = () => {
|
|
@@ -152,7 +152,7 @@ export default class RoadsignsModal extends Component<Signature> {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
@action
|
|
155
|
-
handleSearch(event:
|
|
155
|
+
handleSearch(event: Event) {
|
|
156
156
|
this.searchQuery = (event.target as HTMLInputElement).value;
|
|
157
157
|
this.resetPagination();
|
|
158
158
|
}
|
|
@@ -67,7 +67,7 @@ export default class SnippetPluginSearchModalComponent extends Component<Args> {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
@action
|
|
70
|
-
setInputSearchText(event:
|
|
70
|
+
setInputSearchText(event: Event) {
|
|
71
71
|
assert(
|
|
72
72
|
'inputSearchText must be bound to an input element',
|
|
73
73
|
event.target instanceof HTMLInputElement,
|
|
@@ -114,7 +114,7 @@ export default class StructureControlCardComponent extends Component<Sig> {
|
|
|
114
114
|
},
|
|
115
115
|
})
|
|
116
116
|
startNumber: number | null = null;
|
|
117
|
-
onStartNumberChange = (event:
|
|
117
|
+
onStartNumberChange = (event: Event) => {
|
|
118
118
|
const target = event.target as HTMLInputElement;
|
|
119
119
|
this.startNumber = parseInt(target.value);
|
|
120
120
|
};
|
|
@@ -102,7 +102,7 @@ export default class AutoFilledVariableInsertComponent extends Component<Args> {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
@action
|
|
105
|
-
updateAutofillKey(event:
|
|
105
|
+
updateAutofillKey(event: Event) {
|
|
106
106
|
this.autofillKey = (event.target as HTMLInputElement).value;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -39,12 +39,12 @@ export default class AutoFilledVariableInsertComponent extends Component<Args> {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
@action
|
|
42
|
-
updateLabel(event:
|
|
42
|
+
updateLabel(event: Event) {
|
|
43
43
|
this.label = (event.target as HTMLInputElement).value;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@action
|
|
47
|
-
updateAutofillKey(event:
|
|
47
|
+
updateAutofillKey(event: Event) {
|
|
48
48
|
this.autofillKey = (event.target as HTMLInputElement).value;
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -301,7 +301,7 @@ export class DateEditComponent extends Component<Sig> {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
@action
|
|
304
|
-
setCustomDateFormat(event:
|
|
304
|
+
setCustomDateFormat(event: Event) {
|
|
305
305
|
const format = (event.target as HTMLInputElement).value;
|
|
306
306
|
|
|
307
307
|
const pos = this.documentDatePos;
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
hasOutgoingNamedNodeTriple,
|
|
30
30
|
hasRDFaAttribute,
|
|
31
|
+
getOutgoingTriple,
|
|
31
32
|
Resource,
|
|
32
33
|
} from '@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace';
|
|
33
34
|
import { contentSpan } from '@lblod/ember-rdfa-editor-lblod-plugins/utils/dom-output-spec-helpers';
|
|
@@ -239,10 +240,9 @@ const serialize =
|
|
|
239
240
|
}
|
|
240
241
|
}
|
|
241
242
|
if (!contentNode) {
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
'Voeg locatie in'
|
|
245
|
-
);
|
|
243
|
+
const label = getOutgoingTriple(node.attrs, EXT('label'))?.object.value;
|
|
244
|
+
const placeholder =
|
|
245
|
+
label || t('location-plugin.nodeview.placeholder', 'Voeg locatie in');
|
|
246
246
|
contentNode = contentSpan({}, placeholder);
|
|
247
247
|
}
|
|
248
248
|
const locationAttrs = {
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
} from '@lblod/ember-rdfa-editor-lblod-plugins/utils/variable-attribute-parsers';
|
|
31
31
|
import {
|
|
32
32
|
findChildWithRdfaAttribute,
|
|
33
|
+
getOutgoingTriple,
|
|
33
34
|
hasOutgoingNamedNodeTriple,
|
|
34
35
|
hasRDFaAttribute,
|
|
35
36
|
} from '@lblod/ember-rdfa-editor-lblod-plugins/utils/namespace';
|
|
@@ -369,10 +370,10 @@ const serialize = (node: PNode, state: EditorState): DOMOutputSpec => {
|
|
|
369
370
|
if (value) {
|
|
370
371
|
contentNode = constructAddressNode(value);
|
|
371
372
|
} else {
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
373
|
+
const label = getOutgoingTriple(node.attrs, EXT('label'))?.object.value;
|
|
374
|
+
const placeholder =
|
|
375
|
+
label ||
|
|
376
|
+
t('editor-plugins.address.nodeview.placeholder', 'Voeg adres in');
|
|
376
377
|
contentNode = contentSpan({}, placeholder);
|
|
377
378
|
}
|
|
378
379
|
return renderRdfaAware({
|
|
@@ -252,9 +252,16 @@ const serialize = (node: PNode, state: EditorState) => {
|
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
if (node.attrs['label']) {
|
|
256
|
+
humanReadableDate = node.attrs['label'] as string;
|
|
257
|
+
} else {
|
|
258
|
+
humanReadableDate = !formatContainsTime(format)
|
|
259
|
+
? t('date-plugin.insert.date', TRANSLATION_FALLBACKS.insertDate)
|
|
260
|
+
: t(
|
|
261
|
+
'date-plugin.insert.datetime',
|
|
262
|
+
TRANSLATION_FALLBACKS.insertDateTime,
|
|
263
|
+
);
|
|
264
|
+
}
|
|
258
265
|
}
|
|
259
266
|
const dateAttrs = {
|
|
260
267
|
class: `${getClassnamesFromNode(node)}${content ? '' : ' say-variable'}`,
|
|
@@ -218,7 +218,9 @@ const serialize = (node: PNode, state: EditorState): DOMOutputSpec => {
|
|
|
218
218
|
humanReadableContent = content as string;
|
|
219
219
|
}
|
|
220
220
|
} else {
|
|
221
|
-
humanReadableContent =
|
|
221
|
+
humanReadableContent =
|
|
222
|
+
(node.attrs['label'] as string) ||
|
|
223
|
+
t('variable.number.placeholder', 'Voeg getal in');
|
|
222
224
|
}
|
|
223
225
|
|
|
224
226
|
return renderRdfaAware({
|
|
@@ -152,7 +152,8 @@ const serialize = (node: PNode, state: EditorState): DOMOutputSpec => {
|
|
|
152
152
|
},
|
|
153
153
|
content: subject
|
|
154
154
|
? [firstName, lastName].filter(Boolean).join(' ')
|
|
155
|
-
:
|
|
155
|
+
: node.attrs['label'] ||
|
|
156
|
+
t(
|
|
156
157
|
'variable-plugin.person.nodeview-placeholder',
|
|
157
158
|
TRANSLATION_FALLBACKS.nodeview_placeholder,
|
|
158
159
|
),
|
|
@@ -43,7 +43,7 @@ export default class SearchModal extends Component<Signature> {
|
|
|
43
43
|
searchAdministrativeUnits: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, (search: string) => Promise<AdministrativeUnit[]>>;
|
|
44
44
|
selectAdministrativeUnit: (administrativeUnit: AdministrativeUnit) => void;
|
|
45
45
|
setSort(sort: SearchSort): void;
|
|
46
|
-
setInputSearchText(event:
|
|
46
|
+
setInputSearchText(event: Event): void;
|
|
47
47
|
previousPage(): void;
|
|
48
48
|
nextPage(): void;
|
|
49
49
|
onInsert(electee: Electee): Promise<void>;
|
|
@@ -53,9 +53,9 @@ export default class LocationPluginEditComponent extends Component<Signature> {
|
|
|
53
53
|
newAddress: import("reactiveweb/ember-concurrency").TaskInstance<Address | undefined>;
|
|
54
54
|
selectMunicipality(municipality: string): void;
|
|
55
55
|
selectStreet(street: string): void;
|
|
56
|
-
updateHousenumber(event:
|
|
57
|
-
updateBusnumber(event:
|
|
58
|
-
updatePlaceName(event:
|
|
56
|
+
updateHousenumber(event: Event): void;
|
|
57
|
+
updateBusnumber(event: Event): void;
|
|
58
|
+
updatePlaceName(event: Event): void;
|
|
59
59
|
truncateAddress(value: boolean): void;
|
|
60
60
|
searchMunicipality: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, (term: string) => Promise<string[]>>;
|
|
61
61
|
searchStreet: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, (term: string) => Promise<(string | undefined)[]>>;
|
|
@@ -17,8 +17,8 @@ export default class LockedPlaceholderPluginInsert extends Component<Signature>
|
|
|
17
17
|
get controller(): SayController;
|
|
18
18
|
get canInsert(): boolean;
|
|
19
19
|
insertPlaceholder(): void;
|
|
20
|
-
updateKey(event:
|
|
21
|
-
updateLabel(event:
|
|
20
|
+
updateKey(event: Event): void;
|
|
21
|
+
updateLabel(event: Event): void;
|
|
22
22
|
updateType(type: string): void;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -20,6 +20,6 @@ export default class ConfigureMandateeTableComponent extends Component<Sig> {
|
|
|
20
20
|
get nodeTitle(): string | undefined;
|
|
21
21
|
updateAttribute(key: string, value: unknown): void;
|
|
22
22
|
updateTag(tag: string): void;
|
|
23
|
-
updateNodeTitle(event:
|
|
23
|
+
updateNodeTitle(event: Event): void;
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -25,7 +25,7 @@ export default class PlaceholderUtilsEditCardComponent extends Component<Args> {
|
|
|
25
25
|
get controller(): SayController;
|
|
26
26
|
get selectedPlaceholderNode(): Node | null;
|
|
27
27
|
get showCard(): boolean;
|
|
28
|
-
updateLabelPlaceholder: (event:
|
|
28
|
+
updateLabelPlaceholder: (event: Event) => void;
|
|
29
29
|
updatePlaceholder: () => void;
|
|
30
30
|
}
|
|
31
31
|
export {};
|
|
@@ -45,7 +45,7 @@ export default class RoadsignsModal extends Component<Signature> {
|
|
|
45
45
|
changeCode(value: Code): void;
|
|
46
46
|
changeCodeCombination(value: Code[]): void;
|
|
47
47
|
changeZonality(value: Zonality): void;
|
|
48
|
-
handleSearch(event:
|
|
48
|
+
handleSearch(event: Event): void;
|
|
49
49
|
closeModal(): void;
|
|
50
50
|
doFirstCodeSearch(select: Select): boolean;
|
|
51
51
|
searchCodes: import("ember-concurrency").TaskForAsyncTaskFunction<unknown, (term: string) => Promise<{
|
|
@@ -19,6 +19,6 @@ export default class SnippetPluginSearchModalComponent extends Component<Args> {
|
|
|
19
19
|
get config(): SnippetPluginConfig;
|
|
20
20
|
get searchText(): string | null;
|
|
21
21
|
get modalTitle(): string;
|
|
22
|
-
setInputSearchText(event:
|
|
22
|
+
setInputSearchText(event: Event): void;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -22,7 +22,7 @@ export default class StructureControlCardComponent extends Component<Sig> {
|
|
|
22
22
|
removeStructure(withContent: boolean): void;
|
|
23
23
|
get number(): number | undefined;
|
|
24
24
|
startNumber: number | null;
|
|
25
|
-
onStartNumberChange: (event:
|
|
25
|
+
onStartNumberChange: (event: Event) => void;
|
|
26
26
|
setStartNumber: () => void;
|
|
27
27
|
resetStartNumber: () => void;
|
|
28
28
|
}
|
|
@@ -21,7 +21,7 @@ export default class AutoFilledVariableInsertComponent extends Component<Args> {
|
|
|
21
21
|
get schema(): import("prosemirror-model").Schema<any, any>;
|
|
22
22
|
get documentLanguage(): string;
|
|
23
23
|
updateLabel(event: InputEvent): void;
|
|
24
|
-
updateAutofillKey(event:
|
|
24
|
+
updateAutofillKey(event: Event): void;
|
|
25
25
|
updateConvertToString(value: boolean): void;
|
|
26
26
|
edit(): void;
|
|
27
27
|
}
|
|
@@ -13,8 +13,8 @@ export default class AutoFilledVariableInsertComponent extends Component<Args> {
|
|
|
13
13
|
get controller(): SayController;
|
|
14
14
|
get schema(): import("prosemirror-model").Schema<any, any>;
|
|
15
15
|
get documentLanguage(): string;
|
|
16
|
-
updateLabel(event:
|
|
17
|
-
updateAutofillKey(event:
|
|
16
|
+
updateLabel(event: Event): void;
|
|
17
|
+
updateAutofillKey(event: Event): void;
|
|
18
18
|
updateConvertToString(value: boolean): void;
|
|
19
19
|
insert(): void;
|
|
20
20
|
}
|
|
@@ -44,7 +44,7 @@ export declare class DateEditComponent extends Component<Sig> {
|
|
|
44
44
|
changeIncludeTime(includeTime: boolean): void;
|
|
45
45
|
setDateFormat(dateFormat: string, custom?: boolean): void;
|
|
46
46
|
setDateFormatFromKey(formatKey?: string): void;
|
|
47
|
-
setCustomDateFormat(event:
|
|
47
|
+
setCustomDateFormat(event: Event): void;
|
|
48
48
|
toggleHelpModal(): void;
|
|
49
49
|
}
|
|
50
50
|
declare const DateEditCardComponent: TOC<Sig>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lblod/ember-rdfa-editor-lblod-plugins",
|
|
3
|
-
"version": "39.
|
|
3
|
+
"version": "39.1.0",
|
|
4
4
|
"description": "Ember addon providing lblod specific plugins for the ember-rdfa-editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"lint:js:fix": "eslint . --fix",
|
|
40
40
|
"lint:prettier": "prettier --check .",
|
|
41
41
|
"lint:prettier:fix": "pnpm format",
|
|
42
|
-
"lint:types": "
|
|
42
|
+
"lint:types": "ember-tsc --noEmit",
|
|
43
43
|
"format": "prettier --write .",
|
|
44
44
|
"start": "concurrently -c \"auto\" -P \"pnpm:serve {@}\" \"pnpm:typecheck\" --",
|
|
45
|
-
"typecheck": "
|
|
45
|
+
"typecheck": "ember-tsc --watch --preserveWatchOutput",
|
|
46
46
|
"serve": "ember serve",
|
|
47
47
|
"test": "concurrently --group pnpm:lint pnpm:test:*",
|
|
48
48
|
"test:ember": "ember test",
|
|
49
49
|
"test:ember-compatibility": "ember try:each",
|
|
50
50
|
"release": "release-it",
|
|
51
|
-
"prepack": "
|
|
51
|
+
"prepack": "ember-tsc --project tsconfig.declarations.json",
|
|
52
52
|
"postpack": "rimraf declarations"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
@@ -106,12 +106,9 @@
|
|
|
106
106
|
"@gavant/glint-template-types": "^0.4.0",
|
|
107
107
|
"@glimmer/component": "^1.1.2",
|
|
108
108
|
"@glimmer/tracking": "^1.1.2",
|
|
109
|
-
"@glint/
|
|
110
|
-
"@glint/
|
|
111
|
-
"@
|
|
112
|
-
"@glint/environment-ember-template-imports": "^1.5.0",
|
|
113
|
-
"@lblod/ember-rdfa-editor": "13.16.0-dev.7794d286b071182b48aea581cb16221fca22c8d1",
|
|
114
|
-
"@glint/template": "^1.7.7",
|
|
109
|
+
"@glint/ember-tsc": "^1.11.6",
|
|
110
|
+
"@glint/template": "^1.9.0",
|
|
111
|
+
"@lblod/ember-rdfa-editor": "13.20.0",
|
|
115
112
|
"@rdfjs/to-ntriples": "^3.0.1",
|
|
116
113
|
"@rdfjs/types": "^2.0.1",
|
|
117
114
|
"@release-it/keep-a-changelog": "^4.0.0",
|
|
@@ -175,7 +172,7 @@
|
|
|
175
172
|
"rimraf": "^5.0.7",
|
|
176
173
|
"sass": "^1.77.6",
|
|
177
174
|
"sinon": "^17.0.1",
|
|
178
|
-
"typescript": "^
|
|
175
|
+
"typescript": "^6.0.3",
|
|
179
176
|
"vm-browserify": "^1.1.2",
|
|
180
177
|
"webpack": "^5.95.0"
|
|
181
178
|
},
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
// This is the config for generating declarations
|
|
2
2
|
{
|
|
3
|
-
"extends": "./tsconfig.
|
|
3
|
+
"extends": "./tsconfig.json",
|
|
4
4
|
"compilerOptions": {
|
|
5
|
-
|
|
6
|
-
// so to get declarations we need to also emit when we get an error (which is every time)
|
|
7
|
-
// See https://github.com/typed-ember/glint/issues/599
|
|
8
|
-
"noEmitOnError": false,
|
|
5
|
+
"declaration": true,
|
|
9
6
|
"declarationDir": "declarations",
|
|
10
7
|
"emitDeclarationOnly": true,
|
|
11
|
-
"noEmit": false
|
|
12
|
-
"rootDir": "."
|
|
8
|
+
"noEmit": false
|
|
13
9
|
},
|
|
14
10
|
"include": ["addon", "addon-test-support", "types"]
|
|
15
11
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,11 +1,49 @@
|
|
|
1
|
-
// This is the config for running glint in watch mode
|
|
2
1
|
{
|
|
3
|
-
"extends": "./tsconfig.main.json",
|
|
4
2
|
"compilerOptions": {
|
|
5
|
-
"
|
|
3
|
+
"target": "es2021",
|
|
4
|
+
"module": "es2020",
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"checkJs": false,
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"noImplicitAny": true,
|
|
10
|
+
"noImplicitThis": true,
|
|
11
|
+
"alwaysStrict": true,
|
|
12
|
+
"strict": false,
|
|
13
|
+
"strictNullChecks": true,
|
|
14
|
+
"strictPropertyInitialization": true,
|
|
15
|
+
"noFallthroughCasesInSwitch": true,
|
|
16
|
+
"noUnusedLocals": false,
|
|
17
|
+
"noUnusedParameters": false,
|
|
18
|
+
"noImplicitReturns": true,
|
|
19
|
+
"noEmitOnError": false,
|
|
20
|
+
"noEmit": true,
|
|
21
|
+
"inlineSourceMap": true,
|
|
22
|
+
"inlineSources": true,
|
|
23
|
+
"rootDir": ".",
|
|
24
|
+
"skipLibCheck": true,
|
|
25
|
+
"experimentalDecorators": true,
|
|
26
|
+
"paths": {
|
|
27
|
+
"dummy/tests/*": ["./tests/*"],
|
|
28
|
+
"dummy/*": ["./tests/dummy/app/*", "./app/*"],
|
|
29
|
+
"@lblod/ember-rdfa-editor-lblod-plugins": ["./addon"],
|
|
30
|
+
"@lblod/ember-rdfa-editor-lblod-plugins/*": ["./addon/*"],
|
|
31
|
+
"@lblod/ember-rdfa-editor-lblod-plugins/test-support": [
|
|
32
|
+
"./addon-test-support"
|
|
33
|
+
],
|
|
34
|
+
"@lblod/ember-rdfa-editor-lblod-plugins/test-support/*": [
|
|
35
|
+
"./addon-test-support/*"
|
|
36
|
+
],
|
|
37
|
+
"*": ["./types/*"]
|
|
38
|
+
},
|
|
39
|
+
"types": ["@glint/ember-tsc/types"]
|
|
6
40
|
},
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
41
|
+
"include": [
|
|
42
|
+
"app/**/*",
|
|
43
|
+
"addon/**/*",
|
|
44
|
+
"tests/**/*",
|
|
45
|
+
"types/**/*",
|
|
46
|
+
"test-support/**/*",
|
|
47
|
+
"addon-test-support/**/*"
|
|
48
|
+
]
|
|
11
49
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
|
|
3
|
-
# This script exists because glint does not currently respect the --project flag, so we need to
|
|
4
|
-
# switch out the tsconfig.json file to generate declarations, without that configuration preventing
|
|
5
|
-
# --watch from running correctly
|
|
6
|
-
|
|
7
|
-
mv tsconfig.json tsconfig.watch.json
|
|
8
|
-
mv tsconfig.declarations.json tsconfig.json
|
|
9
|
-
|
|
10
|
-
glint --declaration
|
|
11
|
-
RETURN_VAL=$?
|
|
12
|
-
|
|
13
|
-
mv tsconfig.json tsconfig.declarations.json
|
|
14
|
-
mv tsconfig.watch.json tsconfig.json
|
|
15
|
-
|
|
16
|
-
exit $RETURN_VAL
|
package/tsconfig.main.json
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2021",
|
|
4
|
-
"module": "es2020",
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"checkJs": false,
|
|
7
|
-
"moduleResolution": "bundler",
|
|
8
|
-
"allowSyntheticDefaultImports": true,
|
|
9
|
-
"noImplicitAny": true,
|
|
10
|
-
"noImplicitThis": true,
|
|
11
|
-
"alwaysStrict": true,
|
|
12
|
-
"strictNullChecks": true,
|
|
13
|
-
"strictPropertyInitialization": true,
|
|
14
|
-
"noFallthroughCasesInSwitch": true,
|
|
15
|
-
"noUnusedLocals": false,
|
|
16
|
-
"noUnusedParameters": false,
|
|
17
|
-
"noImplicitReturns": true,
|
|
18
|
-
"noEmitOnError": false,
|
|
19
|
-
"noEmit": true,
|
|
20
|
-
"inlineSourceMap": true,
|
|
21
|
-
"inlineSources": true,
|
|
22
|
-
"baseUrl": ".",
|
|
23
|
-
"skipLibCheck": true,
|
|
24
|
-
"experimentalDecorators": true,
|
|
25
|
-
"paths": {
|
|
26
|
-
"dummy/tests/*": ["tests/*"],
|
|
27
|
-
"dummy/*": ["tests/dummy/app/*", "app/*"],
|
|
28
|
-
"@lblod/ember-rdfa-editor-lblod-plugins": ["addon"],
|
|
29
|
-
"@lblod/ember-rdfa-editor-lblod-plugins/*": ["addon/*"],
|
|
30
|
-
"@lblod/ember-rdfa-editor-lblod-plugins/test-support": [
|
|
31
|
-
"addon-test-support"
|
|
32
|
-
],
|
|
33
|
-
"@lblod/ember-rdfa-editor-lblod-plugins/test-support/*": [
|
|
34
|
-
"addon-test-support/*"
|
|
35
|
-
],
|
|
36
|
-
"*": ["types/*"]
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"include": [
|
|
40
|
-
"app/**/*",
|
|
41
|
-
"addon/**/*",
|
|
42
|
-
"tests/**/*",
|
|
43
|
-
"types/**/*",
|
|
44
|
-
"test-support/**/*",
|
|
45
|
-
"addon-test-support/**/*"
|
|
46
|
-
],
|
|
47
|
-
"glint": {
|
|
48
|
-
"environment": ["ember-loose", "ember-template-imports"],
|
|
49
|
-
"checkStandaloneTemplates": false
|
|
50
|
-
}
|
|
51
|
-
}
|