@goplusvn/core 0.1.1 → 0.1.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/package.json +31 -175
- package/dist/audit/index.d.mts +0 -115
- package/dist/audit/index.d.ts +0 -115
- package/dist/audit/index.js +0 -204
- package/dist/audit/index.js.map +0 -1
- package/dist/audit/index.mjs +0 -200
- package/dist/audit/index.mjs.map +0 -1
- package/dist/auth/index.d.mts +0 -86
- package/dist/auth/index.d.ts +0 -86
- package/dist/auth/index.js +0 -210
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/index.mjs +0 -198
- package/dist/auth/index.mjs.map +0 -1
- package/dist/button-1dWvP9Ib.d.mts +0 -30
- package/dist/button-1dWvP9Ib.d.ts +0 -30
- package/dist/calendar-2QzdEo1z.d.mts +0 -20
- package/dist/calendar-2QzdEo1z.d.ts +0 -20
- package/dist/code-generation/index.d.mts +0 -30
- package/dist/code-generation/index.d.ts +0 -30
- package/dist/code-generation/index.js +0 -31
- package/dist/code-generation/index.js.map +0 -1
- package/dist/code-generation/index.mjs +0 -28
- package/dist/code-generation/index.mjs.map +0 -1
- package/dist/configs/index.d.mts +0 -175
- package/dist/configs/index.d.ts +0 -175
- package/dist/configs/index.js +0 -254
- package/dist/configs/index.js.map +0 -1
- package/dist/configs/index.mjs +0 -233
- package/dist/configs/index.mjs.map +0 -1
- package/dist/crud/index.d.mts +0 -646
- package/dist/crud/index.d.ts +0 -646
- package/dist/crud/index.js +0 -11772
- package/dist/crud/index.js.map +0 -1
- package/dist/crud/index.mjs +0 -11665
- package/dist/crud/index.mjs.map +0 -1
- package/dist/crud/server.d.mts +0 -20
- package/dist/crud/server.d.ts +0 -20
- package/dist/crud/server.js +0 -123
- package/dist/crud/server.js.map +0 -1
- package/dist/crud/server.mjs +0 -120
- package/dist/crud/server.mjs.map +0 -1
- package/dist/data-table-skeleton-12NA8Mjx.d.mts +0 -39
- package/dist/data-table-skeleton-12NA8Mjx.d.ts +0 -39
- package/dist/dialog-bKfjZMTd.d.mts +0 -22
- package/dist/dialog-bKfjZMTd.d.ts +0 -22
- package/dist/dynamic-icon-DrGIiu2N.d.mts +0 -10
- package/dist/dynamic-icon-DrGIiu2N.d.ts +0 -10
- package/dist/home/index.d.mts +0 -269
- package/dist/home/index.d.ts +0 -269
- package/dist/home/index.js +0 -1678
- package/dist/home/index.js.map +0 -1
- package/dist/home/index.mjs +0 -1635
- package/dist/home/index.mjs.map +0 -1
- package/dist/hooks/index.d.mts +0 -7
- package/dist/hooks/index.d.ts +0 -7
- package/dist/hooks/index.js +0 -8316
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -8255
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/index-50hpiPrV.d.ts +0 -116
- package/dist/index-B9zQVEVi.d.mts +0 -116
- package/dist/index.d.mts +0 -5
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -123
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -118
- package/dist/index.mjs.map +0 -1
- package/dist/infrastructure/index.d.mts +0 -423
- package/dist/infrastructure/index.d.ts +0 -423
- package/dist/infrastructure/index.js +0 -633
- package/dist/infrastructure/index.js.map +0 -1
- package/dist/infrastructure/index.mjs +0 -619
- package/dist/infrastructure/index.mjs.map +0 -1
- package/dist/label-DWTEkNPo.d.ts +0 -226
- package/dist/label-LPpdcoBx.d.mts +0 -226
- package/dist/layout/index.d.mts +0 -48
- package/dist/layout/index.d.ts +0 -48
- package/dist/layout/index.js +0 -117
- package/dist/layout/index.js.map +0 -1
- package/dist/layout/index.mjs +0 -90
- package/dist/layout/index.mjs.map +0 -1
- package/dist/navigation/index.d.mts +0 -16
- package/dist/navigation/index.d.ts +0 -16
- package/dist/navigation/index.js +0 -53
- package/dist/navigation/index.js.map +0 -1
- package/dist/navigation/index.mjs +0 -50
- package/dist/navigation/index.mjs.map +0 -1
- package/dist/notification/index.d.mts +0 -105
- package/dist/notification/index.d.ts +0 -105
- package/dist/notification/index.js +0 -278
- package/dist/notification/index.js.map +0 -1
- package/dist/notification/index.mjs +0 -274
- package/dist/notification/index.mjs.map +0 -1
- package/dist/organization/index.d.mts +0 -99
- package/dist/organization/index.d.ts +0 -99
- package/dist/organization/index.js +0 -360
- package/dist/organization/index.js.map +0 -1
- package/dist/organization/index.mjs +0 -352
- package/dist/organization/index.mjs.map +0 -1
- package/dist/plugin/index.d.mts +0 -83
- package/dist/plugin/index.d.ts +0 -83
- package/dist/plugin/index.js +0 -86
- package/dist/plugin/index.js.map +0 -1
- package/dist/plugin/index.mjs +0 -84
- package/dist/plugin/index.mjs.map +0 -1
- package/dist/providers/index.d.mts +0 -25
- package/dist/providers/index.d.ts +0 -25
- package/dist/providers/index.js +0 -84
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/index.mjs +0 -77
- package/dist/providers/index.mjs.map +0 -1
- package/dist/rbac/index.d.mts +0 -226
- package/dist/rbac/index.d.ts +0 -226
- package/dist/rbac/index.js +0 -4784
- package/dist/rbac/index.js.map +0 -1
- package/dist/rbac/index.mjs +0 -4722
- package/dist/rbac/index.mjs.map +0 -1
- package/dist/rbac/permissions.d.mts +0 -26
- package/dist/rbac/permissions.d.ts +0 -26
- package/dist/rbac/permissions.js +0 -94
- package/dist/rbac/permissions.js.map +0 -1
- package/dist/rbac/permissions.mjs +0 -90
- package/dist/rbac/permissions.mjs.map +0 -1
- package/dist/rbac/server.d.mts +0 -1
- package/dist/rbac/server.d.ts +0 -1
- package/dist/rbac/server.js +0 -128
- package/dist/rbac/server.js.map +0 -1
- package/dist/rbac/server.mjs +0 -124
- package/dist/rbac/server.mjs.map +0 -1
- package/dist/schemas/index.d.mts +0 -1257
- package/dist/schemas/index.d.ts +0 -1257
- package/dist/schemas/index.js +0 -572
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/index.mjs +0 -523
- package/dist/schemas/index.mjs.map +0 -1
- package/dist/server-QuYCTa89.d.mts +0 -83
- package/dist/server-QuYCTa89.d.ts +0 -83
- package/dist/sonner-C74GlRDQ.d.mts +0 -71
- package/dist/sonner-C74GlRDQ.d.ts +0 -71
- package/dist/status-BOXZgIqX.d.mts +0 -12
- package/dist/status-BOXZgIqX.d.ts +0 -12
- package/dist/system/index.d.mts +0 -77
- package/dist/system/index.d.ts +0 -77
- package/dist/system/index.js +0 -102
- package/dist/system/index.js.map +0 -1
- package/dist/system/index.mjs +0 -100
- package/dist/system/index.mjs.map +0 -1
- package/dist/tabs-C6FfBwPY.d.mts +0 -18
- package/dist/tabs-C6FfBwPY.d.ts +0 -18
- package/dist/tenant-provider-B8eC_Wpb.d.mts +0 -27
- package/dist/tenant-provider-B8eC_Wpb.d.ts +0 -27
- package/dist/types/index.d.mts +0 -469
- package/dist/types/index.d.ts +0 -469
- package/dist/types/index.js +0 -25
- package/dist/types/index.js.map +0 -1
- package/dist/types/index.mjs +0 -21
- package/dist/types/index.mjs.map +0 -1
- package/dist/ui/auth.d.mts +0 -39
- package/dist/ui/auth.d.ts +0 -39
- package/dist/ui/auth.js +0 -4941
- package/dist/ui/auth.js.map +0 -1
- package/dist/ui/auth.mjs +0 -4896
- package/dist/ui/auth.mjs.map +0 -1
- package/dist/ui/crud.d.mts +0 -2
- package/dist/ui/crud.d.ts +0 -2
- package/dist/ui/crud.js +0 -4
- package/dist/ui/crud.js.map +0 -1
- package/dist/ui/crud.mjs +0 -3
- package/dist/ui/crud.mjs.map +0 -1
- package/dist/ui/data-display.d.mts +0 -596
- package/dist/ui/data-display.d.ts +0 -596
- package/dist/ui/data-display.js +0 -5307
- package/dist/ui/data-display.js.map +0 -1
- package/dist/ui/data-display.mjs +0 -5212
- package/dist/ui/data-display.mjs.map +0 -1
- package/dist/ui/feedback.d.mts +0 -55
- package/dist/ui/feedback.d.ts +0 -55
- package/dist/ui/feedback.js +0 -2608
- package/dist/ui/feedback.js.map +0 -1
- package/dist/ui/feedback.mjs +0 -2526
- package/dist/ui/feedback.mjs.map +0 -1
- package/dist/ui/forms.d.mts +0 -309
- package/dist/ui/forms.d.ts +0 -309
- package/dist/ui/forms.js +0 -4656
- package/dist/ui/forms.js.map +0 -1
- package/dist/ui/forms.mjs +0 -4571
- package/dist/ui/forms.mjs.map +0 -1
- package/dist/ui/index.d.mts +0 -331
- package/dist/ui/index.d.ts +0 -331
- package/dist/ui/index.js +0 -16953
- package/dist/ui/index.js.map +0 -1
- package/dist/ui/index.mjs +0 -16598
- package/dist/ui/index.mjs.map +0 -1
- package/dist/ui/primitives/client.d.mts +0 -61
- package/dist/ui/primitives/client.d.ts +0 -61
- package/dist/ui/primitives/client.js +0 -3408
- package/dist/ui/primitives/client.js.map +0 -1
- package/dist/ui/primitives/client.mjs +0 -3256
- package/dist/ui/primitives/client.mjs.map +0 -1
- package/dist/ui/primitives.d.mts +0 -113
- package/dist/ui/primitives.d.ts +0 -113
- package/dist/ui/primitives.js +0 -3356
- package/dist/ui/primitives.js.map +0 -1
- package/dist/ui/primitives.mjs +0 -3227
- package/dist/ui/primitives.mjs.map +0 -1
- package/dist/user/index.d.mts +0 -228
- package/dist/user/index.d.ts +0 -228
- package/dist/user/index.js +0 -4306
- package/dist/user/index.js.map +0 -1
- package/dist/user/index.mjs +0 -4260
- package/dist/user/index.mjs.map +0 -1
- package/dist/utils/index.d.mts +0 -205
- package/dist/utils/index.d.ts +0 -205
- package/dist/utils/index.js +0 -574
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -514
- package/dist/utils/index.mjs.map +0 -1
- package/dist/workflow/index.d.mts +0 -40
- package/dist/workflow/index.d.ts +0 -40
- package/dist/workflow/index.js +0 -3710
- package/dist/workflow/index.js.map +0 -1
- package/dist/workflow/index.mjs +0 -3677
- package/dist/workflow/index.mjs.map +0 -1
package/dist/system/index.d.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
interface ModuleManifest {
|
|
2
|
-
/** Unique module identifier */
|
|
3
|
-
name: string;
|
|
4
|
-
/** Semantic version */
|
|
5
|
-
version: string;
|
|
6
|
-
/** Module category (e.g., 'Supply Chain', 'HR', 'Sales') */
|
|
7
|
-
category?: string;
|
|
8
|
-
/** Human-readable description */
|
|
9
|
-
description?: string;
|
|
10
|
-
/** Module dependencies */
|
|
11
|
-
depends?: string[];
|
|
12
|
-
/** Entities registered by this module */
|
|
13
|
-
entities?: string[];
|
|
14
|
-
/** Navigation items */
|
|
15
|
-
navigation?: NavigationItem[];
|
|
16
|
-
/** Permissions defined by this module */
|
|
17
|
-
permissions?: string[];
|
|
18
|
-
/** Feature flags */
|
|
19
|
-
features?: Record<string, FeatureConfig>;
|
|
20
|
-
}
|
|
21
|
-
interface NavigationItem {
|
|
22
|
-
label: string;
|
|
23
|
-
icon?: string;
|
|
24
|
-
path?: string;
|
|
25
|
-
children?: NavigationItem[];
|
|
26
|
-
permission?: string;
|
|
27
|
-
}
|
|
28
|
-
interface FeatureConfig {
|
|
29
|
-
enabled: boolean;
|
|
30
|
-
component?: React.ComponentType<any>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Module Registry - Central registry for all modules
|
|
34
|
-
*/
|
|
35
|
-
declare class ModuleRegistry {
|
|
36
|
-
private modules;
|
|
37
|
-
private initialized;
|
|
38
|
-
/**
|
|
39
|
-
* Register a module with the registry
|
|
40
|
-
*/
|
|
41
|
-
register(manifest: ModuleManifest): void;
|
|
42
|
-
/**
|
|
43
|
-
* Get all registered modules
|
|
44
|
-
*/
|
|
45
|
-
getModules(): ModuleManifest[];
|
|
46
|
-
/**
|
|
47
|
-
* Get a specific module by name
|
|
48
|
-
*/
|
|
49
|
-
getModule(name: string): ModuleManifest | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Get combined navigation from all modules
|
|
52
|
-
*/
|
|
53
|
-
getNavigation(): NavigationItem[];
|
|
54
|
-
/**
|
|
55
|
-
* Get all permissions from all modules
|
|
56
|
-
*/
|
|
57
|
-
getPermissions(): string[];
|
|
58
|
-
/**
|
|
59
|
-
* Get all entities from all modules
|
|
60
|
-
*/
|
|
61
|
-
getEntities(): string[];
|
|
62
|
-
/**
|
|
63
|
-
* Check if registry is initialized
|
|
64
|
-
*/
|
|
65
|
-
isInitialized(): boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Mark registry as initialized
|
|
68
|
-
*/
|
|
69
|
-
markInitialized(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Clear all registered modules (useful for testing)
|
|
72
|
-
*/
|
|
73
|
-
clear(): void;
|
|
74
|
-
}
|
|
75
|
-
declare const registry: ModuleRegistry;
|
|
76
|
-
|
|
77
|
-
export { type FeatureConfig, type ModuleManifest, ModuleRegistry, type NavigationItem, registry };
|
package/dist/system/index.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// src/system/index.ts
|
|
4
|
-
var ModuleRegistry = class {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.modules = /* @__PURE__ */ new Map();
|
|
7
|
-
this.initialized = false;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Register a module with the registry
|
|
11
|
-
*/
|
|
12
|
-
register(manifest) {
|
|
13
|
-
if (this.modules.has(manifest.name)) {
|
|
14
|
-
console.warn(
|
|
15
|
-
`Module "${manifest.name}" is already registered. Skipping.`
|
|
16
|
-
);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
if (manifest.depends) {
|
|
20
|
-
for (const dep of manifest.depends) {
|
|
21
|
-
if (dep !== "@goerp/core" && !this.modules.has(dep)) {
|
|
22
|
-
console.warn(
|
|
23
|
-
`Module "${manifest.name}" depends on "${dep}" which is not registered yet.`
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
this.modules.set(manifest.name, manifest);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Get all registered modules
|
|
32
|
-
*/
|
|
33
|
-
getModules() {
|
|
34
|
-
return Array.from(this.modules.values());
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Get a specific module by name
|
|
38
|
-
*/
|
|
39
|
-
getModule(name) {
|
|
40
|
-
return this.modules.get(name);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Get combined navigation from all modules
|
|
44
|
-
*/
|
|
45
|
-
getNavigation() {
|
|
46
|
-
const items = [];
|
|
47
|
-
for (const manifest of this.modules.values()) {
|
|
48
|
-
if (manifest.navigation) {
|
|
49
|
-
items.push(...manifest.navigation);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return items;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Get all permissions from all modules
|
|
56
|
-
*/
|
|
57
|
-
getPermissions() {
|
|
58
|
-
const permissions = [];
|
|
59
|
-
for (const manifest of this.modules.values()) {
|
|
60
|
-
if (manifest.permissions) {
|
|
61
|
-
permissions.push(...manifest.permissions);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return permissions;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Get all entities from all modules
|
|
68
|
-
*/
|
|
69
|
-
getEntities() {
|
|
70
|
-
const entities = [];
|
|
71
|
-
for (const manifest of this.modules.values()) {
|
|
72
|
-
if (manifest.entities) {
|
|
73
|
-
entities.push(...manifest.entities);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return entities;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Check if registry is initialized
|
|
80
|
-
*/
|
|
81
|
-
isInitialized() {
|
|
82
|
-
return this.initialized;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Mark registry as initialized
|
|
86
|
-
*/
|
|
87
|
-
markInitialized() {
|
|
88
|
-
this.initialized = true;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Clear all registered modules (useful for testing)
|
|
92
|
-
*/
|
|
93
|
-
clear() {
|
|
94
|
-
this.modules.clear();
|
|
95
|
-
this.initialized = false;
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
var registry = new ModuleRegistry();
|
|
99
|
-
|
|
100
|
-
exports.registry = registry;
|
|
101
|
-
//# sourceMappingURL=index.js.map
|
|
102
|
-
//# sourceMappingURL=index.js.map
|
package/dist/system/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/system/index.ts"],"names":[],"mappings":";;;AAwCA,IAAM,iBAAN,MAAqB;AAAA,EAArB,WAAA,GAAA;AACE,IAAA,IAAA,CAAQ,OAAA,uBAAc,GAAA,EAA4B;AAClD,IAAA,IAAA,CAAQ,WAAA,GAAc,KAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA,EAKtB,SAAS,QAAA,EAAgC;AACvC,IAAA,IAAI,IAAA,CAAK,OAAA,CAAQ,GAAA,CAAI,QAAA,CAAS,IAAI,CAAA,EAAG;AACnC,MAAA,OAAA,CAAQ,IAAA;AAAA,QACN,CAAA,QAAA,EAAW,SAAS,IAAI,CAAA,kCAAA;AAAA,OAC1B;AACA,MAAA;AAAA,IACF;AAGA,IAAA,IAAI,SAAS,OAAA,EAAS;AACpB,MAAA,KAAA,MAAW,GAAA,IAAO,SAAS,OAAA,EAAS;AAClC,QAAA,IAAI,QAAQ,aAAA,IAAiB,CAAC,KAAK,OAAA,CAAQ,GAAA,CAAI,GAAG,CAAA,EAAG;AACnD,UAAA,OAAA,CAAQ,IAAA;AAAA,YACN,CAAA,QAAA,EAAW,QAAA,CAAS,IAAI,CAAA,cAAA,EAAiB,GAAG,CAAA,8BAAA;AAAA,WAC9C;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAEA,IAAA,IAAA,CAAK,OAAA,CAAQ,GAAA,CAAI,QAAA,CAAS,IAAA,EAAM,QAAQ,CAAA;AAAA,EAC1C;AAAA;AAAA;AAAA;AAAA,EAKA,UAAA,GAA+B;AAC7B,IAAA,OAAO,KAAA,CAAM,IAAA,CAAK,IAAA,CAAK,OAAA,CAAQ,QAAQ,CAAA;AAAA,EACzC;AAAA;AAAA;AAAA;AAAA,EAKA,UAAU,IAAA,EAA0C;AAClD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,GAAA,CAAI,IAAI,CAAA;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA,EAKA,aAAA,GAAkC;AAChC,IAAA,MAAM,QAA0B,EAAC;AACjC,IAAA,KAAA,MAAW,QAAA,IAAY,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAO,EAAG;AAC5C,MAAA,IAAI,SAAS,UAAA,EAAY;AACvB,QAAA,KAAA,CAAM,IAAA,CAAK,GAAG,QAAA,CAAS,UAAU,CAAA;AAAA,MACnC;AAAA,IACF;AACA,IAAA,OAAO,KAAA;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA,GAA2B;AACzB,IAAA,MAAM,cAAwB,EAAC;AAC/B,IAAA,KAAA,MAAW,QAAA,IAAY,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAO,EAAG;AAC5C,MAAA,IAAI,SAAS,WAAA,EAAa;AACxB,QAAA,WAAA,CAAY,IAAA,CAAK,GAAG,QAAA,CAAS,WAAW,CAAA;AAAA,MAC1C;AAAA,IACF;AACA,IAAA,OAAO,WAAA;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA,GAAwB;AACtB,IAAA,MAAM,WAAqB,EAAC;AAC5B,IAAA,KAAA,MAAW,QAAA,IAAY,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAO,EAAG;AAC5C,MAAA,IAAI,SAAS,QAAA,EAAU;AACrB,QAAA,QAAA,CAAS,IAAA,CAAK,GAAG,QAAA,CAAS,QAAQ,CAAA;AAAA,MACpC;AAAA,IACF;AACA,IAAA,OAAO,QAAA;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,aAAA,GAAyB;AACvB,IAAA,OAAO,IAAA,CAAK,WAAA;AAAA,EACd;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA,GAAwB;AACtB,IAAA,IAAA,CAAK,WAAA,GAAc,IAAA;AAAA,EACrB;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA,GAAc;AACZ,IAAA,IAAA,CAAK,QAAQ,KAAA,EAAM;AACnB,IAAA,IAAA,CAAK,WAAA,GAAc,KAAA;AAAA,EACrB;AACF,CAAA;AAGO,IAAM,QAAA,GAAW,IAAI,cAAA","file":"index.js","sourcesContent":["// @goerp/core/system\n// Module registry, manifest loader, and core system utilities\n\nexport interface ModuleManifest {\n /** Unique module identifier */\n name: string;\n /** Semantic version */\n version: string;\n /** Module category (e.g., 'Supply Chain', 'HR', 'Sales') */\n category?: string;\n /** Human-readable description */\n description?: string;\n /** Module dependencies */\n depends?: string[];\n /** Entities registered by this module */\n entities?: string[];\n /** Navigation items */\n navigation?: NavigationItem[];\n /** Permissions defined by this module */\n permissions?: string[];\n /** Feature flags */\n features?: Record<string, FeatureConfig>;\n}\n\nexport interface NavigationItem {\n label: string;\n icon?: string;\n path?: string;\n children?: NavigationItem[];\n permission?: string;\n}\n\nexport interface FeatureConfig {\n enabled: boolean;\n component?: React.ComponentType<any>;\n}\n\n/**\n * Module Registry - Central registry for all modules\n */\nclass ModuleRegistry {\n private modules = new Map<string, ModuleManifest>();\n private initialized = false;\n\n /**\n * Register a module with the registry\n */\n register(manifest: ModuleManifest): void {\n if (this.modules.has(manifest.name)) {\n console.warn(\n `Module \"${manifest.name}\" is already registered. Skipping.`,\n );\n return;\n }\n\n // Validate dependencies\n if (manifest.depends) {\n for (const dep of manifest.depends) {\n if (dep !== \"@goerp/core\" && !this.modules.has(dep)) {\n console.warn(\n `Module \"${manifest.name}\" depends on \"${dep}\" which is not registered yet.`,\n );\n }\n }\n }\n\n this.modules.set(manifest.name, manifest);\n }\n\n /**\n * Get all registered modules\n */\n getModules(): ModuleManifest[] {\n return Array.from(this.modules.values());\n }\n\n /**\n * Get a specific module by name\n */\n getModule(name: string): ModuleManifest | undefined {\n return this.modules.get(name);\n }\n\n /**\n * Get combined navigation from all modules\n */\n getNavigation(): NavigationItem[] {\n const items: NavigationItem[] = [];\n for (const manifest of this.modules.values()) {\n if (manifest.navigation) {\n items.push(...manifest.navigation);\n }\n }\n return items;\n }\n\n /**\n * Get all permissions from all modules\n */\n getPermissions(): string[] {\n const permissions: string[] = [];\n for (const manifest of this.modules.values()) {\n if (manifest.permissions) {\n permissions.push(...manifest.permissions);\n }\n }\n return permissions;\n }\n\n /**\n * Get all entities from all modules\n */\n getEntities(): string[] {\n const entities: string[] = [];\n for (const manifest of this.modules.values()) {\n if (manifest.entities) {\n entities.push(...manifest.entities);\n }\n }\n return entities;\n }\n\n /**\n * Check if registry is initialized\n */\n isInitialized(): boolean {\n return this.initialized;\n }\n\n /**\n * Mark registry as initialized\n */\n markInitialized(): void {\n this.initialized = true;\n }\n\n /**\n * Clear all registered modules (useful for testing)\n */\n clear(): void {\n this.modules.clear();\n this.initialized = false;\n }\n}\n\n// Singleton registry instance\nexport const registry = new ModuleRegistry();\n\n// Export types\nexport type { ModuleRegistry };\n"]}
|
package/dist/system/index.mjs
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
// src/system/index.ts
|
|
2
|
-
var ModuleRegistry = class {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.modules = /* @__PURE__ */ new Map();
|
|
5
|
-
this.initialized = false;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Register a module with the registry
|
|
9
|
-
*/
|
|
10
|
-
register(manifest) {
|
|
11
|
-
if (this.modules.has(manifest.name)) {
|
|
12
|
-
console.warn(
|
|
13
|
-
`Module "${manifest.name}" is already registered. Skipping.`
|
|
14
|
-
);
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
if (manifest.depends) {
|
|
18
|
-
for (const dep of manifest.depends) {
|
|
19
|
-
if (dep !== "@goerp/core" && !this.modules.has(dep)) {
|
|
20
|
-
console.warn(
|
|
21
|
-
`Module "${manifest.name}" depends on "${dep}" which is not registered yet.`
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
this.modules.set(manifest.name, manifest);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get all registered modules
|
|
30
|
-
*/
|
|
31
|
-
getModules() {
|
|
32
|
-
return Array.from(this.modules.values());
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Get a specific module by name
|
|
36
|
-
*/
|
|
37
|
-
getModule(name) {
|
|
38
|
-
return this.modules.get(name);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Get combined navigation from all modules
|
|
42
|
-
*/
|
|
43
|
-
getNavigation() {
|
|
44
|
-
const items = [];
|
|
45
|
-
for (const manifest of this.modules.values()) {
|
|
46
|
-
if (manifest.navigation) {
|
|
47
|
-
items.push(...manifest.navigation);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return items;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Get all permissions from all modules
|
|
54
|
-
*/
|
|
55
|
-
getPermissions() {
|
|
56
|
-
const permissions = [];
|
|
57
|
-
for (const manifest of this.modules.values()) {
|
|
58
|
-
if (manifest.permissions) {
|
|
59
|
-
permissions.push(...manifest.permissions);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return permissions;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Get all entities from all modules
|
|
66
|
-
*/
|
|
67
|
-
getEntities() {
|
|
68
|
-
const entities = [];
|
|
69
|
-
for (const manifest of this.modules.values()) {
|
|
70
|
-
if (manifest.entities) {
|
|
71
|
-
entities.push(...manifest.entities);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return entities;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Check if registry is initialized
|
|
78
|
-
*/
|
|
79
|
-
isInitialized() {
|
|
80
|
-
return this.initialized;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Mark registry as initialized
|
|
84
|
-
*/
|
|
85
|
-
markInitialized() {
|
|
86
|
-
this.initialized = true;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Clear all registered modules (useful for testing)
|
|
90
|
-
*/
|
|
91
|
-
clear() {
|
|
92
|
-
this.modules.clear();
|
|
93
|
-
this.initialized = false;
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
var registry = new ModuleRegistry();
|
|
97
|
-
|
|
98
|
-
export { registry };
|
|
99
|
-
//# sourceMappingURL=index.mjs.map
|
|
100
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/system/index.ts"],"names":[],"mappings":";AAwCA,IAAM,iBAAN,MAAqB;AAAA,EAArB,WAAA,GAAA;AACE,IAAA,IAAA,CAAQ,OAAA,uBAAc,GAAA,EAA4B;AAClD,IAAA,IAAA,CAAQ,WAAA,GAAc,KAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA,EAKtB,SAAS,QAAA,EAAgC;AACvC,IAAA,IAAI,IAAA,CAAK,OAAA,CAAQ,GAAA,CAAI,QAAA,CAAS,IAAI,CAAA,EAAG;AACnC,MAAA,OAAA,CAAQ,IAAA;AAAA,QACN,CAAA,QAAA,EAAW,SAAS,IAAI,CAAA,kCAAA;AAAA,OAC1B;AACA,MAAA;AAAA,IACF;AAGA,IAAA,IAAI,SAAS,OAAA,EAAS;AACpB,MAAA,KAAA,MAAW,GAAA,IAAO,SAAS,OAAA,EAAS;AAClC,QAAA,IAAI,QAAQ,aAAA,IAAiB,CAAC,KAAK,OAAA,CAAQ,GAAA,CAAI,GAAG,CAAA,EAAG;AACnD,UAAA,OAAA,CAAQ,IAAA;AAAA,YACN,CAAA,QAAA,EAAW,QAAA,CAAS,IAAI,CAAA,cAAA,EAAiB,GAAG,CAAA,8BAAA;AAAA,WAC9C;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAEA,IAAA,IAAA,CAAK,OAAA,CAAQ,GAAA,CAAI,QAAA,CAAS,IAAA,EAAM,QAAQ,CAAA;AAAA,EAC1C;AAAA;AAAA;AAAA;AAAA,EAKA,UAAA,GAA+B;AAC7B,IAAA,OAAO,KAAA,CAAM,IAAA,CAAK,IAAA,CAAK,OAAA,CAAQ,QAAQ,CAAA;AAAA,EACzC;AAAA;AAAA;AAAA;AAAA,EAKA,UAAU,IAAA,EAA0C;AAClD,IAAA,OAAO,IAAA,CAAK,OAAA,CAAQ,GAAA,CAAI,IAAI,CAAA;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA,EAKA,aAAA,GAAkC;AAChC,IAAA,MAAM,QAA0B,EAAC;AACjC,IAAA,KAAA,MAAW,QAAA,IAAY,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAO,EAAG;AAC5C,MAAA,IAAI,SAAS,UAAA,EAAY;AACvB,QAAA,KAAA,CAAM,IAAA,CAAK,GAAG,QAAA,CAAS,UAAU,CAAA;AAAA,MACnC;AAAA,IACF;AACA,IAAA,OAAO,KAAA;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA,GAA2B;AACzB,IAAA,MAAM,cAAwB,EAAC;AAC/B,IAAA,KAAA,MAAW,QAAA,IAAY,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAO,EAAG;AAC5C,MAAA,IAAI,SAAS,WAAA,EAAa;AACxB,QAAA,WAAA,CAAY,IAAA,CAAK,GAAG,QAAA,CAAS,WAAW,CAAA;AAAA,MAC1C;AAAA,IACF;AACA,IAAA,OAAO,WAAA;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA,GAAwB;AACtB,IAAA,MAAM,WAAqB,EAAC;AAC5B,IAAA,KAAA,MAAW,QAAA,IAAY,IAAA,CAAK,OAAA,CAAQ,MAAA,EAAO,EAAG;AAC5C,MAAA,IAAI,SAAS,QAAA,EAAU;AACrB,QAAA,QAAA,CAAS,IAAA,CAAK,GAAG,QAAA,CAAS,QAAQ,CAAA;AAAA,MACpC;AAAA,IACF;AACA,IAAA,OAAO,QAAA;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,aAAA,GAAyB;AACvB,IAAA,OAAO,IAAA,CAAK,WAAA;AAAA,EACd;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA,GAAwB;AACtB,IAAA,IAAA,CAAK,WAAA,GAAc,IAAA;AAAA,EACrB;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA,GAAc;AACZ,IAAA,IAAA,CAAK,QAAQ,KAAA,EAAM;AACnB,IAAA,IAAA,CAAK,WAAA,GAAc,KAAA;AAAA,EACrB;AACF,CAAA;AAGO,IAAM,QAAA,GAAW,IAAI,cAAA","file":"index.mjs","sourcesContent":["// @goerp/core/system\n// Module registry, manifest loader, and core system utilities\n\nexport interface ModuleManifest {\n /** Unique module identifier */\n name: string;\n /** Semantic version */\n version: string;\n /** Module category (e.g., 'Supply Chain', 'HR', 'Sales') */\n category?: string;\n /** Human-readable description */\n description?: string;\n /** Module dependencies */\n depends?: string[];\n /** Entities registered by this module */\n entities?: string[];\n /** Navigation items */\n navigation?: NavigationItem[];\n /** Permissions defined by this module */\n permissions?: string[];\n /** Feature flags */\n features?: Record<string, FeatureConfig>;\n}\n\nexport interface NavigationItem {\n label: string;\n icon?: string;\n path?: string;\n children?: NavigationItem[];\n permission?: string;\n}\n\nexport interface FeatureConfig {\n enabled: boolean;\n component?: React.ComponentType<any>;\n}\n\n/**\n * Module Registry - Central registry for all modules\n */\nclass ModuleRegistry {\n private modules = new Map<string, ModuleManifest>();\n private initialized = false;\n\n /**\n * Register a module with the registry\n */\n register(manifest: ModuleManifest): void {\n if (this.modules.has(manifest.name)) {\n console.warn(\n `Module \"${manifest.name}\" is already registered. Skipping.`,\n );\n return;\n }\n\n // Validate dependencies\n if (manifest.depends) {\n for (const dep of manifest.depends) {\n if (dep !== \"@goerp/core\" && !this.modules.has(dep)) {\n console.warn(\n `Module \"${manifest.name}\" depends on \"${dep}\" which is not registered yet.`,\n );\n }\n }\n }\n\n this.modules.set(manifest.name, manifest);\n }\n\n /**\n * Get all registered modules\n */\n getModules(): ModuleManifest[] {\n return Array.from(this.modules.values());\n }\n\n /**\n * Get a specific module by name\n */\n getModule(name: string): ModuleManifest | undefined {\n return this.modules.get(name);\n }\n\n /**\n * Get combined navigation from all modules\n */\n getNavigation(): NavigationItem[] {\n const items: NavigationItem[] = [];\n for (const manifest of this.modules.values()) {\n if (manifest.navigation) {\n items.push(...manifest.navigation);\n }\n }\n return items;\n }\n\n /**\n * Get all permissions from all modules\n */\n getPermissions(): string[] {\n const permissions: string[] = [];\n for (const manifest of this.modules.values()) {\n if (manifest.permissions) {\n permissions.push(...manifest.permissions);\n }\n }\n return permissions;\n }\n\n /**\n * Get all entities from all modules\n */\n getEntities(): string[] {\n const entities: string[] = [];\n for (const manifest of this.modules.values()) {\n if (manifest.entities) {\n entities.push(...manifest.entities);\n }\n }\n return entities;\n }\n\n /**\n * Check if registry is initialized\n */\n isInitialized(): boolean {\n return this.initialized;\n }\n\n /**\n * Mark registry as initialized\n */\n markInitialized(): void {\n this.initialized = true;\n }\n\n /**\n * Clear all registered modules (useful for testing)\n */\n clear(): void {\n this.modules.clear();\n this.initialized = false;\n }\n}\n\n// Singleton registry instance\nexport const registry = new ModuleRegistry();\n\n// Export types\nexport type { ModuleRegistry };\n"]}
|
package/dist/tabs-C6FfBwPY.d.mts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
|
-
|
|
4
|
-
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
5
|
-
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
-
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
7
|
-
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
-
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
9
|
-
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
10
|
-
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
11
|
-
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
12
|
-
|
|
13
|
-
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
-
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
|
|
18
|
-
export { Table as T, TableBody as a, TableCaption as b, TableCell as c, TableFooter as d, TableHead as e, TableHeader as f, TableRow as g, Tabs as h, TabsContent as i, TabsList as j, TabsTrigger as k };
|
package/dist/tabs-C6FfBwPY.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
|
-
|
|
4
|
-
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
5
|
-
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
-
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
7
|
-
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
8
|
-
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
9
|
-
declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
10
|
-
declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
|
|
11
|
-
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
12
|
-
|
|
13
|
-
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
-
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
|
|
18
|
-
export { Table as T, TableBody as a, TableCaption as b, TableCell as c, TableFooter as d, TableHead as e, TableHeader as f, TableRow as g, Tabs as h, TabsContent as i, TabsList as j, TabsTrigger as k };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
interface TenantBranding {
|
|
5
|
-
logo?: string;
|
|
6
|
-
companyName: string;
|
|
7
|
-
primaryColor?: string;
|
|
8
|
-
favicon?: string;
|
|
9
|
-
}
|
|
10
|
-
interface TenantConfig {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
branding: TenantBranding;
|
|
14
|
-
dateFormat?: string;
|
|
15
|
-
currency?: string;
|
|
16
|
-
}
|
|
17
|
-
interface TenantContextValue {
|
|
18
|
-
tenant: TenantConfig;
|
|
19
|
-
}
|
|
20
|
-
interface TenantProviderProps {
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
tenant: TenantConfig;
|
|
23
|
-
}
|
|
24
|
-
declare function TenantProvider({ children, tenant }: TenantProviderProps): react_jsx_runtime.JSX.Element;
|
|
25
|
-
declare function useTenantContext(): TenantContextValue;
|
|
26
|
-
|
|
27
|
-
export { type TenantBranding as T, type TenantConfig as a, type TenantContextValue as b, TenantProvider as c, useTenantContext as u };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
interface TenantBranding {
|
|
5
|
-
logo?: string;
|
|
6
|
-
companyName: string;
|
|
7
|
-
primaryColor?: string;
|
|
8
|
-
favicon?: string;
|
|
9
|
-
}
|
|
10
|
-
interface TenantConfig {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
branding: TenantBranding;
|
|
14
|
-
dateFormat?: string;
|
|
15
|
-
currency?: string;
|
|
16
|
-
}
|
|
17
|
-
interface TenantContextValue {
|
|
18
|
-
tenant: TenantConfig;
|
|
19
|
-
}
|
|
20
|
-
interface TenantProviderProps {
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
tenant: TenantConfig;
|
|
23
|
-
}
|
|
24
|
-
declare function TenantProvider({ children, tenant }: TenantProviderProps): react_jsx_runtime.JSX.Element;
|
|
25
|
-
declare function useTenantContext(): TenantContextValue;
|
|
26
|
-
|
|
27
|
-
export { type TenantBranding as T, type TenantConfig as a, type TenantContextValue as b, TenantProvider as c, useTenantContext as u };
|