@iobroker/adapter-react-v5 7.7.1 → 7.7.3

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 (47) hide show
  1. package/build/Components/CustomModal.js +4 -2
  2. package/build/Components/CustomModal.js.map +1 -1
  3. package/build/Components/FileBrowser.d.ts +1 -1
  4. package/build/Components/FileBrowser.js +12 -5
  5. package/build/Components/FileBrowser.js.map +1 -1
  6. package/build/Components/FileViewer.js +1 -1
  7. package/build/Components/FileViewer.js.map +1 -1
  8. package/build/Components/ObjectBrowser.d.ts +2 -0
  9. package/build/Components/ObjectBrowser.js +31 -7
  10. package/build/Components/ObjectBrowser.js.map +1 -1
  11. package/build/Components/Utils.d.ts +7 -6
  12. package/build/Components/Utils.js +68 -62
  13. package/build/Components/Utils.js.map +1 -1
  14. package/build/Dialogs/SelectFile.d.ts +2 -0
  15. package/build/Dialogs/SelectFile.js +2 -3
  16. package/build/Dialogs/SelectFile.js.map +1 -1
  17. package/build/Dialogs/SelectID.d.ts +2 -1
  18. package/build/Dialogs/SelectID.js +3 -3
  19. package/build/Dialogs/SelectID.js.map +1 -1
  20. package/build/LegacyConnection.d.ts +14 -1
  21. package/build/LegacyConnection.js +26 -2
  22. package/build/LegacyConnection.js.map +1 -1
  23. package/build/i18n/de.json +8 -0
  24. package/build/i18n/en.json +8 -0
  25. package/build/i18n/es.json +8 -0
  26. package/build/i18n/fr.json +8 -0
  27. package/build/i18n/it.json +3 -0
  28. package/build/i18n/nl.json +3 -0
  29. package/build/i18n/pl.json +6 -3
  30. package/build/i18n/pt.json +3 -0
  31. package/build/i18n/ru.json +3 -0
  32. package/build/i18n/uk.json +3 -0
  33. package/build/i18n/zh-cn.json +3 -0
  34. package/build/types.d.ts +2 -0
  35. package/i18n/de.json +8 -0
  36. package/i18n/en.json +8 -0
  37. package/i18n/es.json +8 -0
  38. package/i18n/fr.json +8 -0
  39. package/i18n/it.json +3 -0
  40. package/i18n/nl.json +3 -0
  41. package/i18n/pl.json +6 -3
  42. package/i18n/pt.json +3 -0
  43. package/i18n/ru.json +3 -0
  44. package/i18n/uk.json +3 -0
  45. package/i18n/zh-cn.json +3 -0
  46. package/package.json +9 -8
  47. package/craco-module-federation.js +0 -62
@@ -1,62 +0,0 @@
1
- // const webpack = require('webpack');
2
- // const paths = require('react-scripts/config/paths');
3
-
4
- const getModuleFederationConfigPath = (additionalPaths = []) => {
5
- const path = require('node:path');
6
- const fs = require('node:fs');
7
- const appDirectory = fs.realpathSync(process.cwd());
8
- const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
9
-
10
- const moduleFederationConfigFiles = ['modulefederation.config.js', ...additionalPaths];
11
- return moduleFederationConfigFiles.map(resolveApp).filter(fs.existsSync).shift();
12
- };
13
-
14
- module.exports = {
15
- overrideWebpackConfig: ({ webpackConfig, pluginOptions }) => {
16
- const moduleFederationConfigPath = getModuleFederationConfigPath();
17
-
18
- if (moduleFederationConfigPath) {
19
- webpackConfig.output.publicPath = 'auto';
20
-
21
- if (pluginOptions?.useNamedChunkIds) {
22
- webpackConfig.optimization.chunkIds = 'named';
23
- }
24
-
25
- const htmlWebpackPlugin = webpackConfig.plugins.find(
26
- plugin => plugin.constructor.name === 'HtmlWebpackPlugin',
27
- );
28
-
29
- const myModule = require(moduleFederationConfigPath);
30
-
31
- htmlWebpackPlugin.userOptions = {
32
- ...htmlWebpackPlugin.userOptions,
33
- publicPath: './',
34
- excludeChunks: [myModule.name],
35
- };
36
-
37
- const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
38
-
39
- webpackConfig.plugins = [...webpackConfig.plugins, new ModuleFederationPlugin(myModule)];
40
-
41
- // webpackConfig.module = {
42
- // ...webpackConfig.module,
43
- // generator: {
44
- // "asset/resource": {
45
- // publicPath: paths.publicUrlOrPath,
46
- // },
47
- // },
48
- // };
49
- }
50
- return webpackConfig;
51
- },
52
-
53
- overrideDevServerConfig: ({ devServerConfig }) => {
54
- devServerConfig.headers = {
55
- 'Access-Control-Allow-Origin': '*',
56
- 'Access-Control-Allow-Methods': '*',
57
- 'Access-Control-Allow-Headers': '*',
58
- };
59
-
60
- return devServerConfig;
61
- },
62
- };