@abyss-project/commons-front-core 2.0.0 → 2.0.1
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/README.md +30 -30
- package/declaration.d.ts +13 -13
- package/dist/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts +3 -5
- package/dist/components/Chips/ApplicationWebhookTypeChip/ApplicationWebhookTypeChip.component.d.ts +3 -5
- package/dist/components/Chips/LogTypeChip/LogTypeChip.component.d.ts +3 -5
- package/dist/components/Chips/ProjectStatusChip/ProjectStatusChip.component.d.ts +3 -5
- package/dist/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts +3 -6
- package/dist/components/Chips/WebhookTypeChip/WebhookTypeChip.component.d.ts +3 -5
- package/dist/components/Inputs/AbyssDatePicker/AbyssDatePicker.component.d.ts +3 -4
- package/dist/components/Inputs/AbyssDateTimePicker/AbyssDateTimePicker.component.d.ts +3 -4
- package/dist/components/Spotlight/ProjectCard/ProjectCard.component.d.ts +2 -4
- package/dist/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +2 -4
- package/dist/components/Support/SupportCategoryChip.component.d.ts +0 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +3 -1548
- package/dist/{index-CSpwXL74.js → index-9JIy7Djb.js} +1 -1
- package/dist/{index-a9_oOlg4.js → index-BAuonW3N.js} +26027 -27126
- package/dist/{index-BiREoCYc.js → index-BOtrcw1j.js} +2 -2
- package/dist/{index-Ca_vS7os.js → index-BPJVReI0.js} +2 -2
- package/dist/{index-BCVRYGLI.js → index-BXZfTf55.js} +4 -4
- package/dist/{index-DZG8q-Mp.js → index-BYLT28lc.js} +3 -3
- package/dist/{index-DpUTQu7B.js → index-BYwHCIWy.js} +2 -2
- package/dist/{index-Cil-O_44.js → index-BgmzPVRb.js} +2 -2
- package/dist/{index-BdWnB1rS.js → index-BpK4Invo.js} +2 -2
- package/dist/{index-DON7Q_3s.js → index-CFDZ3MU0.js} +2 -2
- package/dist/{index-CTVUhat-.js → index-CH4t9QXm.js} +2 -2
- package/dist/{index--KPqynn_.js → index-CHx1H8aR.js} +2 -2
- package/dist/{index-VEVfBSFw.js → index-CWbky7lZ.js} +2 -2
- package/dist/{index-CL4h9Xoy.js → index-CdyQkcro.js} +4 -4
- package/dist/{index-CoY-Eqah.js → index-ChracZ7Y.js} +2 -2
- package/dist/{index-BcInTypv.js → index-D-lUzl7L.js} +4 -4
- package/dist/{index-Db-3tPxk.js → index-DA-Al57V.js} +2 -2
- package/dist/{index-B3gKqf-p.js → index-DQA1qMA-.js} +3 -3
- package/dist/{index-ldQTy6Xb.js → index-DsGlqSMc.js} +2 -2
- package/dist/{index-AykyIzzG.js → index-Dwu4v8nG.js} +3 -3
- package/dist/{index-Df71mOHZ.js → index-JwdWWKbV.js} +3 -3
- package/dist/{index-QwHRQNwT.js → index-nCkskgkm.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/utils/color.utils.d.ts +0 -1
- package/package.json +138 -143
- package/tsconfig.json +35 -35
- package/vite.config.ts +75 -75
- package/vitest.config.ts +14 -14
- package/.claude/settings.local.json +0 -7
package/vite.config.ts
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import react from '@vitejs/plugin-react'
|
|
3
|
-
import path, { resolve } from 'path'
|
|
4
|
-
import dts from 'vite-plugin-dts';
|
|
5
|
-
|
|
6
|
-
const isWatch = process.argv.includes('--watch');
|
|
7
|
-
|
|
8
|
-
export default defineConfig({
|
|
9
|
-
plugins: [
|
|
10
|
-
react(),
|
|
11
|
-
!isWatch && dts({
|
|
12
|
-
skipDiagnostics: true, // Skip TypeScript diagnostics to avoid type conflicts
|
|
13
|
-
staticImport: true,
|
|
14
|
-
insertTypesEntry: true,
|
|
15
|
-
}),
|
|
16
|
-
].filter(Boolean),
|
|
17
|
-
resolve: {
|
|
18
|
-
alias: {
|
|
19
|
-
"@components-spotlight/*": path.resolve(__dirname, './src/components/Spotlight'),
|
|
20
|
-
"@components-avatars/*": path.resolve(__dirname, './src/components/Avatars'),
|
|
21
|
-
"@components-chips/*": path.resolve(__dirname, './src/components/Chips'),
|
|
22
|
-
"@components-utils/*": path.resolve(__dirname, './src/components/Utils'),
|
|
23
|
-
"@components-inputs/*": path.resolve(__dirname, './src/components/Inputs'),
|
|
24
|
-
"@components-modals/*": path.resolve(__dirname, './src/components/Modals'),
|
|
25
|
-
'@components': path.resolve(__dirname, './src/components'),
|
|
26
|
-
'@assets': path.resolve(__dirname, './src/assets'),
|
|
27
|
-
'@utils': path.resolve(__dirname, './src/utils'),
|
|
28
|
-
'@types': path.resolve(__dirname, './src/types'),
|
|
29
|
-
'@hooks': path.resolve(__dirname, './src/hooks'),
|
|
30
|
-
'@': path.resolve(__dirname, './src'),
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
build: {
|
|
34
|
-
lib: {
|
|
35
|
-
// Multiple entries: the full barrel (`index`) plus a browser-safe,
|
|
36
|
-
// tree-shaken `cookie-consent` entry. The latter lets webpack consumers
|
|
37
|
-
// (e.g. the Next.js landing) pull ONLY the cookie-consent UI without
|
|
38
|
-
// dragging in react-toastify (React-17 `render`), pdf.js, or the server
|
|
39
|
-
// monitor SDK that the full barrel transitively includes.
|
|
40
|
-
entry: {
|
|
41
|
-
index: resolve(__dirname, 'src/index.ts'),
|
|
42
|
-
'cookie-consent': resolve(__dirname, 'src/components/CookieConsent/index.ts'),
|
|
43
|
-
},
|
|
44
|
-
formats: ['es'],
|
|
45
|
-
fileName: (_format, entryName) => `${entryName}.js`,
|
|
46
|
-
},
|
|
47
|
-
rollupOptions: {
|
|
48
|
-
// Externalize peer dependencies. Match exact name OR sub-path imports
|
|
49
|
-
// (e.g. 'react/jsx-runtime') — never match by raw prefix, otherwise
|
|
50
|
-
// 'react' silently externalizes 'react-is', 'react-fast-compare', etc.
|
|
51
|
-
external: (id) => {
|
|
52
|
-
const exactNames = [
|
|
53
|
-
'react', 'react-dom', 'react-intl', 'react-router-dom',
|
|
54
|
-
'pdfjs-dist', 'pdf-lib',
|
|
55
|
-
'osx-temperature-sensor', 'fs', 'path', 'os',
|
|
56
|
-
];
|
|
57
|
-
if (exactNames.includes(id)) return true;
|
|
58
|
-
if (exactNames.some((name) => id.startsWith(name + '/'))) return true;
|
|
59
|
-
// Scoped-package prefixes (these always end with '/')
|
|
60
|
-
const scopedPrefixes = ['@mui/', '@emotion/', '@abyss-project/', '@tanstack/'];
|
|
61
|
-
return scopedPrefixes.some((prefix) => id.startsWith(prefix));
|
|
62
|
-
},
|
|
63
|
-
output: {
|
|
64
|
-
globals: {
|
|
65
|
-
'react': 'React',
|
|
66
|
-
'react-dom': 'ReactDOM',
|
|
67
|
-
'react-router-dom': 'ReactRouterDOM',
|
|
68
|
-
'@mui/material': 'MaterialUI',
|
|
69
|
-
'@abyss-project/main': 'AbyssMain',
|
|
70
|
-
'react-intl': 'ReactIntl'
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
})
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import react from '@vitejs/plugin-react'
|
|
3
|
+
import path, { resolve } from 'path'
|
|
4
|
+
import dts from 'vite-plugin-dts';
|
|
5
|
+
|
|
6
|
+
const isWatch = process.argv.includes('--watch');
|
|
7
|
+
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
plugins: [
|
|
10
|
+
react(),
|
|
11
|
+
!isWatch && dts({
|
|
12
|
+
skipDiagnostics: true, // Skip TypeScript diagnostics to avoid type conflicts
|
|
13
|
+
staticImport: true,
|
|
14
|
+
insertTypesEntry: true,
|
|
15
|
+
}),
|
|
16
|
+
].filter(Boolean),
|
|
17
|
+
resolve: {
|
|
18
|
+
alias: {
|
|
19
|
+
"@components-spotlight/*": path.resolve(__dirname, './src/components/Spotlight'),
|
|
20
|
+
"@components-avatars/*": path.resolve(__dirname, './src/components/Avatars'),
|
|
21
|
+
"@components-chips/*": path.resolve(__dirname, './src/components/Chips'),
|
|
22
|
+
"@components-utils/*": path.resolve(__dirname, './src/components/Utils'),
|
|
23
|
+
"@components-inputs/*": path.resolve(__dirname, './src/components/Inputs'),
|
|
24
|
+
"@components-modals/*": path.resolve(__dirname, './src/components/Modals'),
|
|
25
|
+
'@components': path.resolve(__dirname, './src/components'),
|
|
26
|
+
'@assets': path.resolve(__dirname, './src/assets'),
|
|
27
|
+
'@utils': path.resolve(__dirname, './src/utils'),
|
|
28
|
+
'@types': path.resolve(__dirname, './src/types'),
|
|
29
|
+
'@hooks': path.resolve(__dirname, './src/hooks'),
|
|
30
|
+
'@': path.resolve(__dirname, './src'),
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
build: {
|
|
34
|
+
lib: {
|
|
35
|
+
// Multiple entries: the full barrel (`index`) plus a browser-safe,
|
|
36
|
+
// tree-shaken `cookie-consent` entry. The latter lets webpack consumers
|
|
37
|
+
// (e.g. the Next.js landing) pull ONLY the cookie-consent UI without
|
|
38
|
+
// dragging in react-toastify (React-17 `render`), pdf.js, or the server
|
|
39
|
+
// monitor SDK that the full barrel transitively includes.
|
|
40
|
+
entry: {
|
|
41
|
+
index: resolve(__dirname, 'src/index.ts'),
|
|
42
|
+
'cookie-consent': resolve(__dirname, 'src/components/CookieConsent/index.ts'),
|
|
43
|
+
},
|
|
44
|
+
formats: ['es'],
|
|
45
|
+
fileName: (_format, entryName) => `${entryName}.js`,
|
|
46
|
+
},
|
|
47
|
+
rollupOptions: {
|
|
48
|
+
// Externalize peer dependencies. Match exact name OR sub-path imports
|
|
49
|
+
// (e.g. 'react/jsx-runtime') — never match by raw prefix, otherwise
|
|
50
|
+
// 'react' silently externalizes 'react-is', 'react-fast-compare', etc.
|
|
51
|
+
external: (id) => {
|
|
52
|
+
const exactNames = [
|
|
53
|
+
'react', 'react-dom', 'react-intl', 'react-router-dom',
|
|
54
|
+
'pdfjs-dist', 'pdf-lib',
|
|
55
|
+
'osx-temperature-sensor', 'fs', 'path', 'os',
|
|
56
|
+
];
|
|
57
|
+
if (exactNames.includes(id)) return true;
|
|
58
|
+
if (exactNames.some((name) => id.startsWith(name + '/'))) return true;
|
|
59
|
+
// Scoped-package prefixes (these always end with '/')
|
|
60
|
+
const scopedPrefixes = ['@mui/', '@emotion/', '@abyss-project/', '@tanstack/'];
|
|
61
|
+
return scopedPrefixes.some((prefix) => id.startsWith(prefix));
|
|
62
|
+
},
|
|
63
|
+
output: {
|
|
64
|
+
globals: {
|
|
65
|
+
'react': 'React',
|
|
66
|
+
'react-dom': 'ReactDOM',
|
|
67
|
+
'react-router-dom': 'ReactRouterDOM',
|
|
68
|
+
'@mui/material': 'MaterialUI',
|
|
69
|
+
'@abyss-project/main': 'AbyssMain',
|
|
70
|
+
'react-intl': 'ReactIntl'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
})
|
package/vitest.config.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineConfig, mergeConfig } from 'vitest/config';
|
|
2
|
-
import viteConfig from './vite.config';
|
|
3
|
-
|
|
4
|
-
export default mergeConfig(
|
|
5
|
-
viteConfig,
|
|
6
|
-
defineConfig({
|
|
7
|
-
test: {
|
|
8
|
-
environment: 'node',
|
|
9
|
-
include: ['src/**/*.spec.ts'],
|
|
10
|
-
globals: false,
|
|
11
|
-
passWithNoTests: true,
|
|
12
|
-
},
|
|
13
|
-
}),
|
|
14
|
-
);
|
|
1
|
+
import { defineConfig, mergeConfig } from 'vitest/config';
|
|
2
|
+
import viteConfig from './vite.config';
|
|
3
|
+
|
|
4
|
+
export default mergeConfig(
|
|
5
|
+
viteConfig,
|
|
6
|
+
defineConfig({
|
|
7
|
+
test: {
|
|
8
|
+
environment: 'node',
|
|
9
|
+
include: ['src/**/*.spec.ts'],
|
|
10
|
+
globals: false,
|
|
11
|
+
passWithNoTests: true,
|
|
12
|
+
},
|
|
13
|
+
}),
|
|
14
|
+
);
|