@fluxo-dev/shell 0.0.8 → 0.0.12

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 (119) hide show
  1. package/index.esm.css +115 -0
  2. package/index.esm.d.ts +1 -0
  3. package/index.esm.js +68195 -0
  4. package/package.json +13 -2
  5. package/src/index.d.ts +1 -0
  6. package/src/lib/app.d.ts +16 -0
  7. package/src/lib/components/error-page/404.d.ts +1 -0
  8. package/src/lib/components/routes/main-routes.d.ts +6 -0
  9. package/src/lib/layouts/blank/blank-layout.d.ts +2 -0
  10. package/src/lib/layouts/main/app-bar.d.ts +9 -0
  11. package/src/lib/layouts/main/app-layout.d.ts +5 -0
  12. package/src/lib/layouts/main/content.d.ts +2 -0
  13. package/src/lib/layouts/main/footer-bar.d.ts +5 -0
  14. package/src/lib/layouts/main/navbar-item.d.ts +12 -0
  15. package/src/lib/layouts/main/navbar.d.ts +1 -0
  16. package/src/lib/layouts/main/search-bar.d.ts +5 -0
  17. package/src/lib/layouts/main/shell-spotlight.d.ts +2 -0
  18. package/src/lib/models/app-jit.d.ts +5 -0
  19. package/src/lib/pages/general/fluxo-plugin-loader.d.ts +7 -0
  20. package/src/lib/pages/login/account-confirmation.d.ts +2 -0
  21. package/src/lib/pages/login/change-password.d.ts +2 -0
  22. package/src/lib/pages/login/forgot-password.d.ts +2 -0
  23. package/src/lib/pages/login/login-page.d.ts +2 -0
  24. package/src/lib/pages/login/reset-password.d.ts +2 -0
  25. package/src/lib/pages/settings/apps/add-jit-app.d.ts +5 -0
  26. package/src/lib/pages/settings/apps/app-item.d.ts +10 -0
  27. package/src/lib/pages/settings/apps/app-jit-item.d.ts +8 -0
  28. package/src/lib/pages/settings/apps/apps-list.d.ts +6 -0
  29. package/src/lib/pages/settings/apps/embedded-module-item.d.ts +10 -0
  30. package/src/lib/pages/settings/apps/install-or-upgrade-app.d.ts +6 -0
  31. package/src/lib/pages/settings/menu-designer/custom-node.d.ts +14 -0
  32. package/src/lib/pages/settings/menu-designer/menu-create-form.d.ts +5 -0
  33. package/src/lib/pages/settings/menu-designer/menu-designer.d.ts +1 -0
  34. package/src/lib/pages/settings/menu-designer/menu-item-edit.d.ts +8 -0
  35. package/src/lib/pages/settings/menu-designer/placeholder.d.ts +8 -0
  36. package/src/lib/pages/settings/security/components/domani-role/domain-role-form.d.ts +6 -0
  37. package/src/lib/pages/settings/security/components/domani-role/domain-role-grid.d.ts +1 -0
  38. package/src/lib/pages/settings/security/components/permission/create-custom-permission-form.d.ts +7 -0
  39. package/src/lib/pages/settings/security/components/permission/create-scope-form.d.ts +7 -0
  40. package/src/lib/pages/settings/security/components/permission/permission-grid.d.ts +1 -0
  41. package/src/lib/pages/settings/security/components/permission/permission-navigator.d.ts +8 -0
  42. package/src/lib/pages/settings/security/components/permission/update-permission.d.ts +5 -0
  43. package/src/lib/pages/settings/security/components/route-rule/route-rule-create-form.d.ts +7 -0
  44. package/src/lib/pages/settings/security/components/route-rule/route-rule-grid.d.ts +1 -0
  45. package/src/lib/pages/settings/security/components/user/user-form.d.ts +7 -0
  46. package/src/lib/pages/settings/security/components/user/users-grid.d.ts +1 -0
  47. package/src/lib/pages/settings/settings.d.ts +6 -0
  48. package/src/lib/pages/settings/token/token-row.d.ts +7 -0
  49. package/src/lib/pages/settings/token/tokens.d.ts +2 -0
  50. package/src/lib/pages/settings/ui/ui.d.ts +1 -0
  51. package/src/lib/services/app-jit-manager.d.ts +10 -0
  52. package/src/lib/services/app-menu.service.d.ts +5 -0
  53. package/src/lib/utils/icon-factory.d.ts +9 -0
  54. package/src/lib/utils/security/only-not-logged-route.d.ts +2 -0
  55. package/src/lib/utils/security/protected-route.d.ts +2 -0
  56. package/.babelrc +0 -12
  57. package/.eslintrc.json +0 -18
  58. package/jest.config.ts +0 -11
  59. package/project.json +0 -43
  60. package/src/index.ts +0 -1
  61. package/src/lib/app.module.css +0 -1
  62. package/src/lib/app.spec.tsx +0 -17
  63. package/src/lib/app.tsx +0 -374
  64. package/src/lib/components/error-page/404.tsx +0 -16
  65. package/src/lib/components/routes/main-routes.tsx +0 -26
  66. package/src/lib/layouts/blank/blank-layout.tsx +0 -10
  67. package/src/lib/layouts/main/app-bar.tsx +0 -192
  68. package/src/lib/layouts/main/app-layout.tsx +0 -52
  69. package/src/lib/layouts/main/content.tsx +0 -10
  70. package/src/lib/layouts/main/footer-bar.tsx +0 -76
  71. package/src/lib/layouts/main/navbar-item.module.css +0 -49
  72. package/src/lib/layouts/main/navbar-item.tsx +0 -129
  73. package/src/lib/layouts/main/navbar.tsx +0 -38
  74. package/src/lib/layouts/main/search-bar.tsx +0 -44
  75. package/src/lib/layouts/main/shell-spotlight.tsx +0 -58
  76. package/src/lib/models/app-jit.ts +0 -6
  77. package/src/lib/pages/general/fluxo-plugin-loader.tsx +0 -22
  78. package/src/lib/pages/login/account-confirmation.tsx +0 -86
  79. package/src/lib/pages/login/change-password.tsx +0 -58
  80. package/src/lib/pages/login/forgot-password.tsx +0 -53
  81. package/src/lib/pages/login/login-page.tsx +0 -70
  82. package/src/lib/pages/login/reset-password.tsx +0 -91
  83. package/src/lib/pages/settings/apps/add-jit-app.tsx +0 -79
  84. package/src/lib/pages/settings/apps/app-item.tsx +0 -157
  85. package/src/lib/pages/settings/apps/app-jit-item.tsx +0 -105
  86. package/src/lib/pages/settings/apps/apps-list.tsx +0 -171
  87. package/src/lib/pages/settings/apps/embedded-module-item.tsx +0 -66
  88. package/src/lib/pages/settings/apps/install-or-upgrade-app.tsx +0 -105
  89. package/src/lib/pages/settings/menu-designer/custom-node.module.css +0 -34
  90. package/src/lib/pages/settings/menu-designer/custom-node.tsx +0 -160
  91. package/src/lib/pages/settings/menu-designer/menu-create-form.tsx +0 -109
  92. package/src/lib/pages/settings/menu-designer/menu-designer.module.css +0 -19
  93. package/src/lib/pages/settings/menu-designer/menu-designer.tsx +0 -463
  94. package/src/lib/pages/settings/menu-designer/menu-item-edit.tsx +0 -115
  95. package/src/lib/pages/settings/menu-designer/placeholder.module.css +0 -8
  96. package/src/lib/pages/settings/menu-designer/placeholder.tsx +0 -13
  97. package/src/lib/pages/settings/security/components/domani-role/domain-role-form.tsx +0 -67
  98. package/src/lib/pages/settings/security/components/domani-role/domain-role-grid.tsx +0 -139
  99. package/src/lib/pages/settings/security/components/permission/create-custom-permission-form.tsx +0 -64
  100. package/src/lib/pages/settings/security/components/permission/create-scope-form.tsx +0 -158
  101. package/src/lib/pages/settings/security/components/permission/permission-grid.tsx +0 -304
  102. package/src/lib/pages/settings/security/components/permission/permission-navigator.tsx +0 -320
  103. package/src/lib/pages/settings/security/components/permission/update-permission.tsx +0 -54
  104. package/src/lib/pages/settings/security/components/route-rule/route-rule-create-form.tsx +0 -59
  105. package/src/lib/pages/settings/security/components/route-rule/route-rule-grid.tsx +0 -229
  106. package/src/lib/pages/settings/security/components/user/user-form.tsx +0 -123
  107. package/src/lib/pages/settings/security/components/user/users-grid.tsx +0 -127
  108. package/src/lib/pages/settings/settings.tsx +0 -298
  109. package/src/lib/pages/settings/token/token-row.tsx +0 -69
  110. package/src/lib/pages/settings/token/tokens.tsx +0 -73
  111. package/src/lib/pages/settings/ui/ui.tsx +0 -149
  112. package/src/lib/services/app-jit-manager.ts +0 -92
  113. package/src/lib/services/app-menu.service.ts +0 -35
  114. package/src/lib/utils/icon-factory.tsx +0 -25
  115. package/src/lib/utils/security/only-not-logged-route.tsx +0 -17
  116. package/src/lib/utils/security/protected-route.tsx +0 -47
  117. package/tsconfig.json +0 -20
  118. package/tsconfig.lib.json +0 -24
  119. package/tsconfig.spec.json +0 -20
