@fewbox/den 0.0.99 → 0.1.17
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-core.d.ts +5 -0
- package/index.css +1 -12226
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +4 -13
- package/src/components/Auth/FigmaSignin/index.d.ts +3 -3
- package/src/components/Auth/GoogleGrant/index.d.ts +3 -3
- package/src/components/Auth/GoogleSignin/index.d.ts +1 -1
- package/src/components/Auth/WeComSignin/index.d.ts +3 -3
- package/src/components/Debug/index.d.ts +3 -3
- package/src/components/Engine/Base/NativeAttributeMap.d.ts +2 -0
- package/src/components/Engine/Base/index.d.ts +7 -179
- package/src/components/Engine/index.d.ts +3 -3
- package/src/components/Layout/Display/index.d.ts +3 -3
- package/src/components/Layout/Dock/index.d.ts +18 -11
- package/src/components/Layout/Flex/index.d.ts +3 -2
- package/src/components/Layout/FlexItem/index.d.ts +2 -2
- package/src/components/Layout/Position/index.d.ts +3 -4
- package/src/components/Layout/PositionArea/index.d.ts +3 -3
- package/src/components/Layout/Responsive/index.d.ts +3 -3
- package/src/components/Layout/SBaseline/index.d.ts +3 -3
- package/src/components/Layout/SBottom/index.d.ts +3 -3
- package/src/components/Layout/SCenter/index.d.ts +3 -3
- package/src/components/Layout/SLeft/index.d.ts +3 -3
- package/src/components/Layout/SMiddle/index.d.ts +3 -3
- package/src/components/Layout/SRight/index.d.ts +3 -3
- package/src/components/Layout/SStretch/index.d.ts +3 -3
- package/src/components/Layout/STop/index.d.ts +3 -3
- package/src/components/Layout/X/index.d.ts +1 -1
- package/src/components/Layout/XAround/index.d.ts +1 -1
- package/src/components/Layout/XAutoBoth/index.d.ts +1 -1
- package/src/components/Layout/XAutoCenter/index.d.ts +1 -1
- package/src/components/Layout/XAutoLeft/index.d.ts +1 -1
- package/src/components/Layout/XAutoLefts/index.d.ts +1 -1
- package/src/components/Layout/XAutoRight/index.d.ts +1 -1
- package/src/components/Layout/XAutoRights/index.d.ts +1 -1
- package/src/components/Layout/XBase/index.d.ts +1 -3
- package/src/components/Layout/XBetween/index.d.ts +1 -1
- package/src/components/Layout/XCenter/index.d.ts +1 -1
- package/src/components/Layout/XCustom/index.d.ts +1 -1
- package/src/components/Layout/XCustomBoth/index.d.ts +1 -1
- package/src/components/Layout/XEvenly/index.d.ts +1 -1
- package/src/components/Layout/XLeft/index.d.ts +1 -1
- package/src/components/Layout/XRight/index.d.ts +1 -1
- package/src/components/Layout/XWrapAround/index.d.ts +1 -1
- package/src/components/Layout/XWrapBetween/index.d.ts +1 -1
- package/src/components/Layout/XWrapBottom/index.d.ts +1 -1
- package/src/components/Layout/XWrapEvenly/index.d.ts +1 -1
- package/src/components/Layout/XWrapMiddle/index.d.ts +1 -1
- package/src/components/Layout/XWrapTop/index.d.ts +1 -1
- package/src/components/Layout/Y/index.d.ts +1 -1
- package/src/components/Layout/YAround/index.d.ts +1 -1
- package/src/components/Layout/YAutoBoth/index.d.ts +1 -1
- package/src/components/Layout/YAutoBottom/index.d.ts +1 -1
- package/src/components/Layout/YAutoBottoms/index.d.ts +1 -1
- package/src/components/Layout/YAutoCenter/index.d.ts +1 -1
- package/src/components/Layout/YAutoTop/index.d.ts +1 -1
- package/src/components/Layout/YAutoTops/index.d.ts +1 -1
- package/src/components/Layout/YBase/index.d.ts +1 -1
- package/src/components/Layout/YBetween/index.d.ts +1 -1
- package/src/components/Layout/YBottom/index.d.ts +1 -1
- package/src/components/Layout/YCustom/index.d.ts +1 -1
- package/src/components/Layout/YCustomBoth/index.d.ts +1 -1
- package/src/components/Layout/YEvenly/index.d.ts +1 -1
- package/src/components/Layout/YMiddle/index.d.ts +1 -1
- package/src/components/Layout/YTop/index.d.ts +1 -1
- package/src/components/Layout/YWrapAround/index.d.ts +1 -1
- package/src/components/Layout/YWrapBetween/index.d.ts +1 -1
- package/src/components/Layout/YWrapCenter/index.d.ts +1 -1
- package/src/components/Layout/YWrapEvenly/index.d.ts +1 -1
- package/src/components/Layout/YWrapLeft/index.d.ts +1 -1
- package/src/components/Layout/YWrapRight/index.d.ts +1 -1
- package/src/components/View/VActionForm/index.d.ts +3 -6
- package/src/components/View/VAnimation/index.d.ts +3 -3
- package/src/components/View/VAudio/index.d.ts +2 -2
- package/src/components/View/VAvatar/index.d.ts +4 -3
- package/src/components/View/VBackground/index.d.ts +1 -1
- package/src/components/View/VBadge/index.d.ts +2 -2
- package/src/components/View/VBlock/index.d.ts +5 -5
- package/src/components/View/VBoundary/index.d.ts +1 -3
- package/src/components/View/VCard/index.d.ts +3 -3
- package/src/components/View/VCardMedia/index.d.ts +5 -5
- package/src/components/View/VCardSocial/index.d.ts +9 -9
- package/src/components/View/VCardWindow/index.d.ts +1 -1
- package/src/components/View/VChromeExtensionValidator/index.d.ts +9 -11
- package/src/components/View/VFooter/index.d.ts +2 -2
- package/src/components/View/VForm/index.d.ts +3 -3
- package/src/components/View/VFrame/index.d.ts +1 -3
- package/src/components/View/VGoogleFont/index.d.ts +1 -1
- package/src/components/View/VHR/index.d.ts +2 -2
- package/src/components/View/VHeader/index.d.ts +2 -2
- package/src/components/View/VHyperlink/index.d.ts +2 -2
- package/src/components/View/VImage/index.d.ts +13 -0
- package/src/components/View/VInput/VBase64File/{App/index.d.ts → index.d.ts} +3 -3
- package/src/components/View/VInput/VCheckBox/index.d.ts +1 -1
- package/src/components/View/VInput/VColor/index.d.ts +1 -1
- package/src/components/View/VInput/VDate/index.d.ts +1 -1
- package/src/components/View/VInput/VDatetimeLocal/index.d.ts +1 -1
- package/src/components/View/VInput/VDropdown/index.d.ts +11 -12
- package/src/components/View/VInput/VEmail/index.d.ts +1 -1
- package/src/components/View/VInput/VFile/index.d.ts +12 -14
- package/src/components/View/VInput/VGroup/index.d.ts +2 -3
- package/src/components/View/VInput/VHidden/index.d.ts +1 -2
- package/src/components/View/VInput/VMonth/index.d.ts +1 -1
- package/src/components/View/VInput/VNumber/index.d.ts +1 -1
- package/src/components/View/VInput/VPassword/index.d.ts +1 -1
- package/src/components/View/VInput/VRadio/index.d.ts +1 -1
- package/src/components/View/VInput/VRange/index.d.ts +1 -1
- package/src/components/View/VInput/VSearch/index.d.ts +1 -1
- package/src/components/View/VInput/VSubmit/index.d.ts +2 -2
- package/src/components/View/VInput/VSubmitWrapper/index.d.ts +2 -2
- package/src/components/View/VInput/VTel/index.d.ts +1 -1
- package/src/components/View/VInput/VTextBox/index.d.ts +1 -3
- package/src/components/View/VInput/VTime/index.d.ts +1 -1
- package/src/components/View/VInput/VUrl/index.d.ts +1 -1
- package/src/components/View/VInput/VWeek/index.d.ts +1 -1
- package/src/components/View/VInput/index.d.ts +9 -21
- package/src/components/View/VLabel/index.d.ts +6 -10
- package/src/components/View/VLoading/index.d.ts +3 -3
- package/src/components/View/VMain/index.d.ts +2 -2
- package/src/components/View/VMask/index.d.ts +1 -1
- package/src/components/View/VPhoto/index.d.ts +1 -1
- package/src/components/View/VRoot/index.d.ts +2 -4
- package/src/components/View/VSection/index.d.ts +2 -2
- package/src/components/View/VSelect/index.d.ts +2 -2
- package/src/components/View/VShadow/index.d.ts +1 -1
- package/src/components/View/VShape/VEllipse/index.d.ts +1 -1
- package/src/components/View/VShape/VLine/index.d.ts +1 -1
- package/src/components/View/VShape/VRectangle/index.d.ts +1 -1
- package/src/components/View/VStack/index.d.ts +1 -1
- package/src/components/View/VSvg/index.d.ts +1 -2
- package/src/components/View/VSwitch/index.d.ts +2 -2
- package/src/components/View/VTemplate/index.d.ts +2 -2
- package/src/components/View/VText/index.d.ts +6 -5
- package/src/components/View/VTextArea/index.d.ts +3 -6
- package/src/components/View/VTheme/index.d.ts +4 -5
- package/src/components/View/VTooltip/index.d.ts +3 -7
- package/src/components/View/VTree/Block/index.d.ts +4 -4
- package/src/components/View/VTree/index.d.ts +4 -4
- package/src/components/View/VVideo/index.d.ts +2 -2
- package/src/components/View/VZone/index.d.ts +1 -1
- package/src/components/{app.d.ts → core.d.ts} +26 -44
- package/src/components/web.d.ts +9 -0
- package/templates/FEWBOX.md +8 -9
- package/index-app.d.ts +0 -15
- package/src/action/index.d.ts +0 -9
- package/src/components/Analyze/GA4/index.d.ts +0 -9
- package/src/components/Analyze/GA4NextJS/index.d.ts +0 -5
- package/src/components/Analyze/util.d.ts +0 -115
- package/src/components/Engine/BaseComponent/index.d.ts +0 -9
- package/src/components/Layout/DockBak/index.d.ts +0 -24
- package/src/components/View/VButton/index.d.ts +0 -17
- package/src/components/View/VDynamic/index.d.ts +0 -7
- package/src/components/View/VImage/App/index.d.ts +0 -16
- package/src/components/View/VLink/App/index.d.ts +0 -6
- package/src/components/View/VPaypal/index.d.ts +0 -10
- package/src/components/View/VPureRoot/index.d.ts +0 -7
- package/src/fewbox/index.d.ts +0 -27
- package/src/language/index.d.ts +0 -5
- package/src/network/FormHeaders.d.ts +0 -2
- package/src/network/IGraphQL.d.ts +0 -6
- package/src/network/JsonHeaders.d.ts +0 -5
- package/src/network/Network.d.ts +0 -45
- package/src/network/NetworkObservableBase.d.ts +0 -13
- package/src/network/StreamObservableBase.d.ts +0 -11
- package/src/network/UploadHeaders.d.ts +0 -5
- package/src/network/WS.d.ts +0 -11
- package/src/network/ajax/default/Delete.d.ts +0 -5
- package/src/network/ajax/default/DeleteText.d.ts +0 -5
- package/src/network/ajax/default/Get.d.ts +0 -5
- package/src/network/ajax/default/GetLocal.d.ts +0 -5
- package/src/network/ajax/default/GetText.d.ts +0 -5
- package/src/network/ajax/default/NetworkObservableAjax.d.ts +0 -7
- package/src/network/ajax/default/Patch.d.ts +0 -5
- package/src/network/ajax/default/PatchText.d.ts +0 -5
- package/src/network/ajax/default/Post.d.ts +0 -5
- package/src/network/ajax/default/PostText.d.ts +0 -5
- package/src/network/ajax/default/Put.d.ts +0 -5
- package/src/network/ajax/default/PutText.d.ts +0 -5
- package/src/network/ajax/external/DeleteExternal.d.ts +0 -5
- package/src/network/ajax/external/DeleteTextExternal.d.ts +0 -5
- package/src/network/ajax/external/GetExternal.d.ts +0 -5
- package/src/network/ajax/external/GetTextExternal.d.ts +0 -5
- package/src/network/ajax/external/NetworkObservableAjaxExternal.d.ts +0 -8
- package/src/network/ajax/external/PatchExternal.d.ts +0 -5
- package/src/network/ajax/external/PatchTextExternal.d.ts +0 -5
- package/src/network/ajax/external/PostExternal.d.ts +0 -5
- package/src/network/ajax/external/PostTextExternal.d.ts +0 -5
- package/src/network/ajax/external/PutExternal.d.ts +0 -5
- package/src/network/ajax/external/PutTextExternal.d.ts +0 -5
- package/src/network/fetch/default/DeleteFetch.d.ts +0 -5
- package/src/network/fetch/default/GetFetch.d.ts +0 -5
- package/src/network/fetch/default/NetworkObservableFetch.d.ts +0 -7
- package/src/network/fetch/default/PatchFetch.d.ts +0 -5
- package/src/network/fetch/default/PostFetch.d.ts +0 -5
- package/src/network/fetch/default/PutFetch.d.ts +0 -5
- package/src/network/fetch/external/GetFetchExternal.d.ts +0 -5
- package/src/network/fetch/external/NetworkObservableFetchExternal.d.ts +0 -8
- package/src/network/fetch/external/PatchFetchExternal.d.ts +0 -5
- package/src/network/fetch/external/PostFetchExternal.d.ts +0 -5
- package/src/network/fetch/external/PutFetchExternal.d.ts +0 -5
- package/src/network/graphql/default/GQL.d.ts +0 -6
- package/src/network/graphql/default/GQLUpload.d.ts +0 -6
- package/src/network/graphql/default/NetworkObservableGQL.d.ts +0 -7
- package/src/network/graphql/external/GQLExternal.d.ts +0 -6
- package/src/network/graphql/external/GQLExternalUpload.d.ts +0 -6
- package/src/network/graphql/external/NetworkObservableGQLExternal.d.ts +0 -7
- package/src/network/index.d.ts +0 -46
- package/src/network/sse/default/GetSSE.d.ts +0 -5
- package/src/network/sse/default/PostSSE.d.ts +0 -5
- package/src/network/sse/default/StreamObservableSSE.d.ts +0 -5
- package/src/network/sse/external/GetSSEExternal.d.ts +0 -5
- package/src/network/sse/external/PostSSEExternal.d.ts +0 -5
- package/src/network/sse/external/StreamObservableSSEExternal.d.ts +0 -6
- package/src/network/util.d.ts +0 -4
|
@@ -2,14 +2,14 @@ import { IBaseProps } from '../../Engine/Base';
|
|
|
2
2
|
export interface IVTreeNode {
|
|
3
3
|
key: string;
|
|
4
4
|
name: string;
|
|
5
|
-
icon?: JSX.Element;
|
|
5
|
+
icon?: React.JSX.Element;
|
|
6
6
|
children?: IVTreeNode[];
|
|
7
7
|
}
|
|
8
8
|
export interface IVTreeProps extends IBaseProps {
|
|
9
9
|
rootNode: IVTreeNode;
|
|
10
10
|
isExpand?: boolean;
|
|
11
|
-
expandIcon?: JSX.Element;
|
|
12
|
-
collapseIcon?: JSX.Element;
|
|
11
|
+
expandIcon?: React.JSX.Element;
|
|
12
|
+
collapseIcon?: React.JSX.Element;
|
|
13
13
|
}
|
|
14
|
-
declare const VTree: (props: IVTreeProps) => JSX.Element;
|
|
14
|
+
declare const VTree: (props: IVTreeProps) => React.JSX.Element;
|
|
15
15
|
export default VTree;
|
|
@@ -3,8 +3,8 @@ export interface SourceItem {
|
|
|
3
3
|
src: string;
|
|
4
4
|
type: string;
|
|
5
5
|
}
|
|
6
|
-
export interface IVVideoProps extends IBaseProps {
|
|
6
|
+
export interface IVVideoProps extends IBaseProps<'video'> {
|
|
7
7
|
sources: SourceItem[];
|
|
8
8
|
}
|
|
9
|
-
declare const VVideo: (props: IVVideoProps) => JSX.Element;
|
|
9
|
+
declare const VVideo: (props: IVVideoProps) => React.JSX.Element;
|
|
10
10
|
export default VVideo;
|
|
@@ -10,5 +10,5 @@ export declare enum ZoneCategory {
|
|
|
10
10
|
export interface IVZoneProps extends IBaseProps {
|
|
11
11
|
category: ZoneCategory;
|
|
12
12
|
}
|
|
13
|
-
declare const VZone: (props: IVZoneProps) => JSX.Element;
|
|
13
|
+
declare const VZone: (props: IVZoneProps) => React.JSX.Element;
|
|
14
14
|
export default VZone;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { default as Debug } from './Debug';
|
|
1
|
+
export { default as Base, IBaseProps, IBaseStates, IBaseReturn } from './Engine/Base';
|
|
3
2
|
export { BreakpointType } from './Layout';
|
|
4
3
|
export { default as VZone, ZoneCategory } from './View/VZone';
|
|
5
4
|
export { default as Display, DisplayCategory, DisplayType } from './Layout/Display';
|
|
6
5
|
export { default as Responsive } from './Layout/Responsive';
|
|
7
|
-
export {
|
|
6
|
+
export { FontSizeType, FontWeightType, FontFamilyType, BorderRadiusType, LineHeightType, LetterSpacingType, PaddingType, ViewSizeType, FullColorType, ColorType, ComponentType, getGeneratedClassName } from './Engine';
|
|
8
7
|
export { default as Dock, DockCategory } from './Layout/Dock';
|
|
9
8
|
export { default as Position, PositionCategory, PositionType } from './Layout/Position';
|
|
10
9
|
export { default as PositionArea, PositionAreaCategory } from './Layout/PositionArea';
|
|
@@ -62,30 +61,8 @@ export { default as YWrapAround } from './Layout/YWrapAround';
|
|
|
62
61
|
export { default as YWrapBetween } from './Layout/YWrapBetween';
|
|
63
62
|
export { default as YWrapEvenly } from './Layout/YWrapEvenly';
|
|
64
63
|
export { YCrossType } from './Layout/YBase';
|
|
65
|
-
export { default as
|
|
66
|
-
export { default as VEllipse, EllipseCategory } from './View/VShape/VEllipse';
|
|
67
|
-
export { default as VLine, LineCategory } from './View/VShape/VLine';
|
|
68
|
-
export { default as VRectangle } from './View/VShape/VRectangle';
|
|
69
|
-
export { default as VShadow, ShadowCategory } from './View/VShadow';
|
|
70
|
-
export { default as VDynamic } from './View/VDynamic';
|
|
71
|
-
export { default as Base, IBaseProps, IBaseStates, IChildrenProps, IBaseReturn } from './Engine/Base';
|
|
72
|
-
export { default as BaseComponent } from './Engine/BaseComponent';
|
|
73
|
-
export { default as VAvatar } from './View/VAvatar';
|
|
74
|
-
export { default as VBlock } from './View/VBlock';
|
|
75
|
-
export { default as VButton, ButtonCategory as ButtonShapeType, ButtonCategory } from './View/VButton';
|
|
76
|
-
export { default as VCard } from './View/VCard';
|
|
77
|
-
export { default as VCardMedia } from './View/VCardMedia';
|
|
78
|
-
export { default as VCardSocial } from './View/VCardSocial';
|
|
79
|
-
export { default as VCardWindow, CardWindowSizeType } from './View/VCardWindow';
|
|
64
|
+
export { default as VBoundary } from './View/VBoundary';
|
|
80
65
|
export { default as VBackground, BackgroundPositionType } from './View/VBackground';
|
|
81
|
-
export { default as VImage, ImageCategory } from './View/VImage/App';
|
|
82
|
-
export { default as VLabel, LabelCategory, LabelType, LabelAlignType } from './View/VLabel';
|
|
83
|
-
export { default as VHyperlink, HyperlinkCategory } from './View/VHyperlink';
|
|
84
|
-
export { default as VLink } from './View/VLink/App';
|
|
85
|
-
export { default as VPhoto, PhotoCategory, PhotoPositionType } from './View/VPhoto';
|
|
86
|
-
export { default as VStack } from './View/VStack';
|
|
87
|
-
export { default as VSvg, SvgCategory } from './View/VSvg';
|
|
88
|
-
export { default as VText, TextCategory, TextAlignType } from './View/VText';
|
|
89
66
|
export { default as VForm, HandleSubmitCategory } from './View/VForm';
|
|
90
67
|
export { default as VActionForm } from './View/VActionForm';
|
|
91
68
|
export { InputExtensionItem } from './View/VInput';
|
|
@@ -95,7 +72,7 @@ export { default as VDate } from './View/VInput/VDate';
|
|
|
95
72
|
export { default as VDatetimeLocal } from './View/VInput/VDatetimeLocal';
|
|
96
73
|
export { default as VEmail } from './View/VInput/VEmail';
|
|
97
74
|
export { default as VFile, FileCategory } from './View/VInput/VFile';
|
|
98
|
-
export { default as VBase64File } from './View/VInput/VBase64File
|
|
75
|
+
export { default as VBase64File } from './View/VInput/VBase64File';
|
|
99
76
|
export { default as VMonth } from './View/VInput/VMonth';
|
|
100
77
|
export { default as VNumber } from './View/VInput/VNumber';
|
|
101
78
|
export { default as VPassword } from './View/VInput/VPassword';
|
|
@@ -111,25 +88,30 @@ export { default as VUrl } from './View/VInput/VUrl';
|
|
|
111
88
|
export { default as VWeek } from './View/VInput/VWeek';
|
|
112
89
|
export { default as VHidden } from './View/VInput/VHidden';
|
|
113
90
|
export { default as VGroup } from './View/VInput/VGroup';
|
|
114
|
-
export { default as
|
|
115
|
-
export { default as VBoundary } from './View/VBoundary';
|
|
116
|
-
export { default as VTooltip, TooltipCategory } from './View/VTooltip';
|
|
117
|
-
export { default as VLoading } from './View/VLoading';
|
|
118
|
-
export { default as VTextArea } from './View/VTextArea';
|
|
91
|
+
export { default as VSwitch } from './View/VSwitch';
|
|
119
92
|
export { default as VSelect, ISelectItemData } from './View/VSelect';
|
|
120
93
|
export { default as VDropdown, IDropdownItemData } from './View/VInput/VDropdown';
|
|
121
|
-
export { default as
|
|
122
|
-
export { default as
|
|
123
|
-
export { default as
|
|
124
|
-
export { default as
|
|
125
|
-
export { default as
|
|
126
|
-
export { default as
|
|
127
|
-
export { default as
|
|
128
|
-
export { default as
|
|
129
|
-
export { default as
|
|
130
|
-
export { default as
|
|
131
|
-
export { IUserProfile, parseJWT } from './Auth/util';
|
|
132
|
-
export { ga4Scope, ga4Event, ga4Init, ga4Pageview, ga4SetFieldsObject, IGAEvent, IGA4Options, ICustomGA4Options, IGAOptions, ICustomGAOptions, IGTagOptions, ICustomGTagOptions, IGFieldsObject, GAEventTransportType } from './Analyze/util';
|
|
94
|
+
export { default as VSvg, SvgCategory } from './View/VSvg';
|
|
95
|
+
export { default as VHyperlink, HyperlinkCategory } from './View/VHyperlink';
|
|
96
|
+
export { default as VImage, ImageCategory } from './View/VImage';
|
|
97
|
+
export { default as VLabel, LabelCategory, LabelType, LabelAlignType } from './View/VLabel';
|
|
98
|
+
export { default as VText, TextCategory, TextAlignType } from './View/VText';
|
|
99
|
+
export { default as VTextArea } from './View/VTextArea';
|
|
100
|
+
export { default as VEllipse, EllipseCategory } from './View/VShape/VEllipse';
|
|
101
|
+
export { default as VLine, LineCategory } from './View/VShape/VLine';
|
|
102
|
+
export { default as VRectangle } from './View/VShape/VRectangle';
|
|
103
|
+
export { default as VShadow, ShadowCategory } from './View/VShadow';
|
|
133
104
|
export { default as VAnimation, AnimationCategory, AnimationDelay, AnimationRepeat, AnimationSpeed } from './View/VAnimation';
|
|
105
|
+
export { default as VAudio } from './View/VAudio';
|
|
106
|
+
export { default as VVideo } from './View/VVideo';
|
|
107
|
+
export { default as VHeader } from './View/VHeader';
|
|
108
|
+
export { default as VMain } from './View/VMain';
|
|
109
|
+
export { default as VFooter } from './View/VFooter';
|
|
110
|
+
export { default as VHR } from './View/VHR';
|
|
111
|
+
export { default as VSection } from './View/VSection';
|
|
112
|
+
export { default as VMask } from './View/VMask';
|
|
113
|
+
export { default as VFrame } from './View/VFrame';
|
|
134
114
|
export { default as VTheme, ThemeCategory } from './View/VTheme';
|
|
115
|
+
export { default as VTooltip, TooltipCategory } from './View/VTooltip';
|
|
116
|
+
export { default as VLoading } from './View/VLoading';
|
|
135
117
|
export { convertFormDataToJson } from './util';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './core';
|
|
2
|
+
export { default as Debug } from './Debug';
|
|
3
|
+
export { default as VChromeExtensionValidator, ExtensionStatus } from './View/VChromeExtensionValidator';
|
|
4
|
+
export { default as VGoogleFont, IGoogleTypeface, IGoogleFont, GoogleFontType } from './View/VGoogleFont';
|
|
5
|
+
export { default as GoogleGrant, GoogleGrantCategory, GoogleGrantUXMode, GoogleGrantCode, GoogleGrantToken } from './Auth/GoogleGrant';
|
|
6
|
+
export { default as FigmaSignin } from './Auth/FigmaSignin';
|
|
7
|
+
export { default as GoogleSignin, GoogleSigninUXMode } from './Auth/GoogleSignin';
|
|
8
|
+
export { default as WeComSignin } from './Auth/WeComSignin';
|
|
9
|
+
export { IUserProfile, parseJWT } from './Auth/util';
|
package/templates/FEWBOX.md
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
## 1. Init
|
|
3
3
|
```shell
|
|
4
4
|
yarn add sass -D
|
|
5
|
-
yarn add @paypal/react-paypal-js
|
|
6
5
|
yarn add jwt-decode
|
|
7
|
-
yarn add react-ga4
|
|
8
6
|
yarn add react-intl
|
|
9
7
|
|
|
10
8
|
```
|
|
@@ -21,15 +19,15 @@ $body-color: #e1e1e1;
|
|
|
21
19
|
|
|
22
20
|
## 3. Use
|
|
23
21
|
```tsx
|
|
24
|
-
import { Den } from '@fewbox/den'; // @fewbox/den-
|
|
22
|
+
import { Den } from '@fewbox/den-web'; // @fewbox/den-app
|
|
25
23
|
<Den.Components.VLabel frontColor={Den.Components.ColorType.Primary} caption='Hello, FewBox!' />
|
|
26
24
|
```
|
|
27
25
|
|
|
28
26
|
## 4. Custom Component
|
|
29
27
|
```tsx
|
|
30
28
|
// Class Component
|
|
31
|
-
|
|
32
|
-
import { Den } from '@fewbox/den';
|
|
29
|
+
|
|
30
|
+
import { Den } from '@fewbox/den-web'; // @fewbox/den-app
|
|
33
31
|
import './index.scss';
|
|
34
32
|
|
|
35
33
|
export interface IClassComponentProps extends Den.Interface.IBaseProps {
|
|
@@ -47,8 +45,8 @@ export default class ClassComponent extends Den.Components.BaseComponent<IClassC
|
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
47
|
// Function Component
|
|
50
|
-
|
|
51
|
-
import { Den } from '@fewbox/den';
|
|
48
|
+
|
|
49
|
+
import { Den } from '@fewbox/den-web'; // @fewbox/den-app
|
|
52
50
|
import './index.scss';
|
|
53
51
|
|
|
54
52
|
export interface IFunctionComponentProps extends Den.Interface.IBaseProps {
|
|
@@ -60,10 +58,11 @@ export interface IFunctionComponentStates extends Den.Interface.IBaseStates {
|
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
const FunctionComponent = (props: IFunctionComponentProps) => {
|
|
63
|
-
const
|
|
61
|
+
const { ...rest } = props;
|
|
62
|
+
const _base = Den.Components.Base(rest);
|
|
64
63
|
const [state, setState] = React.useState<IFunctionComponentStates>({ isSelected: props.isSelected });
|
|
65
64
|
return (
|
|
66
|
-
<div className={_base.getClassName(`function-component${state.isSelected ? ' selected' : ''}`)} style={_base.getStyle()}
|
|
65
|
+
<div className={_base.getClassName(`function-component${state.isSelected ? ' selected' : ''}`)} style={_base.getStyle()} {..._base.getProps()}>
|
|
67
66
|
Click Me
|
|
68
67
|
</div>
|
|
69
68
|
);
|
package/index-app.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as _Action from './src/action';
|
|
2
|
-
import * as _Components from './src/components/app';
|
|
3
|
-
import * as _FewBox from './src/fewbox';
|
|
4
|
-
import * as _Language from './src/language';
|
|
5
|
-
import * as _Network from './src/network';
|
|
6
|
-
import * as _Store from './src/store';
|
|
7
|
-
import './style/_boot-app.scss';
|
|
8
|
-
export declare namespace Den {
|
|
9
|
-
export import Action = _Action;
|
|
10
|
-
export import Components = _Components;
|
|
11
|
-
export import FewBox = _FewBox;
|
|
12
|
-
export import Language = _Language;
|
|
13
|
-
export import Network = _Network;
|
|
14
|
-
export import Store = _Store;
|
|
15
|
-
}
|
package/src/action/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface IPayloadAction<T> extends IAction {
|
|
2
|
-
payload: T;
|
|
3
|
-
}
|
|
4
|
-
export interface IAction {
|
|
5
|
-
type: string;
|
|
6
|
-
}
|
|
7
|
-
export type IFullAction<T> = IPayloadAction<T> | IAction;
|
|
8
|
-
export declare const emptyAction: () => IAction;
|
|
9
|
-
export declare const resetAction: () => IAction;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
export declare const ga4Scope: (callback: () => void) => void;
|
|
2
|
-
export declare const ga4NextJSScope: (GA4: any, callback: () => void) => void;
|
|
3
|
-
export interface ICustomGA4Options {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}
|
|
6
|
-
export interface IGA4Options {
|
|
7
|
-
userId?: string;
|
|
8
|
-
app?: string;
|
|
9
|
-
version?: string;
|
|
10
|
-
cookieExpires?: number;
|
|
11
|
-
cookieDomain?: string;
|
|
12
|
-
cookieFlags?: string;
|
|
13
|
-
clientId?: string;
|
|
14
|
-
anonymizeIp?: boolean;
|
|
15
|
-
contentGroup1?: string;
|
|
16
|
-
contentGroup2?: string;
|
|
17
|
-
contentGroup3?: string;
|
|
18
|
-
contentGroup4?: string;
|
|
19
|
-
contentGroup5?: string;
|
|
20
|
-
allowAdFeatures?: boolean;
|
|
21
|
-
allowAdPersonalizationSignals?: boolean;
|
|
22
|
-
nonInteraction?: boolean;
|
|
23
|
-
page?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface ICustomGAOptions {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
}
|
|
28
|
-
export interface IGAOptions {
|
|
29
|
-
name?: string;
|
|
30
|
-
clientId?: string;
|
|
31
|
-
sampleRate?: number;
|
|
32
|
-
siteSpeedSampleRate?: number;
|
|
33
|
-
alwaysSendReferrer?: boolean;
|
|
34
|
-
allowAnchor?: boolean;
|
|
35
|
-
cookieName?: string;
|
|
36
|
-
cookieDomain?: string;
|
|
37
|
-
cookieExpires?: number;
|
|
38
|
-
cookieUpdate?: boolean;
|
|
39
|
-
legacyCookieDomain?: string;
|
|
40
|
-
legacyHistoryImport?: boolean;
|
|
41
|
-
allowLinker?: boolean;
|
|
42
|
-
userId?: string;
|
|
43
|
-
storage?: string;
|
|
44
|
-
storeGac?: boolean;
|
|
45
|
-
cookieFlags?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface ICustomGTagOptions {
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
}
|
|
50
|
-
export interface IGTagOptions {
|
|
51
|
-
}
|
|
52
|
-
export declare const ga4Init: (trackingId: string, isDebugMode?: boolean, gaOptions?: IGA4Options | ICustomGA4Options, gTagOptions?: IGTagOptions | ICustomGTagOptions) => void;
|
|
53
|
-
export declare const ga4NextJSInit: (GA4: any, trackingId: string, isDebugMode?: boolean, gaOptions?: IGA4Options | ICustomGA4Options, gTagOptions?: IGTagOptions | ICustomGTagOptions) => void;
|
|
54
|
-
export interface IGFieldsObject {
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}
|
|
57
|
-
export declare const ga4SetFieldsObject: (fieldsObject: IGFieldsObject, isDebugMode?: boolean) => void;
|
|
58
|
-
export declare const ga4NextJSSetFieldsObject: (GA4: any, fieldsObject: IGFieldsObject, isDebugMode?: boolean) => void;
|
|
59
|
-
export declare const ga4Pageview: (path: string, isDebugMode?: boolean) => void;
|
|
60
|
-
export declare const ga4NextJSPageview: (GA4: any, path: string, isDebugMode?: boolean) => void;
|
|
61
|
-
export declare enum GAEventTransportType {
|
|
62
|
-
Beacon = "beacon",
|
|
63
|
-
Xhr = "xhr",
|
|
64
|
-
Image = "image"
|
|
65
|
-
}
|
|
66
|
-
export interface IGAEvent {
|
|
67
|
-
category: string;
|
|
68
|
-
action: string;
|
|
69
|
-
label?: string;
|
|
70
|
-
value?: number;
|
|
71
|
-
nonInteraction?: boolean;
|
|
72
|
-
transport?: GAEventTransportType;
|
|
73
|
-
dimension1?: string;
|
|
74
|
-
dimension2?: string;
|
|
75
|
-
dimension3?: string;
|
|
76
|
-
dimension4?: string;
|
|
77
|
-
dimension5?: string;
|
|
78
|
-
dimension6?: string;
|
|
79
|
-
dimension7?: string;
|
|
80
|
-
dimension8?: string;
|
|
81
|
-
dimension9?: string;
|
|
82
|
-
dimension10?: string;
|
|
83
|
-
dimension11?: string;
|
|
84
|
-
dimension12?: string;
|
|
85
|
-
dimension13?: string;
|
|
86
|
-
dimension14?: string;
|
|
87
|
-
dimension15?: string;
|
|
88
|
-
dimension16?: string;
|
|
89
|
-
dimension17?: string;
|
|
90
|
-
dimension18?: string;
|
|
91
|
-
dimension19?: string;
|
|
92
|
-
dimension20?: string;
|
|
93
|
-
metric1?: number;
|
|
94
|
-
metric2?: number;
|
|
95
|
-
metric3?: number;
|
|
96
|
-
metric4?: number;
|
|
97
|
-
metric5?: number;
|
|
98
|
-
metric6?: number;
|
|
99
|
-
metric7?: number;
|
|
100
|
-
metric8?: number;
|
|
101
|
-
metric9?: number;
|
|
102
|
-
metric10?: number;
|
|
103
|
-
metric11?: number;
|
|
104
|
-
metric12?: number;
|
|
105
|
-
metric13?: number;
|
|
106
|
-
metric14?: number;
|
|
107
|
-
metric15?: number;
|
|
108
|
-
metric16?: number;
|
|
109
|
-
metric17?: number;
|
|
110
|
-
metric18?: number;
|
|
111
|
-
metric19?: number;
|
|
112
|
-
metric20?: number;
|
|
113
|
-
}
|
|
114
|
-
export declare const ga4Event: (gaEvent: IGAEvent, isDebugMode?: boolean) => void;
|
|
115
|
-
export declare const ga4NextJSEvent: (GA4: any, gaEvent: IGAEvent, isDebugMode?: boolean) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IBaseProps, IBaseStates, IChildrenProps, IViewProps } from '../Base';
|
|
3
|
-
export default abstract class BaseComponent<P extends IViewProps | IBaseProps = {}, S extends IBaseStates = {}> extends React.Component<P, S> {
|
|
4
|
-
private _base;
|
|
5
|
-
constructor(props: any);
|
|
6
|
-
protected getClassName(vClassName: string): string;
|
|
7
|
-
protected getStyle(): object;
|
|
8
|
-
protected getChildren(props: IChildrenProps): React.ReactNode;
|
|
9
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IChildrenProps, IEventProps, IViewProps } from '../../Engine/Base';
|
|
3
|
-
export declare enum DockCategory {
|
|
4
|
-
Auto = "auto",
|
|
5
|
-
Fix = "fix"
|
|
6
|
-
}
|
|
7
|
-
export declare enum DockType {
|
|
8
|
-
Top = "top",
|
|
9
|
-
Right = "right",
|
|
10
|
-
Bottom = "bottom",
|
|
11
|
-
Left = "left",
|
|
12
|
-
LeftTop = "left-top",
|
|
13
|
-
RightTop = "right-top",
|
|
14
|
-
LeftBottom = "left-bottom",
|
|
15
|
-
RightBottom = "right-bottom"
|
|
16
|
-
}
|
|
17
|
-
export interface IDockProps extends IChildrenProps, IEventProps, IViewProps {
|
|
18
|
-
category?: DockCategory;
|
|
19
|
-
type?: DockType;
|
|
20
|
-
gap?: number;
|
|
21
|
-
renderOverlay: () => JSX.Element;
|
|
22
|
-
}
|
|
23
|
-
declare const Dock: React.FC<IDockProps>;
|
|
24
|
-
export default Dock;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IBaseProps, IBaseStates } from '../../Engine/Base';
|
|
3
|
-
export declare enum ButtonCategory {
|
|
4
|
-
Round = "round",
|
|
5
|
-
Circle = "circle"
|
|
6
|
-
}
|
|
7
|
-
export interface IVButtonProps extends IBaseProps {
|
|
8
|
-
category?: ButtonCategory;
|
|
9
|
-
icon?: JSX.Element;
|
|
10
|
-
caption?: string | JSX.Element;
|
|
11
|
-
onClick?: React.MouseEventHandler;
|
|
12
|
-
}
|
|
13
|
-
export interface IVButtonStates extends IBaseStates {
|
|
14
|
-
isClick: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare const VButton: (props: IVButtonProps) => JSX.Element;
|
|
17
|
-
export default VButton;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IBaseProps } from '../../../Engine/Base';
|
|
2
|
-
export declare enum ImageCategory {
|
|
3
|
-
Default = "default",
|
|
4
|
-
Circle = "circle",
|
|
5
|
-
Squared = "squared",
|
|
6
|
-
FullSize = "full-size",
|
|
7
|
-
Scale = "scale"
|
|
8
|
-
}
|
|
9
|
-
export interface IVImageProps extends IBaseProps {
|
|
10
|
-
category?: ImageCategory;
|
|
11
|
-
src: string;
|
|
12
|
-
srcSet?: string;
|
|
13
|
-
alt: string;
|
|
14
|
-
}
|
|
15
|
-
declare const VImage: (props: IVImageProps) => JSX.Element;
|
|
16
|
-
export default VImage;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactPayPalScriptOptions } from '@paypal/react-paypal-js';
|
|
2
|
-
import type { PayPalButtonsComponentOptions } from "@paypal/paypal-js/types/components/buttons";
|
|
3
|
-
export interface IVPaypalProps {
|
|
4
|
-
options: ReactPayPalScriptOptions;
|
|
5
|
-
buttonOptions?: PayPalButtonsComponentOptions;
|
|
6
|
-
}
|
|
7
|
-
export interface IVPaypalStates {
|
|
8
|
-
}
|
|
9
|
-
declare const VPaypal: (props: IVPaypalProps) => JSX.Element;
|
|
10
|
-
export default VPaypal;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IViewProps, IChildrenProps } from '../../Engine/Base';
|
|
2
|
-
export interface IVPureRootProps extends IViewProps, IChildrenProps {
|
|
3
|
-
vClassName: string;
|
|
4
|
-
id?: string;
|
|
5
|
-
}
|
|
6
|
-
declare const VPureRoot: (props: IVPureRootProps) => JSX.Element;
|
|
7
|
-
export default VPureRoot;
|
package/src/fewbox/index.d.ts
DELETED
|
@@ -1,27 +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
|
-
handleWarning?: (error: IError) => void;
|
|
14
|
-
handleNetworkError: (error: IError) => void;
|
|
15
|
-
isDebug: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const boot: (options: IFewBoxOptions) => void;
|
|
18
|
-
export interface IBootProps {
|
|
19
|
-
options: IFewBoxOptions;
|
|
20
|
-
}
|
|
21
|
-
export declare class BootClass {
|
|
22
|
-
private static instance;
|
|
23
|
-
options: IFewBoxOptions;
|
|
24
|
-
private constructor();
|
|
25
|
-
static getInstance(): BootClass;
|
|
26
|
-
}
|
|
27
|
-
export declare const Boot: (props: IBootProps) => React.JSX.Element;
|
package/src/language/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const getBrowserLangFull: () => string;
|
|
2
|
-
export declare const getBrowserLang: () => string;
|
|
3
|
-
export declare const getIntlMessage: (intlId: string, lang?: any, values?: any) => string;
|
|
4
|
-
export declare const language: (en: any, zh: any, lang?: string) => any;
|
|
5
|
-
export declare const languageFull: (langs: any, lang?: string) => any;
|
package/src/network/Network.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare const buildUrl: (subPath?: string) => string;
|
|
2
|
-
export declare const buildExternalUrl: (external: string, subPath?: string) => string;
|
|
3
|
-
export declare const buildHeaders: (customHeaders?: Record<string, string>) => Record<string, string>;
|
|
4
|
-
export declare const _verbs: (url: string, method: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void, body?: BodyInit | null | undefined) => void;
|
|
5
|
-
export declare const _verbsGet: (url: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
6
|
-
export declare const _verbsDelete: (url: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
7
|
-
export declare const _verbsPost: (url: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
8
|
-
export declare const _verbsPut: (url: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
9
|
-
export declare const _verbsPatch: (ul: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
10
|
-
export declare const _verbsPromise: (url: string, method: string, headers: Record<string, string>, body?: BodyInit | null | undefined) => Promise<Response>;
|
|
11
|
-
export declare const _verbsGetPromise: (url: string, headers: Record<string, string>) => Promise<Response>;
|
|
12
|
-
export declare const _verbsDeletePromise: (url: string, headers: Record<string, string>) => Promise<Response>;
|
|
13
|
-
export declare const _verbsPostPromise: (url: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
14
|
-
export declare const _verbsPutPromise: (url: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
15
|
-
export declare const _verbsPatchPromise: (url: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
16
|
-
export declare const verbs: (path: string, method: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void, body?: BodyInit | null | undefined) => void;
|
|
17
|
-
export declare const verbsGet: (path: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
18
|
-
export declare const verbsDelete: (path: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
19
|
-
export declare const verbsPost: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
20
|
-
export declare const verbsPut: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
21
|
-
export declare const verbsPatch: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
22
|
-
export declare const verbsPromise: (path: string, method: string, headers: Record<string, string>, body?: BodyInit | null | undefined) => Promise<Response>;
|
|
23
|
-
export declare const verbsGetPromise: (path: string, headers: Record<string, string>) => Promise<Response>;
|
|
24
|
-
export declare const verbsDeletePromise: (path: string, headers: Record<string, string>) => Promise<Response>;
|
|
25
|
-
export declare const verbsPostPromise: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
26
|
-
export declare const verbsPutPromise: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
27
|
-
export declare const verbsPatchPromise: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
28
|
-
export declare const verbsExternal: (external: string, path: string, method: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void, body?: BodyInit | null | undefined) => void;
|
|
29
|
-
export declare const verbsGetExternal: (external: string, path: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
30
|
-
export declare const verbsDeleteExternal: (external: string, path: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
31
|
-
export declare const verbsPostExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
32
|
-
export declare const verbsPutExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
33
|
-
export declare const verbsPatchExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
34
|
-
export declare const verbsPromiseExteral: (external: string, path: string, method: string, headers: Record<string, string>, body?: BodyInit | null | undefined) => Promise<Response>;
|
|
35
|
-
export declare const verbsGetPromiseExternal: (external: string, path: string, headers: Record<string, string>) => Promise<Response>;
|
|
36
|
-
export declare const verbsDeletePromiseExternal: (external: string, path: string, headers: Record<string, string>) => Promise<Response>;
|
|
37
|
-
export declare const verbsPostPromiseExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
38
|
-
export declare const verbsPutPromiseExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
39
|
-
export declare const verbsPatchPromiseExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
40
|
-
export interface IWebsocketOptions {
|
|
41
|
-
query: string;
|
|
42
|
-
external?: string;
|
|
43
|
-
protocols?: string | string[] | undefined;
|
|
44
|
-
}
|
|
45
|
-
export declare const ws: (options: IWebsocketOptions) => WebSocket;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { AjaxResponse } from 'rxjs/ajax';
|
|
3
|
-
import { IMetaResponse, IPayloadResponse } from '../store';
|
|
4
|
-
export declare abstract class NetworkObservableBase<P> extends Observable<unknown> {
|
|
5
|
-
private readonly subPath?;
|
|
6
|
-
private readonly processAction?;
|
|
7
|
-
constructor(subPath?: string, processAction?: (payload: P) => void);
|
|
8
|
-
protected abstract parseResponse(input: unknown): IPayloadResponse<P> | any;
|
|
9
|
-
protected getUrl(external?: string): string;
|
|
10
|
-
protected getHeader(customHeaders?: Record<string, string>): Record<string, string>;
|
|
11
|
-
protected getTextHeader(): Record<string, string>;
|
|
12
|
-
protected pipeline(networkObservable: Observable<AjaxResponse<IPayloadResponse<P> | IMetaResponse> | Response>): Observable<any>;
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export declare abstract class StreamObservableBase extends Observable<unknown> {
|
|
3
|
-
protected subPath: string;
|
|
4
|
-
protected processAction: (payload: string) => void;
|
|
5
|
-
protected errorHandler: (error: any) => void;
|
|
6
|
-
protected doneHandler?: () => void;
|
|
7
|
-
constructor(subPath: string, processAction: (payload: string) => void, errorHandler: (error: any) => void, doneHandler?: () => void);
|
|
8
|
-
protected getHeader(customHeaders?: Record<string, string>): Record<string, string>;
|
|
9
|
-
protected getUrl(external?: string): string;
|
|
10
|
-
protected pipeline(url: string, method: string, body?: any): Observable<any>;
|
|
11
|
-
}
|
package/src/network/WS.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IWebsocketOptions } from "./Network";
|
|
2
|
-
declare class WS {
|
|
3
|
-
private websocket;
|
|
4
|
-
constructor(options: IWebsocketOptions);
|
|
5
|
-
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
6
|
-
receive(onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null): void;
|
|
7
|
-
open(onopen: ((this: WebSocket, ev: Event) => any) | null): void;
|
|
8
|
-
close(onclose: ((this: WebSocket, ev: CloseEvent) => any) | null): void;
|
|
9
|
-
handleError(onerror: ((this: WebSocket, ev: Event) => any) | null): void;
|
|
10
|
-
}
|
|
11
|
-
export default WS;
|