@fewbox/den-web 0.0.87 → 0.0.88
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/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Api/Google/index.d.ts +9 -0
- package/src/components/Auth/GoogleSignin/index.d.ts +12 -10
- package/src/components/web.d.ts +2 -5
- package/src/components/Api/GAPI/index.d.ts +0 -7
- package/src/components/View/VDesigner/VDesignerConnection/index.d.ts +0 -10
- package/src/components/View/VDesigner/VDesignerElement/index.d.ts +0 -11
- package/src/components/View/VDesigner/VDesignerGroup/index.d.ts +0 -10
- package/src/components/View/VDesigner/VDesignerNode/index.d.ts +0 -68
- package/src/components/View/VDesigner/index.d.ts +0 -35
- package/src/components/View/VImage/Web/index.d.ts +0 -6
- package/src/components/View/VInput/VBase64File/Web/index.d.ts +0 -10
- package/src/components/View/VLink/Web/index.d.ts +0 -6
- package/src/fewbox/index.d.ts +0 -26
package/src/components/web.d.ts
CHANGED
|
@@ -63,7 +63,6 @@ export { default as YWrapEvenly } from './Layout/YWrapEvenly';
|
|
|
63
63
|
export { YCrossType } from './Layout/YBase';
|
|
64
64
|
export { default as Base, IBaseProps, IBaseStates, IChildrenProps, IBaseReturn } from './Engine/Base';
|
|
65
65
|
export { default as VBackground, BackgroundPositionType } from './View/VBackground';
|
|
66
|
-
export { default as VImage } from './View/VImage/Web';
|
|
67
66
|
export { default as VForm, HandleSubmitCategory } from './View/VForm';
|
|
68
67
|
export { default as VActionForm } from './View/VActionForm';
|
|
69
68
|
export { InputExtensionItem } from './View/VInput';
|
|
@@ -73,7 +72,6 @@ export { default as VDate } from './View/VInput/VDate';
|
|
|
73
72
|
export { default as VDatetimeLocal } from './View/VInput/VDatetimeLocal';
|
|
74
73
|
export { default as VEmail } from './View/VInput/VEmail';
|
|
75
74
|
export { default as VFile, FileCategory } from './View/VInput/VFile';
|
|
76
|
-
export { default as VBase64File } from './View/VInput/VBase64File/Web';
|
|
77
75
|
export { default as VMonth } from './View/VInput/VMonth';
|
|
78
76
|
export { default as VNumber } from './View/VInput/VNumber';
|
|
79
77
|
export { default as VPassword } from './View/VInput/VPassword';
|
|
@@ -95,7 +93,6 @@ export { default as VSvg, SvgCategory } from './View/VSvg';
|
|
|
95
93
|
export { default as VChromeExtensionValidator, ExtensionStatus } from './View/VChromeExtensionValidator';
|
|
96
94
|
export { default as VBoundary } from './View/VBoundary';
|
|
97
95
|
export { default as VHyperlink, HyperlinkCategory } from './View/VHyperlink';
|
|
98
|
-
export { default as VLink } from './View/VLink/Web';
|
|
99
96
|
export { default as VLabel, LabelCategory, LabelType, LabelAlignType } from './View/VLabel';
|
|
100
97
|
export { default as VText, TextCategory, TextAlignType } from './View/VText';
|
|
101
98
|
export { default as VTextArea } from './View/VTextArea';
|
|
@@ -115,9 +112,9 @@ export { default as VSection } from './View/VSection';
|
|
|
115
112
|
export { default as VMask } from './View/VMask';
|
|
116
113
|
export { default as VFrame } from './View/VFrame';
|
|
117
114
|
export { default as GA4NextJS } from './Analyze/GA4NextJS';
|
|
118
|
-
export { default as
|
|
115
|
+
export { default as Google } from './Api/Google';
|
|
119
116
|
export { default as FigmaSignin } from './Auth/FigmaSignin';
|
|
120
|
-
export { default as GoogleSignin,
|
|
117
|
+
export { default as GoogleSignin, GoogleSigninCategory } from './Auth/GoogleSignin';
|
|
121
118
|
export { default as WeComSignin } from './Auth/WeComSignin';
|
|
122
119
|
export { IUserProfile, parseJWT } from './Auth/util';
|
|
123
120
|
export { ga4NextJSScope, ga4NextJSEvent, ga4NextJSInit, ga4NextJSPageview, ga4NextJSSetFieldsObject, IGAEvent, IGA4Options, ICustomGA4Options, IGAOptions, ICustomGAOptions, IGTagOptions, ICustomGTagOptions, IGFieldsObject, GAEventTransportType } from './Analyze/util';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import VDesignerNode, { DesignerConnectionPointType, IVDesignerNodePorps } from "../VDesignerNode";
|
|
2
|
-
export interface IVDesignerConnectionProps extends IVDesignerNodePorps {
|
|
3
|
-
upstream: string;
|
|
4
|
-
downstream: string;
|
|
5
|
-
isAnimated?: boolean;
|
|
6
|
-
upstreamPointType?: DesignerConnectionPointType;
|
|
7
|
-
downstreamPointType?: DesignerConnectionPointType;
|
|
8
|
-
}
|
|
9
|
-
export default class VDesignerConnection extends VDesignerNode<IVDesignerConnectionProps> {
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import VDesignerNode, { DesignerConnectionPointType, IVDesignerNodePorps } from "../VDesignerNode";
|
|
2
|
-
export interface IVDesignerElementProps extends IVDesignerNodePorps {
|
|
3
|
-
connectionPointType?: DesignerConnectionPointType;
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
width: number;
|
|
7
|
-
content: JSX.Element | string;
|
|
8
|
-
isGlobalStyle?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export default class VDesignerElement extends VDesignerNode<IVDesignerElementProps> {
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import VDesignerNode, { DesignerConnectionPointType, IVDesignerNodePorps } from "../VDesignerNode";
|
|
2
|
-
import { IVDesignerElementProps } from "../VDesignerElement";
|
|
3
|
-
export interface IVDesignerGroupProps extends IVDesignerNodePorps {
|
|
4
|
-
connectionPointType?: DesignerConnectionPointType;
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
children: (IVDesignerElementProps | IVDesignerGroupProps)[];
|
|
8
|
-
}
|
|
9
|
-
export default class VDesignerGroup extends VDesignerNode<IVDesignerGroupProps> {
|
|
10
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import Konva from "konva";
|
|
2
|
-
import { IVDesignerGroupProps } from "../VDesignerGroup";
|
|
3
|
-
import { IVDesignerElementProps } from "../VDesignerElement";
|
|
4
|
-
import { IVDesignerConnectionProps } from "../VDesignerConnection";
|
|
5
|
-
export interface ClientReact {
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
}
|
|
11
|
-
export interface PositionDictionary {
|
|
12
|
-
[id: number]: {
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare enum DesignerNodeType {
|
|
18
|
-
Element = "element",
|
|
19
|
-
Group = "group",
|
|
20
|
-
Connection = "connection"
|
|
21
|
-
}
|
|
22
|
-
export declare enum DesignerConnectionPointType {
|
|
23
|
-
None = 0,
|
|
24
|
-
Top = 2,
|
|
25
|
-
Right = 4,
|
|
26
|
-
Bottom = 8,
|
|
27
|
-
Left = 16,
|
|
28
|
-
LeftTop = 32,
|
|
29
|
-
RightTop = 64,
|
|
30
|
-
LeftBottom = 128,
|
|
31
|
-
RightBottom = 256,
|
|
32
|
-
Center = 512,
|
|
33
|
-
All = 1022
|
|
34
|
-
}
|
|
35
|
-
export declare const getConnectionPointType: (name: string) => DesignerConnectionPointType.Top | DesignerConnectionPointType.Right | DesignerConnectionPointType.Bottom | DesignerConnectionPointType.Left | DesignerConnectionPointType.LeftTop | DesignerConnectionPointType.RightTop | DesignerConnectionPointType.LeftBottom | DesignerConnectionPointType.RightBottom | DesignerConnectionPointType.Center;
|
|
36
|
-
export interface IVDesignerNodePorps {
|
|
37
|
-
id: string;
|
|
38
|
-
type: DesignerNodeType;
|
|
39
|
-
zIndex?: number;
|
|
40
|
-
onClick?: (sender: Konva.Group) => void;
|
|
41
|
-
}
|
|
42
|
-
export interface IVDesignerNode<P extends IVDesignerNodePorps> {
|
|
43
|
-
props: P;
|
|
44
|
-
draw: () => void;
|
|
45
|
-
}
|
|
46
|
-
export default class VDesignerNode<P extends IVDesignerGroupProps | IVDesignerElementProps | IVDesignerConnectionProps> implements IVDesignerNode<P> {
|
|
47
|
-
private rootContainer;
|
|
48
|
-
private layer;
|
|
49
|
-
props: P;
|
|
50
|
-
private startConnectPointCallback?;
|
|
51
|
-
private selectedColor;
|
|
52
|
-
private normalColor;
|
|
53
|
-
private connectionColor;
|
|
54
|
-
constructor(layer: Konva.Layer, props: P, selectedColor: string, normalColor: string, connectionColor: string, startConnectPointCallback?: (id: string, pointType: DesignerConnectionPointType) => void);
|
|
55
|
-
private buildElement;
|
|
56
|
-
private buildAnchor;
|
|
57
|
-
private buildControlAnchor;
|
|
58
|
-
private buildAnimated;
|
|
59
|
-
private getPosition;
|
|
60
|
-
private getAngle;
|
|
61
|
-
private getAutoPosition;
|
|
62
|
-
private buildConnection;
|
|
63
|
-
private bindPointEvent;
|
|
64
|
-
private buildConnectionPoints;
|
|
65
|
-
private getPointPositions;
|
|
66
|
-
private drawGroup;
|
|
67
|
-
draw(): void;
|
|
68
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
-
import { IVDesignerGroupProps } from './VDesignerGroup';
|
|
3
|
-
import { IVDesignerElementProps } from './VDesignerElement';
|
|
4
|
-
import { Property } from 'csstype';
|
|
5
|
-
import { IVDesignerConnectionProps } from './VDesignerConnection';
|
|
6
|
-
import { IVTreeNode } from '../VTree';
|
|
7
|
-
type TLength = (string & {}) | 0;
|
|
8
|
-
export interface StructureNode extends IVTreeNode {
|
|
9
|
-
}
|
|
10
|
-
export interface IVDesignerProps extends IBaseProps {
|
|
11
|
-
downloadIcon?: JSX.Element;
|
|
12
|
-
clearIcon?: JSX.Element;
|
|
13
|
-
debugIcon?: JSX.Element;
|
|
14
|
-
leftIcon?: JSX.Element;
|
|
15
|
-
rightIcon?: JSX.Element;
|
|
16
|
-
closeIcon?: JSX.Element;
|
|
17
|
-
deleteIcon?: JSX.Element;
|
|
18
|
-
toolboxCaption: JSX.Element | string;
|
|
19
|
-
contextMenuCaption: JSX.Element | string;
|
|
20
|
-
deleteCaption: JSX.Element | string;
|
|
21
|
-
selectedColor: string;
|
|
22
|
-
normalColor: string;
|
|
23
|
-
connectionColor: string;
|
|
24
|
-
containerName?: string;
|
|
25
|
-
nodeItems?: (IVDesignerElementProps | IVDesignerGroupProps | IVDesignerConnectionProps)[];
|
|
26
|
-
isAutoLayout?: boolean;
|
|
27
|
-
autosizeHeight: Property.Height<TLength>;
|
|
28
|
-
toolbox?: JSX.Element;
|
|
29
|
-
}
|
|
30
|
-
export interface IDesignerStates {
|
|
31
|
-
isToolboxExtend: boolean;
|
|
32
|
-
debugNode?: StructureNode;
|
|
33
|
-
}
|
|
34
|
-
declare const VDesigner: (props: IVDesignerProps) => JSX.Element;
|
|
35
|
-
export default VDesigner;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IBaseInputProps } from "../..";
|
|
2
|
-
export interface IVBase64FileProps extends IBaseInputProps {
|
|
3
|
-
fileIcon?: JSX.Element;
|
|
4
|
-
base64Image: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IVBase64FileStates {
|
|
7
|
-
base64Image: string;
|
|
8
|
-
}
|
|
9
|
-
declare const VBase64File: (props: IVBase64FileProps) => JSX.Element;
|
|
10
|
-
export default VBase64File;
|
package/src/fewbox/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface IError {
|
|
3
|
-
summary: string;
|
|
4
|
-
data: any;
|
|
5
|
-
}
|
|
6
|
-
export interface IFewBoxOptions {
|
|
7
|
-
getToken: () => string;
|
|
8
|
-
getAppSettings: () => any;
|
|
9
|
-
getLanguages: (lang?: string) => any;
|
|
10
|
-
getHeaders?: () => any;
|
|
11
|
-
handleIsNotSuccessful: (data: any) => void;
|
|
12
|
-
handleError: (error: IError) => void;
|
|
13
|
-
handleNetworkError: (error: IError) => void;
|
|
14
|
-
isDebug: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const boot: (options: IFewBoxOptions) => void;
|
|
17
|
-
export interface IBootProps {
|
|
18
|
-
options: IFewBoxOptions;
|
|
19
|
-
}
|
|
20
|
-
export declare class BootClass {
|
|
21
|
-
private static instance;
|
|
22
|
-
options: IFewBoxOptions;
|
|
23
|
-
private constructor();
|
|
24
|
-
static getInstance(): BootClass;
|
|
25
|
-
}
|
|
26
|
-
export declare const Boot: (props: IBootProps) => React.JSX.Element;
|