@selfcommunity/react-i18n 0.5.0-alpha.8 → 0.5.0
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/lib/cjs/index.d.ts +1235 -0
- package/lib/cjs/index.js +6 -11
- package/lib/cjs/locales/en.json +614 -618
- package/lib/cjs/locales/it.json +614 -624
- package/lib/esm/index.d.ts +1235 -0
- package/lib/esm/index.js +4 -12
- package/lib/esm/locales/en.json +614 -618
- package/lib/esm/locales/it.json +614 -624
- package/lib/types/index.d.ts +1117 -965
- package/lib/types/index.js +7 -0
- package/lib/types/locales/en.json +616 -0
- package/lib/types/locales/it.json +616 -0
- package/lib/types/tsconfig.build.tsbuildinfo +1 -1
- package/lib/umd/react-i18n.js +1 -2
- package/lib/umd/react-i18n.js.LICENSE.txt +1 -1
- package/package.json +19 -18
- package/lib/cjs/index.d.js +0 -2
- package/lib/esm/index.d.js +0 -2
- package/lib/types/index.d.ts.map +0 -1
- package/lib/umd/react-i18n.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfcommunity/react-i18n",
|
|
3
|
-
"version": "0.5.0
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
7
7
|
"module": "./lib/esm/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"require": "./lib/cjs/index.js",
|
|
11
|
+
"import": "./lib/esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./*": {
|
|
14
|
+
"require": "./lib/cjs/*",
|
|
15
|
+
"import": "./lib/esm/*"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": false,
|
|
8
19
|
"types": "./lib/types/index.d.ts",
|
|
9
20
|
"description": "Translations to integrate a Community created with SelfCommunity.",
|
|
10
21
|
"author": "SelfCommunity <https://www.selfcommunity.com>",
|
|
@@ -27,11 +38,12 @@
|
|
|
27
38
|
"prettier-list-different": "prettier './**/*.js' './**/*.css' './**/*.md' --list-different",
|
|
28
39
|
"clean:lib": "rimraf lib",
|
|
29
40
|
"clean:node_modules": "rimraf node_modules",
|
|
30
|
-
"build:commonjs": "
|
|
31
|
-
"build:
|
|
41
|
+
"build:commonjs": "tsc -b tsconfig-cjs.build.json",
|
|
42
|
+
"build:esm": "tsc -b tsconfig-esm.build.json",
|
|
32
43
|
"build:umd": "webpack --mode production",
|
|
44
|
+
"build:umd:analyze": "webpack --mode production --profile --json > ./lib/umd/stats.json && webpack-bundle-analyzer ./lib/umd/stats.json",
|
|
33
45
|
"build:types": "tsc -b tsconfig.build.json",
|
|
34
|
-
"build": "yarn clean:lib && yarn build:commonjs && yarn build:
|
|
46
|
+
"build": "yarn clean:lib && yarn build:commonjs && yarn build:esm && yarn build:umd && yarn build:types",
|
|
35
47
|
"prerelease": "yarn run clean:lib && yarn run build"
|
|
36
48
|
},
|
|
37
49
|
"homepage": "https://www.selfcommunity.com",
|
|
@@ -46,17 +58,6 @@
|
|
|
46
58
|
"access": "public"
|
|
47
59
|
},
|
|
48
60
|
"devDependencies": {
|
|
49
|
-
"@babel/cli": "^7.12.13",
|
|
50
|
-
"@babel/core": "^7.12.13",
|
|
51
|
-
"@babel/plugin-proposal-class-properties": "^7.12.13",
|
|
52
|
-
"@babel/plugin-proposal-export-default-from": "^7.12.13",
|
|
53
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.12.13",
|
|
54
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.13",
|
|
55
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.12.13",
|
|
56
|
-
"@babel/plugin-transform-modules-commonjs": "^7.12.13",
|
|
57
|
-
"@babel/preset-modules": "^0.1.4",
|
|
58
|
-
"@babel/preset-react": "^7.12.13",
|
|
59
|
-
"@babel/preset-typescript": "^7.12.13",
|
|
60
61
|
"@types/chai": "^4.2.14",
|
|
61
62
|
"@types/enzyme": "^3.10.8",
|
|
62
63
|
"@types/jest": "^26.0.20",
|
|
@@ -66,8 +67,6 @@
|
|
|
66
67
|
"@typescript-eslint/eslint-plugin": "^4.14.2",
|
|
67
68
|
"@typescript-eslint/parser": "^4.14.2",
|
|
68
69
|
"babel-jest": "^26.6.3",
|
|
69
|
-
"babel-loader": "^8.2.2",
|
|
70
|
-
"babel-preset-jason": "^6.3.0",
|
|
71
70
|
"chai": "^4.2.0",
|
|
72
71
|
"cherry-pick": "^0.5.0",
|
|
73
72
|
"enzyme": "^3.10.0",
|
|
@@ -88,9 +87,11 @@
|
|
|
88
87
|
"rimraf": "^3.0.2",
|
|
89
88
|
"sass": "^1.32.6",
|
|
90
89
|
"sinon": "^9.2.4",
|
|
90
|
+
"tslib": "^2.6.2",
|
|
91
91
|
"typescript": "^4.1.3",
|
|
92
92
|
"webpack": "^5.20.1",
|
|
93
93
|
"webpack-atoms": "^17.1.0",
|
|
94
|
+
"webpack-bundle-analyzer": "^4.9.0",
|
|
94
95
|
"webpack-cli": "^4.5.0"
|
|
95
96
|
},
|
|
96
97
|
"prettier": {
|
|
@@ -103,5 +104,5 @@
|
|
|
103
104
|
"bugs": {
|
|
104
105
|
"url": "https://github.com/selfcommunity/community-js/issues"
|
|
105
106
|
},
|
|
106
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "f7abcaa88f086cedf2dd825e28c32d44237eb04e"
|
|
107
108
|
}
|
package/lib/cjs/index.d.js
DELETED
package/lib/esm/index.d.js
DELETED
package/lib/types/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAgC,uBAAID,IAEpCD,EAA6B,uBAAIC,GAClC,CATD,CASGK,MAAM,IACT,u82ECTIC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaR,QAGrB,IAAIC,EAASI,EAAyBE,GAAY,CAGjDP,QAAS,CAAC,GAOX,OAHAU,EAAoBH,GAAUN,EAAQA,EAAOD,QAASM,GAG/CL,EAAOD,OACf,+DCtBA,gBACA,YAAmC,yDAEpB,CAACW,GAAAA,EAAAA,QAAIC,GAAAA,EAAAA,SAAG,mBFOvB","sources":["webpack://SelfCommunityReactI18n/webpack/universalModuleDefinition","webpack://SelfCommunityReactI18n/webpack/bootstrap","webpack://SelfCommunityReactI18n/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"SelfCommunityReactI18n\"] = factory();\n\telse\n\t\troot[\"SelfCommunityReactI18n\"] = factory();\n})(self, () => {\nreturn ","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","import en from './locales/en.json';\nimport it from './locales/it.json';\n\nexport default {en, it};\n"],"names":["root","factory","exports","module","define","amd","self","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","en","it"],"sourceRoot":""}
|