@@ -1,149 +0,0 @@
1
- import {DataCard} from "@fluxo-dev/ui-components";
2
- import {
3
- Alert,
4
- Box,
5
- Button,
6
- ColorInput,
7
- ColorSwatch,
8
- Divider,
9
- FileButton,
10
- Group,
11
- NumberInput,
12
- Stack,
13
- Text, useMantineTheme
14
- } from "@mantine/core";
15
- import AppBar from "../../../layouts/main/app-bar";
16
- import {IconDeviceFloppy, IconInfoSquare, IconUpload} from '@tabler/icons-react';
17
- import {useEffect, useState} from "react";
18
- import {IFluxoRootState, useAppSelector} from "@fluxo-dev/state";
19
- import {showNotification} from "@mantine/notifications";
20
- import {FluxoClientSys} from "@fluxo-dev/api-client-base";
21
-
22
- export function Ui() {
23
-
24
- const {configuration} = useAppSelector((state: IFluxoRootState) => state.layout);
25
- const theme = useMantineTheme();
26
-
27
- const [newLogo, setNewLogo] = useState<File | null>(null);
28
- const [newLogoBase64, setNewLogoBase64] = useState<string | undefined>(configuration.logo);
29
- const [newLogoHeight, setNewLogoHeight] = useState<number>(configuration.logoHeight);
30
- const [newBrandColors, setNewBrandColors] = useState(configuration.colors);
31
-
32
- const swatches = Object.keys(theme.colors).map((color) => (
33
- <ColorSwatch
34
- key={color}
35
- color={theme.colors[color][6]}
36
- onClick={() => {
37
- setNewBrandColors(theme.colors[color])
38
- }}
39
- />
40
- ));
41
-
42
- const saveClientUIConfiguration = () => {
43
- if(newLogoBase64 && newLogoHeight && newLogoHeight > 0 && newBrandColors && newBrandColors.length === 10) {
44
-
45
- FluxoClientSys.Instance.configuration.updateClientUi({
46
- colors: newBrandColors,
47
- logo: newLogoBase64,
48
- logoHeight: newLogoHeight
49
- })
50
- .then((res) => {
51
- showNotification({
52
- title: 'Salvataggio completato',
53
- message: 'La configurazione è stata salvata correttamente.',
54
- color: 'green',
55
- })
56
- })
57
- .catch((err) => {
58
- showNotification({
59
- title: 'Errore',
60
- message: err.message,
61
- color: 'red',
62
- })
63
- })
64
-
65
- } else {
66
- showNotification({
67
- title: 'Errore',
68
- message: 'Compilare tutti i campi richiesti',
69
- color: 'red',
70
- })
71
- }
72
- }
73
-
74
- const toBase64 = (file: File) => new Promise<string>((resolve, reject) => {
75
- const reader = new FileReader();
76
- reader.readAsDataURL(file);
77
- reader.onload = () => resolve(reader.result?.toString() ?? '');
78
- reader.onerror = error => reject(error);
79
- });
80
-
81
- const elaborateColorsArray = (colors: any, position: number, value: string) => {
82
- const tmpColors = [...colors];
83
- tmpColors[position] = value;
84
- return tmpColors;
85
- }
86
-
87
- useEffect(() => {
88
- if(newLogo) {
89
- toBase64(newLogo)
90
- .then((res) => {
91
- setNewLogoBase64(res);
92
- })
93
- }
94
- }, [newLogo])
95
-
96
- return (
97
- <Stack align={'stretch'} >
98
-
99
- <div>
100
- <DataCard title={'Anteprima'}>
101
- <Stack>
102
- <Box style={{border: '0px solid #888'}} p={0}>
103
- <AppBar previewMode={{logo: newLogoBase64, logoHeight: newLogoHeight, headerColor: newBrandColors[6]}} />
104
- </Box>
105
- </Stack>
106
- </DataCard>
107
- </div>
108
-
109
- <div>
110
- <DataCard title={'Logo'} actions={[{icon: <IconDeviceFloppy />, onClick: () => console.log}]}>
111
- <Stack align={'end'}>
112
- <FileButton onChange={setNewLogo} accept="image/png,image/jpeg">
113
- {(props) => <Button w={'100%'} leftSection={<IconUpload />} {...props}>Carica nuovo logo</Button>}
114
- </FileButton>
115
- <NumberInput max={50} min={10} w={'100%'} label={'Altezza del logo'} defaultValue={newLogoHeight} onChange={(v) => setNewLogoHeight(v !== '' ? +v! : 10)} />
116
- <Divider color={'#e9ecef'} w={'100%'} />
117
- <Button onClick={() => saveClientUIConfiguration()} leftSection={<IconDeviceFloppy />}>Salva</Button>
118
- </Stack>
119
- </DataCard>
120
- </div>
121
-
122
- <div>
123
- <DataCard title={'Colori del brand'}>
124
- <Stack align={'end'}>
125
- <Alert w={'100%'} icon={<IconInfoSquare size={18} />} title="Informazioni">
126
- Nota che tutti i colori dovrebbero sempre avere 10 sfumature. <a href={'https://smart-swatch.netlify.app/'} target={'_blank'}>Clicca qui</a> per generare la tua palette personalizzata.
127
- </Alert>
128
- <Text w={'100%'}>Preset</Text>
129
- <Group w={'100%'} justify="left" gap="xs">
130
- {swatches}
131
- </Group>
132
- <ColorInput w={'100%'} placeholder="Colore 1" label="Colore 1" value={newBrandColors[0]} onChange={(v) => setNewBrandColors((o: any) => [...elaborateColorsArray(o, 0, v)])} />
133
- <ColorInput w={'100%'} placeholder="Colore 2" label="Colore 2" format={'hex'} value={newBrandColors[1]} onChange={(v) => setNewBrandColors((o: any) => [...elaborateColorsArray(o, 1, v)])} />
134
- <ColorInput w={'100%'} placeholder="Colore 3" label="Colore 3" format={'hex'} value={newBrandColors[2]} onChange={(v) => setNewBrandColors((o: any) => [...elaborateColorsArray(o, 2, v)])} />
135
- <ColorInput w={'100%'} placeholder="Colore 4" label="Colore 4" format={'hex'} value={newBrandColors[3]} onChange={(v) => setNewBrandColors((o: any) => [...elaborateColorsArray(o, 3, v)])} />
136
- <ColorInput w={'100%'} placeholder="Colore 5" label="Colore 5" format={'hex'} value={newBrandColors[4]} onChange={(v) => setNewBrandColors((o: any) => [...elaborateColorsArray(o, 4, v)])} />
137
- <ColorInput w={'100%'} placeholder="Colore 6" label="Colore 6" format={'hex'} value={newBrandColors[5]} onChange={(v) => setNewBrandColors((o: any) => [...elaborateColorsArray(o, 5, v)])} />
138
- <ColorInput w={'100%'} placeholder="Colore 7" label="Colore 7" format={'hex'} value={newBrandColors[6]} onChange={(v) => setNewBrandColors((o: any) => [...elaborateColorsArray(o, 6, v)])} description={'Primario, headerbar'} />
139
- <ColorInput w={'100%'} placeholder="Colore 8" label="Colore 8" format={'hex'} value={newBrandColors[7]} onChange={(v) => setNewBrandColors((o: any) => [...elaborateColorsArray(o, 7, v)])} />
140
- <ColorInput w={'100%'} placeholder="Colore 9" label="Colore 9" format={'hex'} value={newBrandColors[8]} onChange={(v) => setNewBrandColors((o: any) => [...elaborateColorsArray(o, 8, v)])} />
141
- <ColorInput w={'100%'} placeholder="Colore 10" label="Colore 10" format={'hex'} value={newBrandColors[9]} onChange={(v) => setNewBrandColors((o: any) => [...elaborateColorsArray(o, 9, v)])} />
142
- <Divider color={'#e9ecef'} w={'100%'} />
143
- <Button onClick={() => saveClientUIConfiguration()} leftSection={<IconDeviceFloppy />}>Salva</Button>
144
- </Stack>
145
- </DataCard>
146
- </div>
147
- </Stack>
148
- )
149
- }
@@ -1,92 +0,0 @@
1
- import {AppJit} from "../models/app-jit";
2
- import {AppState, AppType, FluxoFrontendAppConfiguration} from "@fluxo-dev/api-client-base";
3
-
4
- export class AppJitManager {
5
-
6
- public loadAppConfigurations(): AppJit[] {
7
- const apps = localStorage.getItem('fluxo-jit-apps');
8
-
9
- if (apps) {
10
- const parsedApps: AppJit[] = JSON.parse(apps);
11
- return parsedApps;
12
- }
13
-
14
- return [];
15
- }
16
-
17
- public refreshApp(app: AppJit): Promise<boolean> {
18
- return fetch(`${app.developmentUrl}/fluxo-fe-app-configuration.json`)
19
- .then((response) => {
20
- return response.json()
21
- .then((json) => {
22
-
23
- this.removeAppConfiguration(json.scope, json.name);
24
- this.addAppConfiguration(json, app.developmentUrl, app.developmentRoute);
25
-
26
- return true;
27
- });
28
- })
29
- .catch((error) => {
30
-
31
- return false;
32
- });
33
- }
34
-
35
- public checkIfAppExists(app: AppJit): boolean {
36
- const apps = this.loadAppConfigurations();
37
- return !!apps.find(x => x.scope === app.scope);
38
- }
39
-
40
- public addAppConfiguration(app: FluxoFrontendAppConfiguration, devUrl: string, devRoute: string) {
41
- const apps = this.loadAppConfigurations();
42
-
43
- if(apps.find(x => x.scope === app.scope && x.name === app.name)) {
44
- return;
45
- }
46
-
47
- const a: AppJit = {
48
- name: app?.name || '',
49
- type: AppType.Frontend,
50
- version: app?.version || '',
51
- author: app?.author || '',
52
- scope: app?.scope || '',
53
- state: AppState.Active,
54
- description: app?.description || '',
55
- developmentRoute: devRoute,
56
- installationDate: new Date(),
57
- installationDirectory: '',
58
- developmentUrl: devUrl,
59
- id: 0,
60
- menu: app?.menu || [],
61
- isEmbedded: false
62
- }
63
-
64
- apps.push(a);
65
- localStorage.setItem('fluxo-jit-apps', JSON.stringify(apps));
66
- }
67
-
68
- public setAppEnabled(appScope: string, appName: string, enabled: boolean) {
69
- const apps = this.loadAppConfigurations();
70
- const app = apps.find(x => x.scope === appScope && x.name === appName);
71
-
72
- if(!app) {
73
- return;
74
- }
75
-
76
- app.state = enabled ? AppState.Active : AppState.Inactive;
77
- localStorage.setItem('fluxo-jit-apps', JSON.stringify(apps));
78
- }
79
-
80
- public removeAppConfiguration(appScope: string, appName: string) {
81
- const apps = this.loadAppConfigurations();
82
- const app = apps.find(x => x.scope === appScope && x.name === appName);
83
-
84
- if(!app) {
85
- return;
86
- }
87
-
88
- const index = apps.indexOf(app);
89
- apps.splice(index, 1);
90
- localStorage.setItem('fluxo-jit-apps', JSON.stringify(apps));
91
- }
92
- }
@@ -1,35 +0,0 @@
1
- import {AppMenuItem} from "@fluxo-dev/api-client-base";
2
- import {SpotlightActionData, SpotlightActionGroupData} from "@mantine/spotlight";
3
-
4
- export class AppMenuService {
5
-
6
- async getSpotlightMenu(menu: AppMenuItem[], parentTitle?: string): Promise<(SpotlightActionGroupData)[]> {
7
-
8
- const result: SpotlightActionGroupData[] = [];
9
-
10
- const currentGroup: SpotlightActionGroupData = {
11
- group: parentTitle ?? 'Generale',
12
- actions: []
13
- };
14
-
15
- menu.forEach((m) => {
16
- if(m.hasIndex) {
17
- currentGroup.actions.push({
18
- label: m.label,
19
- description: parentTitle ? `${parentTitle} -> ${m.label}` : m.label,
20
- id: '/' + m.routerLink
21
- })
22
- }
23
-
24
- if(m.children && m.children.length > 0) {
25
- this.getSpotlightMenu(m.children, m.label).then((res) => {
26
- const aaa = res;
27
- result.push(...aaa);
28
- })
29
- }
30
- })
31
-
32
- result.push(currentGroup);
33
- return Promise.resolve(result)
34
- }
35
- }
@@ -1,25 +0,0 @@
1
- import {IconDashboard, IconPlus} from '@tabler/icons-react';
2
-
3
- export class IconFactory {
4
-
5
- static icons = [
6
- {value: 'dashboard', element: <IconDashboard size={18} />},
7
- {value: 'plus', element: <IconPlus size={18} />},
8
- ]
9
-
10
- static getIconIdentifiers(): string[] {
11
- return IconFactory.icons.map((e) => e.value);
12
- }
13
-
14
- static getIcon(iconName: string): JSX.Element {
15
-
16
- let iconFound = <IconDashboard size={18} />;
17
-
18
- IconFactory.icons.forEach((icon) => {
19
- if(icon.value === iconName)
20
- iconFound = icon.element;
21
- })
22
-
23
- return iconFound;
24
- }
25
- }
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import {Navigate} from "react-router-dom";
3
- import {useSelector} from "react-redux";
4
- import {IFluxoRootState} from "@fluxo-dev/state";
5
-
6
- function OnlyNotLoggedRoute({children, ...props}: any) {
7
-
8
- const { loggedIn } = useSelector((state: IFluxoRootState) => state.user)
9
-
10
- if (loggedIn) {
11
- return <Navigate to="/" replace />;
12
- }
13
-
14
- return children;
15
- }
16
-
17
- export default OnlyNotLoggedRoute;
@@ -1,47 +0,0 @@
1
- import React from 'react';
2
- import {matchPath, Navigate, useLocation} from "react-router-dom";
3
- import {useSelector} from "react-redux";
4
- import {IFluxoRootState} from "@fluxo-dev/state";
5
- import {FluxoClientSys, RouteRuleWithPermissions} from "@fluxo-dev/api-client-base";
6
- import {AccessDenied} from "@fluxo-dev/ui-components";
7
-
8
- function ProtectedRoute({children, ...props}: any) {
9
- const { loggedIn } = useSelector((state: IFluxoRootState) => state.user)
10
- const { routeRules } = useSelector((state: IFluxoRootState) => state.routeRules);
11
-
12
- const navigation = useLocation();
13
-
14
- if (!loggedIn) {
15
- return <Navigate to="/auth/login" replace />;
16
- }
17
-
18
- let accessDenied = false;
19
- let requiredPermissions: string[] = [];
20
-
21
- (routeRules as RouteRuleWithPermissions[]).forEach((routeRule) => {
22
- const match = matchPath(`${routeRule.route}`, navigation.pathname);
23
-
24
- if (match) {
25
- if (routeRule.permissions.length === 0) {
26
- return;
27
- } else {
28
-
29
- const res = FluxoClientSys.Instance.security.user.currentUserHasPermissions(routeRule.permissions);
30
-
31
- if(!res) {
32
- accessDenied = true;
33
- requiredPermissions = routeRule.permissions;
34
- return;
35
- }
36
- }
37
- }
38
-
39
- });
40
-
41
- if(accessDenied)
42
- return <AccessDenied requiredPermissions={requiredPermissions} />;
43
-
44
- return children;
45
- }
46
-
47
- export default ProtectedRoute;
package/tsconfig.json DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "jsx": "react-jsx",
4
- "allowJs": false,
5
- "esModuleInterop": false,
6
- "allowSyntheticDefaultImports": true,
7
- "strict": true
8
- },
9
- "files": [],
10
- "include": [],
11
- "references": [
12
- {
13
- "path": "./tsconfig.lib.json"
14
- },
15
- {
16
- "path": "./tsconfig.spec.json"
17
- }
18
- ],
19
- "extends": "../../../tsconfig.base.json"
20
- }
package/tsconfig.lib.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../../dist/out-tsc",
5
- "types": [
6
- "node",
7
-
8
- "@nx/react/typings/cssmodule.d.ts",
9
- "@nx/react/typings/image.d.ts"
10
- ]
11
- },
12
- "exclude": [
13
- "jest.config.ts",
14
- "src/**/*.spec.ts",
15
- "src/**/*.test.ts",
16
- "src/**/*.spec.tsx",
17
- "src/**/*.test.tsx",
18
- "src/**/*.spec.js",
19
- "src/**/*.test.js",
20
- "src/**/*.spec.jsx",
21
- "src/**/*.test.jsx"
22
- ],
23
- "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
24
- }
@@ -1,20 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../../dist/out-tsc",
5
- "module": "commonjs",
6
- "types": ["jest", "node"]
7
- },
8
- "include": [
9
- "jest.config.ts",
10
- "src/**/*.test.ts",
11
- "src/**/*.spec.ts",
12
- "src/**/*.test.tsx",
13
- "src/**/*.spec.tsx",
14
- "src/**/*.test.js",
15
- "src/**/*.spec.js",
16
- "src/**/*.test.jsx",
17
- "src/**/*.spec.jsx",
18
- "src/**/*.d.ts"
19
- ]
20
- }