@foris/avocado-not-front 8.7.2 → 8.8.0
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/src/components/switch/Switch.test.d.ts +1 -0
- package/dist/avocado-not-front/src/components/tabs/Tabs.d.ts +1 -1
- package/dist/avocado-not-front/src/components/tabs/Tabs.test-d.d.ts +1 -0
- package/dist/avocado-not-front/src/components/tooltip/Tooltip.test.d.ts +1 -0
- package/dist/avocado-not-front/src/services/not-front/nextUIService.d.ts +2 -2
- package/dist/avocado-not-front/src/services/not-front/nextUIService.test.d.ts +1 -0
- package/dist/avocado-not-front/src/services/not-front/requestOrder.d.ts +11 -0
- package/dist/avocado-not-front/src/services/not-front/requestOrder.test.d.ts +1 -0
- package/dist/avocado-not-front/src/store/useStore.d.ts +2 -2
- package/dist/avocado-not-front/src/types/components.type.d.ts +6 -8
- package/dist/avocado-not-front.es.js +1457 -1401
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/page.schema.json +144 -2
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,5 +3,5 @@ interface TabsNotFrontExtendedProps extends TabsNotFrontProps {
|
|
|
3
3
|
userFlow: string;
|
|
4
4
|
pageId: string;
|
|
5
5
|
}
|
|
6
|
-
declare const TabsNotFront: ({ userFlow, pageId, hash, items, activeIndex, className, responseKey, preserveHeight, }: TabsNotFrontExtendedProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const TabsNotFront: ({ userFlow, pageId, hash, items, activeIndex, className, id, responseKey, preserveHeight, "aria-label": ariaLabel, }: TabsNotFrontExtendedProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default TabsNotFront;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AxiosResponse } from 'axios';
|
|
2
|
-
import { ApiConfig } from '../../types';
|
|
3
|
-
export declare const nextUIService: (apiConfig: ApiConfig, userFlow: string, hash?: string, data?: {}, params?: {}) => Promise<AxiosResponse<
|
|
2
|
+
import type { ApiConfig, NextUIResponseData } from '../../types';
|
|
3
|
+
export declare const nextUIService: (apiConfig: ApiConfig, userFlow: string, hash?: string, data?: {}, params?: {}) => Promise<AxiosResponse<NextUIResponseData>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface UIRequest {
|
|
2
|
+
order: number;
|
|
3
|
+
finished: Promise<void>;
|
|
4
|
+
finish: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const beginUIRequest: (flow: string) => UIRequest;
|
|
7
|
+
export declare const finishUIRequest: (flow: string, request: UIRequest) => void;
|
|
8
|
+
export declare const registerUIResponse: (flow: string, request: UIRequest, response: unknown) => void;
|
|
9
|
+
/** Keep the final eligibility check and mutation together so newer requests cannot interleave. */
|
|
10
|
+
export declare const applyUIResponse: (flow: string, response: unknown, apply: () => void) => void | Promise<void>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,7 +14,7 @@ export type UserFlow = {
|
|
|
14
14
|
isDrawerOpen?: boolean;
|
|
15
15
|
};
|
|
16
16
|
export declare const useStore: import("zustand").UseBoundStore<import("zustand").StoreApi<NotFrontStore>>;
|
|
17
|
-
export declare const setNotFrontStore: (userFlowId: string, apiConfig: ApiConfig, page: PageContent, sessionState?: Record<string, unknown>, sessionId?: string) => void
|
|
17
|
+
export declare const setNotFrontStore: (userFlowId: string, apiConfig: ApiConfig, page: PageContent, sessionState?: Record<string, unknown>, sessionId?: string) => void | Promise<void>;
|
|
18
18
|
/**
|
|
19
19
|
* Clears the overlay for a specific userFlow.
|
|
20
20
|
* Useful for closing toasts, modals, or other overlay components.
|
|
@@ -29,7 +29,7 @@ export declare const clearOverlay: (userFlow: string) => void;
|
|
|
29
29
|
* @returns The current overlay content or null if no overlay is active
|
|
30
30
|
*/
|
|
31
31
|
export declare const getOverlay: (userFlow: string) => OverlayContent | null;
|
|
32
|
-
export declare const setPage: (userFlow: string, response: NextUIResponseData) => void
|
|
32
|
+
export declare const setPage: (userFlow: string, response: NextUIResponseData) => void | Promise<void>;
|
|
33
33
|
/**
|
|
34
34
|
* Updates the `entries` object of a specific userFlow in the store.
|
|
35
35
|
*
|
|
@@ -685,12 +685,15 @@ export interface TextareaNotFrontProps extends NotFrontBaseProps, Omit<TextareaP
|
|
|
685
685
|
export interface TabsItemNotFront {
|
|
686
686
|
label: string;
|
|
687
687
|
disabled?: boolean;
|
|
688
|
+
icon?: IconTypes;
|
|
689
|
+
count?: number;
|
|
688
690
|
components: NotFrontComponent[];
|
|
689
691
|
}
|
|
690
692
|
/**
|
|
691
693
|
* Interface for the props used in the TabsNotFront component.
|
|
694
|
+
* `actions` is omitted because panels and navigation come from the page JSON and the user flow.
|
|
692
695
|
*/
|
|
693
|
-
export interface TabsNotFrontProps extends NotFrontBaseProps, Omit<TabsProps, 'items' | 'onClick'> {
|
|
696
|
+
export interface TabsNotFrontProps extends NotFrontBaseProps, Omit<TabsProps, 'items' | 'onClick' | 'actions'> {
|
|
694
697
|
component: 'tabs';
|
|
695
698
|
items: TabsItemNotFront[];
|
|
696
699
|
}
|
|
@@ -1062,6 +1065,8 @@ export interface TooltipNotFrontProps extends NotFrontBaseProps {
|
|
|
1062
1065
|
content: NotFrontComponent[];
|
|
1063
1066
|
placement?: 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'left' | 'right';
|
|
1064
1067
|
notShowArrow?: boolean;
|
|
1068
|
+
/** `rich` wraps longer content on the surface color, for a help popover. */
|
|
1069
|
+
variant?: 'default' | 'rich';
|
|
1065
1070
|
visible?: boolean;
|
|
1066
1071
|
}
|
|
1067
1072
|
/**
|
|
@@ -1353,13 +1358,6 @@ export interface ModalNotFrontProps extends NotFrontBaseProps, ModalProps {
|
|
|
1353
1358
|
*/
|
|
1354
1359
|
footer: NotFrontComponent[];
|
|
1355
1360
|
}
|
|
1356
|
-
/** Suite `Stepper`: `items` are step labels only. */
|
|
1357
|
-
export interface StepperNotFrontProps extends NotFrontBaseProps {
|
|
1358
|
-
component: 'stepper';
|
|
1359
|
-
items: string[];
|
|
1360
|
-
itemActive: number;
|
|
1361
|
-
darkMode?: boolean;
|
|
1362
|
-
}
|
|
1363
1361
|
/**
|
|
1364
1362
|
* Suite `CardAccordion` props a JSON page definition cannot carry.
|
|
1365
1363
|
* `CardAccordion.test-d.ts` pins this union against the suite props.
|