@just-web/react-intl 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react_intl_gizmo.d.ts +5 -5
- package/cjs/react_intl_gizmo.d.ts.map +1 -1
- package/cjs/react_intl_gizmo.js +2 -2
- package/cjs/react_intl_gizmo.js.map +1 -1
- package/esm/react_intl_gizmo.d.ts +5 -5
- package/esm/react_intl_gizmo.d.ts.map +1 -1
- package/esm/react_intl_gizmo.js +2 -2
- package/esm/react_intl_gizmo.js.map +1 -1
- package/package.json +8 -8
- package/ts/react_intl_gizmo.tsx +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { define } from '@just-web/app';
|
|
3
3
|
import { type FormatJSGizmoOptions } from '@just-web/formatjs';
|
|
4
4
|
import { type IntlShape } from 'react-intl';
|
|
@@ -6,11 +6,11 @@ export type ReactIntlGizmoOptions<T = string> = FormatJSGizmoOptions<T>;
|
|
|
6
6
|
export declare const reactIntlGizmoFn: <T = string>(options?: ReactIntlGizmoOptions<T> | undefined) => import("@just-web/app").GizmoStatic<import("@just-web/app").DepBuilder<{
|
|
7
7
|
react: {
|
|
8
8
|
providers: {
|
|
9
|
-
register(Component:
|
|
10
|
-
children:
|
|
9
|
+
register(Component: React.JSXElementConstructor<{
|
|
10
|
+
children: React.ReactNode;
|
|
11
11
|
}>): void;
|
|
12
|
-
values(): IterableIterator<
|
|
13
|
-
children:
|
|
12
|
+
values(): IterableIterator<React.JSXElementConstructor<{
|
|
13
|
+
children: React.ReactNode;
|
|
14
14
|
}>>;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react_intl_gizmo.d.ts","sourceRoot":"","sources":["../ts/react_intl_gizmo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react_intl_gizmo.d.ts","sourceRoot":"","sources":["../ts/react_intl_gizmo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAY,MAAM,eAAe,CAAA;AAChD,OAAO,EAAuC,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEnG,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAA;AAE5D,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,MAAM,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAA;AAEvE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;eAkB3B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
package/cjs/react_intl_gizmo.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reactIntlGizmoFn = void 0;
|
|
4
|
-
const
|
|
4
|
+
const react_1 = require("react");
|
|
5
5
|
const app_1 = require("@just-web/app");
|
|
6
6
|
const formatjs_1 = require("@just-web/formatjs");
|
|
7
7
|
const react_intl_1 = require("react-intl");
|
|
@@ -16,7 +16,7 @@ exports.reactIntlGizmoFn = (0, app_1.define)(function (options) {
|
|
|
16
16
|
intl: formatjs.intl
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
() => ctx.react.providers.register(({ children }) => (
|
|
19
|
+
() => ctx.react.providers.register(({ children }) => (react_1.default.createElement(react_intl_1.RawIntlProvider, { value: formatjs.intl }, children)))
|
|
20
20
|
];
|
|
21
21
|
}
|
|
22
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react_intl_gizmo.js","sourceRoot":"","sources":["../ts/react_intl_gizmo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react_intl_gizmo.js","sourceRoot":"","sources":["../ts/react_intl_gizmo.tsx"],"names":[],"mappings":";;;AAAA,iCAAyB;AACzB,uCAAgD;AAChD,iDAAmG;AAEnG,2CAA4D;AAI/C,QAAA,gBAAgB,GAAG,IAAA,YAAM,EAAC,UAAsB,OAAkC;IAC9F,OAAO;QACN,MAAM,EAAE,YAAM,CAAC,OAAO,EAAc,CAAC,QAAQ,EAAiB;QAC9D,KAAK,CAAC,MAAM,CAAC,GAAwC;YACpD,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;YAChD,OAAO;gBACN;oBACC,UAAU,EAAE;wBACX,IAAI,EAAE,QAAQ,CAAC,IAAiB;qBAChC;iBACD;gBACD,GAAG,EAAE,CACJ,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,8BAAC,4BAAe,IAAC,KAAK,EAAE,QAAQ,CAAC,IAAiB,IAAG,QAAQ,CAAmB,CAChF,CAAC;aACH,CAAA;QACF,CAAC;KACD,CAAA;AACF,CAAC,CAAC,CAAA;AAIF,KAAK,UAAU,WAAW,CAAC,GAA2B,EAAE,OAA+C;IACtG,IAAI,GAAG,CAAC,QAAQ;QAAE,OAAO,GAAG,CAAC,QAAQ,CAAA;IACrC,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;IACpF,OAAO,CAAC,MAAM,IAAA,cAAQ,GAAE,CAAC,IAAI,CAAC,IAAA,0BAAe,EAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAA;AAC3E,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { define } from '@just-web/app';
|
|
3
3
|
import { type FormatJSGizmoOptions } from '@just-web/formatjs';
|
|
4
4
|
import { type IntlShape } from 'react-intl';
|
|
@@ -6,11 +6,11 @@ export type ReactIntlGizmoOptions<T = string> = FormatJSGizmoOptions<T>;
|
|
|
6
6
|
export declare const reactIntlGizmoFn: <T = string>(options?: ReactIntlGizmoOptions<T> | undefined) => import("@just-web/app").GizmoStatic<import("@just-web/app").DepBuilder<{
|
|
7
7
|
react: {
|
|
8
8
|
providers: {
|
|
9
|
-
register(Component:
|
|
10
|
-
children:
|
|
9
|
+
register(Component: React.JSXElementConstructor<{
|
|
10
|
+
children: React.ReactNode;
|
|
11
11
|
}>): void;
|
|
12
|
-
values(): IterableIterator<
|
|
13
|
-
children:
|
|
12
|
+
values(): IterableIterator<React.JSXElementConstructor<{
|
|
13
|
+
children: React.ReactNode;
|
|
14
14
|
}>>;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react_intl_gizmo.d.ts","sourceRoot":"","sources":["../ts/react_intl_gizmo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react_intl_gizmo.d.ts","sourceRoot":"","sources":["../ts/react_intl_gizmo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAY,MAAM,eAAe,CAAA;AAChD,OAAO,EAAuC,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEnG,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAA;AAE5D,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,MAAM,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAA;AAEvE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;eAkB3B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
package/esm/react_intl_gizmo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { define, incubate } from '@just-web/app';
|
|
3
3
|
import { formatJSGizmoFn } from '@just-web/formatjs';
|
|
4
4
|
import { RawIntlProvider } from 'react-intl';
|
|
@@ -13,7 +13,7 @@ export const reactIntlGizmoFn = define(function (options) {
|
|
|
13
13
|
intl: formatjs.intl
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
() => ctx.react.providers.register(({ children }) => (
|
|
16
|
+
() => ctx.react.providers.register(({ children }) => (React.createElement(RawIntlProvider, { value: formatjs.intl }, children)))
|
|
17
17
|
];
|
|
18
18
|
}
|
|
19
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react_intl_gizmo.js","sourceRoot":"","sources":["../ts/react_intl_gizmo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react_intl_gizmo.js","sourceRoot":"","sources":["../ts/react_intl_gizmo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,eAAe,EAAiD,MAAM,oBAAoB,CAAA;AAEnG,OAAO,EAAE,eAAe,EAAkB,MAAM,YAAY,CAAA;AAI5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,UAAsB,OAAkC;IAC9F,OAAO;QACN,MAAM,EAAE,MAAM,CAAC,OAAO,EAAc,CAAC,QAAQ,EAAiB;QAC9D,KAAK,CAAC,MAAM,CAAC,GAAwC;YACpD,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;YAChD,OAAO;gBACN;oBACC,UAAU,EAAE;wBACX,IAAI,EAAE,QAAQ,CAAC,IAAiB;qBAChC;iBACD;gBACD,GAAG,EAAE,CACJ,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAC9C,oBAAC,eAAe,IAAC,KAAK,EAAE,QAAQ,CAAC,IAAiB,IAAG,QAAQ,CAAmB,CAChF,CAAC;aACH,CAAA;QACF,CAAC;KACD,CAAA;AACF,CAAC,CAAC,CAAA;AAIF,KAAK,UAAU,WAAW,CAAC,GAA2B,EAAE,OAA+C;IACtG,IAAI,GAAG,CAAC,QAAQ;QAAE,OAAO,GAAG,CAAC,QAAQ,CAAA;IACrC,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAA;IACpF,OAAO,CAAC,MAAM,QAAQ,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAA;AAC3E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@just-web/react-intl",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "react-intl gizmo for just-web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"just-web",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"@storybook/client-api": "^7.0.6",
|
|
85
85
|
"@storybook/preview-web": "^7.0.6",
|
|
86
86
|
"@storybook/react": "^7.0.6",
|
|
87
|
-
"@storybook/react-vite": "7.0
|
|
88
|
-
"@storybook/test-runner": "^0.
|
|
89
|
-
"@storybook/testing-library": "^0.
|
|
87
|
+
"@storybook/react-vite": "7.1.0",
|
|
88
|
+
"@storybook/test-runner": "^0.11.0",
|
|
89
|
+
"@storybook/testing-library": "^0.2.0",
|
|
90
90
|
"@types/jest": "^29.5.1",
|
|
91
91
|
"@types/react": "^18.0.0",
|
|
92
92
|
"@types/react-dom": "^18.0.9",
|
|
@@ -101,20 +101,20 @@
|
|
|
101
101
|
"jest-watch-toggle-config-2": "^2.1.0",
|
|
102
102
|
"jest-watch-typeahead": "^2.2.2",
|
|
103
103
|
"npm-run-all": "^4.1.5",
|
|
104
|
-
"react": "^
|
|
105
|
-
"react-dom": "^
|
|
104
|
+
"react": "^18.0.0",
|
|
105
|
+
"react-dom": "^18.0.0",
|
|
106
106
|
"repobuddy": "^1.0.1",
|
|
107
107
|
"rimraf": "~5.0.0",
|
|
108
108
|
"rollup-plugin-node-externals": "^6.0.0",
|
|
109
109
|
"size-limit": "~8.2.0",
|
|
110
|
-
"storybook": "7.0
|
|
110
|
+
"storybook": "7.1.0",
|
|
111
111
|
"storybook-dark-mode": "~3.0.0",
|
|
112
112
|
"ts-jest": "^29.1.0",
|
|
113
113
|
"tslib": "^2.5.0",
|
|
114
114
|
"type-plus": "^7.0.1",
|
|
115
115
|
"typescript": "^5.0.4",
|
|
116
116
|
"vite": "^4.3.1",
|
|
117
|
-
"@just-web/react": "^9.0.
|
|
117
|
+
"@just-web/react": "^9.0.4"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
120
|
"@just-web/react": "^9.0.0",
|
package/ts/react_intl_gizmo.tsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react'
|
|
1
2
|
import { define, incubate } from '@just-web/app'
|
|
2
3
|
import { formatJSGizmoFn, type FormatJSGizmo, type FormatJSGizmoOptions } from '@just-web/formatjs'
|
|
3
4
|
import type { ReactGizmo } from '@just-web/react'
|
|
@@ -18,7 +19,7 @@ export const reactIntlGizmoFn = define(function <T = string>(options?: ReactIntl
|
|
|
18
19
|
},
|
|
19
20
|
() =>
|
|
20
21
|
ctx.react.providers.register(({ children }) => (
|
|
21
|
-
<RawIntlProvider value={formatjs.intl as
|
|
22
|
+
<RawIntlProvider value={formatjs.intl as IntlShape}>{children}</RawIntlProvider>
|
|
22
23
|
))
|
|
23
24
|
]
|
|
24
25
|
}
|