ember-freestyle 0.17.0 → 0.19.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 (55) hide show
  1. package/CHANGELOG.md +37 -1
  2. package/addon/components/freestyle/usage/component-like/control/index.hbs +12 -0
  3. package/addon/components/freestyle/usage/component-like/control/index.ts +21 -0
  4. package/addon/components/freestyle/usage/component-like/index.hbs +14 -0
  5. package/addon/components/freestyle/usage/component-like/index.ts +17 -0
  6. package/addon/components/freestyle/usage/index.hbs +1 -0
  7. package/addon/components/freestyle/usage/index.ts +4 -3
  8. package/addon/components/freestyle/usage/number/index.ts +0 -2
  9. package/addon/components/freestyle/usage/object/index.ts +0 -2
  10. package/addon/components/freestyle/usage/string/index.ts +0 -2
  11. package/addon/components/freestyle-collection/index.ts +1 -1
  12. package/addon/components/freestyle-dynamic/index.ts +2 -2
  13. package/addon/components/freestyle-dynamic-input/index.ts +0 -2
  14. package/addon/components/freestyle-dynamic-input-select-option/index.ts +0 -2
  15. package/addon/components/freestyle-focus-button/index.ts +0 -3
  16. package/addon/components/freestyle-palette/index.ts +1 -1
  17. package/addon/components/freestyle-palette-item/index.ts +0 -2
  18. package/addon/components/freestyle-section/index.ts +1 -1
  19. package/addon/components/freestyle-source/index.ts +3 -3
  20. package/addon/components/freestyle-subsection/index.ts +1 -1
  21. package/addon/components/freestyle-typeface/index.ts +0 -2
  22. package/addon/components/freestyle-usage-controls/index.ts +1 -7
  23. package/addon/components/freestyle-variant-list/index.ts +0 -2
  24. package/addon/decorators/css-variable.ts +7 -7
  25. package/addon/glint.ts +5 -0
  26. package/addon/modifiers/freestyle-highlight.ts +1 -6
  27. package/addon/utils/css-rules.ts +3 -3
  28. package/app/components/freestyle/usage/component-like/control.js +1 -0
  29. package/app/components/freestyle/usage/component-like.js +1 -0
  30. package/app/styles/components/freestyle-collection.scss +2 -1
  31. package/app/styles/components/freestyle-guide.scss +2 -1
  32. package/app/styles/components/freestyle-usage-controls.scss +2 -1
  33. package/components/freestyle/usage/array/index.d.ts +1 -1
  34. package/components/freestyle/usage/component-like/control/index.d.ts +13 -0
  35. package/components/freestyle/usage/component-like/index.d.ts +15 -0
  36. package/components/freestyle/usage/index.d.ts +2 -1
  37. package/components/freestyle/usage/number/index.d.ts +0 -2
  38. package/components/freestyle/usage/object/index.d.ts +0 -2
  39. package/components/freestyle/usage/string/index.d.ts +0 -2
  40. package/components/freestyle-dynamic/index.d.ts +4 -4
  41. package/components/freestyle-dynamic-input/index.d.ts +0 -2
  42. package/components/freestyle-dynamic-input-select-option/index.d.ts +0 -2
  43. package/components/freestyle-focus-button/index.d.ts +0 -3
  44. package/components/freestyle-palette/index.d.ts +2 -2
  45. package/components/freestyle-palette-item/index.d.ts +0 -2
  46. package/components/freestyle-typeface/index.d.ts +0 -2
  47. package/components/freestyle-usage-controls/index.d.ts +1 -7
  48. package/components/freestyle-variant-list/index.d.ts +0 -2
  49. package/glint.d.ts +5 -0
  50. package/index.js +1 -1
  51. package/lib/ast-transform.js +4 -4
  52. package/modifiers/freestyle-highlight.d.ts +1 -6
  53. package/package.json +37 -32
  54. package/types/ember-truth-helpers/helpers/and.d.ts +1 -1
  55. package/types/ember-truth-helpers/helpers/or.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -4,10 +4,46 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
 
6
6
 
