gotrip-fx-transaction-form 1.0.199-dev → 1.0.201-dev

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gotrip-fx-transaction-form",
3
- "version": "1.0.199-dev",
3
+ "version": "1.0.201-dev",
4
4
  "description": "FX Transaction Form ES6 module",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -0,0 +1,6 @@
1
+ import { InsuranceContentBlock } from './types';
2
+ interface DynamicRendererProps {
3
+ blocks?: InsuranceContentBlock[];
4
+ }
5
+ export declare const DynamicRenderer: ({ blocks }: DynamicRendererProps) => import("react/jsx-runtime").JSX.Element | null;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { AccordionBlock as AccordionBlockType } from '../types';
2
+ interface AccordionBlockProps {
3
+ block: AccordionBlockType;
4
+ }
5
+ export declare const AccordionBlock: ({ block }: AccordionBlockProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ActionButtonBlock as ActionButtonBlockType } from '../types';
2
+ interface ActionButtonBlockProps {
3
+ block: ActionButtonBlockType;
4
+ }
5
+ export declare const ActionButtonBlock: ({ block }: ActionButtonBlockProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ContainerBlock as ContainerBlockType } from '../types';
2
+ interface ContainerBlockProps {
3
+ block: ContainerBlockType;
4
+ }
5
+ export declare const ContainerBlock: ({ block }: ContainerBlockProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { DataRowBlock as DataRowBlockType } from '../types';
2
+ interface DataRowBlockProps {
3
+ block: DataRowBlockType;
4
+ }
5
+ export declare const DataRowBlock: ({ block }: DataRowBlockProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { DividerBlock as DividerBlockType } from '../types';
2
+ interface DividerBlockProps {
3
+ block: DividerBlockType;
4
+ }
5
+ export declare const DividerBlock: ({ block }: DividerBlockProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ListGroupBlock as ListGroupBlockType } from '../types';
2
+ interface ListGroupBlockProps {
3
+ block: ListGroupBlockType;
4
+ }
5
+ export declare const ListGroupBlock: ({ block }: ListGroupBlockProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { TextBlock as TextBlockType } from '../types';
2
+ interface TextBlockProps {
3
+ block: TextBlockType;
4
+ }
5
+ export declare const TextBlock: ({ block }: TextBlockProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,64 @@
1
+ export type BlockType = 'accordion' | 'data_row' | 'text_block' | 'list_group' | 'divider' | 'action_button' | 'container';
2
+ export interface StyleBlock {
3
+ margin?: [number, number, number, number];
4
+ padding?: [number, number, number, number];
5
+ font_weight?: 'bold' | 'normal' | 'semibold' | 'medium';
6
+ font_style?: 'italic' | 'normal';
7
+ text_color?: string;
8
+ alignment?: 'left' | 'center' | 'right';
9
+ }
10
+ export interface BaseBlock {
11
+ type: BlockType;
12
+ styles?: StyleBlock;
13
+ }
14
+ export interface AccordionBlock extends BaseBlock {
15
+ type: 'accordion';
16
+ title: string;
17
+ value?: string;
18
+ is_expanded?: boolean;
19
+ children?: InsuranceContentBlock[];
20
+ }
21
+ export interface DataRowBlock extends BaseBlock {
22
+ type: 'data_row';
23
+ label: string;
24
+ value: string;
25
+ has_info?: boolean;
26
+ info_content?: string;
27
+ }
28
+ export interface TextBlock extends BaseBlock {
29
+ type: 'text_block';
30
+ content: string;
31
+ text_style?: 'h1' | 'h2' | 'h3' | 'body';
32
+ }
33
+ export interface ListGroupBlock extends BaseBlock {
34
+ type: 'list_group';
35
+ marker_type?: 'disc' | 'decimal' | 'roman';
36
+ items: Array<{
37
+ content: string;
38
+ }>;
39
+ }
40
+ export interface DividerBlock extends BaseBlock {
41
+ type: 'divider';
42
+ line_style?: 'solid' | 'dashed';
43
+ thickness?: number;
44
+ }
45
+ export interface ActionButtonBlock extends BaseBlock {
46
+ type: 'action_button';
47
+ label: string;
48
+ icon?: 'pdf_red' | string;
49
+ action: {
50
+ type: 'open_url';
51
+ payload: string;
52
+ };
53
+ }
54
+ export interface ContainerBlock extends BaseBlock {
55
+ type: 'container';
56
+ layout?: 'vertical' | 'horizontal';
57
+ children: InsuranceContentBlock[];
58
+ }
59
+ export type InsuranceContentBlock = AccordionBlock | DataRowBlock | TextBlock | ListGroupBlock | DividerBlock | ActionButtonBlock | ContainerBlock;
60
+ export interface InsuranceContent {
61
+ benefits?: InsuranceContentBlock[];
62
+ conditions?: InsuranceContentBlock[];
63
+ compensation?: InsuranceContentBlock[];
64
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Converts markdown-like rich text formatting to HTML
3
+ * Supports:
4
+ * - **text** -> <strong>text</strong> (bold)
5
+ * - _text_ -> <em>text</em> (italic)
6
+ */
7
+ export declare const parseRichText: (content: string) => string;
8
+ /**
9
+ * Safely renders rich text with React
10
+ * Returns an object suitable for dangerouslySetInnerHTML
11
+ */
12
+ export declare const getRichTextHtml: (content: string) => {
13
+ __html: string;
14
+ };
@@ -0,0 +1,6 @@
1
+ import { StyleBlock } from '../types';
2
+ import { SystemStyleObject } from '@chakra-ui/react';
3
+ /**
4
+ * Maps Insurance Content style block to Chakra UI system styles
5
+ */
6
+ export declare const mapStyles: (styles?: StyleBlock) => SystemStyleObject;
@@ -5,7 +5,8 @@ interface InsurancePlanFilterProps {
5
5
  onProviderChange: (providers: EInsuranceProviderType[]) => void;
6
6
  sortOrder: SortOrder;
7
7
  onSortChange: (order: SortOrder) => void;
8
+ allowedProviders?: EInsuranceProviderType[];
8
9
  disabled?: boolean;
9
10
  }
10
- export declare const InsurancePlanFilter: ({ selectedProviders, onProviderChange, sortOrder, onSortChange, disabled, }: InsurancePlanFilterProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const InsurancePlanFilter: ({ selectedProviders, onProviderChange, sortOrder, onSortChange, allowedProviders, disabled, }: InsurancePlanFilterProps) => import("react/jsx-runtime").JSX.Element;
11
12
  export {};