@foris/avocado-not-front 4.6.2 → 4.6.3-beta.0.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/avocado-not-front.es.js +1184 -1140
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/{src/components → components}/chart/chart.constants.d.ts +4 -1
- package/dist/{src/components → components}/chart/chart.types.d.ts +4 -0
- package/dist/components/chart/chart.util.d.ts +12 -0
- package/dist/components/chart/components/ChartFrame.d.ts +15 -0
- package/dist/components/chart/components/ChartScrollViewport.d.ts +13 -0
- package/dist/{src/components → components}/index.d.ts +2 -2
- package/dist/components/progress-bar/ProgressBar.d.ts +7 -0
- package/dist/index.d.ts +3 -1
- package/dist/style.css +1 -1
- package/dist/{src/types → types}/components.type.d.ts +29 -49
- package/dist/{src/types → types}/index.d.ts +0 -2
- package/package.json +27 -22
- package/dist/src/components/not-front-dynamic-router/NotFrontDynamicRouter.d.ts +0 -9
- package/dist/src/index.d.ts +0 -4
- package/dist/src/types/dynamicRouteDefinition.type.d.ts +0 -6
- package/dist/src/types/router.type.d.ts +0 -5
- package/dist/src/utils/dynamicRouting/index.d.ts +0 -5
- package/dist/src/utils/dynamicRouting/normalizePathname.d.ts +0 -2
- package/dist/src/utils/dynamicRouting/normalizePathname.test.d.ts +0 -1
- package/dist/src/utils/dynamicRouting/pathBelongsToPrefix.d.ts +0 -6
- package/dist/src/utils/dynamicRouting/pathBelongsToPrefix.test.d.ts +0 -1
- package/dist/src/utils/dynamicRouting/selectDynamicRoutesUnderPrefix.d.ts +0 -9
- package/dist/src/utils/dynamicRouting/selectDynamicRoutesUnderPrefix.test.d.ts +0 -1
- package/dist/src/utils/dynamicRouting/stripPrefixFromPathname.d.ts +0 -6
- package/dist/src/utils/dynamicRouting/stripPrefixFromPathname.test.d.ts +0 -1
- package/dist/src/utils/dynamicRouting/userCanAccessDynamicRoute.d.ts +0 -9
- package/dist/src/utils/dynamicRouting/userCanAccessDynamicRoute.test.d.ts +0 -1
- /package/dist/{src/components → components}/accordion/Accordion.d.ts +0 -0
- /package/dist/{src/components → components}/ai-chat-panel/AIChatPanel.d.ts +0 -0
- /package/dist/{src/components → components}/ai-prompt-code-editor/AIPromptCodeEditor.d.ts +0 -0
- /package/dist/{src/components → components}/ai-summary-card/AISummaryCard.d.ts +0 -0
- /package/dist/{src/components → components}/body/Body.d.ts +0 -0
- /package/dist/{src/components → components}/box/Box.d.ts +0 -0
- /package/dist/{src/components → components}/breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/dist/{src/components → components}/button/Button.d.ts +0 -0
- /package/dist/{src/components → components}/card-accordion/CardAccordion.d.ts +0 -0
- /package/dist/{src/components → components}/card-notification/CardNotification.d.ts +0 -0
- /package/dist/{src/components → components}/chart/Chart.d.ts +0 -0
- /package/dist/{src/components/not-front-dynamic-router/NotFrontDynamicRouter.test.d.ts → components/chart/chart.util.test.d.ts} +0 -0
- /package/dist/{src/components → components}/chart/charts/AreaChart.d.ts +0 -0
- /package/dist/{src/components → components}/chart/charts/BarChart.d.ts +0 -0
- /package/dist/{src/components → components}/chart/charts/LineChart.d.ts +0 -0
- /package/dist/{src/components → components}/chart/charts/PieChart.d.ts +0 -0
- /package/dist/{src/components → components}/chart/charts/index.d.ts +0 -0
- /package/dist/{src/components → components}/chart/components/Legend.d.ts +0 -0
- /package/dist/{src/components → components}/chart/components/Tooltip.d.ts +0 -0
- /package/dist/{src/components → components}/chart/components/XAxis.d.ts +0 -0
- /package/dist/{src/components → components}/chart/components/YAxis.d.ts +0 -0
- /package/dist/{src/components → components}/chart/components/index.d.ts +0 -0
- /package/dist/{src/components → components}/checkbox/Checkbox.d.ts +0 -0
- /package/dist/{src/components → components}/code-editor/CodeEditor.d.ts +0 -0
- /package/dist/{src/components → components}/content-wrapper/ContentWrapper.d.ts +0 -0
- /package/dist/{src/components → components}/content-wrapper/index.d.ts +0 -0
- /package/dist/{src/components → components}/data-card/DataCard.d.ts +0 -0
- /package/dist/{src/components → components}/divider/Divider.d.ts +0 -0
- /package/dist/{src/components → components}/drawer/Drawer.d.ts +0 -0
- /package/dist/{src/components → components}/dropdown-button/DropdownButton.d.ts +0 -0
- /package/dist/{src/components → components}/header/Header.d.ts +0 -0
- /package/dist/{src/components → components}/layout-card/LayoutCard.d.ts +0 -0
- /package/dist/{src/components → components}/link/Link.d.ts +0 -0
- /package/dist/{src/components → components}/menu/Menu.d.ts +0 -0
- /package/dist/{src/components → components}/modal/Modal.d.ts +0 -0
- /package/dist/{src/components → components}/not-front-page/NotFrontPage.d.ts +0 -0
- /package/dist/{src/components → components}/not-front-page/NotFrontPage.test.d.ts +0 -0
- /package/dist/{src/components → components}/overlay-renderer/OverlayRenderer.d.ts +0 -0
- /package/dist/{src/components → components}/pill/Pill.d.ts +0 -0
- /package/dist/{src/components → components}/previewer-markdown/PreviewerMarkdown.d.ts +0 -0
- /package/dist/{src/components → components}/radio-group/RadioGroup.d.ts +0 -0
- /package/dist/{src/components → components}/round-button/RoundButton.d.ts +0 -0
- /package/dist/{src/components → components}/row/Row.d.ts +0 -0
- /package/dist/{src/components → components}/select/SelectPagination.d.ts +0 -0
- /package/dist/{src/components → components}/select/SelectSimple.d.ts +0 -0
- /package/dist/{src/components → components}/select/index.d.ts +0 -0
- /package/dist/{src/components → components}/select/select.util.d.ts +0 -0
- /package/dist/{src/components → components}/spacing/Spacing.d.ts +0 -0
- /package/dist/{src/components → components}/stepper/Stepper.d.ts +0 -0
- /package/dist/{src/components → components}/switch/Switch.d.ts +0 -0
- /package/dist/{src/components → components}/table/Table.d.ts +0 -0
- /package/dist/{src/components → components}/table/TableArrayPills.d.ts +0 -0
- /package/dist/{src/components → components}/table/TableRowAction.d.ts +0 -0
- /package/dist/{src/components → components}/table/TableSkeleton.d.ts +0 -0
- /package/dist/{src/components → components}/table/table.util.d.ts +0 -0
- /package/dist/{src/components → components}/tabs/Tabs.d.ts +0 -0
- /package/dist/{src/components → components}/text-field/TextField.d.ts +0 -0
- /package/dist/{src/components → components}/textarea/Textarea.d.ts +0 -0
- /package/dist/{src/components → components}/toast/Toast.d.ts +0 -0
- /package/dist/{src/components → components}/tooltip/Tooltip.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/builder/useBuildComponentsList.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/builder/useBuilder.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/builder/usePage.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/components/useHeading.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/components/useText.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/index.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useAction.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useDependencies.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useNotFrontButtonActionRunner.d.ts +0 -0
- /package/dist/{src/hooks → hooks}/useSelectChange.d.ts +0 -0
- /package/dist/{src/services → services}/axios/axiosInterceptors.d.ts +0 -0
- /package/dist/{src/services → services}/axios/axiosServices.d.ts +0 -0
- /package/dist/{src/services → services}/axios/useFetchAndLoad.d.ts +0 -0
- /package/dist/{src/services → services}/not-front/nextUIService.d.ts +0 -0
- /package/dist/{src/store → store}/useStore.d.ts +0 -0
- /package/dist/{src/types → types}/builder.type.d.ts +0 -0
- /package/dist/{src/types → types}/componentsCore.type.d.ts +0 -0
- /package/dist/{src/utils → utils}/dataSource.util.d.ts +0 -0
- /package/dist/{src/utils → utils}/headers.util.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foris/avocado-not-front",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.3-beta.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Foris/avocado.git",
|
|
10
|
+
"directory": "packages/avocado-not-front"
|
|
11
|
+
},
|
|
7
12
|
"type": "module",
|
|
8
13
|
"files": [
|
|
9
14
|
"dist"
|
|
@@ -17,12 +22,26 @@
|
|
|
17
22
|
"require": "./dist/avocado-not-front.umd.js"
|
|
18
23
|
}
|
|
19
24
|
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc && vite build",
|
|
27
|
+
"test": "vitest run",
|
|
28
|
+
"test:watch": "vitest",
|
|
29
|
+
"coverage": "vitest run --coverage",
|
|
30
|
+
"build:analyze": "tsc && ANALYZE=true vite build",
|
|
31
|
+
"start:stubby": "stubby -d src/services/stubs/stubby-config.yml -w -s 8200 -q",
|
|
32
|
+
"start:stubby-examples": "stubby -d src/services/stubs/stubby-examples.yml -w -s 8300 -q"
|
|
33
|
+
},
|
|
20
34
|
"dependencies": {},
|
|
21
35
|
"devDependencies": {
|
|
22
36
|
"@codemirror/lang-json": "6.0.1",
|
|
23
37
|
"@codemirror/lang-markdown": "6.3.4",
|
|
24
38
|
"@codemirror/lang-sql": "6.8.0",
|
|
25
39
|
"@codemirror/lang-yaml": "6.1.2",
|
|
40
|
+
"@foris/ai-agent": "workspace:*",
|
|
41
|
+
"@foris/avocado-core": "workspace:*",
|
|
42
|
+
"@foris/avocado-icons": "workspace:*",
|
|
43
|
+
"@foris/avocado-suite": "workspace:*",
|
|
44
|
+
"@foris/tsconfig": "workspace:*",
|
|
26
45
|
"@testing-library/jest-dom": "6.4.0",
|
|
27
46
|
"@testing-library/react": "15.0.7",
|
|
28
47
|
"@testing-library/user-event": "14.5.2",
|
|
@@ -50,18 +69,17 @@
|
|
|
50
69
|
"react-select-async-paginate": "0.7.3",
|
|
51
70
|
"recharts": "3.1.0",
|
|
52
71
|
"zustand": "4.5.4",
|
|
53
|
-
"@uiw/react-codemirror": "4.23.12"
|
|
54
|
-
"@foris/ai-agent": "1.0.8",
|
|
55
|
-
"@foris/avocado-icons": "1.16.6",
|
|
56
|
-
"@foris/avocado-core": "1.3.0",
|
|
57
|
-
"@foris/avocado-suite": "1.8.12",
|
|
58
|
-
"@foris/tsconfig": "0.0.2"
|
|
72
|
+
"@uiw/react-codemirror": "4.23.12"
|
|
59
73
|
},
|
|
60
74
|
"peerDependencies": {
|
|
61
75
|
"@codemirror/lang-json": ">=6.0.0",
|
|
62
76
|
"@codemirror/lang-markdown": ">=6.3.0",
|
|
63
77
|
"@codemirror/lang-sql": ">=6.8.0",
|
|
64
78
|
"@codemirror/lang-yaml": ">=6.1.0",
|
|
79
|
+
"@foris/ai-agent": "workspace:*",
|
|
80
|
+
"@foris/avocado-core": "workspace:*",
|
|
81
|
+
"@foris/avocado-icons": "workspace:*",
|
|
82
|
+
"@foris/avocado-suite": "workspace:*",
|
|
65
83
|
"@uiw/react-codemirror": ">=4.23.0",
|
|
66
84
|
"axios": "1.8.4",
|
|
67
85
|
"jsonpath": ">=1.1.0",
|
|
@@ -72,19 +90,6 @@
|
|
|
72
90
|
"react-select-async-paginate": "0.7.3",
|
|
73
91
|
"recharts": ">=3.0.0",
|
|
74
92
|
"streamdown": ">=1.6.0",
|
|
75
|
-
"zustand": ">=4.0.0"
|
|
76
|
-
"@foris/ai-agent": "1.0.8",
|
|
77
|
-
"@foris/avocado-core": "1.3.0",
|
|
78
|
-
"@foris/avocado-icons": "1.16.6",
|
|
79
|
-
"@foris/avocado-suite": "1.8.12"
|
|
80
|
-
},
|
|
81
|
-
"scripts": {
|
|
82
|
-
"build": "tsc && vite build",
|
|
83
|
-
"test": "vitest run",
|
|
84
|
-
"test:watch": "vitest",
|
|
85
|
-
"coverage": "vitest run --coverage",
|
|
86
|
-
"build:analyze": "tsc && ANALYZE=true vite build",
|
|
87
|
-
"start:stubby": "stubby -d src/services/stubs/stubby-config.yml -w -s 8200 -q",
|
|
88
|
-
"start:stubby-examples": "stubby -d src/services/stubs/stubby-examples.yml -w -s 8300 -q"
|
|
93
|
+
"zustand": ">=4.0.0"
|
|
89
94
|
}
|
|
90
|
-
}
|
|
95
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { DynamicRoute } from '../../types';
|
|
3
|
-
export type NotFrontDynamicRouterProps = {
|
|
4
|
-
routes: DynamicRoute[];
|
|
5
|
-
renderPage: (sessionName: string) => ReactNode;
|
|
6
|
-
renderFallback?: () => ReactNode;
|
|
7
|
-
redirectTo?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function NotFrontDynamicRouter({ routes, renderPage, renderFallback, redirectTo, }: NotFrontDynamicRouterProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { normalizePathname } from './normalizePathname';
|
|
2
|
-
export { userCanAccessDynamicRoute } from './userCanAccessDynamicRoute';
|
|
3
|
-
export { pathBelongsToPrefix } from './pathBelongsToPrefix';
|
|
4
|
-
export { selectDynamicRoutesUnderPrefix } from './selectDynamicRoutesUnderPrefix';
|
|
5
|
-
export { stripPrefixFromPathname } from './stripPrefixFromPathname';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Single ownership predicate: a path belongs to a prefix when it is the prefix
|
|
3
|
-
* itself or any descendant of it. A static MFE owns the paths this returns `true`
|
|
4
|
-
* for; a fallback host (e.g. not-front) owns the complement.
|
|
5
|
-
*/
|
|
6
|
-
export declare function pathBelongsToPrefix(path: string, prefix: string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DynamicRouteDefinition } from '../../types/dynamicRouteDefinition.type';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the dynamic routes under a single static prefix, for a static MFE that
|
|
4
|
-
* owns a URL prefix (e.g. MOPs under `/mops`). Stays correct when a host has more
|
|
5
|
-
* than one static MFE with dynamic routes.
|
|
6
|
-
*
|
|
7
|
-
* Preserves input order; does not mutate the input.
|
|
8
|
-
*/
|
|
9
|
-
export declare function selectDynamicRoutesUnderPrefix(routes: DynamicRouteDefinition[], prefix: string): DynamicRouteDefinition[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the pathname relative to a host prefix, for routers mounted with
|
|
3
|
-
* `basename={prefix}`: `/` when it equals the prefix, the suffix (starting with
|
|
4
|
-
* `/`) when it is a descendant, otherwise the normalized pathname unchanged.
|
|
5
|
-
*/
|
|
6
|
-
export declare function stripPrefixFromPathname(absolutePath: string, prefix: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DynamicRouteDefinition } from '../../types/dynamicRouteDefinition.type';
|
|
2
|
-
/**
|
|
3
|
-
* Pure permission check for a dynamic route.
|
|
4
|
-
*
|
|
5
|
-
* - An empty `requiredPermissions` array means **open** (no permission needed).
|
|
6
|
-
* - Otherwise the user is granted access if they have **at least one** of the
|
|
7
|
-
* required permissions (OR semantics).
|
|
8
|
-
*/
|
|
9
|
-
export declare function userCanAccessDynamicRoute(permissions: string[], route: Pick<DynamicRouteDefinition, 'requiredPermissions'>): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|