@viasoftbr/shared-ui 0.0.7-2 → 0.0.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.
- package/dist/components.cjs +157 -42
- package/dist/components.js +157 -42
- package/dist/hooks.cjs +98 -17
- package/dist/hooks.js +98 -17
- package/dist/index.cjs +159 -43
- package/dist/index.js +159 -43
- package/dist/services/api.d.ts +19 -33
- package/dist/services.cjs +159 -43
- package/dist/services.js +159 -43
- package/dist/types/websocket.d.ts +14 -24
- package/package.json +1 -1
- package/dist/components/RemoteModule.d.ts +0 -8
- package/dist/package.json +0 -111
- package/dist/services/loadRemoteModule.d.ts +0 -9
- package/dist/services/metadataLoader.d.ts +0 -9
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface RemoteModuleProps {
|
|
2
|
-
scope: string;
|
|
3
|
-
url: string;
|
|
4
|
-
module: string;
|
|
5
|
-
fallback?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function RemoteModule({ scope, url, module, fallback }: RemoteModuleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default RemoteModule;
|
package/dist/package.json
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@viasoftbr/shared-ui",
|
|
3
|
-
"version": "0.0.3",
|
|
4
|
-
"description": "Shared frontend utilities, components and i18n for Viasoft plugins and micro-frontends",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/index.js",
|
|
11
|
-
"types": "./dist/index.d.ts"
|
|
12
|
-
},
|
|
13
|
-
"./index": {
|
|
14
|
-
"import": "./dist/index.js",
|
|
15
|
-
"types": "./dist/index.d.ts"
|
|
16
|
-
},
|
|
17
|
-
"./context": {
|
|
18
|
-
"import": "./dist/context.js",
|
|
19
|
-
"types": "./dist/context/index.d.ts"
|
|
20
|
-
},
|
|
21
|
-
"./components": {
|
|
22
|
-
"import": "./dist/components.js",
|
|
23
|
-
"types": "./dist/components/index.d.ts"
|
|
24
|
-
},
|
|
25
|
-
"./services": {
|
|
26
|
-
"import": "./dist/services.js",
|
|
27
|
-
"types": "./dist/services/index.d.ts"
|
|
28
|
-
},
|
|
29
|
-
"./types": {
|
|
30
|
-
"import": "./dist/types.js",
|
|
31
|
-
"types": "./dist/types/index.d.ts"
|
|
32
|
-
},
|
|
33
|
-
"./i18n": {
|
|
34
|
-
"import": "./dist/i18n.js",
|
|
35
|
-
"types": "./dist/i18n.d.ts"
|
|
36
|
-
},
|
|
37
|
-
"./jsmpeg": {
|
|
38
|
-
"default": "./dist/jsmpeg.vu.min.js"
|
|
39
|
-
},
|
|
40
|
-
"./locales/*": {
|
|
41
|
-
"default": "./dist/locales/*"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"scripts": {
|
|
45
|
-
"build": "node scripts/build.js",
|
|
46
|
-
"dev": "node scripts/build.js --watch",
|
|
47
|
-
"typecheck": "tsc --noEmit"
|
|
48
|
-
},
|
|
49
|
-
"peerDependencies": {
|
|
50
|
-
"react": "^19.0.0"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@types/react": "^19.2.13",
|
|
54
|
-
"esbuild": "^0.20.0",
|
|
55
|
-
"typescript": "^5.0.0"
|
|
56
|
-
},
|
|
57
|
-
"files": [
|
|
58
|
-
"dist"
|
|
59
|
-
],
|
|
60
|
-
"overrides": {
|
|
61
|
-
"use-sync-external-store": "1.6.1"
|
|
62
|
-
},
|
|
63
|
-
"resolutions": {
|
|
64
|
-
"use-sync-external-store": "1.6.1"
|
|
65
|
-
},
|
|
66
|
-
"pnpm": {
|
|
67
|
-
"overrides": {
|
|
68
|
-
"use-sync-external-store": "1.6.1"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"keywords": [
|
|
72
|
-
"viasoft",
|
|
73
|
-
"shared",
|
|
74
|
-
"utils",
|
|
75
|
-
"components",
|
|
76
|
-
"i18n",
|
|
77
|
-
"microfrontend"
|
|
78
|
-
],
|
|
79
|
-
"author": "Viasoft",
|
|
80
|
-
"license": "MIT",
|
|
81
|
-
"publishConfig": {
|
|
82
|
-
"access": "public"
|
|
83
|
-
},
|
|
84
|
-
"dependencies": {
|
|
85
|
-
"@headlessui/react": "^2.2.9",
|
|
86
|
-
"@reduxjs/toolkit": "^2.10.1",
|
|
87
|
-
"@tanstack/react-query": "^5.90.10",
|
|
88
|
-
"@types/react-dom": "^19.2.3",
|
|
89
|
-
"@viasoftbr/shared-utils": "^0.0.1",
|
|
90
|
-
"axios": "^1.13.2",
|
|
91
|
-
"i18next": "^25.7.3",
|
|
92
|
-
"json-server": "1.0.0-beta.3",
|
|
93
|
-
"lucide-react": "^0.460.0",
|
|
94
|
-
"react": "^19.2.4",
|
|
95
|
-
"react-dom": "^19.2.4",
|
|
96
|
-
"react-i18next": "^16.5.0",
|
|
97
|
-
"react-redux": "^9.2.0",
|
|
98
|
-
"react-router-dom": "^6.20.1",
|
|
99
|
-
"react-tooltip": "^5.30.0",
|
|
100
|
-
"redux-batch-middleware": "^0.2.0",
|
|
101
|
-
"tailwind-scrollbar": "^4.0.2"
|
|
102
|
-
},
|
|
103
|
-
"repository": {
|
|
104
|
-
"type": "git",
|
|
105
|
-
"url": "git+https://github.com/viasoftbr/shared-ui.git"
|
|
106
|
-
},
|
|
107
|
-
"bugs": {
|
|
108
|
-
"url": "https://github.com/viasoftbr/shared-ui/issues"
|
|
109
|
-
},
|
|
110
|
-
"homepage": "https://github.com/viasoftbr/shared-ui#readme"
|
|
111
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
declare global {
|
|
3
|
-
var __federation_shared__: Record<string, Record<string, unknown>>;
|
|
4
|
-
}
|
|
5
|
-
export declare function loadRemoteModule(config: {
|
|
6
|
-
scope: string;
|
|
7
|
-
url: string;
|
|
8
|
-
module: string;
|
|
9
|
-
}): Promise<ComponentType>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PageMetadata } from "../types/plugin.types";
|
|
2
|
-
export declare class MetadataLoader {
|
|
3
|
-
private metadataCache;
|
|
4
|
-
loadMetadata(metadataUrl: string): Promise<PageMetadata[]>;
|
|
5
|
-
loadFromDirectory(directoryUrl: string): Promise<PageMetadata[]>;
|
|
6
|
-
clearCache(): void;
|
|
7
|
-
getCachedMetadata(metadataUrl: string): PageMetadata[] | undefined;
|
|
8
|
-
}
|
|
9
|
-
export declare const metadataLoader: MetadataLoader;
|