7
+ ## v0.19.0 (2023-09-28)
8
+
9
+ #### :boom: Breaking Change
10
+ * [#957](https://github.com/chrislopresto/ember-freestyle/pull/957) Add `@ember/string` as a peer dependency ([@bertdeblock](https://github.com/bertdeblock))
11
+
12
+ #### :rocket: Enhancement
13
+ * [#963](https://github.com/chrislopresto/ember-freestyle/pull/963) Add an Api type to Freestyle::Usage for when you expect a component as argument ([@lukemelia](https://github.com/lukemelia))
14
+
15
+ #### :bug: Bug Fix
16
+ * [#957](https://github.com/chrislopresto/ember-freestyle/pull/957) Add `@ember/string` as a peer dependency ([@bertdeblock](https://github.com/bertdeblock))
17
+
18
+ #### Committers: 2
19
+ - Bert De Block ([@bertdeblock](https://github.com/bertdeblock))
20
+ - Luke Melia ([@lukemelia](https://github.com/lukemelia))
21
+
22
+ ## v0.18.0 (2023-07-18)
23
+
24
+ #### :rocket: Enhancement
25
+ * [#929](https://github.com/chrislopresto/ember-freestyle/pull/929) Support `ember-modifier` v4 ([@bertdeblock](https://github.com/bertdeblock))
26
+
27
+ #### :bug: Bug Fix
28
+ * [#928](https://github.com/chrislopresto/ember-freestyle/pull/928) Fix compatibility with `ember-cli` v5 ([@bertdeblock](https://github.com/bertdeblock))
29
+
30
+ #### :house: Internal
31
+ * [#950](https://github.com/chrislopresto/ember-freestyle/pull/950) Update versions of ember-qunit and ember-test-helpers ([@lukemelia](https://github.com/lukemelia))
32
+ * [#949](https://github.com/chrislopresto/ember-freestyle/pull/949) Fix type errors ([@bertdeblock](https://github.com/bertdeblock))
33
+
34
+ #### Committers: 2
35
+ - Bert De Block ([@bertdeblock](https://github.com/bertdeblock))
36
+ - Luke Melia ([@lukemelia](https://github.com/lukemelia))
7
37
 
8
38
  ## v0.17.0 (2022-10-18)
9
39
 
10
- ## v0.17.0-alpha-css-vars-api.0 (2022-10-17)
40
+ #### :rocket: Enhancement
41
+ * [#856](https://github.com/chrislopresto/ember-freestyle/pull/856) Make the navigation menu sticky ([@bertdeblock](https://github.com/bertdeblock))
42
+ * [#867](https://github.com/chrislopresto/ember-freestyle/pull/867) Add an optional "CSS Variables" block to Freestyle::Usage ([@lukemelia](https://github.com/lukemelia))
43
+
44
+ #### Committers: 1
45
+ - Bert De Block ([@bertdeblock](https://github.com/bertdeblock))
46
+ - Luke Melia ([@lukemelia](https://github.com/lukemelia))
11
47
 
12
48
  #### :rocket: Enhancement
13
49
  * [#856](https://github.com/chrislopresto/ember-freestyle/pull/856) Make the navigation menu sticky ([@bertdeblock](https://github.com/bertdeblock))
@@ -0,0 +1,12 @@
1
+ {{! template-lint-disable require-input-label }}
2
+
3
+ {{#if @options}}
4
+ <select {{on 'change' this.callOnChange}}>
5
+ {{#each @options as |componentLike|}}
6
+ <option
7
+ value={{componentLike.name}}
8
+ selected={{eq componentLike.name @value.name}}
9
+ >{{componentLike.name}}</option>
10
+ {{/each}}
11
+ </select>
12
+ {{/if}}
@@ -0,0 +1,21 @@
1
+ import Component from '@glimmer/component';
2
+ import { action } from '@ember/object';
3
+ import type { ComponentLike } from '@glint/template';
4
+
5
+ interface Signature {
6
+ Args: {
7
+ value?: ComponentLike;
8
+ onChange: (c: ComponentLike | undefined) => void;
9
+ options?: ComponentLike[];
10
+ };
11
+ }
12
+ export default class FreestyleUsageComponentLikeControlComponent extends Component<Signature> {
13
+ @action
14
+ callOnChange(event: InputEvent): void {
15
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
+ const eventTarget = event.target as any;
17
+ const componentName = eventTarget?.value;
18
+ const value = this.args.options?.find((c) => c.name === componentName);
19
+ this.args.onChange(value);
20
+ }
21
+ }
@@ -0,0 +1,14 @@
1
+ <Freestyle::Usage::Argument
2
+ @type="ComponentLike"
3
+ @name={{@name}}
4
+ @description={{@description}}
5
+ @required={{@required}}
6
+ @defaultValue={{@defaultValue}}
7
+ @hideControls={{@hideControls}}
8
+ >
9
+ <Freestyle::Usage::ComponentLike::Control
10
+ @options={{@options}}
11
+ @value={{@value}}
12
+ @onChange={{@onChange}}
13
+ />
14
+ </Freestyle::Usage::Argument>
@@ -0,0 +1,17 @@
1
+ import templateOnlyComponent from '@ember/component/template-only';
2
+ import type { ComponentLike } from '@glint/template';
3
+
4
+ interface Signature {
5
+ Args: {
6
+ name?: string;
7
+ description?: string;
8
+ required?: boolean;
9
+ defaultValue?: ComponentLike;
10
+ hideControls?: boolean;
11
+ value?: ComponentLike;
12
+ options?: ComponentLike[];
13
+ onChange: (val: ComponentLike | null | undefined) => void;
14
+ };
15
+ }
16
+ const FreestyleUsageComponentLikeComponent = templateOnlyComponent<Signature>();
17
+ export default FreestyleUsageComponentLikeComponent;
@@ -46,6 +46,7 @@
46
46
  Number=(component 'freestyle/usage/number')
47
47
  Object=(component 'freestyle/usage/object')
48
48
  String=(component 'freestyle/usage/string')
49
+ Component=(component 'freestyle/usage/component-like')
49
50
  Action=(component 'freestyle/usage/argument' type="Action")
50
51
  Yield=(component 'freestyle/usage/argument' type="Yield")
51
52
  )
@@ -20,20 +20,21 @@ interface Signature {
20
20
  example: [];
21
21
  api: [
22
22
  {
23
+ Action: any;
23
24
  Array: any;
24
25
  Base: any;
25
26
  Bool: any;
27
+ Component: any;
26
28
  Number: any;
27
29
  Object: any;
28
30
  String: any;
29
- Action: any;
30
31
  Yield: any;
31
- }
32
+ },
32
33
  ];
33
34
  cssVars: [
34
35
  {
35
36
  Basic: any;
36
- }
37
+ },
37
38
  ];
38
39
  };
39
40
  }
@@ -1,5 +1,4 @@
1
1
  import templateOnlyComponent from '@ember/component/template-only';
2
- import { type EmptyObject } from '@ember/component/helper';
3
2
 
4
3
  interface Signature {
5
4
  Args: {
@@ -14,7 +13,6 @@ interface Signature {
14
13
  step?: number;
15
14
  onInput: (val: number) => void;
16
15
  };
17
- Blocks: EmptyObject;
18
16
  }
19
17
  const FreestyleUsageNumberComponent = templateOnlyComponent<Signature>();
20
18
  export default FreestyleUsageNumberComponent;
@@ -1,5 +1,4 @@
1
1
  import templateOnlyComponent from '@ember/component/template-only';
2
- import { type EmptyObject } from '@ember/component/helper';
3
2
 
4
3
  interface Signature {
5
4
  Args: {
@@ -13,7 +12,6 @@ interface Signature {
13
12
  hideControls?: boolean;
14
13
  jsonCollapseDepth?: number;
15
14
  };
16
- Blocks: EmptyObject;
17
15
  }
18
16
  const FreestyleUsageObjectComponent = templateOnlyComponent<Signature>();
19
17
  export default FreestyleUsageObjectComponent;
@@ -1,5 +1,4 @@
1
1
  import templateOnlyComponent from '@ember/component/template-only';
2
- import { type EmptyObject } from '@ember/component/helper';
3
2
 
4
3
  interface Signature {
5
4
  Args: {
@@ -12,7 +11,6 @@ interface Signature {
12
11
  options?: string[];
13
12
  onInput: (val: string | null | undefined) => void;
14
13
  };
15
- Blocks: EmptyObject;
16
14
  }
17
15
  const FreestyleUsageStringComponent = templateOnlyComponent<Signature>();
18
16
  export default FreestyleUsageStringComponent;
@@ -20,7 +20,7 @@ interface Signature {
20
20
  };
21
21
  Blocks: {
22
22
  default: [
23
- { variant: WithBoundArgs<typeof FreestyleVariant, 'collection'> }
23
+ { variant: WithBoundArgs<typeof FreestyleVariant, 'collection'> },
24
24
  ];
25
25
  };
26
26
  }
@@ -46,7 +46,7 @@ export default class FreestyleDynamic extends Component<Signature> {
46
46
  if (this.args.dynamicProperties) {
47
47
  assert(
48
48
  `dynamicProperties passed into freestyle-dynamic must be an object. You passed: ${this.args.dynamicProperties}`,
49
- typeof this.args.dynamicProperties === 'object'
49
+ typeof this.args.dynamicProperties === 'object',
50
50
  );
51
51
  this._dynamicProperties = this.args.dynamicProperties;
52
52
  }
@@ -63,7 +63,7 @@ export default class FreestyleDynamic extends Component<Signature> {
63
63
  Object.keys(dynamicProperties).forEach((propertyName) => {
64
64
  dynamicPropertyValues[propertyName] = get(
65
65
  dynamicProperties,
66
- `${propertyName}.value`
66
+ `${propertyName}.value`,
67
67
  ) as SupportedValue;
68
68
  });
69
69
  return dynamicPropertyValues;
@@ -1,6 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { guidFor } from '@ember/object/internals';
3
- import { type EmptyObject } from '@ember/component/helper';
4
3
  import { InputType, SupportedValue } from '../freestyle-dynamic';
5
4
  /* eslint-disable @typescript-eslint/no-unused-vars */
6
5
  import { action } from '@ember/object';
@@ -19,7 +18,6 @@ interface Signature {
19
18
  max?: number;
20
19
  changeValueTo: (val: SupportedValue) => void;
21
20
  };
22
- Blocks: EmptyObject;
23
21
  }
24
22
 
25
23
  export default class FreestyleDynamicInput extends Component<Signature> {
@@ -1,5 +1,4 @@
1
1
  import Component from '@glimmer/component';
2
- import { type EmptyObject } from '@ember/component/helper';
3
2
  import { AttrValue } from '@glint/template';
4
3
 
5
4
  interface Signature {
@@ -8,7 +7,6 @@ interface Signature {
8
7
  optionValue: AttrValue;
9
8
  selectedValue: AttrValue;
10
9
  };
11
- Blocks: EmptyObject;
12
10
  }
13
11
 
14
12
  export default class FreestyleDynamicInputSelectOption extends Component<Signature> {
@@ -1,10 +1,7 @@
1
1
  import templateOnlyComponent from '@ember/component/template-only';
2
- import { type EmptyObject } from '@ember/component/helper';
3
2
 
4
3
  interface Signature {
5
4
  Element: HTMLSpanElement;
6
- Args: EmptyObject;
7
- Blocks: EmptyObject;
8
5
  }
9
6
 
10
7
  const FreestyleFocusButton = templateOnlyComponent<Signature>();
@@ -36,7 +36,7 @@ export default class FreestylePalette extends Component<Signature> {
36
36
  return A(
37
37
  Object.keys(colorPalette).map((k) => {
38
38
  return colorPalette[k];
39
- })
39
+ }),
40
40
  );
41
41
  }
42
42
  }
@@ -1,6 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { htmlSafe } from '@ember/template';
3
- import { type EmptyObject } from '@ember/component/helper';
4
3
  import { SafeString } from '@ember/template/-private/handlebars';
5
4
  import { PaletteItem } from '../freestyle-palette';
6
5
 
@@ -9,7 +8,6 @@ interface Signature {
9
8
  Args: {
10
9
  color: PaletteItem;
11
10
  };
12
- Blocks: EmptyObject;
13
11
  }
14
12
 
15
13
  export default class FreestylePaletteItem extends Component<Signature> {
@@ -12,7 +12,7 @@ interface Signature {
12
12
  };
13
13
  Blocks: {
14
14
  default: [
15
- { subsection: WithBoundArgs<typeof FreestyleSubsection, 'section'> }
15
+ { subsection: WithBoundArgs<typeof FreestyleSubsection, 'section'> },
16
16
  ];
17
17
  };
18
18
  }
@@ -42,15 +42,15 @@ export default class FreestyleSource extends Component<Signature> {
42
42
  // First, replace in-block dynamic properties
43
43
  sourceCode = sourceCode.replace(
44
44
  `={{dynamic.${property}}}`,
45
- `=${angleAssignmentVal}`
45
+ `=${angleAssignmentVal}`,
46
46
  );
47
47
  sourceCode = sourceCode.replace(
48
48
  `=dynamic.${property}`,
49
- `=${curlyAssignmentVal}`
49
+ `=${curlyAssignmentVal}`,
50
50
  );
51
51
  sourceCode = sourceCode.replace(
52
52
  `{{dynamic.${property}}}`,
53
- expressionVal as string
53
+ expressionVal as string,
54
54
  );
55
55
  });
56
56
 
@@ -18,7 +18,7 @@ export default class FreestyleSubsection extends Component<Signature> {
18
18
  get show(): boolean {
19
19
  return this.emberFreestyle.shouldShowSubsection(
20
20
  this.args.section,
21
- this.args.name
21
+ this.args.name,
22
22
  );
23
23
  }
24
24
  }
@@ -1,13 +1,11 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { htmlSafe } from '@ember/template';
3
- import { type EmptyObject } from '@ember/component/helper';
4
3
 
5
4
  interface Signature {
6
5
  Element: HTMLDivElement;
7
6
  Args: {
8
7
  fontFamily: string;
9
8
  };
10
- Blocks: EmptyObject;
11
9
  }
12
10
 
13
11
  export default class FreestyleTypeface extends Component<Signature> {
@@ -2,19 +2,13 @@ import Component from '@glimmer/component';
2
2
  import { schedule } from '@ember/runloop';
3
3
  import { capitalize } from '@ember/string';
4
4
  import type EmberFreestyleService from '../../services/ember-freestyle';
5
- import { type EmptyObject } from '@ember/component/helper';
6
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
7
6
  import { inject as service } from '@ember/service';
8
7
  import { action, get, set } from '@ember/object';
9
8
  import { tracked } from '@glimmer/tracking';
10
9
  /* eslint-enable @typescript-eslint/no-unused-vars */
11
10
 
12
- interface Signature {
13
- Args: EmptyObject;
14
- Blocks: EmptyObject;
15
- }
16
-
17
- export default class FreestyleUsageControls extends Component<Signature> {
11
+ export default class FreestyleUsageControls extends Component {
18
12
  @service('ember-freestyle') declare emberFreestyle: EmberFreestyleService;
19
13
 
20
14
  get showLabels(): boolean {
@@ -1,5 +1,4 @@
1
1
  import templateOnlyComponent from '@ember/component/template-only';
2
- import { type EmptyObject } from '@ember/component/helper';
3
2
 
4
3
  interface Signature {
5
4
  Element: HTMLUListElement;
@@ -8,7 +7,6 @@ interface Signature {
8
7
  activeKey: string;
9
8
  onClickVariant: (key: string) => void;
10
9
  };
11
- Blocks: EmptyObject;
12
10
  }
13
11
 
14
12
  const FreestyleVariantList = templateOnlyComponent<Signature>();
@@ -37,7 +37,7 @@ export function cssVariable(target: TargetInstance, key: string): any;
37
37
  export function cssVariable(options: Partial<CSSVariableDecoratorOptions>): any;
38
38
  export function cssVariable(
39
39
  targetOrOptions: TargetInstance | CSSVariableDecoratorOptions,
40
- key?: string
40
+ key?: string,
41
41
  ): any {
42
42
  if (typeof key === 'string') {
43
43
  return {
@@ -77,7 +77,7 @@ export class CSSVariableInfo {
77
77
 
78
78
  let computed: string | undefined = cssVarComputedValue(
79
79
  variableName,
80
- cssClassName
80
+ cssClassName,
81
81
  );
82
82
  computed = computed?.trim() ?? undefined;
83
83
  computed = computed === '' ? undefined : computed;
@@ -114,7 +114,7 @@ interface CSSVariableDecoratorOptions {
114
114
  function getCssVariableInfoMemoized(
115
115
  target: TargetInstance,
116
116
  key: string,
117
- options: CSSVariableDecoratorOptions
117
+ options: CSSVariableDecoratorOptions,
118
118
  ): CSSVariableInfo {
119
119
  if (!memoizationMap.get(target)) {
120
120
  memoizationMap.set(target, new Map());
@@ -130,21 +130,21 @@ function getCssVariableInfoMemoized(
130
130
  return result;
131
131
  } else {
132
132
  throw new Error(
133
- 'Unexpected missing key in cssVariable decorator implementation'
133
+ 'Unexpected missing key in cssVariable decorator implementation',
134
134
  );
135
135
  }
136
136
  }
137
137
 
138
138
  function prepareOptions(
139
139
  targetInstance: TargetInstance,
140
- userSpecifiedOptions: Partial<CSSVariableDecoratorOptions>
140
+ userSpecifiedOptions: Partial<CSSVariableDecoratorOptions>,
141
141
  ): CSSVariableDecoratorOptions {
142
142
  let options = userSpecifiedOptions;
143
143
  if (!options.cssClassName) {
144
144
  const cssClassName = targetInstance['cssClassName'];
145
145
  if (!cssClassName) {
146
146
  throw new Error(
147
- 'Must specify `cssClassName` as an option to @cssVariable decorator or define `cssClassName` on the class owning the decorated property'
147
+ 'Must specify `cssClassName` as an option to @cssVariable decorator or define `cssClassName` on the class owning the decorated property',
148
148
  );
149
149
  }
150
150
  options = Object.assign({}, options, { cssClassName });
@@ -154,6 +154,6 @@ function prepareOptions(
154
154
  toVariableName: dasherize,
155
155
  },
156
156
  options as Pick<CSSVariableDecoratorOptions, 'cssClassName'> &
157
- Partial<CSSVariableDecoratorOptions>
157
+ Partial<CSSVariableDecoratorOptions>,
158
158
  );
159
159
  }
package/addon/glint.ts CHANGED
@@ -10,6 +10,8 @@ import type FreestyleUsageObject from 'ember-freestyle/components/freestyle/usag
10
10
  import type FreestyleUsageObjectControl from 'ember-freestyle/components/freestyle/usage/object/control';
11
11
  import type FreestyleUsageString from 'ember-freestyle/components/freestyle/usage/string';
12
12
  import type FreestyleUsageStringControl from 'ember-freestyle/components/freestyle/usage/string/control';
13
+ import type FreestyleUsageComponentLike from 'ember-freestyle/components/freestyle/usage/component-like';
14
+ import type FreestyleUsageComponentLikeControl from 'ember-freestyle/components/freestyle/usage/component-like/control';
13
15
  import type FreestyleAnnotation from 'ember-freestyle/components/freestyle-annotation';
14
16
  import type FreestyleCollection from 'ember-freestyle/components/freestyle-collection';
15
17
  import type FreestyleDynamic from 'ember-freestyle/components/freestyle-dynamic';
@@ -51,6 +53,9 @@ declare module '@glint/environment-ember-loose/registry' {
51
53
  'Freestyle::Usage::String': typeof FreestyleUsageString;
52
54
  'freestyle/usage/string': typeof FreestyleUsageString;
53
55
  'Freestyle::Usage::String::Control': typeof FreestyleUsageStringControl;
56
+ 'Freestyle::Usage::ComponentLike': typeof FreestyleUsageComponentLike;
57
+ 'freestyle/usage/component-like': typeof FreestyleUsageComponentLike;
58
+ 'Freestyle::Usage::ComponentLike::Control': typeof FreestyleUsageComponentLikeControl;
54
59
  FreestyleAnnotation: typeof FreestyleAnnotation;
55
60
  FreestyleCollection: typeof FreestyleCollection;
56
61
  FreestyleDynamic: typeof FreestyleDynamic;
@@ -1,14 +1,9 @@
1
1
  import Modifier from 'ember-modifier';
2
2
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3
3
  import { inject as service } from '@ember/service';
4
- import { type EmptyObject } from '@ember/component/helper';
5
4
  import type EmberFreestyleService from '../services/ember-freestyle';
6
5
 
7
- interface Signature {
8
- Args: EmptyObject;
9
- }
10
-
11
- export default class FreestyleHighlight extends Modifier<Signature> {
6
+ export default class FreestyleHighlight extends Modifier {
12
7
  @service declare emberFreestyle: EmberFreestyleService;
13
8
 
14
9
  modify(element: HTMLElement): void {
@@ -26,7 +26,7 @@ function getStyleDeclarations(selector: string): CSSStyleDeclaration[] {
26
26
 
27
27
  export function getCssVariableDefinition(
28
28
  variableName: string,
29
- selector: string
29
+ selector: string,
30
30
  ): string {
31
31
  // find the last declaration of the selector that contains a value
32
32
  // for the CSS variable we're interested in
@@ -40,7 +40,7 @@ export function getCssVariableDefinition(
40
40
 
41
41
  export function getComputedValueForCssVariable(
42
42
  variableName: string,
43
- cssClassName: string
43
+ cssClassName: string,
44
44
  ): string {
45
45
  let element = document.querySelector('.' + cssClassName);
46
46
  let tempElement;
@@ -54,7 +54,7 @@ export function getComputedValueForCssVariable(
54
54
  element = tempElement;
55
55
  }
56
56
  const result = getComputedStyle(element).getPropertyValue(
57
- `--${variableName}`
57
+ `--${variableName}`,
58
58
  );
59
59
  tempElement?.remove();
60
60
  return result;
@@ -0,0 +1 @@
1
+ export { default } from 'ember-freestyle/components/freestyle/usage/component-like/control';
@@ -0,0 +1 @@
1
+ export { default } from 'ember-freestyle/components/freestyle/usage/component-like';
@@ -1,7 +1,8 @@
1
1
  $FreestyleCollection-maxWidth: $FreestyleGuide-maxWidth !default;
2
2
  $FreestyleCollection-shadow1: rgba(0, 0, 0, 0.16);
3
3
  $FreestyleCollection-shadow2: rgba(0, 0, 0, 0.12);
4
- $FreestyleCollection-boxShadow: 0 2px 5px 0 $FreestyleCollection-shadow1,
4
+ $FreestyleCollection-boxShadow:
5
+ 0 2px 5px 0 $FreestyleCollection-shadow1,
5
6
  0 2px 10px 0 $FreestyleCollection-shadow2;
6
7
 
7
8
  .FreestyleCollection {
@@ -8,7 +8,8 @@ $FreestyleGuide-maxWidth: 1200px !default;
8
8
  $FreestyleGuide-asideBackgroundColor: #fff !default;
9
9
  $FreestyleGuide-shadow1: rgba(0, 0, 0, 0.16);
10
10
  $FreestyleGuide-shadow2: rgba(0, 0, 0, 0.12);
11
- $FreestyleGuide-boxShadow: 0 2px 5px 0 $FreestyleGuide-shadow1,
11
+ $FreestyleGuide-boxShadow:
12
+ 0 2px 5px 0 $FreestyleGuide-shadow1,
12
13
  0 2px 10px 0 $FreestyleGuide-shadow2;
13
14
 
14
15
  .FreestyleGuide {
@@ -1,7 +1,8 @@
1
1
  $FreestyleUsageControls-backgroundColor: #fff !default;
2
2
  $FreestyleUsageControls-shadow1: rgba(0, 0, 0, 0.16);
3
3
  $FreestyleUsageControls-shadow2: rgba(0, 0, 0, 0.12);
4
- $FreestyleUsageControls-boxShadow: 0 2px 5px 0 $FreestyleUsageControls-shadow1,
4
+ $FreestyleUsageControls-boxShadow:
5
+ 0 2px 5px 0 $FreestyleUsageControls-shadow1,
5
6
  0 2px 10px 0 $FreestyleUsageControls-shadow2;
6
7
 
7
8
  .FreestyleUsageControls {
@@ -1,6 +1,6 @@
1
1
  import Component from '@glimmer/component';
2
2
  import MutableArray from '@ember/array/mutable';
3
- declare type ItemArray = MutableArray<any>;
3
+ type ItemArray = MutableArray<any>;
4
4
  interface Signature {
5
5
  Args: {
6
6
  items: ItemArray;
@@ -0,0 +1,13 @@
1
+ import Component from '@glimmer/component';
2
+ import type { ComponentLike } from '@glint/template';
3
+ interface Signature {
4
+ Args: {
5
+ value?: ComponentLike;
6
+ onChange: (c: ComponentLike | undefined) => void;
7
+ options?: ComponentLike[];
8
+ };
9
+ }
10
+ export default class FreestyleUsageComponentLikeControlComponent extends Component<Signature> {
11
+ callOnChange(event: InputEvent): void;
12
+ }
13
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { ComponentLike } from '@glint/template';
2
+ interface Signature {
3
+ Args: {
4
+ name?: string;
5
+ description?: string;
6
+ required?: boolean;
7
+ defaultValue?: ComponentLike;
8
+ hideControls?: boolean;
9
+ value?: ComponentLike;
10
+ options?: ComponentLike[];
11
+ onChange: (val: ComponentLike | null | undefined) => void;
12
+ };
13
+ }
14
+ declare const FreestyleUsageComponentLikeComponent: import("@ember/component/template-only").TemplateOnlyComponent<Signature>;
15
+ export default FreestyleUsageComponentLikeComponent;
@@ -14,13 +14,14 @@ interface Signature {
14
14
  example: [];
15
15
  api: [
16
16
  {
17
+ Action: any;
17
18
  Array: any;
18
19
  Base: any;
19
20
  Bool: any;
21
+ Component: any;
20
22
  Number: any;
21
23
  Object: any;
22
24
  String: any;
23
- Action: any;
24
25
  Yield: any;
25
26
  }
26
27
  ];
@@ -1,4 +1,3 @@
1
- import { type EmptyObject } from '@ember/component/helper';
2
1
  interface Signature {
3
2
  Args: {
4
3
  name?: string;
@@ -12,7 +11,6 @@ interface Signature {
12
11
  step?: number;
13
12
  onInput: (val: number) => void;
14
13
  };
15
- Blocks: EmptyObject;
16
14
  }
17
15
  declare const FreestyleUsageNumberComponent: import("@ember/component/template-only").TemplateOnlyComponent<Signature>;
18
16
  export default FreestyleUsageNumberComponent;
@@ -1,4 +1,3 @@
1
- import { type EmptyObject } from '@ember/component/helper';
2
1
  interface Signature {
3
2
  Args: {
4
3
  name?: string;
@@ -9,7 +8,6 @@ interface Signature {
9
8
  hideControls?: boolean;
10
9
  jsonCollapseDepth?: number;
11
10
  };
12
- Blocks: EmptyObject;
13
11
  }
14
12
  declare const FreestyleUsageObjectComponent: import("@ember/component/template-only").TemplateOnlyComponent<Signature>;
15
13
  export default FreestyleUsageObjectComponent;
@@ -1,4 +1,3 @@
1
- import { type EmptyObject } from '@ember/component/helper';
2
1
  interface Signature {
3
2
  Args: {
4
3
  name?: string;
@@ -10,7 +9,6 @@ interface Signature {
10
9
  options?: string[];
11
10
  onInput: (val: string | null | undefined) => void;
12
11
  };
13
- Blocks: EmptyObject;
14
12
  }
15
13
  declare const FreestyleUsageStringComponent: import("@ember/component/template-only").TemplateOnlyComponent<Signature>;
16
14
  export default FreestyleUsageStringComponent;
@@ -1,8 +1,8 @@
1
1
  import Component from '@glimmer/component';
2
2
  import Owner from '@ember/owner';
3
3
  import { AttrValue } from '@glint/template';
4
- export declare type SupportedValue = boolean | string | AttrValue | number;
5
- export declare type InputType = 'checkbox' | 'textarea' | 'select' | 'number' | 'range';
4
+ export type SupportedValue = boolean | string | AttrValue | number;
5
+ export type InputType = 'checkbox' | 'textarea' | 'select' | 'number' | 'range';
6
6
  interface PropertyHash {
7
7
  value?: SupportedValue;
8
8
  options?: SupportedValue[];
@@ -11,8 +11,8 @@ interface PropertyHash {
11
11
  min?: number;
12
12
  max?: number;
13
13
  }
14
- export declare type DynamicProperties = Record<string, PropertyHash>;
15
- declare type DynamicPropertyValues = Record<string, SupportedValue>;
14
+ export type DynamicProperties = Record<string, PropertyHash>;
15
+ type DynamicPropertyValues = Record<string, SupportedValue>;
16
16
  interface ComponentArgs {
17
17
  slug: string;
18
18
  dynamicProperties: DynamicProperties;
@@ -1,5 +1,4 @@
1
1
  import Component from '@glimmer/component';
2
- import { type EmptyObject } from '@ember/component/helper';
3
2
  import { InputType, SupportedValue } from '../freestyle-dynamic';
4
3
  interface Signature {
5
4
  Element: HTMLDivElement;
@@ -13,7 +12,6 @@ interface Signature {
13
12
  max?: number;
14
13
  changeValueTo: (val: SupportedValue) => void;
15
14
  };
16
- Blocks: EmptyObject;
17
15
  }
18
16
  export default class FreestyleDynamicInput extends Component<Signature> {
19
17
  isCheckbox: boolean;
@@ -1,5 +1,4 @@
1
1
  import Component from '@glimmer/component';
2
- import { type EmptyObject } from '@ember/component/helper';
3
2
  import { AttrValue } from '@glint/template';
4
3
  interface Signature {
5
4
  Element: HTMLOptionElement;
@@ -7,7 +6,6 @@ interface Signature {
7
6
  optionValue: AttrValue;
8
7
  selectedValue: AttrValue;
9
8
  };
10
- Blocks: EmptyObject;
11
9
  }
12
10
  export default class FreestyleDynamicInputSelectOption extends Component<Signature> {
13
11
  get selected(): boolean;
@@ -1,8 +1,5 @@
1
- import { type EmptyObject } from '@ember/component/helper';
2
1
  interface Signature {
3
2
  Element: HTMLSpanElement;
4
- Args: EmptyObject;
5
- Blocks: EmptyObject;
6
3
  }
7
4
  declare const FreestyleFocusButton: import("@ember/component/template-only").TemplateOnlyComponent<Signature>;
8
5
  export default FreestyleFocusButton;
@@ -1,5 +1,5 @@
1
1
  import Component from '@glimmer/component';
2
- declare type Color = string;
2
+ type Color = string;
3
3
  export interface PaletteItem {
4
4
  name: string;
5
5
  description?: string;
@@ -7,7 +7,7 @@ export interface PaletteItem {
7
7
  light?: Color;
8
8
  dark?: Color;
9
9
  }
10
- export declare type ColorPalette = Record<string, PaletteItem>;
10
+ export type ColorPalette = Record<string, PaletteItem>;
11
11
  interface Signature {
12
12
  Element: HTMLDivElement;
13
13
  Args: {
@@ -1,5 +1,4 @@
1
1
  import Component from '@glimmer/component';
2
- import { type EmptyObject } from '@ember/component/helper';
3
2
  import { SafeString } from '@ember/template/-private/handlebars';
4
3
  import { PaletteItem } from '../freestyle-palette';
5
4
  interface Signature {
@@ -7,7 +6,6 @@ interface Signature {
7
6
  Args: {
8
7
  color: PaletteItem;
9
8
  };
10
- Blocks: EmptyObject;
11
9
  }
12
10
  export default class FreestylePaletteItem extends Component<Signature> {
13
11
  get paletteStyle(): SafeString;
@@ -1,12 +1,10 @@
1
1
  import Component from '@glimmer/component';
2
2
  import { htmlSafe } from '@ember/template';
3
- import { type EmptyObject } from '@ember/component/helper';
4
3
  interface Signature {
5
4
  Element: HTMLDivElement;
6
5
  Args: {
7
6
  fontFamily: string;
8
7
  };
9
- Blocks: EmptyObject;
10
8
  }
11
9
  export default class FreestyleTypeface extends Component<Signature> {
12
10
  get fontFamilyStyle(): ReturnType<typeof htmlSafe>;
@@ -1,11 +1,6 @@
1
1
  import Component from '@glimmer/component';
2
2
  import type EmberFreestyleService from '../../services/ember-freestyle';
3
- import { type EmptyObject } from '@ember/component/helper';
4
- interface Signature {
5
- Args: EmptyObject;
6
- Blocks: EmptyObject;
7
- }
8
- export default class FreestyleUsageControls extends Component<Signature> {
3
+ export default class FreestyleUsageControls extends Component {
9
4
  emberFreestyle: EmberFreestyleService;
10
5
  get showLabels(): boolean;
11
6
  set showLabels(val: boolean);
@@ -22,4 +17,3 @@ export default class FreestyleUsageControls extends Component<Signature> {
22
17
  toggleUsage(usageType: 'labels' | 'notes' | 'code' | 'api'): void;
23
18
  setFocus(): void;
24
19
  }
25
- export {};
@@ -1,4 +1,3 @@
1
- import { type EmptyObject } from '@ember/component/helper';
2
1
  interface Signature {
3
2
  Element: HTMLUListElement;
4
3
  Args: {
@@ -6,7 +5,6 @@ interface Signature {
6
5
  activeKey: string;
7
6
  onClickVariant: (key: string) => void;
8
7
  };
9
- Blocks: EmptyObject;
10
8
  }
11
9
  declare const FreestyleVariantList: import("@ember/component/template-only").TemplateOnlyComponent<Signature>;
12
10
  export default FreestyleVariantList;
package/glint.d.ts CHANGED
@@ -10,6 +10,8 @@ import type FreestyleUsageObject from 'ember-freestyle/components/freestyle/usag
10
10
  import type FreestyleUsageObjectControl from 'ember-freestyle/components/freestyle/usage/object/control';
11
11
  import type FreestyleUsageString from 'ember-freestyle/components/freestyle/usage/string';
12
12
  import type FreestyleUsageStringControl from 'ember-freestyle/components/freestyle/usage/string/control';
13
+ import type FreestyleUsageComponentLike from 'ember-freestyle/components/freestyle/usage/component-like';
14
+ import type FreestyleUsageComponentLikeControl from 'ember-freestyle/components/freestyle/usage/component-like/control';
13
15
  import type FreestyleAnnotation from 'ember-freestyle/components/freestyle-annotation';
14
16
  import type FreestyleCollection from 'ember-freestyle/components/freestyle-collection';
15
17
  import type FreestyleDynamic from 'ember-freestyle/components/freestyle-dynamic';
@@ -50,6 +52,9 @@ declare module '@glint/environment-ember-loose/registry' {
50
52
  'Freestyle::Usage::String': typeof FreestyleUsageString;
51
53
  'freestyle/usage/string': typeof FreestyleUsageString;
52
54
  'Freestyle::Usage::String::Control': typeof FreestyleUsageStringControl;
55
+ 'Freestyle::Usage::ComponentLike': typeof FreestyleUsageComponentLike;
56
+ 'freestyle/usage/component-like': typeof FreestyleUsageComponentLike;
57
+ 'Freestyle::Usage::ComponentLike::Control': typeof FreestyleUsageComponentLikeControl;
53
58
  FreestyleAnnotation: typeof FreestyleAnnotation;
54
59
  FreestyleCollection: typeof FreestyleCollection;
55
60
  FreestyleDynamic: typeof FreestyleDynamic;
package/index.js CHANGED
@@ -32,7 +32,7 @@ module.exports = {
32
32
  },
33
33
 
34
34
  setupPreprocessorRegistry(type, registry) {
35
- if (type === 'self' && registry.app.name === 'ember-freestyle') {
35
+ if (type !== 'parent') {
36
36
  return;
37
37
  }
38
38
  let pluginObj = this._buildPlugin();
@@ -30,11 +30,11 @@ function cleanupNamedBlocksPolyfillSyntax(sourceString) {
30
30
  sourceString = sourceString.trim();
31
31
  sourceString = sourceString.replace(
32
32
  /({{#if \(-is-named-block-invocation __arg0 "(.+?)"\)}})(\s*)(.*?)(\s*){{\/if}}/gs,
33
- '\n <:$2>$3$4$5</:$2>\n'
33
+ '\n <:$2>$3$4$5</:$2>\n',
34
34
  );
35
35
  sourceString = sourceString.replace(
36
36
  / @namedBlocksInfo={{hash .+?=0}} as \|__arg0\|/,
37
- ''
37
+ '',
38
38
  );
39
39
  sourceString = sourceString.replace(/(\s\s+)/g, '\n$1');
40
40
  sourceString = sourceString.replace(/ @(\w+)=/g, '\n @$1=');
@@ -95,11 +95,11 @@ module.exports = function ({ contents, syntax }) {
95
95
  BlockStatement(node) {
96
96
  if (
97
97
  ['freestyle-usage', 'freestyle-dynamic'].includes(
98
- node.path.original
98
+ node.path.original,
99
99
  ) &&
100
100
  (!node.loc.source ||
101
101
  !node.loc.source.includes(
102
- 'templates/components/freestyle-dynamic.hbs'
102
+ 'templates/components/freestyle-dynamic.hbs',
103
103
  ))
104
104
  ) {
105
105
  const sourceString = extractSource(node.program.body, contents);
@@ -1,11 +1,6 @@
1
1
  import Modifier from 'ember-modifier';
2
- import { type EmptyObject } from '@ember/component/helper';
3
2
  import type EmberFreestyleService from '../services/ember-freestyle';
4
- interface Signature {
5
- Args: EmptyObject;
6
- }
7
- export default class FreestyleHighlight extends Modifier<Signature> {
3
+ export default class FreestyleHighlight extends Modifier {
8
4
  emberFreestyle: EmberFreestyleService;
9
5
  modify(element: HTMLElement): void;
10
6
  }
11
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-freestyle",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "Create a living styleguide for your Ember app.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -23,6 +23,7 @@
23
23
  "lint:hbs:fix": "ember-template-lint . --fix",
24
24
  "lint:js": "eslint . --cache",
25
25
  "lint:js:fix": "eslint . --fix",
26
+ "lint:glint": "glint",
26
27
  "prepare": "husky install",
27
28
  "start": "ember serve",
28
29
  "test": "npm-run-all lint test:*",
@@ -38,12 +39,12 @@
38
39
  "@ember/render-modifiers": "^2.0.4",
39
40
  "@glimmer/component": "^1.1.2",
40
41
  "@glimmer/tracking": "^1.1.2",
41
- "ember-auto-import": "^2.4.2",
42
+ "ember-auto-import": "^2.4.3",
42
43
  "ember-cli-babel": "^7.26.11",
43
44
  "ember-cli-htmlbars": "^6.1.1",
44
45
  "ember-cli-typescript": "^5.1.1",
45
46
  "ember-focus-trap": "^1.0.1",
46
- "ember-modifier": "^3.2.7",
47
+ "ember-modifier": "^3.2.7 || ^4.0.0",
47
48
  "ember-named-blocks-polyfill": "^0.2.5",
48
49
  "ember-truth-helpers": "^3.1.1",
49
50
  "json-formatter-js": "^2.3.4",
@@ -53,22 +54,23 @@
53
54
  },
54
55
  "devDependencies": {
55
56
  "@ember/optional-features": "^2.0.0",
56
- "@ember/test-helpers": "^2.8.1",
57
- "@embroider/test-setup": "^1.8.3",
58
- "@glint/core": "^0.9.4",
59
- "@glint/environment-ember-loose": "^0.9.4",
57
+ "@ember/string": "^3.1.1",
58
+ "@ember/test-helpers": "^3.2.0",
59
+ "@embroider/test-setup": "^3.0.1",
60
+ "@glint/core": "^1.2.0",
61
+ "@glint/template": "^1.2.0",
62
+ "@glint/environment-ember-loose": "^1.2.0",
60
63
  "@release-it-plugins/lerna-changelog": "^5.0.0",
61
64
  "@tsconfig/ember": "^1.0.1",
62
65
  "@types/ember": "^4.0.1",
63
- "@types/ember-qunit": "^5.0.2",
64
66
  "@types/ember-resolver": "^5.0.11",
65
67
  "@types/ember__application": "^4.0.2",
66
68
  "@types/ember__array": "^4.0.2",
67
69
  "@types/ember__component": "^4.0.10",
68
- "@types/ember__controller": "^4.0.1",
70
+ "@types/ember__controller": "^4.0.4",
69
71
  "@types/ember__debug": "^4.0.1",
70
- "@types/ember__engine": "^4.0.2",
71
- "@types/ember__error": "^4.0.0",
72
+ "@types/ember__engine": "^4.0.4",
73
+ "@types/ember__error": "^4.0.3",
72
74
  "@types/ember__helper": "^4.0.0",
73
75
  "@types/ember__modifier": "^4.0.2",
74
76
  "@types/ember__object": "^4.0.4",
@@ -79,7 +81,6 @@
79
81
  "@types/ember__string": "^3.0.9",
80
82
  "@types/ember__template": "^4.0.0",
81
83
  "@types/ember__test": "^4.0.0",
82
- "@types/ember__test-helpers": "^2.8.1",
83
84
  "@types/ember__utils": "^4.0.1",
84
85
  "@types/qunit": "^2.19.3",
85
86
  "@types/remarkable": "^2.0.3",
@@ -88,11 +89,11 @@
88
89
  "@typescript-eslint/parser": "^5.40.1",
89
90
  "all-contributors-cli": "^6.24.0",
90
91
  "broccoli-asset-rev": "^3.0.0",
91
- "ember-cli": "~4.7.0",
92
+ "ember-cli": "~4.11.0",
92
93
  "ember-cli-autoprefixer": "^2.0.0",
93
94
  "ember-cli-dependency-checker": "^3.3.1",
94
95
  "ember-cli-deploy": "^1.0.2",
95
- "ember-cli-deploy-build": "^2.0.0",
96
+ "ember-cli-deploy-build": "^3.0.0",
96
97
  "ember-cli-deploy-git": "^1.3.4",
97
98
  "ember-cli-inject-live-reload": "^2.1.0",
98
99
  "ember-cli-sass": "^11.0.1",
@@ -103,43 +104,47 @@
103
104
  "ember-code-snippet": "^3.0.0",
104
105
  "ember-load-initializers": "^2.1.2",
105
106
  "ember-page-title": "^7.0.0",
106
- "ember-qunit": "^5.1.5",
107
+ "ember-qunit": "^7.0.0",
107
108
  "ember-resolver": "^8.0.3",
108
- "ember-source": "~4.7.0",
109
+ "ember-source": "~4.12.3",
109
110
  "ember-source-channel-url": "^3.0.0",
110
111
  "ember-style-modifier": "^0.8.0",
111
- "ember-template-imports": "^3.1.1",
112
- "ember-template-lint": "^4.14.0",
112
+ "ember-template-imports": "^3.3.1",
113
+ "ember-template-lint": "^5.11.2",
113
114
  "ember-try": "^2.0.0",
114
- "eslint": "^8.25.0",
115
+ "eslint": "^8.35.0",
115
116
  "eslint-config-ember": "0.3.0",
116
- "eslint-config-prettier": "^8.5.0",
117
- "eslint-plugin-ember": "^11.0.6",
117
+ "eslint-config-prettier": "^9.0.0",
118
+ "eslint-plugin-ember": "^11.10.0",
118
119
  "eslint-plugin-node": "^11.1.0",
119
- "eslint-plugin-prettier": "^4.2.1",
120
+ "eslint-plugin-prettier": "^5.0.0",
120
121
  "eslint-plugin-qunit": "^7.3.1",
121
122
  "husky": "^8.0.1",
122
123
  "loader.js": "^4.7.0",
123
124
  "npm-run-all": "^4.1.5",
124
- "prettier": "^2.7.1",
125
- "qunit": "^2.19.1",
125
+ "prettier": "^3.0.3",
126
+ "prettier-plugin-ember-template-tag": "^1.1.0",
127
+ "qunit": "^2.19.3",
126
128
  "qunit-dom": "^2.0.0",
127
- "release-it": "^15.5.0",
129
+ "release-it": "^14.10.0",
128
130
  "remarkable": "^2.0.1",
129
131
  "sass": "^1.55.0",
130
- "stylelint": "^14.14.0",
131
- "stylelint-config-prettier": "^9.0.3",
132
- "stylelint-config-recommended-scss": "^7.0.0",
133
- "stylelint-prettier": "^2.0.0",
132
+ "stylelint": "^15.10.1",
133
+ "stylelint-config-prettier": "^9.0.5",
134
+ "stylelint-config-recommended-scss": "^13.0.0",
135
+ "stylelint-prettier": "^4.0.2",
134
136
  "stylelint-scss": "^4.3.0",
135
- "typescript": "^4.8.3",
136
- "webpack": "^5.74.0"
137
+ "typescript": "^4.9.5",
138
+ "webpack": "^5.76.0"
139
+ },
140
+ "peerDependencies": {
141
+ "@ember/string": "^3.1.1"
137
142
  },
138
143
  "engines": {
139
144
  "node": "14.* || >= 16"
140
145
  },
141
146
  "volta": {
142
- "node": "14.19.3",
147
+ "node": "16.20.1",
143
148
  "yarn": "1.22.19"
144
149
  },
145
150
  "publishConfig": {
@@ -23,5 +23,5 @@ export default class AndHelper<
23
23
  B = UnsetValue,
24
24
  C = UnsetValue,
25
25
  D = UnsetValue,
26
- E = UnsetValue
26
+ E = UnsetValue,
27
27
  > extends Helper<AndHelperSignature<A, B, C, D, E>> {}
@@ -25,5 +25,5 @@ export default class OrHelper<
25
25
  B = UnsetValue,
26
26
  C = UnsetValue,
27
27
  D = UnsetValue,
28
- E = UnsetValue
28
+ E = UnsetValue,
29
29
  > extends Helper<OrHelperSignature<A, B, C, D, E>> {}