@squeed/flow-sdk 2.0.3 → 2.0.5
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 +16 -4
- package/dist/index.cjs +16 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.js +6065 -5980
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -11,8 +11,6 @@ import { ReactNode } from 'react';
|
|
|
11
11
|
import { ReactPortal } from 'react';
|
|
12
12
|
import { RefAttributes } from 'react';
|
|
13
13
|
import { RefObject } from 'react';
|
|
14
|
-
import { StyledComponent } from '@emotion/styled';
|
|
15
|
-
import { Theme } from '@emotion/react';
|
|
16
14
|
|
|
17
15
|
/** Add a child under `parentAddress`. Returns the new node's address. */
|
|
18
16
|
export declare function addChild(json: SqueedJson, parentAddress: string, child: any, key?: string): {
|
|
@@ -139,6 +137,7 @@ export declare const contentObjTheme: (color: any) => {
|
|
|
139
137
|
|
|
140
138
|
declare interface ContractPort {
|
|
141
139
|
kind: "input" | "config" | "output" | "error";
|
|
140
|
+
label?: string;
|
|
142
141
|
resourceType?: string;
|
|
143
142
|
multiple?: boolean;
|
|
144
143
|
}
|
|
@@ -538,7 +537,7 @@ export declare interface FlowDiagramNode {
|
|
|
538
537
|
export declare interface FlowDiagramProps {
|
|
539
538
|
/** Show the loader while the host fetches data; initial compilation waits until false. */
|
|
540
539
|
loading?: boolean;
|
|
541
|
-
/** Custom loading content.
|
|
540
|
+
/** Custom loading content while fetching or preparing JSON. Set null to hide the overlay; aria-busy and the interaction lock remain active. */
|
|
542
541
|
loader?: React.ReactNode;
|
|
543
542
|
/** Title shown on the root node */
|
|
544
543
|
title?: string;
|
|
@@ -635,10 +634,11 @@ export declare interface FlowNodeCreationRequest {
|
|
|
635
634
|
};
|
|
636
635
|
}
|
|
637
636
|
|
|
638
|
-
export declare function FlowPort({ id, role, side, position, placement, children, style, }: FlowPortProps): JSX_2.Element;
|
|
637
|
+
export declare function FlowPort({ id, label, role, side, position, placement, children, style, }: FlowPortProps): JSX_2.Element;
|
|
639
638
|
|
|
640
639
|
export declare interface FlowPortProps {
|
|
641
640
|
id: string;
|
|
641
|
+
label?: string;
|
|
642
642
|
role: "source" | "target";
|
|
643
643
|
side?: PortSide;
|
|
644
644
|
position?: number;
|
|
@@ -1138,10 +1138,7 @@ export declare const ToolbarIconButton: ForwardRefExoticComponent<Omit<IconButto
|
|
|
1138
1138
|
icon: React.ReactElement;
|
|
1139
1139
|
}, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
1140
1140
|
|
|
1141
|
-
export declare const ToolbarRangeInput:
|
|
1142
|
-
theme?: Theme;
|
|
1143
|
-
as?: React.ElementType;
|
|
1144
|
-
}, DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
1141
|
+
export declare const ToolbarRangeInput: ForwardRefExoticComponent<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
1145
1142
|
|
|
1146
1143
|
export declare function ToolbarScrollContainer({ children, background, border, }: {
|
|
1147
1144
|
children: ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,8 +11,6 @@ import { ReactNode } from 'react';
|
|
|
11
11
|
import { ReactPortal } from 'react';
|
|
12
12
|
import { RefAttributes } from 'react';
|
|
13
13
|
import { RefObject } from 'react';
|
|
14
|
-
import { StyledComponent } from '@emotion/styled';
|
|
15
|
-
import { Theme } from '@emotion/react';
|
|
16
14
|
|
|
17
15
|
/** Add a child under `parentAddress`. Returns the new node's address. */
|
|
18
16
|
export declare function addChild(json: SqueedJson, parentAddress: string, child: any, key?: string): {
|
|
@@ -139,6 +137,7 @@ export declare const contentObjTheme: (color: any) => {
|
|
|
139
137
|
|
|
140
138
|
declare interface ContractPort {
|
|
141
139
|
kind: "input" | "config" | "output" | "error";
|
|
140
|
+
label?: string;
|
|
142
141
|
resourceType?: string;
|
|
143
142
|
multiple?: boolean;
|
|
144
143
|
}
|
|
@@ -538,7 +537,7 @@ export declare interface FlowDiagramNode {
|
|
|
538
537
|
export declare interface FlowDiagramProps {
|
|
539
538
|
/** Show the loader while the host fetches data; initial compilation waits until false. */
|
|
540
539
|
loading?: boolean;
|
|
541
|
-
/** Custom loading content.
|
|
540
|
+
/** Custom loading content while fetching or preparing JSON. Set null to hide the overlay; aria-busy and the interaction lock remain active. */
|
|
542
541
|
loader?: React.ReactNode;
|
|
543
542
|
/** Title shown on the root node */
|
|
544
543
|
title?: string;
|
|
@@ -635,10 +634,11 @@ export declare interface FlowNodeCreationRequest {
|
|
|
635
634
|
};
|
|
636
635
|
}
|
|
637
636
|
|
|
638
|
-
export declare function FlowPort({ id, role, side, position, placement, children, style, }: FlowPortProps): JSX_2.Element;
|
|
637
|
+
export declare function FlowPort({ id, label, role, side, position, placement, children, style, }: FlowPortProps): JSX_2.Element;
|
|
639
638
|
|
|
640
639
|
export declare interface FlowPortProps {
|
|
641
640
|
id: string;
|
|
641
|
+
label?: string;
|
|
642
642
|
role: "source" | "target";
|
|
643
643
|
side?: PortSide;
|
|
644
644
|
position?: number;
|
|
@@ -1138,10 +1138,7 @@ export declare const ToolbarIconButton: ForwardRefExoticComponent<Omit<IconButto
|
|
|
1138
1138
|
icon: React.ReactElement;
|
|
1139
1139
|
}, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
1140
1140
|
|
|
1141
|
-
export declare const ToolbarRangeInput:
|
|
1142
|
-
theme?: Theme;
|
|
1143
|
-
as?: React.ElementType;
|
|
1144
|
-
}, DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
1141
|
+
export declare const ToolbarRangeInput: ForwardRefExoticComponent<Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
1145
1142
|
|
|
1146
1143
|
export declare function ToolbarScrollContainer({ children, background, border, }: {
|
|
1147
1144
|
children: ReactNode;
|