Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ember-intl: Migrate to v6.4 #359

Merged
merged 2 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion addon/components/o-s-s/attribute/removable-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { assert } from '@ember/debug';
import type IntlService from 'ember-intl/services/intl';

interface OSSAttributeRemovableTextArgs {
label: string;
Expand All @@ -13,7 +14,7 @@ interface OSSAttributeRemovableTextArgs {
}

export default class OSSAttributeRemovableText extends Component<OSSAttributeRemovableTextArgs> {
@service declare intl: any;
@service declare intl: IntlService;
@tracked loading: boolean = false;

constructor(owner: unknown, args: OSSAttributeRemovableTextArgs) {
Expand Down
3 changes: 2 additions & 1 deletion addon/components/o-s-s/attribute/revealable-email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { inject as service } from '@ember/service';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { assert } from '@ember/debug';
import type IntlService from 'ember-intl/services/intl';

interface OSSAttributeRevealableEmailArgs {
tooltip?: string;
Expand All @@ -11,7 +12,7 @@ interface OSSAttributeRevealableEmailArgs {
}

export default class OSSAttributeRevealableEmail extends Component<OSSAttributeRevealableEmailArgs> {
@service declare intl: any;
@service declare intl: IntlService;
@tracked loading: boolean = false;

constructor(owner: unknown, args: OSSAttributeRevealableEmailArgs) {
Expand Down
3 changes: 2 additions & 1 deletion addon/components/o-s-s/phone-number-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { inject as service } from '@ember/service';
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { countries, type CountryData } from '@upfluence/oss-components/utils/country-codes';
import type IntlService from 'ember-intl/services/intl';

interface OSSPhoneNumberInputArgs {
prefix: string;
Expand All @@ -14,7 +15,7 @@ interface OSSPhoneNumberInputArgs {
}

export default class OSSPhoneNumberInput extends Component<OSSPhoneNumberInputArgs> {
@service declare intl: any;
@service declare intl: IntlService;

private _countries = countries;

Expand Down
3 changes: 2 additions & 1 deletion addon/components/o-s-s/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { assert } from '@ember/debug';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { isEmpty } from '@ember/utils';
import type IntlService from 'ember-intl/services/intl';

interface OSSSelectArgs {
value: any;
Expand All @@ -18,7 +19,7 @@ interface OSSSelectArgs {
}

export default class OSSSelect extends Component<OSSSelectArgs> {
@service declare intl: any;
@service declare intl: IntlService;

@tracked displaySelect: boolean = false;

Expand Down
3 changes: 2 additions & 1 deletion addon/components/o-s-s/upload-area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { tracked } from '@glimmer/tracking';
import { assert } from '@ember/debug';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import type IntlService from 'ember-intl/services/intl';

import ToastService from '@upfluence/oss-components/services/toast';
import {
Expand Down Expand Up @@ -39,7 +40,7 @@ interface OSSUploadAreaArgs {
}

export default class OSSUploadArea extends Component<OSSUploadAreaArgs> {
@service declare intl: any;
@service declare intl: IntlService;
@service declare toast: ToastService;

private declare _DOMElement: HTMLElement;
Expand Down
3 changes: 2 additions & 1 deletion addon/components/o-s-s/url-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { action } from '@ember/object';
import { inject as service } from '@ember/service';
import { tracked } from '@glimmer/tracking';
import Component from '@glimmer/component';
import type IntlService from 'ember-intl/services/intl';

interface OSSUrlInputArgs {
value?: string;
Expand All @@ -15,7 +16,7 @@ interface OSSUrlInputArgs {
}

export default class OSSUrlInput extends Component<OSSUrlInputArgs> {
@service declare intl: any;
@service declare intl: IntlService;
@tracked validInput: boolean = true;

get errorLabel(): string {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"ember-cli-ifa": "^0.10.0",
"ember-cli-less": "^2.0.6",
"ember-cli-typescript": "^5.2.1",
"ember-intl": "^4.1.0",
"ember-intl": "^6.4.0",
"ember-named-blocks-polyfill": "^0.2.4",
"ember-truth-helpers": "^3.1.1",
"ion-rangeslider": "^2.3.1",
Expand Down
Loading
Loading