ag-common 0.0.727 → 0.0.729
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/api/helpers/api.js +0 -6
- package/dist/api/helpers/dynamo.d.ts +2 -1
- package/dist/api/helpers/dynamo.js +13 -14
- package/dist/api/helpers/enforceDynamoProvisionCap.js +0 -1
- package/dist/api/helpers/openApiHelpers.js +1 -2
- package/dist/api/helpers/s3.d.ts +0 -1
- package/dist/api/helpers/s3.js +11 -11
- package/dist/api/helpers/ses.d.ts +1 -1
- package/dist/api/helpers/sts.js +2 -2
- package/dist/api/helpers/validateOpenApi.js +1 -4
- package/dist/api/helpers/validations.js +3 -5
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +0 -1
- package/dist/api/openapi-postfix.js +0 -3
- package/dist/api/openapi-prefix.js +0 -6
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +0 -15
- package/dist/common/helpers/array.d.ts +1 -1
- package/dist/common/helpers/array.js +3 -4
- package/dist/common/helpers/async.js +2 -3
- package/dist/common/helpers/binary.d.ts +3 -4
- package/dist/common/helpers/binary.js +4 -4
- package/dist/common/helpers/csv.js +1 -3
- package/dist/common/helpers/date.js +0 -1
- package/dist/common/helpers/func.js +1 -2
- package/dist/common/helpers/generator.js +1 -3
- package/dist/common/helpers/groupBy.js +3 -4
- package/dist/common/helpers/hashCode.js +0 -1
- package/dist/common/helpers/log.js +0 -2
- package/dist/common/helpers/math.js +6 -8
- package/dist/common/helpers/memo.js +1 -4
- package/dist/common/helpers/object.js +9 -14
- package/dist/common/helpers/random.js +3 -3
- package/dist/common/helpers/stream.js +3 -3
- package/dist/common/helpers/string/contains.js +3 -3
- package/dist/common/helpers/string/json.js +0 -1
- package/dist/common/helpers/string/object.js +1 -2
- package/dist/common/helpers/string/redact.js +3 -3
- package/dist/common/helpers/string/trim.js +2 -3
- package/dist/common/helpers/string/truncate.js +1 -2
- package/dist/common/helpers/string/url.js +3 -2
- package/dist/common/helpers/xml.js +0 -1
- package/dist/node/helpers/fetch.js +2 -2
- package/dist/node/helpers/fs.js +2 -3
- package/dist/ui/components/Accordion/index.js +17 -7
- package/dist/ui/components/BarChart/index.d.ts +1 -1
- package/dist/ui/components/BarChart/index.js +0 -1
- package/dist/ui/components/Button/index.d.ts +2 -3
- package/dist/ui/components/Button/index.js +1 -4
- package/dist/ui/components/Confirm/Dialog.js +1 -0
- package/dist/ui/components/Confirm/index.d.ts +1 -1
- package/dist/ui/components/Confirm/index.js +0 -1
- package/dist/ui/components/DarkMode/Base.d.ts +3 -4
- package/dist/ui/components/DarkMode/Base.js +18 -7
- package/dist/ui/components/DropdownList/Base.d.ts +2 -2
- package/dist/ui/components/DropdownList/Base.js +19 -10
- package/dist/ui/components/DropdownList/Dialog.d.ts +1 -1
- package/dist/ui/components/DropdownList/Dialog.js +2 -0
- package/dist/ui/components/DropdownList/types.d.ts +1 -1
- package/dist/ui/components/HorizontalScrollBar/index.js +18 -7
- package/dist/ui/components/Icon/index.d.ts +2 -2
- package/dist/ui/components/Image/index.js +17 -7
- package/dist/ui/components/InfiniteScroll/index.js +17 -8
- package/dist/ui/components/LineChart/index.d.ts +1 -1
- package/dist/ui/components/LineChart/index.js +0 -1
- package/dist/ui/components/Loader/index.js +17 -7
- package/dist/ui/components/Markdown/index.d.ts +2 -2
- package/dist/ui/components/MinSidebar/index.js +17 -7
- package/dist/ui/components/Modal/Dialog.js +1 -0
- package/dist/ui/components/Modal/Modal.d.ts +2 -2
- package/dist/ui/components/Modal/Modal.js +18 -7
- package/dist/ui/components/Modal/index.d.ts +1 -1
- package/dist/ui/components/Modal/index.js +0 -1
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/body.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/security.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/curl/index.d.ts +2 -2
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/call.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/req.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/helpers/common.d.ts +4 -5
- package/dist/ui/components/OpenApiCodeBlock/helpers/common.js +0 -1
- package/dist/ui/components/OpenApiCodeBlock/helpers/joinJsx.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/index.d.ts +1 -1
- package/dist/ui/components/OpenApiCodeBlock/index.js +0 -1
- package/dist/ui/components/OpenApiCodeBlock/types.d.ts +1 -1
- package/dist/ui/components/ProgressBar/index.js +17 -7
- package/dist/ui/components/Prompt/Modal.js +18 -7
- package/dist/ui/components/Prompt/index.d.ts +1 -1
- package/dist/ui/components/Prompt/index.js +0 -1
- package/dist/ui/components/RadioGroup/index.d.ts +2 -2
- package/dist/ui/components/RadioGroup/index.js +17 -8
- package/dist/ui/components/Search/AutoHideSearchBox.js +17 -7
- package/dist/ui/components/Search/Dialog.js +1 -0
- package/dist/ui/components/Search/Inline.js +17 -8
- package/dist/ui/components/Search/SearchBox.d.ts +1 -1
- package/dist/ui/components/Search/SearchBox.js +17 -7
- package/dist/ui/components/Search/index.d.ts +1 -1
- package/dist/ui/components/Search/index.js +0 -1
- package/dist/ui/components/Search/types.d.ts +2 -2
- package/dist/ui/components/Sidebar/index.js +17 -7
- package/dist/ui/components/TabBar/index.d.ts +2 -2
- package/dist/ui/components/TabBar/index.js +17 -7
- package/dist/ui/components/Table/index.d.ts +2 -2
- package/dist/ui/components/TextEdit/CheckboxEdit.js +17 -7
- package/dist/ui/components/TextEdit/ColourEdit.js +17 -7
- package/dist/ui/components/TextEdit/ListboxEdit.js +20 -18
- package/dist/ui/components/TextEdit/TextEdit.d.ts +2 -2
- package/dist/ui/components/TextEdit/TextEdit.js +20 -18
- package/dist/ui/components/TextEdit/common.d.ts +6 -7
- package/dist/ui/components/TextEdit/index.d.ts +1 -1
- package/dist/ui/components/TextEdit/index.js +0 -1
- package/dist/ui/components/TextEdit/types.d.ts +1 -0
- package/dist/ui/components/TextWithButton/index.js +17 -7
- package/dist/ui/components/Toast/base.js +18 -7
- package/dist/ui/components/Toast/index.d.ts +1 -1
- package/dist/ui/components/Toast/index.js +0 -1
- package/dist/ui/components/Toast/types.d.ts +1 -1
- package/dist/ui/components/TreeChart/base.js +17 -7
- package/dist/ui/components/TreeChart/index.d.ts +1 -1
- package/dist/ui/components/TreeChart/index.js +0 -1
- package/dist/ui/components/UserImage/index.js +17 -7
- package/dist/ui/helpers/axiosHelper.d.ts +1 -1
- package/dist/ui/helpers/axiosHelper.js +0 -2
- package/dist/ui/helpers/callOpenApi/direct.js +2 -7
- package/dist/ui/helpers/callOpenApi/helpers.js +1 -2
- package/dist/ui/helpers/callOpenApi/hook.d.ts +0 -1
- package/dist/ui/helpers/callOpenApi/index.d.ts +1 -1
- package/dist/ui/helpers/callOpenApi/index.js +0 -1
- package/dist/ui/helpers/cookie/get.js +3 -3
- package/dist/ui/helpers/cookie/raw.js +4 -4
- package/dist/ui/helpers/cookie/set.js +2 -2
- package/dist/ui/helpers/cookie/use.js +2 -2
- package/dist/ui/helpers/debounce.js +2 -3
- package/dist/ui/helpers/dom.js +0 -2
- package/dist/ui/helpers/extractAttributes.js +0 -1
- package/dist/ui/helpers/index.d.ts +2 -2
- package/dist/ui/helpers/index.js +0 -2
- package/dist/ui/helpers/plural.js +1 -2
- package/dist/ui/helpers/routes.d.ts +2 -2
- package/dist/ui/helpers/serviceWorker.js +1 -2
- package/dist/ui/helpers/useContextMenu.d.ts +1 -1
- package/dist/ui/helpers/useContextMenu.js +2 -3
- package/dist/ui/helpers/useElementAttribute.js +3 -2
- package/dist/ui/helpers/useGranularHook.js +1 -1
- package/dist/ui/helpers/useInterval.js +2 -2
- package/dist/ui/helpers/useIsInViewport.js +1 -2
- package/dist/ui/helpers/useLocalStorage.js +2 -2
- package/dist/ui/helpers/useLockBodyScroll.js +1 -2
- package/dist/ui/helpers/useOnClickOutside.d.ts +1 -1
- package/dist/ui/helpers/useOnClickOutside.js +3 -3
- package/dist/ui/helpers/useOnScroll.js +6 -7
- package/dist/ui/helpers/useOverloadPageSearch.js +2 -0
- package/dist/ui/helpers/useQueryString.js +1 -1
- package/dist/ui/helpers/useResize.js +2 -2
- package/dist/ui/helpers/useTimeout.js +1 -2
- package/dist/ui/helpers/useTooltip.d.ts +1 -0
- package/dist/ui/helpers/useTooltip.js +18 -7
- package/dist/ui/icons/index.d.ts +27 -28
- package/dist/ui/styles/common.d.ts +2 -2
- package/dist/ui/styles/standaloneStyles.d.ts +12 -13
- package/package.json +36 -33
package/dist/ui/icons/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Checkmark } from './Checkmark';
|
|
3
2
|
import { ChevronRight } from './ChevronRight';
|
|
4
3
|
import { Circle } from './Circle';
|
|
@@ -21,59 +20,59 @@ import { Warning } from './Warning';
|
|
|
21
20
|
declare const icons: {
|
|
22
21
|
Cog: () => import("react").JSX.Element;
|
|
23
22
|
Checkmark: ({ style, }: {
|
|
24
|
-
style?:
|
|
25
|
-
fill?: string
|
|
26
|
-
} & import("react").CSSProperties
|
|
23
|
+
style?: {
|
|
24
|
+
fill?: string;
|
|
25
|
+
} & import("react").CSSProperties;
|
|
27
26
|
}) => import("react").JSX.Element;
|
|
28
27
|
ChevronRight: import("react").JSX.Element;
|
|
29
28
|
Circle: ({ style, dotted, }: {
|
|
30
|
-
style?:
|
|
31
|
-
fill?: string
|
|
32
|
-
} & import("react").CSSProperties
|
|
33
|
-
dotted?: boolean
|
|
29
|
+
style?: {
|
|
30
|
+
fill?: string;
|
|
31
|
+
} & import("react").CSSProperties;
|
|
32
|
+
dotted?: boolean;
|
|
34
33
|
}) => import("react").JSX.Element;
|
|
35
34
|
CircleDot: ({ style }: {
|
|
36
|
-
style?: import("react").CSSProperties
|
|
35
|
+
style?: import("react").CSSProperties;
|
|
37
36
|
}) => import("react").JSX.Element;
|
|
38
37
|
Computer: ({ style, }: {
|
|
39
|
-
style?:
|
|
40
|
-
fill?: string
|
|
41
|
-
} & import("react").CSSProperties
|
|
38
|
+
style?: {
|
|
39
|
+
fill?: string;
|
|
40
|
+
} & import("react").CSSProperties;
|
|
42
41
|
}) => import("react").JSX.Element;
|
|
43
42
|
CrossIcon: ({ className, onClick, }: {
|
|
44
|
-
className?: string
|
|
45
|
-
onClick?: (
|
|
43
|
+
className?: string;
|
|
44
|
+
onClick?: () => void;
|
|
46
45
|
}) => import("react").JSX.Element;
|
|
47
46
|
Door: import("react").JSX.Element;
|
|
48
47
|
Hamburger: ({ className }: {
|
|
49
|
-
className?: string
|
|
48
|
+
className?: string;
|
|
50
49
|
}) => import("react").JSX.Element;
|
|
51
50
|
House: () => import("react").JSX.Element;
|
|
52
51
|
HorizontalDots: import("react").JSX.Element;
|
|
53
52
|
Magnify: ({ style, }: {
|
|
54
|
-
style?:
|
|
55
|
-
fill?: string
|
|
56
|
-
} & import("react").CSSProperties
|
|
53
|
+
style?: {
|
|
54
|
+
fill?: string;
|
|
55
|
+
} & import("react").CSSProperties;
|
|
57
56
|
}) => import("react").JSX.Element;
|
|
58
57
|
Moon: ({ style, }: {
|
|
59
|
-
style?:
|
|
60
|
-
fill?: string
|
|
61
|
-
} & import("react").CSSProperties
|
|
58
|
+
style?: {
|
|
59
|
+
fill?: string;
|
|
60
|
+
} & import("react").CSSProperties;
|
|
62
61
|
}) => import("react").JSX.Element;
|
|
63
62
|
Pencil: () => import("react").JSX.Element;
|
|
64
63
|
Save: () => import("react").JSX.Element;
|
|
65
64
|
Sun: (p?: {
|
|
66
65
|
style?: {
|
|
67
|
-
fill?: string
|
|
68
|
-
}
|
|
69
|
-
}
|
|
66
|
+
fill?: string;
|
|
67
|
+
};
|
|
68
|
+
}) => import("react").JSX.Element;
|
|
70
69
|
Undo: () => import("react").JSX.Element;
|
|
71
70
|
UserOutline: import("react").JSX.Element;
|
|
72
71
|
Warning: ({ style, className, }: {
|
|
73
|
-
className?: string
|
|
74
|
-
style?:
|
|
75
|
-
fill?: string
|
|
76
|
-
} & import("react").CSSProperties
|
|
72
|
+
className?: string;
|
|
73
|
+
style?: {
|
|
74
|
+
fill?: string;
|
|
75
|
+
} & import("react").CSSProperties;
|
|
77
76
|
}) => import("react").JSX.Element;
|
|
78
77
|
};
|
|
79
78
|
export { Checkmark, ChevronRight, Circle, CircleDot, Cog, Computer, CrossIcon, Door, Hamburger, HorizontalDots, House, icons, Magnify, Moon, Pencil, Save, Sun, Undo, UserOutline, Warning, };
|
|
@@ -20,8 +20,8 @@ export declare const noDrag: {
|
|
|
20
20
|
/** apply bounce effect given a condition */
|
|
21
21
|
export declare const bounce: (bounceattr: string) => import("@emotion/react").SerializedStyles;
|
|
22
22
|
export declare const Card: import("@emotion/styled").StyledComponent<{
|
|
23
|
-
theme?: import("@emotion/react").Theme
|
|
24
|
-
as?:
|
|
23
|
+
theme?: import("@emotion/react").Theme;
|
|
24
|
+
as?: React.ElementType;
|
|
25
25
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
26
26
|
export interface IVarStyles {
|
|
27
27
|
/** default var(--main-fg) */
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SOBase: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
5
|
export declare const SOBR: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme
|
|
8
|
-
as?:
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
9
8
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
9
|
export declare const SOB: import("@emotion/styled").StyledComponent<{
|
|
11
|
-
theme?: import("@emotion/react").Theme
|
|
12
|
-
as?:
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
13
12
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
13
|
export declare const SOP: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme
|
|
16
|
-
as?:
|
|
14
|
+
theme?: import("@emotion/react").Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
17
16
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
17
|
export declare const SOCenter: import("@emotion/styled").StyledComponent<{
|
|
19
|
-
theme?: import("@emotion/react").Theme
|
|
20
|
-
as?:
|
|
18
|
+
theme?: import("@emotion/react").Theme;
|
|
19
|
+
as?: React.ElementType;
|
|
21
20
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
22
21
|
export declare const SOA: import("@emotion/styled").StyledComponent<{
|
|
23
|
-
theme?: import("@emotion/react").Theme
|
|
24
|
-
as?:
|
|
22
|
+
theme?: import("@emotion/react").Theme;
|
|
23
|
+
as?: React.ElementType;
|
|
25
24
|
}, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.729",
|
|
3
3
|
"name": "ag-common",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
@@ -18,33 +18,33 @@
|
|
|
18
18
|
"test": "globstar -- node --import tsx --test \"src/**/*.test.ts\""
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@aws-sdk/client-dynamodb": "
|
|
22
|
-
"@aws-sdk/client-s3": "
|
|
23
|
-
"@aws-sdk/client-ses": "
|
|
24
|
-
"@aws-sdk/client-sqs": "
|
|
25
|
-
"@aws-sdk/client-sts": "
|
|
26
|
-
"@aws-sdk/lib-dynamodb": "
|
|
27
|
-
"@aws-sdk/s3-presigned-post": "
|
|
28
|
-
"@aws-sdk/util-dynamodb": "
|
|
29
|
-
"aws-cdk-lib": "
|
|
30
|
-
"axios": "
|
|
31
|
-
"buffer": "
|
|
32
|
-
"constructs": "
|
|
33
|
-
"jsonwebtoken": "
|
|
34
|
-
"jwks-rsa": "
|
|
35
|
-
"node-cache": "
|
|
36
|
-
"openapi-request-validator": "
|
|
37
|
-
"react": "
|
|
38
|
-
"react-dom": "
|
|
39
|
-
"typescript": "
|
|
21
|
+
"@aws-sdk/client-dynamodb": "3.744.0",
|
|
22
|
+
"@aws-sdk/client-s3": "3.744.0",
|
|
23
|
+
"@aws-sdk/client-ses": "3.744.0",
|
|
24
|
+
"@aws-sdk/client-sqs": "3.744.0",
|
|
25
|
+
"@aws-sdk/client-sts": "3.744.0",
|
|
26
|
+
"@aws-sdk/lib-dynamodb": "3.744.0",
|
|
27
|
+
"@aws-sdk/s3-presigned-post": "3.744.0",
|
|
28
|
+
"@aws-sdk/util-dynamodb": "3.744.0",
|
|
29
|
+
"aws-cdk-lib": "2.178.1",
|
|
30
|
+
"axios": "1.7.9",
|
|
31
|
+
"buffer": "6.0.3",
|
|
32
|
+
"constructs": "10.4.2",
|
|
33
|
+
"jsonwebtoken": "9.0.2",
|
|
34
|
+
"jwks-rsa": "3.1.0",
|
|
35
|
+
"node-cache": "5.1.2",
|
|
36
|
+
"openapi-request-validator": "12.1.3",
|
|
37
|
+
"react": "19.0.0",
|
|
38
|
+
"react-dom": "19.0.0",
|
|
39
|
+
"typescript": "5.7.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.
|
|
43
|
-
"@babel/preset-typescript": "7.
|
|
44
|
-
"@babel/types": "7.
|
|
45
|
-
"@emotion/react": "11.
|
|
46
|
-
"@emotion/styled": "11.
|
|
47
|
-
"@smithy/types": "
|
|
42
|
+
"@babel/core": "7.26.7",
|
|
43
|
+
"@babel/preset-typescript": "7.26.0",
|
|
44
|
+
"@babel/types": "7.26.7",
|
|
45
|
+
"@emotion/react": "11.14.0",
|
|
46
|
+
"@emotion/styled": "11.14.0",
|
|
47
|
+
"@smithy/types": "4.1.0",
|
|
48
48
|
"@storybook/addon-actions": "8.1.6",
|
|
49
49
|
"@storybook/addon-docs": "8.1.6",
|
|
50
50
|
"@storybook/addon-essentials": "8.1.6",
|
|
@@ -55,16 +55,19 @@
|
|
|
55
55
|
"@storybook/react": "8.1.6",
|
|
56
56
|
"@storybook/react-webpack5": "8.1.6",
|
|
57
57
|
"@storybook/theming": "8.1.6",
|
|
58
|
-
"@types/jsonwebtoken": "9.0.
|
|
59
|
-
"@types/node": "
|
|
60
|
-
"@types/react": "
|
|
61
|
-
"@types/react-dom": "
|
|
58
|
+
"@types/jsonwebtoken": "9.0.8",
|
|
59
|
+
"@types/node": "22.13.1",
|
|
60
|
+
"@types/react": "19.0.8",
|
|
61
|
+
"@types/react-dom": "19.0.3",
|
|
62
62
|
"cross-env": "7.0.3",
|
|
63
|
-
"eslint-config-e7npm": "0.
|
|
63
|
+
"eslint-config-e7npm": "0.1.13",
|
|
64
64
|
"globstar": "1.0.0",
|
|
65
|
-
"rimraf": "
|
|
65
|
+
"rimraf": "6.0.1",
|
|
66
66
|
"storybook": "8.1.6",
|
|
67
|
-
"tsx": "4.
|
|
67
|
+
"tsx": "4.19.2"
|
|
68
|
+
},
|
|
69
|
+
"resolutions": {
|
|
70
|
+
"globals": "15.14.0"
|
|
68
71
|
},
|
|
69
72
|
"files": [
|
|
70
73
|
"dist/**/*",
|