From 2aadd319454349a1805a9963a58163142ba6fd22 Mon Sep 17 00:00:00 2001 From: ijlee2 Date: Tue, 13 Aug 2024 12:51:11 +0200 Subject: [PATCH 1/6] chore: Temporarily committed declarations --- packages/ember-container-query/.gitignore | 1 - .../components/container-query.d.ts | 31 +++++++++++ .../components/container-query.d.ts.map | 1 + .../declarations/helpers/aspect-ratio.d.ts | 13 +++++ .../helpers/aspect-ratio.d.ts.map | 1 + .../declarations/helpers/height.d.ts | 13 +++++ .../declarations/helpers/height.d.ts.map | 1 + .../declarations/helpers/width.d.ts | 13 +++++ .../declarations/helpers/width.d.ts.map | 1 + .../declarations/index.d.ts | 7 +++ .../declarations/index.d.ts.map | 1 + .../modifiers/container-query.d.ts | 53 +++++++++++++++++++ .../modifiers/container-query.d.ts.map | 1 + .../declarations/template-registry.d.ts | 13 +++++ .../declarations/template-registry.d.ts.map | 1 + 15 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 packages/ember-container-query/declarations/components/container-query.d.ts create mode 100644 packages/ember-container-query/declarations/components/container-query.d.ts.map create mode 100644 packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts create mode 100644 packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map create mode 100644 packages/ember-container-query/declarations/helpers/height.d.ts create mode 100644 packages/ember-container-query/declarations/helpers/height.d.ts.map create mode 100644 packages/ember-container-query/declarations/helpers/width.d.ts create mode 100644 packages/ember-container-query/declarations/helpers/width.d.ts.map create mode 100644 packages/ember-container-query/declarations/index.d.ts create mode 100644 packages/ember-container-query/declarations/index.d.ts.map create mode 100644 packages/ember-container-query/declarations/modifiers/container-query.d.ts create mode 100644 packages/ember-container-query/declarations/modifiers/container-query.d.ts.map create mode 100644 packages/ember-container-query/declarations/template-registry.d.ts create mode 100644 packages/ember-container-query/declarations/template-registry.d.ts.map diff --git a/packages/ember-container-query/.gitignore b/packages/ember-container-query/.gitignore index 708b76ea..7d49a42c 100644 --- a/packages/ember-container-query/.gitignore +++ b/packages/ember-container-query/.gitignore @@ -1,5 +1,4 @@ # compiled output -/declarations/ /dist/ # dependencies diff --git a/packages/ember-container-query/declarations/components/container-query.d.ts b/packages/ember-container-query/declarations/components/container-query.d.ts new file mode 100644 index 00000000..15c83601 --- /dev/null +++ b/packages/ember-container-query/declarations/components/container-query.d.ts @@ -0,0 +1,31 @@ +import './container-query.css'; +import Component from '@glimmer/component'; +import type { Dimensions, Features, IndexSignatureParameter, QueryResults } from '../modifiers/container-query.ts'; +interface ContainerQuerySignature { + Args: { + dataAttributePrefix?: string; + debounce?: number; + features?: Features; + tagName?: string; + }; + Blocks: { + default: [ + { + dimensions?: Dimensions; + features?: QueryResults; + } + ]; + }; + Element: Element; +} +export default class ContainerQueryComponent extends Component> { + dimensions?: Dimensions; + queryResults?: QueryResults; + tagName: string; + updateState({ dimensions, queryResults, }: { + dimensions: Dimensions; + queryResults: QueryResults; + }): void; +} +export {}; +//# sourceMappingURL=container-query.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/components/container-query.d.ts.map b/packages/ember-container-query/declarations/components/container-query.d.ts.map new file mode 100644 index 00000000..481042d0 --- /dev/null +++ b/packages/ember-container-query/declarations/components/container-query.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"container-query.d.ts","sourceRoot":"","sources":["../../src/components/container-query.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAG/B,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,uBAAuB,EACvB,YAAY,EACb,MAAM,iCAAiC,CAAC;AAEzC,UAAU,uBAAuB,CAAC,CAAC,SAAS,uBAAuB;IACjE,IAAI,EAAE;QACJ,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,UAAU,CAAC,EAAE,UAAU,CAAC;gBACxB,QAAQ,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;aAC5B;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,OAAO,uBAAuB,CAC1C,CAAC,SAAS,uBAAuB,CACjC,SAAQ,SAAS,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAGxC,OAAO,SAA8B;IAE7B,WAAW,CAAC,EAClB,UAAU,EACV,YAAY,GACb,EAAE;QACD,UAAU,EAAE,UAAU,CAAC;QACvB,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;KAC/B,GAAG,IAAI;CA+BT"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts new file mode 100644 index 00000000..e77a92ee --- /dev/null +++ b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts @@ -0,0 +1,13 @@ +import type { Metadata } from '../modifiers/container-query.ts'; +declare const AspectRatioHelper: import("@ember/component/helper").FunctionBasedHelper<{ + Args: { + Positional: []; + Named: { + max?: number; + min?: number; + }; + }; + Return: Metadata; +}>; +export default AspectRatioHelper; +//# sourceMappingURL=aspect-ratio.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map new file mode 100644 index 00000000..c1c3146a --- /dev/null +++ b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../src/helpers/aspect-ratio.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,iBAAiB;;;;kBARX,MAAM;kBACN,MAAM;;;;EAejB,CAAC;AAEF,eAAe,iBAAiB,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/height.d.ts b/packages/ember-container-query/declarations/helpers/height.d.ts new file mode 100644 index 00000000..681ec49e --- /dev/null +++ b/packages/ember-container-query/declarations/helpers/height.d.ts @@ -0,0 +1,13 @@ +import type { Metadata } from '../modifiers/container-query.ts'; +declare const HeightHelper: import("@ember/component/helper").FunctionBasedHelper<{ + Args: { + Positional: []; + Named: { + max?: number; + min?: number; + }; + }; + Return: Metadata; +}>; +export default HeightHelper; +//# sourceMappingURL=height.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/height.d.ts.map b/packages/ember-container-query/declarations/helpers/height.d.ts.map new file mode 100644 index 00000000..0045d3f6 --- /dev/null +++ b/packages/ember-container-query/declarations/helpers/height.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"height.d.ts","sourceRoot":"","sources":["../../src/helpers/height.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,YAAY;;;;kBARN,MAAM;kBACN,MAAM;;;;EAahB,CAAC;AAEH,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/width.d.ts b/packages/ember-container-query/declarations/helpers/width.d.ts new file mode 100644 index 00000000..bf86c030 --- /dev/null +++ b/packages/ember-container-query/declarations/helpers/width.d.ts @@ -0,0 +1,13 @@ +import type { Metadata } from '../modifiers/container-query.ts'; +declare const WidthHelper: import("@ember/component/helper").FunctionBasedHelper<{ + Args: { + Positional: []; + Named: { + max?: number; + min?: number; + }; + }; + Return: Metadata; +}>; +export default WidthHelper; +//# sourceMappingURL=width.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/width.d.ts.map b/packages/ember-container-query/declarations/helpers/width.d.ts.map new file mode 100644 index 00000000..967026a8 --- /dev/null +++ b/packages/ember-container-query/declarations/helpers/width.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"width.d.ts","sourceRoot":"","sources":["../../src/helpers/width.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,WAAW;;;;kBARL,MAAM;kBACN,MAAM;;;;EAahB,CAAC;AAEH,eAAe,WAAW,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/index.d.ts b/packages/ember-container-query/declarations/index.d.ts new file mode 100644 index 00000000..e906ca52 --- /dev/null +++ b/packages/ember-container-query/declarations/index.d.ts @@ -0,0 +1,7 @@ +export { default as ContainerQuery } from './components/container-query.ts'; +export { default as aspectRatio } from './helpers/aspect-ratio.ts'; +export { default as height } from './helpers/height.ts'; +export { default as width } from './helpers/width.ts'; +export type { Dimensions, Features, IndexSignatureParameter, Metadata, QueryResults, } from './modifiers/container-query.ts'; +export { default as containerQuery } from './modifiers/container-query.ts'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/index.d.ts.map b/packages/ember-container-query/declarations/index.d.ts.map new file mode 100644 index 00000000..bccd0b8b --- /dev/null +++ b/packages/ember-container-query/declarations/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,UAAU,EACV,QAAQ,EACR,uBAAuB,EACvB,QAAQ,EACR,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,gCAAgC,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/modifiers/container-query.d.ts b/packages/ember-container-query/declarations/modifiers/container-query.d.ts new file mode 100644 index 00000000..71ab0eb2 --- /dev/null +++ b/packages/ember-container-query/declarations/modifiers/container-query.d.ts @@ -0,0 +1,53 @@ +import type Owner from '@ember/owner'; +import type { ArgsFor, NamedArgs, PositionalArgs } from 'ember-modifier'; +import Modifier from 'ember-modifier'; +type IndexSignatureParameter = string | number | symbol; +type Dimensions = { + aspectRatio: number; + height: number; + width: number; +}; +type Metadata = { + dimension: keyof Dimensions; + max: number; + min: number; +}; +type Features = Record; +type QueryResults = Record; +interface ContainerQueryModifierSignature { + Args: { + Named: { + dataAttributePrefix?: string; + debounce?: number; + features?: Features; + onQuery?: ({ dimensions, queryResults, }: { + dimensions: Dimensions; + queryResults: QueryResults; + }) => void; + }; + Positional: []; + }; + Element: Element; +} +export default class ContainerQueryModifier extends Modifier> { + private readonly resizeObserver; + dimensions: Dimensions; + queryResults: QueryResults; + private _dataAttributes; + private _element?; + private _named; + get dataAttributePrefix(): string; + get debounce(): number; + get features(): Features; + constructor(owner: Owner, args: ArgsFor>); + modify(element: Element, _positional: PositionalArgs>, named: NamedArgs>): void; + private onResize; + private registerResizeObserver; + private queryContainer; + private measureDimensions; + private evaluateQueries; + private resetDataAttributes; + private setDataAttributes; +} +export type { Dimensions, Features, IndexSignatureParameter, Metadata, QueryResults, }; +//# sourceMappingURL=container-query.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/modifiers/container-query.d.ts.map b/packages/ember-container-query/declarations/modifiers/container-query.d.ts.map new file mode 100644 index 00000000..05c0f18f --- /dev/null +++ b/packages/ember-container-query/declarations/modifiers/container-query.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"container-query.d.ts","sourceRoot":"","sources":["../../src/modifiers/container-query.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAGtC,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,KAAK,uBAAuB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAIxD,KAAK,UAAU,GAAG;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,SAAS,EAAE,MAAM,UAAU,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,QAAQ,CAAC,CAAC,SAAS,uBAAuB,IAAI,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;AAEvE,KAAK,YAAY,CAAC,CAAC,SAAS,uBAAuB,IAAI,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAE1E,UAAU,+BAA+B,CAAC,CAAC,SAAS,uBAAuB;IACzE,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,mBAAmB,CAAC,EAAE,MAAM,CAAC;YAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;YACvB,OAAO,CAAC,EAAE,CAAC,EACT,UAAU,EACV,YAAY,GACb,EAAE;gBACD,UAAU,EAAE,UAAU,CAAC;gBACvB,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;aAC/B,KAAK,IAAI,CAAC;SACZ,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,OAAO,sBAAsB,CACzC,CAAC,SAAS,uBAAuB,CACjC,SAAQ,QAAQ,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC;IACpD,iBAAkC,cAAc,CAAC;IAEjD,UAAU,EAAG,UAAU,CAAC;IACxB,YAAY,EAAG,YAAY,CAAC,CAAC,CAAC,CAAC;IAE/B,OAAO,CAAC,eAAe,CAAgB;IACvC,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,OAAO,CAAC,MAAM,CAAiD;IAE/D,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,CAE1B;gBAEW,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC;IAQ3E,MAAM,CACJ,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,cAAc,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,EAC/D,KAAK,EAAE,SAAS,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,GACnD,IAAI;IAOC,OAAO,CAAC,QAAQ;IAYxB,OAAO,CAAC,sBAAsB;IAO9B,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,iBAAiB;CAmB1B;AAED,YAAY,EACV,UAAU,EACV,QAAQ,EACR,uBAAuB,EACvB,QAAQ,EACR,YAAY,GACb,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/template-registry.d.ts b/packages/ember-container-query/declarations/template-registry.d.ts new file mode 100644 index 00000000..665c8b69 --- /dev/null +++ b/packages/ember-container-query/declarations/template-registry.d.ts @@ -0,0 +1,13 @@ +import type ContainerQueryComponent from './components/container-query.ts'; +import type AspectRatioHelper from './helpers/aspect-ratio.ts'; +import type HeightHelper from './helpers/height.ts'; +import type WidthHelper from './helpers/width.ts'; +import type ContainerQueryModifier from './modifiers/container-query.ts'; +export default interface EmberContainerQueryRegistry { + ContainerQuery: typeof ContainerQueryComponent; + 'aspect-ratio': typeof AspectRatioHelper; + 'container-query': typeof ContainerQueryModifier; + height: typeof HeightHelper; + width: typeof WidthHelper; +} +//# sourceMappingURL=template-registry.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/template-registry.d.ts.map b/packages/ember-container-query/declarations/template-registry.d.ts.map new file mode 100644 index 00000000..4fb64cb6 --- /dev/null +++ b/packages/ember-container-query/declarations/template-registry.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,iBAAiB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,sBAAsB,MAAM,gCAAgC,CAAC;AAEzE,MAAM,CAAC,OAAO,WAAW,2BAA2B;IAClD,cAAc,EAAE,OAAO,uBAAuB,CAAC;IAC/C,cAAc,EAAE,OAAO,iBAAiB,CAAC;IACzC,iBAAiB,EAAE,OAAO,sBAAsB,CAAC;IACjD,MAAM,EAAE,OAAO,YAAY,CAAC;IAC5B,KAAK,EAAE,OAAO,WAAW,CAAC;CAC3B"} \ No newline at end of file From e4cd23723abab3a85af677ebce9234a5ff8ab111 Mon Sep 17 00:00:00 2001 From: ijlee2 Date: Tue, 13 Aug 2024 12:51:25 +0200 Subject: [PATCH 2/6] refactor: Replaced @types/ember__* with native types --- packages/ember-container-query/package.json | 6 ------ .../unpublished-development-types/index.d.ts | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/ember-container-query/package.json b/packages/ember-container-query/package.json index 17932662..197d6348 100644 --- a/packages/ember-container-query/package.json +++ b/packages/ember-container-query/package.json @@ -87,12 +87,6 @@ "@shared-configs/eslint-config-ember": "workspace:*", "@shared-configs/prettier": "workspace:*", "@shared-configs/typescript": "workspace:*", - "@types/ember__component": "^4.0.22", - "@types/ember__destroyable": "^4.0.5", - "@types/ember__object": "^4.0.12", - "@types/ember__owner": "^4.0.9", - "@types/ember__runloop": "^4.0.10", - "@types/ember__service": "^4.0.9", "babel-plugin-ember-template-compilation": "^2.2.5", "concurrently": "^8.2.2", "ember-source": "^5.10.2", diff --git a/packages/ember-container-query/unpublished-development-types/index.d.ts b/packages/ember-container-query/unpublished-development-types/index.d.ts index 135d3204..77bfced3 100644 --- a/packages/ember-container-query/unpublished-development-types/index.d.ts +++ b/packages/ember-container-query/unpublished-development-types/index.d.ts @@ -3,6 +3,7 @@ import '@glint/environment-ember-loose'; import '@glint/environment-ember-template-imports'; +import 'ember-source/types'; import type EmberElementHelperRegistry from 'ember-element-helper/template-registry'; From 8a9b0ae81c8131155f450ca0ad62f818c2864180 Mon Sep 17 00:00:00 2001 From: ijlee2 Date: Tue, 13 Aug 2024 12:51:48 +0200 Subject: [PATCH 3/6] chore: Added lockfile --- pnpm-lock.yaml | 96 +++++++++++++++++++------------------------------- 1 file changed, 37 insertions(+), 59 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b4a39356..9f1e18b7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -494,24 +494,6 @@ importers: '@shared-configs/typescript': specifier: workspace:* version: link:../../configs/typescript - '@types/ember__component': - specifier: ^4.0.22 - version: 4.0.22(@babel/core@7.25.2) - '@types/ember__destroyable': - specifier: ^4.0.5 - version: 4.0.5 - '@types/ember__object': - specifier: ^4.0.12 - version: 4.0.12(@babel/core@7.25.2) - '@types/ember__owner': - specifier: ^4.0.9 - version: 4.0.9 - '@types/ember__runloop': - specifier: ^4.0.10 - version: 4.0.10(@babel/core@7.25.2) - '@types/ember__service': - specifier: ^4.0.9 - version: 4.0.9(@babel/core@7.25.2) babel-plugin-ember-template-compilation: specifier: ^2.2.5 version: 2.2.5 @@ -2042,9 +2024,6 @@ packages: '@types/ember__debug@4.0.8': resolution: {integrity: sha512-9wF7STmDHDsUxSjyCq2lpMq/03QOPkBQMGJnV8yOBnVZxB6f+FJH/kxaCprdMkUe7iwAPNEC2zrFFx1tzH75Kg==} - '@types/ember__destroyable@4.0.5': - resolution: {integrity: sha512-spJyZxpvecssbXkaOQYcbnlWgb+TasFaKrgAYVbykZY6saMwUdMOGDDoW6uP/y/+A8Jj/fUIatPWJLepeSfgww==} - '@types/ember__engine@4.0.11': resolution: {integrity: sha512-ryR4Q1Xm3kQ3Ap58w10CxV3+vb3hs1cJqi7UZ5IlSdLRql7AbpS6hIjxSQ3EQ4zadeeJ6/D8JJcSwqR7eX3PFA==} @@ -10174,34 +10153,14 @@ snapshots: dependencies: '@types/node': 22.2.0 - '@types/ember@4.0.11': - dependencies: - '@types/ember__application': 4.0.11(@babel/core@7.25.2) - '@types/ember__array': 4.0.10(@babel/core@7.25.2) - '@types/ember__component': 4.0.22(@babel/core@7.25.2) - '@types/ember__controller': 4.0.12(@babel/core@7.25.2) - '@types/ember__debug': 4.0.8 - '@types/ember__engine': 4.0.11 - '@types/ember__error': 4.0.6 - '@types/ember__object': 4.0.12(@babel/core@7.25.2) - '@types/ember__polyfills': 4.0.6 - '@types/ember__routing': 4.0.22(@babel/core@7.25.2) - '@types/ember__runloop': 4.0.10(@babel/core@7.25.2) - '@types/ember__service': 4.0.9(@babel/core@7.25.2) - '@types/ember__string': 3.0.15 - '@types/ember__template': 4.0.7 - '@types/ember__test': 4.0.6(@babel/core@7.25.2) - '@types/ember__utils': 4.0.7 - '@types/rsvp': 4.0.9 - '@types/ember@4.0.11(@babel/core@7.25.2)': dependencies: '@types/ember__application': 4.0.11(@babel/core@7.25.2) '@types/ember__array': 4.0.10(@babel/core@7.25.2) '@types/ember__component': 4.0.22(@babel/core@7.25.2) '@types/ember__controller': 4.0.12(@babel/core@7.25.2) - '@types/ember__debug': 4.0.8 - '@types/ember__engine': 4.0.11 + '@types/ember__debug': 4.0.8(@babel/core@7.25.2) + '@types/ember__engine': 4.0.11(@babel/core@7.25.2) '@types/ember__error': 4.0.6 '@types/ember__object': 4.0.12(@babel/core@7.25.2) '@types/ember__polyfills': 4.0.6 @@ -10216,18 +10175,20 @@ snapshots: transitivePeerDependencies: - '@babel/core' - supports-color + optional: true '@types/ember__application@4.0.11(@babel/core@7.25.2)': dependencies: '@glimmer/component': 1.1.2(@babel/core@7.25.2) - '@types/ember': 4.0.11 - '@types/ember__engine': 4.0.11 + '@types/ember': 4.0.11(@babel/core@7.25.2) + '@types/ember__engine': 4.0.11(@babel/core@7.25.2) '@types/ember__object': 4.0.12(@babel/core@7.25.2) '@types/ember__owner': 4.0.9 '@types/ember__routing': 4.0.22(@babel/core@7.25.2) transitivePeerDependencies: - '@babel/core' - supports-color + optional: true '@types/ember__array@4.0.10(@babel/core@7.25.2)': dependencies: @@ -10236,6 +10197,7 @@ snapshots: transitivePeerDependencies: - '@babel/core' - supports-color + optional: true '@types/ember__component@4.0.22(@babel/core@7.25.2)': dependencies: @@ -10244,6 +10206,7 @@ snapshots: transitivePeerDependencies: - '@babel/core' - supports-color + optional: true '@types/ember__controller@4.0.12(@babel/core@7.25.2)': dependencies: @@ -10251,20 +10214,28 @@ snapshots: transitivePeerDependencies: - '@babel/core' - supports-color + optional: true - '@types/ember__debug@4.0.8': + '@types/ember__debug@4.0.8(@babel/core@7.25.2)': dependencies: '@types/ember__object': 4.0.12(@babel/core@7.25.2) '@types/ember__owner': 4.0.9 + transitivePeerDependencies: + - '@babel/core' + - supports-color + optional: true - '@types/ember__destroyable@4.0.5': {} - - '@types/ember__engine@4.0.11': + '@types/ember__engine@4.0.11(@babel/core@7.25.2)': dependencies: '@types/ember__object': 4.0.12(@babel/core@7.25.2) '@types/ember__owner': 4.0.9 + transitivePeerDependencies: + - '@babel/core' + - supports-color + optional: true - '@types/ember__error@4.0.6': {} + '@types/ember__error@4.0.6': + optional: true '@types/ember__object@4.0.12(@babel/core@7.25.2)': dependencies: @@ -10273,10 +10244,13 @@ snapshots: transitivePeerDependencies: - '@babel/core' - supports-color + optional: true - '@types/ember__owner@4.0.9': {} + '@types/ember__owner@4.0.9': + optional: true - '@types/ember__polyfills@4.0.6': {} + '@types/ember__polyfills@4.0.6': + optional: true '@types/ember__routing@4.0.22(@babel/core@7.25.2)': dependencies: @@ -10287,6 +10261,7 @@ snapshots: transitivePeerDependencies: - '@babel/core' - supports-color + optional: true '@types/ember__runloop@4.0.10(@babel/core@7.25.2)': dependencies: @@ -10294,6 +10269,7 @@ snapshots: transitivePeerDependencies: - '@babel/core' - supports-color + optional: true '@types/ember__service@4.0.9(@babel/core@7.25.2)': dependencies: @@ -10301,10 +10277,13 @@ snapshots: transitivePeerDependencies: - '@babel/core' - supports-color + optional: true - '@types/ember__string@3.0.15': {} + '@types/ember__string@3.0.15': + optional: true - '@types/ember__template@4.0.7': {} + '@types/ember__template@4.0.7': + optional: true '@types/ember__test@4.0.6(@babel/core@7.25.2)': dependencies: @@ -10312,10 +10291,7 @@ snapshots: transitivePeerDependencies: - '@babel/core' - supports-color - - '@types/ember__utils@4.0.7': - dependencies: - '@types/ember': 4.0.11 + optional: true '@types/ember__utils@4.0.7(@babel/core@7.25.2)': dependencies: @@ -10323,6 +10299,7 @@ snapshots: transitivePeerDependencies: - '@babel/core' - supports-color + optional: true '@types/eslint-scope@3.7.7': dependencies: @@ -10412,7 +10389,8 @@ snapshots: '@types/glob': 8.1.0 '@types/node': 22.2.0 - '@types/rsvp@4.0.9': {} + '@types/rsvp@4.0.9': + optional: true '@types/semver@7.5.8': {} From 073e74cc27c113ab64160ed02b0b35fa82ecd441 Mon Sep 17 00:00:00 2001 From: ijlee2 Date: Tue, 13 Aug 2024 12:52:36 +0200 Subject: [PATCH 4/6] chore: Updated declarations --- .../declarations/helpers/aspect-ratio.d.ts | 7 ++++--- .../declarations/helpers/aspect-ratio.d.ts.map | 2 +- .../ember-container-query/declarations/helpers/height.d.ts | 7 ++++--- .../declarations/helpers/height.d.ts.map | 2 +- .../ember-container-query/declarations/helpers/width.d.ts | 7 ++++--- .../declarations/helpers/width.d.ts.map | 2 +- 6 files changed, 15 insertions(+), 12 deletions(-) diff --git a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts index e77a92ee..04a9632d 100644 --- a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts +++ b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts @@ -1,13 +1,14 @@ import type { Metadata } from '../modifiers/container-query.ts'; -declare const AspectRatioHelper: import("@ember/component/helper").FunctionBasedHelper<{ +interface AspectRatioHelperSignature { Args: { - Positional: []; Named: { max?: number; min?: number; }; + Positional: []; }; Return: Metadata; -}>; +} +declare const AspectRatioHelper: import("@ember/component/helper").FunctionBasedHelper; export default AspectRatioHelper; //# sourceMappingURL=aspect-ratio.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map index c1c3146a..e0a5dfa1 100644 --- a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map +++ b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../src/helpers/aspect-ratio.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,iBAAiB;;;;kBARX,MAAM;kBACN,MAAM;;;;EAejB,CAAC;AAEF,eAAe,iBAAiB,CAAC"} \ No newline at end of file +{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../src/helpers/aspect-ratio.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,UAAU,0BAA0B;IAClC,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;IACF,MAAM,EAAE,QAAQ,CAAC;CAClB;AAED,QAAA,MAAM,iBAAiB,mFAQtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/height.d.ts b/packages/ember-container-query/declarations/helpers/height.d.ts index 681ec49e..6f7f7333 100644 --- a/packages/ember-container-query/declarations/helpers/height.d.ts +++ b/packages/ember-container-query/declarations/helpers/height.d.ts @@ -1,13 +1,14 @@ import type { Metadata } from '../modifiers/container-query.ts'; -declare const HeightHelper: import("@ember/component/helper").FunctionBasedHelper<{ +interface HeightHelperSignature { Args: { - Positional: []; Named: { max?: number; min?: number; }; + Positional: []; }; Return: Metadata; -}>; +} +declare const HeightHelper: import("@ember/component/helper").FunctionBasedHelper; export default HeightHelper; //# sourceMappingURL=height.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/height.d.ts.map b/packages/ember-container-query/declarations/helpers/height.d.ts.map index 0045d3f6..52775478 100644 --- a/packages/ember-container-query/declarations/helpers/height.d.ts.map +++ b/packages/ember-container-query/declarations/helpers/height.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"height.d.ts","sourceRoot":"","sources":["../../src/helpers/height.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,YAAY;;;;kBARN,MAAM;kBACN,MAAM;;;;EAahB,CAAC;AAEH,eAAe,YAAY,CAAC"} \ No newline at end of file +{"version":3,"file":"height.d.ts","sourceRoot":"","sources":["../../src/helpers/height.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,UAAU,qBAAqB;IAC7B,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;IACF,MAAM,EAAE,QAAQ,CAAC;CAClB;AAED,QAAA,MAAM,YAAY,8EAMhB,CAAC;AAEH,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/width.d.ts b/packages/ember-container-query/declarations/helpers/width.d.ts index bf86c030..c58054cf 100644 --- a/packages/ember-container-query/declarations/helpers/width.d.ts +++ b/packages/ember-container-query/declarations/helpers/width.d.ts @@ -1,13 +1,14 @@ import type { Metadata } from '../modifiers/container-query.ts'; -declare const WidthHelper: import("@ember/component/helper").FunctionBasedHelper<{ +interface WidthHelperSignature { Args: { - Positional: []; Named: { max?: number; min?: number; }; + Positional: []; }; Return: Metadata; -}>; +} +declare const WidthHelper: import("@ember/component/helper").FunctionBasedHelper; export default WidthHelper; //# sourceMappingURL=width.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/width.d.ts.map b/packages/ember-container-query/declarations/helpers/width.d.ts.map index 967026a8..3297b2d3 100644 --- a/packages/ember-container-query/declarations/helpers/width.d.ts.map +++ b/packages/ember-container-query/declarations/helpers/width.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"width.d.ts","sourceRoot":"","sources":["../../src/helpers/width.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,WAAW;;;;kBARL,MAAM;kBACN,MAAM;;;;EAahB,CAAC;AAEH,eAAe,WAAW,CAAC"} \ No newline at end of file +{"version":3,"file":"width.d.ts","sourceRoot":"","sources":["../../src/helpers/width.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,UAAU,oBAAoB;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;IACF,MAAM,EAAE,QAAQ,CAAC;CAClB;AAED,QAAA,MAAM,WAAW,6EAMf,CAAC;AAEH,eAAe,WAAW,CAAC"} \ No newline at end of file From 6979d6e3303b4b79aff4e4e9eea712e631119650 Mon Sep 17 00:00:00 2001 From: ijlee2 Date: Tue, 13 Aug 2024 12:52:42 +0200 Subject: [PATCH 5/6] Revert "chore: Updated declarations" This reverts commit 073e74cc27c113ab64160ed02b0b35fa82ecd441. --- .../declarations/helpers/aspect-ratio.d.ts | 7 +++---- .../declarations/helpers/aspect-ratio.d.ts.map | 2 +- .../ember-container-query/declarations/helpers/height.d.ts | 7 +++---- .../declarations/helpers/height.d.ts.map | 2 +- .../ember-container-query/declarations/helpers/width.d.ts | 7 +++---- .../declarations/helpers/width.d.ts.map | 2 +- 6 files changed, 12 insertions(+), 15 deletions(-) diff --git a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts index 04a9632d..e77a92ee 100644 --- a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts +++ b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts @@ -1,14 +1,13 @@ import type { Metadata } from '../modifiers/container-query.ts'; -interface AspectRatioHelperSignature { +declare const AspectRatioHelper: import("@ember/component/helper").FunctionBasedHelper<{ Args: { + Positional: []; Named: { max?: number; min?: number; }; - Positional: []; }; Return: Metadata; -} -declare const AspectRatioHelper: import("@ember/component/helper").FunctionBasedHelper; +}>; export default AspectRatioHelper; //# sourceMappingURL=aspect-ratio.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map index e0a5dfa1..c1c3146a 100644 --- a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map +++ b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../src/helpers/aspect-ratio.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,UAAU,0BAA0B;IAClC,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;IACF,MAAM,EAAE,QAAQ,CAAC;CAClB;AAED,QAAA,MAAM,iBAAiB,mFAQtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"} \ No newline at end of file +{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../src/helpers/aspect-ratio.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,iBAAiB;;;;kBARX,MAAM;kBACN,MAAM;;;;EAejB,CAAC;AAEF,eAAe,iBAAiB,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/height.d.ts b/packages/ember-container-query/declarations/helpers/height.d.ts index 6f7f7333..681ec49e 100644 --- a/packages/ember-container-query/declarations/helpers/height.d.ts +++ b/packages/ember-container-query/declarations/helpers/height.d.ts @@ -1,14 +1,13 @@ import type { Metadata } from '../modifiers/container-query.ts'; -interface HeightHelperSignature { +declare const HeightHelper: import("@ember/component/helper").FunctionBasedHelper<{ Args: { + Positional: []; Named: { max?: number; min?: number; }; - Positional: []; }; Return: Metadata; -} -declare const HeightHelper: import("@ember/component/helper").FunctionBasedHelper; +}>; export default HeightHelper; //# sourceMappingURL=height.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/height.d.ts.map b/packages/ember-container-query/declarations/helpers/height.d.ts.map index 52775478..0045d3f6 100644 --- a/packages/ember-container-query/declarations/helpers/height.d.ts.map +++ b/packages/ember-container-query/declarations/helpers/height.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"height.d.ts","sourceRoot":"","sources":["../../src/helpers/height.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,UAAU,qBAAqB;IAC7B,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;IACF,MAAM,EAAE,QAAQ,CAAC;CAClB;AAED,QAAA,MAAM,YAAY,8EAMhB,CAAC;AAEH,eAAe,YAAY,CAAC"} \ No newline at end of file +{"version":3,"file":"height.d.ts","sourceRoot":"","sources":["../../src/helpers/height.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,YAAY;;;;kBARN,MAAM;kBACN,MAAM;;;;EAahB,CAAC;AAEH,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/width.d.ts b/packages/ember-container-query/declarations/helpers/width.d.ts index c58054cf..bf86c030 100644 --- a/packages/ember-container-query/declarations/helpers/width.d.ts +++ b/packages/ember-container-query/declarations/helpers/width.d.ts @@ -1,14 +1,13 @@ import type { Metadata } from '../modifiers/container-query.ts'; -interface WidthHelperSignature { +declare const WidthHelper: import("@ember/component/helper").FunctionBasedHelper<{ Args: { + Positional: []; Named: { max?: number; min?: number; }; - Positional: []; }; Return: Metadata; -} -declare const WidthHelper: import("@ember/component/helper").FunctionBasedHelper; +}>; export default WidthHelper; //# sourceMappingURL=width.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/width.d.ts.map b/packages/ember-container-query/declarations/helpers/width.d.ts.map index 3297b2d3..967026a8 100644 --- a/packages/ember-container-query/declarations/helpers/width.d.ts.map +++ b/packages/ember-container-query/declarations/helpers/width.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"width.d.ts","sourceRoot":"","sources":["../../src/helpers/width.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,UAAU,oBAAoB;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;IACF,MAAM,EAAE,QAAQ,CAAC;CAClB;AAED,QAAA,MAAM,WAAW,6EAMf,CAAC;AAEH,eAAe,WAAW,CAAC"} \ No newline at end of file +{"version":3,"file":"width.d.ts","sourceRoot":"","sources":["../../src/helpers/width.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,WAAW;;;;kBARL,MAAM;kBACN,MAAM;;;;EAahB,CAAC;AAEH,eAAe,WAAW,CAAC"} \ No newline at end of file From dd25a82c1b6439f1fed6c9bab8148ce3aeab9206 Mon Sep 17 00:00:00 2001 From: ijlee2 Date: Tue, 13 Aug 2024 12:52:51 +0200 Subject: [PATCH 6/6] Revert "chore: Temporarily committed declarations" This reverts commit 2aadd319454349a1805a9963a58163142ba6fd22. --- packages/ember-container-query/.gitignore | 1 + .../components/container-query.d.ts | 31 ----------- .../components/container-query.d.ts.map | 1 - .../declarations/helpers/aspect-ratio.d.ts | 13 ----- .../helpers/aspect-ratio.d.ts.map | 1 - .../declarations/helpers/height.d.ts | 13 ----- .../declarations/helpers/height.d.ts.map | 1 - .../declarations/helpers/width.d.ts | 13 ----- .../declarations/helpers/width.d.ts.map | 1 - .../declarations/index.d.ts | 7 --- .../declarations/index.d.ts.map | 1 - .../modifiers/container-query.d.ts | 53 ------------------- .../modifiers/container-query.d.ts.map | 1 - .../declarations/template-registry.d.ts | 13 ----- .../declarations/template-registry.d.ts.map | 1 - 15 files changed, 1 insertion(+), 150 deletions(-) delete mode 100644 packages/ember-container-query/declarations/components/container-query.d.ts delete mode 100644 packages/ember-container-query/declarations/components/container-query.d.ts.map delete mode 100644 packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts delete mode 100644 packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map delete mode 100644 packages/ember-container-query/declarations/helpers/height.d.ts delete mode 100644 packages/ember-container-query/declarations/helpers/height.d.ts.map delete mode 100644 packages/ember-container-query/declarations/helpers/width.d.ts delete mode 100644 packages/ember-container-query/declarations/helpers/width.d.ts.map delete mode 100644 packages/ember-container-query/declarations/index.d.ts delete mode 100644 packages/ember-container-query/declarations/index.d.ts.map delete mode 100644 packages/ember-container-query/declarations/modifiers/container-query.d.ts delete mode 100644 packages/ember-container-query/declarations/modifiers/container-query.d.ts.map delete mode 100644 packages/ember-container-query/declarations/template-registry.d.ts delete mode 100644 packages/ember-container-query/declarations/template-registry.d.ts.map diff --git a/packages/ember-container-query/.gitignore b/packages/ember-container-query/.gitignore index 7d49a42c..708b76ea 100644 --- a/packages/ember-container-query/.gitignore +++ b/packages/ember-container-query/.gitignore @@ -1,4 +1,5 @@ # compiled output +/declarations/ /dist/ # dependencies diff --git a/packages/ember-container-query/declarations/components/container-query.d.ts b/packages/ember-container-query/declarations/components/container-query.d.ts deleted file mode 100644 index 15c83601..00000000 --- a/packages/ember-container-query/declarations/components/container-query.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import './container-query.css'; -import Component from '@glimmer/component'; -import type { Dimensions, Features, IndexSignatureParameter, QueryResults } from '../modifiers/container-query.ts'; -interface ContainerQuerySignature { - Args: { - dataAttributePrefix?: string; - debounce?: number; - features?: Features; - tagName?: string; - }; - Blocks: { - default: [ - { - dimensions?: Dimensions; - features?: QueryResults; - } - ]; - }; - Element: Element; -} -export default class ContainerQueryComponent extends Component> { - dimensions?: Dimensions; - queryResults?: QueryResults; - tagName: string; - updateState({ dimensions, queryResults, }: { - dimensions: Dimensions; - queryResults: QueryResults; - }): void; -} -export {}; -//# sourceMappingURL=container-query.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/components/container-query.d.ts.map b/packages/ember-container-query/declarations/components/container-query.d.ts.map deleted file mode 100644 index 481042d0..00000000 --- a/packages/ember-container-query/declarations/components/container-query.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"container-query.d.ts","sourceRoot":"","sources":["../../src/components/container-query.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAG/B,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,uBAAuB,EACvB,YAAY,EACb,MAAM,iCAAiC,CAAC;AAEzC,UAAU,uBAAuB,CAAC,CAAC,SAAS,uBAAuB;IACjE,IAAI,EAAE;QACJ,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,UAAU,CAAC,EAAE,UAAU,CAAC;gBACxB,QAAQ,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;aAC5B;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,OAAO,uBAAuB,CAC1C,CAAC,SAAS,uBAAuB,CACjC,SAAQ,SAAS,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAGxC,OAAO,SAA8B;IAE7B,WAAW,CAAC,EAClB,UAAU,EACV,YAAY,GACb,EAAE;QACD,UAAU,EAAE,UAAU,CAAC;QACvB,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;KAC/B,GAAG,IAAI;CA+BT"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts deleted file mode 100644 index e77a92ee..00000000 --- a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Metadata } from '../modifiers/container-query.ts'; -declare const AspectRatioHelper: import("@ember/component/helper").FunctionBasedHelper<{ - Args: { - Positional: []; - Named: { - max?: number; - min?: number; - }; - }; - Return: Metadata; -}>; -export default AspectRatioHelper; -//# sourceMappingURL=aspect-ratio.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map b/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map deleted file mode 100644 index c1c3146a..00000000 --- a/packages/ember-container-query/declarations/helpers/aspect-ratio.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../src/helpers/aspect-ratio.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,iBAAiB;;;;kBARX,MAAM;kBACN,MAAM;;;;EAejB,CAAC;AAEF,eAAe,iBAAiB,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/height.d.ts b/packages/ember-container-query/declarations/helpers/height.d.ts deleted file mode 100644 index 681ec49e..00000000 --- a/packages/ember-container-query/declarations/helpers/height.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Metadata } from '../modifiers/container-query.ts'; -declare const HeightHelper: import("@ember/component/helper").FunctionBasedHelper<{ - Args: { - Positional: []; - Named: { - max?: number; - min?: number; - }; - }; - Return: Metadata; -}>; -export default HeightHelper; -//# sourceMappingURL=height.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/height.d.ts.map b/packages/ember-container-query/declarations/helpers/height.d.ts.map deleted file mode 100644 index 0045d3f6..00000000 --- a/packages/ember-container-query/declarations/helpers/height.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"height.d.ts","sourceRoot":"","sources":["../../src/helpers/height.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,YAAY;;;;kBARN,MAAM;kBACN,MAAM;;;;EAahB,CAAC;AAEH,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/width.d.ts b/packages/ember-container-query/declarations/helpers/width.d.ts deleted file mode 100644 index bf86c030..00000000 --- a/packages/ember-container-query/declarations/helpers/width.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Metadata } from '../modifiers/container-query.ts'; -declare const WidthHelper: import("@ember/component/helper").FunctionBasedHelper<{ - Args: { - Positional: []; - Named: { - max?: number; - min?: number; - }; - }; - Return: Metadata; -}>; -export default WidthHelper; -//# sourceMappingURL=width.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/helpers/width.d.ts.map b/packages/ember-container-query/declarations/helpers/width.d.ts.map deleted file mode 100644 index 967026a8..00000000 --- a/packages/ember-container-query/declarations/helpers/width.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"width.d.ts","sourceRoot":"","sources":["../../src/helpers/width.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAahE,QAAA,MAAM,WAAW;;;;kBARL,MAAM;kBACN,MAAM;;;;EAahB,CAAC;AAEH,eAAe,WAAW,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/index.d.ts b/packages/ember-container-query/declarations/index.d.ts deleted file mode 100644 index e906ca52..00000000 --- a/packages/ember-container-query/declarations/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { default as ContainerQuery } from './components/container-query.ts'; -export { default as aspectRatio } from './helpers/aspect-ratio.ts'; -export { default as height } from './helpers/height.ts'; -export { default as width } from './helpers/width.ts'; -export type { Dimensions, Features, IndexSignatureParameter, Metadata, QueryResults, } from './modifiers/container-query.ts'; -export { default as containerQuery } from './modifiers/container-query.ts'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/index.d.ts.map b/packages/ember-container-query/declarations/index.d.ts.map deleted file mode 100644 index bccd0b8b..00000000 --- a/packages/ember-container-query/declarations/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,UAAU,EACV,QAAQ,EACR,uBAAuB,EACvB,QAAQ,EACR,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,gCAAgC,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/modifiers/container-query.d.ts b/packages/ember-container-query/declarations/modifiers/container-query.d.ts deleted file mode 100644 index 71ab0eb2..00000000 --- a/packages/ember-container-query/declarations/modifiers/container-query.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type Owner from '@ember/owner'; -import type { ArgsFor, NamedArgs, PositionalArgs } from 'ember-modifier'; -import Modifier from 'ember-modifier'; -type IndexSignatureParameter = string | number | symbol; -type Dimensions = { - aspectRatio: number; - height: number; - width: number; -}; -type Metadata = { - dimension: keyof Dimensions; - max: number; - min: number; -}; -type Features = Record; -type QueryResults = Record; -interface ContainerQueryModifierSignature { - Args: { - Named: { - dataAttributePrefix?: string; - debounce?: number; - features?: Features; - onQuery?: ({ dimensions, queryResults, }: { - dimensions: Dimensions; - queryResults: QueryResults; - }) => void; - }; - Positional: []; - }; - Element: Element; -} -export default class ContainerQueryModifier extends Modifier> { - private readonly resizeObserver; - dimensions: Dimensions; - queryResults: QueryResults; - private _dataAttributes; - private _element?; - private _named; - get dataAttributePrefix(): string; - get debounce(): number; - get features(): Features; - constructor(owner: Owner, args: ArgsFor>); - modify(element: Element, _positional: PositionalArgs>, named: NamedArgs>): void; - private onResize; - private registerResizeObserver; - private queryContainer; - private measureDimensions; - private evaluateQueries; - private resetDataAttributes; - private setDataAttributes; -} -export type { Dimensions, Features, IndexSignatureParameter, Metadata, QueryResults, }; -//# sourceMappingURL=container-query.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/modifiers/container-query.d.ts.map b/packages/ember-container-query/declarations/modifiers/container-query.d.ts.map deleted file mode 100644 index 05c0f18f..00000000 --- a/packages/ember-container-query/declarations/modifiers/container-query.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"container-query.d.ts","sourceRoot":"","sources":["../../src/modifiers/container-query.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAGtC,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,KAAK,uBAAuB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAIxD,KAAK,UAAU,GAAG;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,SAAS,EAAE,MAAM,UAAU,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,QAAQ,CAAC,CAAC,SAAS,uBAAuB,IAAI,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;AAEvE,KAAK,YAAY,CAAC,CAAC,SAAS,uBAAuB,IAAI,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAE1E,UAAU,+BAA+B,CAAC,CAAC,SAAS,uBAAuB;IACzE,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,mBAAmB,CAAC,EAAE,MAAM,CAAC;YAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;YACvB,OAAO,CAAC,EAAE,CAAC,EACT,UAAU,EACV,YAAY,GACb,EAAE;gBACD,UAAU,EAAE,UAAU,CAAC;gBACvB,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;aAC/B,KAAK,IAAI,CAAC;SACZ,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,OAAO,sBAAsB,CACzC,CAAC,SAAS,uBAAuB,CACjC,SAAQ,QAAQ,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC;IACpD,iBAAkC,cAAc,CAAC;IAEjD,UAAU,EAAG,UAAU,CAAC;IACxB,YAAY,EAAG,YAAY,CAAC,CAAC,CAAC,CAAC;IAE/B,OAAO,CAAC,eAAe,CAAgB;IACvC,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,OAAO,CAAC,MAAM,CAAiD;IAE/D,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,CAE1B;gBAEW,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC;IAQ3E,MAAM,CACJ,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,cAAc,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,EAC/D,KAAK,EAAE,SAAS,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,GACnD,IAAI;IAOC,OAAO,CAAC,QAAQ;IAYxB,OAAO,CAAC,sBAAsB;IAO9B,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,iBAAiB;CAmB1B;AAED,YAAY,EACV,UAAU,EACV,QAAQ,EACR,uBAAuB,EACvB,QAAQ,EACR,YAAY,GACb,CAAC"} \ No newline at end of file diff --git a/packages/ember-container-query/declarations/template-registry.d.ts b/packages/ember-container-query/declarations/template-registry.d.ts deleted file mode 100644 index 665c8b69..00000000 --- a/packages/ember-container-query/declarations/template-registry.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type ContainerQueryComponent from './components/container-query.ts'; -import type AspectRatioHelper from './helpers/aspect-ratio.ts'; -import type HeightHelper from './helpers/height.ts'; -import type WidthHelper from './helpers/width.ts'; -import type ContainerQueryModifier from './modifiers/container-query.ts'; -export default interface EmberContainerQueryRegistry { - ContainerQuery: typeof ContainerQueryComponent; - 'aspect-ratio': typeof AspectRatioHelper; - 'container-query': typeof ContainerQueryModifier; - height: typeof HeightHelper; - width: typeof WidthHelper; -} -//# sourceMappingURL=template-registry.d.ts.map \ No newline at end of file diff --git a/packages/ember-container-query/declarations/template-registry.d.ts.map b/packages/ember-container-query/declarations/template-registry.d.ts.map deleted file mode 100644 index 4fb64cb6..00000000 --- a/packages/ember-container-query/declarations/template-registry.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,iBAAiB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,sBAAsB,MAAM,gCAAgC,CAAC;AAEzE,MAAM,CAAC,OAAO,WAAW,2BAA2B;IAClD,cAAc,EAAE,OAAO,uBAAuB,CAAC;IAC/C,cAAc,EAAE,OAAO,iBAAiB,CAAC;IACzC,iBAAiB,EAAE,OAAO,sBAAsB,CAAC;IACjD,MAAM,EAAE,OAAO,YAAY,CAAC;IAC5B,KAAK,EAAE,OAAO,WAAW,CAAC;CAC3B"} \ No newline at end of file