ag-common 0.0.374 → 0.0.375
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/dynamo.d.ts +1 -1
- package/dist/api/helpers/dynamo.js +7 -3
- package/dist/api/helpers/dynamoInfra.d.ts +1 -1
- package/dist/api/helpers/openApiHelpers.d.ts +2 -2
- package/dist/api/helpers/openApiHelpers.js +1 -1
- package/dist/api/helpers/s3.d.ts +2 -2
- package/dist/api/helpers/s3.js +1 -1
- package/dist/api/helpers/sqs.js +1 -1
- package/dist/api/helpers/validateOpenApi.d.ts +2 -2
- package/dist/api/helpers/validateOpenApi.js +4 -4
- package/dist/api/helpers/validations.js +2 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/types/index.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/ui/components/BorderGradient/index.js +10 -10
- package/dist/ui/components/Button/index.js +5 -5
- package/dist/ui/components/Chevron/index.js +1 -1
- package/dist/ui/components/Close/index.js +1 -1
- package/dist/ui/components/Confirm/Dialog.js +2 -2
- package/dist/ui/components/Confirm/Modal.js +2 -2
- package/dist/ui/components/Confirm/index.d.ts +1 -1
- package/dist/ui/components/Confirm/index.js +1 -1
- package/dist/ui/components/DropdownList/Base.js +3 -3
- package/dist/ui/components/DropdownList/Dialog.js +1 -1
- package/dist/ui/components/FlexColumn/index.js +1 -1
- package/dist/ui/components/FlexRow/index.js +1 -1
- package/dist/ui/components/Icon/index.js +3 -3
- package/dist/ui/components/Image/index.js +1 -1
- package/dist/ui/components/KebabDots/index.js +2 -2
- package/dist/ui/components/Modal/Dialog.js +1 -1
- package/dist/ui/components/Modal/Modal.d.ts +1 -1
- package/dist/ui/components/Modal/Modal.js +3 -3
- package/dist/ui/components/Modal/index.d.ts +2 -2
- package/dist/ui/components/Modal/index.js +2 -2
- package/dist/ui/components/OpenApiCodeBlock/OpenApiCodeBlock.js +4 -4
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/body.js +1 -1
- package/dist/ui/components/OpenApiCodeBlock/curl/helpers/security.js +1 -1
- package/dist/ui/components/OpenApiCodeBlock/curl/index.js +7 -7
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/call.js +1 -1
- package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/req.js +14 -14
- package/dist/ui/components/OpenApiCodeBlock/fetch/index.js +3 -3
- package/dist/ui/components/OpenApiCodeBlock/helpers/common.js +1 -1
- package/dist/ui/components/OpenApiCodeBlock/helpers/joinJsx.js +1 -1
- package/dist/ui/components/ProgressBar/index.js +1 -1
- package/dist/ui/components/Prompt/Dialog.js +1 -1
- package/dist/ui/components/Prompt/Modal.js +2 -2
- package/dist/ui/components/RowOrColumn/index.js +2 -2
- package/dist/ui/components/Search/Base.js +5 -5
- package/dist/ui/components/Search/Dialog.js +2 -2
- package/dist/ui/components/Search/Inline.js +1 -1
- package/dist/ui/components/Search/Modal.js +3 -3
- package/dist/ui/components/Search/index.d.ts +2 -2
- package/dist/ui/components/Search/index.js +2 -2
- package/dist/ui/components/Sidebar/index.js +2 -2
- package/dist/ui/components/SparkLine/index.js +2 -2
- package/dist/ui/components/Table/index.js +2 -2
- package/dist/ui/components/TextEdit/CheckboxEdit.js +8 -8
- package/dist/ui/components/TextEdit/ColourEdit.js +6 -6
- package/dist/ui/components/TextEdit/LengthBox.js +1 -1
- package/dist/ui/components/TextEdit/ListboxEdit.js +5 -5
- package/dist/ui/components/TextEdit/RadioGroup.js +5 -5
- package/dist/ui/components/TextEdit/TextEdit.d.ts +1 -1
- package/dist/ui/components/TextEdit/TextEdit.js +14 -14
- package/dist/ui/components/TextEdit/common.js +2 -2
- package/dist/ui/components/TextWithButton/index.js +1 -1
- package/dist/ui/components/Toast/index.js +1 -1
- package/dist/ui/components/UserImage/index.js +3 -3
- package/dist/ui/helpers/axiosHelper.js +2 -2
- package/dist/ui/helpers/callOpenApi/cached.d.ts +2 -2
- package/dist/ui/helpers/callOpenApi/cached.js +3 -3
- package/dist/ui/helpers/callOpenApi/direct.d.ts +1 -1
- package/dist/ui/helpers/callOpenApi/direct.js +4 -4
- package/dist/ui/helpers/callOpenApi/hook.d.ts +2 -2
- package/dist/ui/helpers/callOpenApi/hook.js +1 -1
- package/dist/ui/helpers/callOpenApi/index.d.ts +1 -1
- package/dist/ui/helpers/callOpenApi/index.js +1 -1
- package/dist/ui/helpers/callOpenApi/types.d.ts +1 -1
- package/dist/ui/helpers/cookie/get.js +1 -1
- package/dist/ui/helpers/cookie/set.js +2 -2
- package/dist/ui/helpers/cookie/use.d.ts +1 -1
- package/dist/ui/helpers/cookie/use.js +1 -1
- package/dist/ui/helpers/date.js +1 -1
- package/dist/ui/helpers/routes.d.ts +1 -1
- package/dist/ui/helpers/routes.js +2 -2
- package/dist/ui/helpers/useLocalStorage.js +2 -2
- package/dist/ui/helpers/useOnClickOutside.js +1 -1
- package/dist/ui/helpers/useQueryString.js +2 -2
- package/dist/ui/helpers/useResize.js +1 -1
- package/dist/ui/icons/CrossIcon.js +1 -1
- package/dist/ui/styles/common.js +2 -2
- package/dist/ui/styles/standaloneStyles.js +1 -1
- package/package.json +4 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setCookieString = exports.setCookieRawWrapper = exports.wipeCookies = void 0;
|
|
4
|
-
const const_1 = require("./const");
|
|
5
|
-
const get_1 = require("./get");
|
|
6
4
|
const log_1 = require("../../../common/helpers/log");
|
|
7
5
|
const string_1 = require("../../../common/helpers/string");
|
|
6
|
+
const const_1 = require("./const");
|
|
7
|
+
const get_1 = require("./get");
|
|
8
8
|
/**
|
|
9
9
|
* expiryDays <0 will delete
|
|
10
10
|
* @param param0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useCookieBoolean = exports.useCookieNumber = exports.useCookieString = exports.useCookie = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
4
5
|
const get_1 = require("./get");
|
|
5
6
|
const set_1 = require("./set");
|
|
6
|
-
const react_1 = require("react");
|
|
7
7
|
function useCookie(p) {
|
|
8
8
|
const parse = (s) => {
|
|
9
9
|
if (!s) {
|
package/dist/ui/helpers/date.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDMY = exports.dateDiffToString = void 0;
|
|
4
|
-
const plural_1 = require("./plural");
|
|
5
4
|
const date_1 = require("../../common/helpers/date");
|
|
5
|
+
const plural_1 = require("./plural");
|
|
6
6
|
/**
|
|
7
7
|
* returns appropriate time diff string
|
|
8
8
|
* @param lowDate
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { TLang } from '../../common/helpers/i18n';
|
|
1
2
|
import { ICognitoAuth } from './cognito';
|
|
2
3
|
import { AxiosWrapperLite } from './jwt';
|
|
3
|
-
import { TLang } from '../../common/helpers/i18n';
|
|
4
4
|
export type TProtocol = 'http:' | 'https:';
|
|
5
5
|
export interface LocationSubset {
|
|
6
6
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getServerReq = exports.getClientOrServerReqHref = void 0;
|
|
4
|
+
const url_1 = require("url");
|
|
4
5
|
const i18n_1 = require("../../common/helpers/i18n");
|
|
5
|
-
const string_1 = require("../../common/helpers/string");
|
|
6
6
|
const object_1 = require("../../common/helpers/object");
|
|
7
|
-
const
|
|
7
|
+
const string_1 = require("../../common/helpers/string");
|
|
8
8
|
const calculateServerHref = ({ host, pathname, }) => {
|
|
9
9
|
if (!host) {
|
|
10
10
|
return undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UseLocalStorage = exports.getLocalStorageItem = exports.setLocalStorageItem = exports.clearAllLocalStorage = exports.clearLocalStorageItem = void 0;
|
|
4
|
-
const log_1 = require("../../common/helpers/log");
|
|
5
|
-
const object_1 = require("../../common/helpers/object");
|
|
6
4
|
const react_1 = require("react");
|
|
7
5
|
const date_1 = require("../../common/helpers/date");
|
|
6
|
+
const log_1 = require("../../common/helpers/log");
|
|
7
|
+
const object_1 = require("../../common/helpers/object");
|
|
8
8
|
const clearLocalStorageItem = (key) => {
|
|
9
9
|
if (typeof window === 'undefined') {
|
|
10
10
|
return;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useOnClickOutside = void 0;
|
|
4
|
-
const dom_1 = require("./dom");
|
|
5
4
|
const react_1 = require("react");
|
|
5
|
+
const dom_1 = require("./dom");
|
|
6
6
|
function useOnClickOutside(p, handler) {
|
|
7
7
|
(0, react_1.useEffect)(() => {
|
|
8
8
|
if (p.disabled || typeof window === 'undefined') {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useQueryStringSingle = exports.useQueryStringArray = exports.useQueryStringRaw = exports.isServer = void 0;
|
|
4
|
-
const object_1 = require("../../common/helpers/object");
|
|
5
|
-
const common_1 = require("../../common");
|
|
6
4
|
const react_1 = require("react");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const object_1 = require("../../common/helpers/object");
|
|
7
7
|
exports.isServer = typeof window === 'undefined';
|
|
8
8
|
/**
|
|
9
9
|
* hook for query string value
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useResize = void 0;
|
|
4
|
-
const media_1 = require("../styles/media");
|
|
5
4
|
const react_1 = require("react");
|
|
5
|
+
const media_1 = require("../styles/media");
|
|
6
6
|
function getWindowDimensions() {
|
|
7
7
|
if (typeof window !== 'undefined') {
|
|
8
8
|
const width = window.innerWidth;
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CrossIcon = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
7
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const Base = styled_1.default.svg `
|
|
10
10
|
color: rgb(170, 170, 170);
|
|
11
11
|
margin: auto;
|
package/dist/ui/styles/common.js
CHANGED
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.bounce = exports.FullScreenPage = exports.noDrag = exports.Card = exports.FadeBottom = exports.CssTransparentBlock = exports.TextOverflowEllipsis = exports.NoTextSelect = exports.HardOutline = void 0;
|
|
7
|
-
const colours_1 = require("./colours");
|
|
8
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
7
|
const react_1 = require("@emotion/react");
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
+
const colours_1 = require("./colours");
|
|
10
10
|
exports.HardOutline = (0, react_1.css) `
|
|
11
11
|
filter: drop-shadow(1px 1px 0px var(--outlinecolour))
|
|
12
12
|
drop-shadow(-1px 1px 0px var(--outlinecolour))
|
|
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SOA = exports.SOCenter = exports.SOP = exports.SOB = exports.SOBR = exports.SOBase = void 0;
|
|
7
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
7
8
|
const common_1 = require("./common");
|
|
8
9
|
const media_1 = require("./media");
|
|
9
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
10
10
|
exports.SOBase = (0, styled_1.default)(common_1.FullScreenPage) `
|
|
11
11
|
> h1,
|
|
12
12
|
h2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.375",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Andrei Gec <@andreigec> (https://gec.dev/)",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"react-dom": "18.2.0",
|
|
28
28
|
"react-hot-toast": "2.x",
|
|
29
29
|
"typescript": "4.x",
|
|
30
|
-
"eslint-import-resolver-typescript": "3.x"
|
|
30
|
+
"eslint-import-resolver-typescript": "3.x",
|
|
31
|
+
"eslint-plugin-simple-import-sort": ">=8"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {
|
|
33
34
|
"@emotion/react": ">11",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"@emotion/react": "11.10.5",
|
|
51
52
|
"@emotion/styled": "11.10.5",
|
|
52
53
|
"cross-env": "7.0.3",
|
|
53
|
-
"eslint-config-e7npm": "0.0.
|
|
54
|
+
"eslint-config-e7npm": "0.0.7",
|
|
54
55
|
"rimraf": "3.0.2"
|
|
55
56
|
},
|
|
56
57
|
"files": [
|