@panneau/intl 4.0.55 → 4.0.58

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 (2) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/package.json +23 -20
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
1
+ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { IntlConfig } from 'react-intl';
4
4
  import { Resource, ResourceValues } from '@panneau/core';
@@ -18,7 +18,7 @@ interface IntlProviderProps extends Omit<IntlConfig, 'locale' | 'messages'> {
18
18
  extraMessages?: Record<string, string> | null;
19
19
  children?: ReactNode;
20
20
  }
21
- declare function IntlProvider({ intlManager, locale, locales, children, extraMessages, ...props }: IntlProviderProps): react_jsx_runtime.JSX.Element;
21
+ declare function IntlProvider({ intlManager, locale, locales, children, extraMessages, ...props }: IntlProviderProps): react.JSX.Element;
22
22
 
23
23
  interface ResourceIntlConfig {
24
24
  values?: Record<string, unknown>;
@@ -35,7 +35,7 @@ interface ResourceMessageProps {
35
35
  defaultMessage?: string | null;
36
36
  description?: string | null;
37
37
  }
38
- declare function ResourceMessage({ resource, values, id, defaultMessage, description, }: ResourceMessageProps): react_jsx_runtime.JSX.Element;
38
+ declare function ResourceMessage({ resource, values, id, defaultMessage, description, }: ResourceMessageProps): react.JSX.Element;
39
39
 
40
40
  declare function useResourceValues(resource: Resource | null, values?: Record<string, unknown>): ResourceValues;
41
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/intl",
3
- "version": "4.0.55",
3
+ "version": "4.0.58",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -10,6 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/folkloreinc/panneau-js.git"
12
12
  },
13
+ "license": "ISC",
13
14
  "author": {
14
15
  "name": "Folklore",
15
16
  "email": "info@folklore.email"
@@ -32,10 +33,10 @@
32
33
  "email": "tg@folklore.email"
33
34
  }
34
35
  ],
35
- "license": "ISC",
36
+ "sideEffects": [
37
+ "locale/*"
38
+ ],
36
39
  "type": "module",
37
- "module": "dist/index.js",
38
- "types": "dist/index.d.ts",
39
40
  "exports": {
40
41
  ".": {
41
42
  "types": "./dist/index.d.ts",
@@ -44,6 +45,8 @@
44
45
  "./locale/*.json": "./locale/*.json",
45
46
  "./locale/*": "./locale/*.js"
46
47
  },
48
+ "module": "dist/index.js",
49
+ "types": "dist/index.d.ts",
47
50
  "files": [
48
51
  "dist",
49
52
  "locale",
@@ -51,22 +54,14 @@
51
54
  "assets"
52
55
  ],
53
56
  "scripts": {
57
+ "build": "rm -rf ./locale && npm run intl && ../../scripts/prepare-package.sh --types",
54
58
  "intl": "../../scripts/build-intl.js '../../!(node_modules)/!(intl)/src/**/*.+(js|jsx|ts|tsx)'",
55
- "prepublishOnly": "npm run build",
56
- "build": "rm -rf ./locale && npm run intl && ../../scripts/prepare-package.sh --types"
57
- },
58
- "devDependencies": {
59
- "react": "^19.2.0",
60
- "react-dom": "^19.0.0"
61
- },
62
- "peerDependencies": {
63
- "react": "^19.2.0",
64
- "react-dom": "^19.0.0"
59
+ "prepublishOnly": "npm run build"
65
60
  },
66
61
  "dependencies": {
67
62
  "@babel/runtime": "^7.28.6",
68
63
  "@formatjs/cli-lib": "^6.6.6",
69
- "@panneau/core": "^4.0.55",
64
+ "@panneau/core": "^4.0.58",
70
65
  "commander": "^12.0.0",
71
66
  "fs-extra": "^11.2.0",
72
67
  "gettext-parser": "^7.0.1",
@@ -74,13 +69,21 @@
74
69
  "lodash": "^4.17.21",
75
70
  "react-intl": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^10.0.0"
76
71
  },
72
+ "devDependencies": {
73
+ "react": "^19.2.0",
74
+ "react-dom": "^19.0.0"
75
+ },
76
+ "peerDependencies": {
77
+ "react": "^19.2.0",
78
+ "react-dom": "^19.0.0"
79
+ },
80
+ "publishConfig": {
81
+ "access": "public"
82
+ },
83
+ "gitHead": "408b9bef2c15c0a6c55588721d13a965ead50a5f",
77
84
  "lang": "locale",
78
85
  "supportedLocales": [
79
86
  "en",
80
87
  "fr"
81
- ],
82
- "publishConfig": {
83
- "access": "public"
84
- },
85
- "gitHead": "1c9183567fc5bf98ba10fa57c63cf2ed2ae4a054"
88
+ ]
86
89
  }