diff --git a/fluent-react/package-lock.json b/fluent-react/package-lock.json index 88d08a227..44c8af3f1 100644 --- a/fluent-react/package-lock.json +++ b/fluent-react/package-lock.json @@ -903,10 +903,9 @@ } }, "@fluent/bundle": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@fluent/bundle/-/bundle-0.15.0.tgz", - "integrity": "sha512-pYz+TuFPwCj5yx51mFG1flPxwTaXWkpi6yt6r+rdm22Y9bkWMHWdwbUnjWLJ+9yJKQMhe2uhvMJ7YfhkF87oNg==", - "dev": true + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@fluent/bundle/-/bundle-0.16.0.tgz", + "integrity": "sha512-kUEAUePhb/y2BCcNpKOnjCs+WJkDczVpUUAQ+cDl0xvBGqL0Kv0Yog2oHSuv/Ou22c6KdXbvfCl3We0bIZnrmg==" }, "@fluent/sequence": { "version": "0.5.0", diff --git a/fluent-react/package.json b/fluent-react/package.json index d78cdb27d..218893ebd 100644 --- a/fluent-react/package.json +++ b/fluent-react/package.json @@ -45,18 +45,18 @@ "node": ">=10.0.0" }, "dependencies": { - "cached-iterable": "^0.2.1", "@fluent/sequence": "0.5.0", + "cached-iterable": "^0.2.1", "prop-types": "^15.6.0" }, "peerDependencies": { - "@fluent/bundle": ">=0.14.0 <0.16.0", + "@fluent/bundle": ">=0.16.0 <0.17.0", "react": ">=16.8.0" }, "devDependencies": { "@babel/preset-env": "^7.5.5", "@babel/preset-react": "7.0.0", - "@fluent/bundle": "^0.15.0", + "@fluent/bundle": "^0.16.0", "@types/react": "^16.9.22", "@types/react-dom": "^16.9.5", "babel-jest": "^24.8.0", diff --git a/fluent-react/src/localization.ts b/fluent-react/src/localization.ts index 45876eae4..df0a62aff 100644 --- a/fluent-react/src/localization.ts +++ b/fluent-react/src/localization.ts @@ -1,4 +1,4 @@ -import { FluentBundle, FluentArgument } from "@fluent/bundle"; +import { FluentBundle, FluentVariable } from "@fluent/bundle"; import { mapBundleSync } from "@fluent/sequence"; import { CachedSyncIterable } from "cached-iterable"; import { createParseMarkup, MarkupParser } from "./markup"; @@ -32,7 +32,7 @@ export class ReactLocalization { getString( id: string, - args?: Record | null, + args?: Record | null, fallback?: string ): string { const bundle = this.getBundle(id); diff --git a/fluent-react/src/localized.ts b/fluent-react/src/localized.ts index 0abe08939..33dfda189 100644 --- a/fluent-react/src/localized.ts +++ b/fluent-react/src/localized.ts @@ -10,7 +10,7 @@ import { import PropTypes from "prop-types"; import voidElementTags from "../vendor/voidElementTags"; import { FluentContext } from "./context"; -import { FluentArgument } from "@fluent/bundle"; +import { FluentVariable } from "@fluent/bundle"; // Match the opening angle bracket (<) in HTML tags, and HTML entities like // &, &, &. @@ -20,7 +20,7 @@ export interface LocalizedProps { id: string; attrs?: Record; children?: ReactNode; - vars?: Record; + vars?: Record; elems?: Record; } /* diff --git a/fluent-react/src/with_localization.ts b/fluent-react/src/with_localization.ts index c45eb378a..31c0e6b16 100644 --- a/fluent-react/src/with_localization.ts +++ b/fluent-react/src/with_localization.ts @@ -1,11 +1,11 @@ import { createElement, useContext, ComponentType, ReactElement } from "react"; import { FluentContext } from "./context"; -import { FluentArgument } from "@fluent/bundle"; +import { FluentVariable } from "@fluent/bundle"; export interface WithLocalizationProps { getString( id: string, - args?: Record | null, + args?: Record | null, fallback?: string): string; }