ag-common 0.0.472 → 0.0.474

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.
Files changed (60) hide show
  1. package/dist/api/helpers/api.d.ts +1 -1
  2. package/dist/api/helpers/dynamo.d.ts +1 -1
  3. package/dist/api/helpers/openApiHelpers.d.ts +4 -3
  4. package/dist/api/helpers/openApiHelpers.js +0 -1
  5. package/dist/api/helpers/ssm.d.ts +1 -1
  6. package/dist/api/helpers/ssmInfra/dynamo.d.ts +2 -1
  7. package/dist/api/helpers/ssmInfra/s3.d.ts +2 -1
  8. package/dist/api/helpers/ssmInfra/sqs.d.ts +2 -1
  9. package/dist/api/helpers/validateOpenApi.d.ts +4 -4
  10. package/dist/api/helpers/validations.d.ts +2 -2
  11. package/dist/api/types/aws.d.ts +1 -1
  12. package/dist/api/types/index.d.ts +2 -2
  13. package/dist/ui/components/Button/index.d.ts +2 -1
  14. package/dist/ui/components/Confirm/Dialog.d.ts +1 -1
  15. package/dist/ui/components/Confirm/Modal.d.ts +1 -1
  16. package/dist/ui/components/DropdownList/Base.d.ts +1 -1
  17. package/dist/ui/components/DropdownList/Dialog.d.ts +1 -1
  18. package/dist/ui/components/DropdownList/types.d.ts +1 -1
  19. package/dist/ui/components/FlexColumn/index.d.ts +1 -1
  20. package/dist/ui/components/FlexRow/index.d.ts +1 -1
  21. package/dist/ui/components/Icon/index.d.ts +2 -1
  22. package/dist/ui/components/Image/index.d.ts +2 -1
  23. package/dist/ui/components/Modal/Modal.d.ts +1 -1
  24. package/dist/ui/components/OpenApiCodeBlock/OpenApiCodeBlock.d.ts +1 -1
  25. package/dist/ui/components/OpenApiCodeBlock/curl/helpers/body.d.ts +1 -1
  26. package/dist/ui/components/OpenApiCodeBlock/curl/helpers/getCurlLines.d.ts +1 -1
  27. package/dist/ui/components/OpenApiCodeBlock/curl/helpers/security.d.ts +1 -1
  28. package/dist/ui/components/OpenApiCodeBlock/curl/index.d.ts +1 -1
  29. package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/call.d.ts +1 -1
  30. package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/getFetchLines.d.ts +1 -1
  31. package/dist/ui/components/OpenApiCodeBlock/fetch/helpers/req.d.ts +1 -1
  32. package/dist/ui/components/OpenApiCodeBlock/fetch/index.d.ts +1 -1
  33. package/dist/ui/components/OpenApiCodeBlock/helpers/common.d.ts +1 -1
  34. package/dist/ui/components/Prompt/Modal.d.ts +1 -1
  35. package/dist/ui/components/RowOrColumn/index.d.ts +2 -1
  36. package/dist/ui/components/Search/Base.d.ts +1 -1
  37. package/dist/ui/components/Search/Dialog.d.ts +1 -1
  38. package/dist/ui/components/Search/Inline.d.ts +1 -1
  39. package/dist/ui/components/Search/Modal.d.ts +1 -1
  40. package/dist/ui/components/Search/SearchBox.d.ts +1 -1
  41. package/dist/ui/components/TextEdit/TextEdit.d.ts +1 -1
  42. package/dist/ui/components/TextEdit/types.d.ts +1 -1
  43. package/dist/ui/components/TimelineChart/index.d.ts +1 -1
  44. package/dist/ui/components/Toast/base.d.ts +1 -1
  45. package/dist/ui/components/TreeChart/base.d.ts +1 -1
  46. package/dist/ui/components/TreeChart/helpers.d.ts +1 -1
  47. package/dist/ui/components/UserImage/index.d.ts +1 -1
  48. package/dist/ui/helpers/axiosHelper.d.ts +1 -1
  49. package/dist/ui/helpers/callOpenApi/cached.d.ts +3 -3
  50. package/dist/ui/helpers/callOpenApi/direct.d.ts +2 -2
  51. package/dist/ui/helpers/callOpenApi/helpers.d.ts +1 -1
  52. package/dist/ui/helpers/callOpenApi/hook.d.ts +3 -3
  53. package/dist/ui/helpers/callOpenApi/hook.js +2 -1
  54. package/dist/ui/helpers/callOpenApi/types.d.ts +1 -1
  55. package/dist/ui/helpers/cookie/use.d.ts +1 -1
  56. package/dist/ui/helpers/routes.d.ts +2 -2
  57. package/dist/ui/helpers/useGranularHook.d.ts +1 -1
  58. package/dist/ui/helpers/useOnClickOutside.d.ts +1 -1
  59. package/dist/ui/helpers/useOnScroll.d.ts +1 -1
  60. package/package.json +10 -10
@@ -1,4 +1,4 @@
1
- import { APIGatewayProxyResult, DYNAMOKEYS } from '../types';
1
+ import type { APIGatewayProxyResult, DYNAMOKEYS } from '../types';
2
2
  export declare const returnCode: <T>(statusCode: number, body?: T | undefined, extraHeaders?: {
3
3
  [a: string]: string;
4
4
  } | undefined, fullSiteUrl?: string) => APIGatewayProxyResult;
@@ -1,5 +1,5 @@
1
1
  import { DynamoDBDocument } from '@aws-sdk/lib-dynamodb';
2
- import { DYNAMOKEYS, IQueryDynamo, Key } from '../types';
2
+ import type { DYNAMOKEYS, IQueryDynamo, Key } from '../types';
3
3
  export declare const setDynamo: (region: string) => DynamoDBDocument;
4
4
  export declare let dynamoDb: DynamoDBDocument;
5
5
  export declare const putDynamo: <T extends Record<string, any>>(item: T, tableName: string, opt?: {
@@ -1,6 +1,7 @@
1
- import { aws_apigateway as apigw, aws_certificatemanager as certmgr, aws_route53 as route53 } from 'aws-cdk-lib';
2
- import { Construct } from 'constructs';
3
- import { ILambdaConfigs } from '../types';
1
+ import type { aws_certificatemanager as certmgr } from 'aws-cdk-lib';
2
+ import { aws_apigateway as apigw, aws_route53 as route53 } from 'aws-cdk-lib';
3
+ import type { Construct } from 'constructs';
4
+ import type { ILambdaConfigs } from '../types';
4
5
  export declare const openApiImpl: (p: {
5
6
  stack: Construct;
6
7
  /**
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.openApiImpl = void 0;
4
- /* eslint-disable no-new */
5
4
  const aws_cdk_lib_1 = require("aws-cdk-lib");
6
5
  const array_1 = require("../../common/helpers/array");
7
6
  const log_1 = require("../../common/helpers/log");
@@ -1,4 +1,4 @@
1
- import { Stack } from 'aws-cdk-lib';
1
+ import type { Stack } from 'aws-cdk-lib';
2
2
  /**
3
3
  * save a value to ssm
4
4
  * @param param0
@@ -1,4 +1,5 @@
1
- import { aws_dynamodb as dynamodb, Stack } from 'aws-cdk-lib';
1
+ import type { Stack } from 'aws-cdk-lib';
2
+ import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
2
3
  export declare const generateTableRef: ({ stack, baseKey, hasStream, hasGSI, }: {
3
4
  hasStream: boolean;
4
5
  hasGSI: boolean;
@@ -1,4 +1,5 @@
1
- import { aws_s3 as s3, Stack } from 'aws-cdk-lib';
1
+ import type { Stack } from 'aws-cdk-lib';
2
+ import { aws_s3 as s3 } from 'aws-cdk-lib';
2
3
  export declare const generateS3SSMParams: ({ stack, bucket, baseKey, }: {
3
4
  stack: Stack;
4
5
  bucket: s3.IBucket;
@@ -1,4 +1,5 @@
1
- import { aws_sqs as sqs, Stack } from 'aws-cdk-lib';
1
+ import type { Stack } from 'aws-cdk-lib';
2
+ import { aws_sqs as sqs } from 'aws-cdk-lib';
2
3
  export declare const generateSqsSSMParams: ({ stack, queue, baseKey, }: {
3
4
  stack: Stack;
4
5
  queue: sqs.IQueue;
@@ -1,7 +1,7 @@
1
- import { TLang } from '../../common/helpers/i18n';
2
- import { User } from '../../ui/helpers/jwt';
3
- import { APIGatewayEvent, APIGatewayProxyResult } from '../types';
4
- import { TGetAndValidateToken } from './validations';
1
+ import type { TLang } from '../../common/helpers/i18n';
2
+ import type { User } from '../../ui/helpers/jwt';
3
+ import type { APIGatewayEvent, APIGatewayProxyResult } from '../types';
4
+ import type { TGetAndValidateToken } from './validations';
5
5
  export type NextType<T> = ({ event, body, params, userProfile, lang, }: {
6
6
  params: Record<string, string>;
7
7
  event: APIGatewayEvent;
@@ -1,5 +1,5 @@
1
- import { User } from '../../ui/helpers/jwt';
2
- import { APIGatewayProxyResult } from '../types';
1
+ import type { User } from '../../ui/helpers/jwt';
2
+ import type { APIGatewayProxyResult } from '../types';
3
3
  export interface IGetAndValidateToken {
4
4
  /**
5
5
  * default ap-southeast-2
@@ -1,4 +1,4 @@
1
- import { AttributeValue } from '@aws-sdk/client-dynamodb/dist-types/models/models_0';
1
+ import type { AttributeValue } from '@aws-sdk/client-dynamodb/dist-types/models/models_0';
2
2
  export interface APIGatewayProxyResult {
3
3
  statusCode: number;
4
4
  headers?: {
@@ -1,5 +1,5 @@
1
- import { aws_dynamodb as dynamodb, aws_iam as iam, aws_lambda as lambda } from 'aws-cdk-lib';
2
- import { Key } from './aws';
1
+ import type { aws_dynamodb as dynamodb, aws_iam as iam, aws_lambda as lambda } from 'aws-cdk-lib';
2
+ import type { Key } from './aws';
3
3
  export interface DYNAMOKEYS {
4
4
  type: string;
5
5
  L1: string;
@@ -1,4 +1,5 @@
1
- import React, { KeyboardEventHandler, MouseEventHandler } from 'react';
1
+ import type { KeyboardEventHandler, MouseEventHandler } from 'react';
2
+ import React from 'react';
2
3
  export declare const ButtonBase: import("@emotion/react").SerializedStyles;
3
4
  export interface IButton {
4
5
  title?: string;
@@ -1,4 +1,4 @@
1
- import { IConfirmDialog } from './types';
1
+ import type { IConfirmDialog } from './types';
2
2
  /**
3
3
  * opens a dialog programatically
4
4
  * @param param0
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { IConfirmModal } from './types';
2
+ import type { IConfirmModal } from './types';
3
3
  export declare const ConfirmModal: ({ onSubmit, bottomText, topText, okText, cancelText, }: IConfirmModal) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { IDropdownList } from './types';
2
+ import type { IDropdownList } from './types';
3
3
  export declare function DropdownList<T>(p: IDropdownList<T>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { IDropdownList } from './types';
1
+ import type { IDropdownList } from './types';
2
2
  export declare const DropdownListDialog: <T>(p: {
3
3
  position: {
4
4
  x: number;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  export interface IDropdownList<T> {
3
3
  /**
4
4
  * all items that can be in dropdown
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { IFlexColumn } from '../RowOrColumn';
2
+ import type { IFlexColumn } from '../RowOrColumn';
3
3
  export declare const FlexColumn: (props: IFlexColumn) => React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { IFlexRow } from '../RowOrColumn';
2
+ import type { IFlexRow } from '../RowOrColumn';
3
3
  export declare const FlexRow: (props: IFlexRow) => React.JSX.Element;
@@ -1,4 +1,5 @@
1
- import React, { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
2
3
  export interface IIcon {
3
4
  disabled?: boolean;
4
5
  fill?: string;
@@ -1,4 +1,5 @@
1
- import React, { ImgHTMLAttributes } from 'react';
1
+ import type { ImgHTMLAttributes } from 'react';
2
+ import React from 'react';
2
3
  export interface IImage {
3
4
  /** if true, will set order to -1 for mobile. default false */
4
5
  smalltop?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IModal } from './types';
2
+ import type { IModal } from './types';
3
3
  export declare const ModalItem: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: React.ElementType<any> | undefined;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { IOpenApiCodeBlock } from './types';
2
+ import type { IOpenApiCodeBlock } from './types';
3
3
  export declare const OpenApiCodeBlock: <TDefaultApi>(p: IOpenApiCodeBlock<TDefaultApi>) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IOpenApiCodeBlock } from '../../types';
2
+ import type { IOpenApiCodeBlock } from '../../types';
3
3
  export declare const getBody: <TDefaultApi>(p: IOpenApiCodeBlock<TDefaultApi>) => {
4
4
  content: JSX.Element | undefined;
5
5
  header: JSX.Element | undefined;
@@ -1,2 +1,2 @@
1
- import { ICurlLines, IOpenApiCodeBlock, IOpenApiOperationBlock } from '../../types';
1
+ import type { ICurlLines, IOpenApiCodeBlock, IOpenApiOperationBlock } from '../../types';
2
2
  export declare const getCurlLines: <TDefaultApi>(ops: IOpenApiOperationBlock, p: IOpenApiCodeBlock<TDefaultApi>) => ICurlLines;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IOpenApi, IOpenApiOperation } from '../../types';
2
+ import type { IOpenApi, IOpenApiOperation } from '../../types';
3
3
  export declare const getSecurityLine: (p: {
4
4
  apiKey?: string;
5
5
  schema: IOpenApi;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../types';
2
+ import type { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../types';
3
3
  export declare const Curl: <TDefaultApi>({ ops, p, }: {
4
4
  p: IOpenApiCodeBlock<TDefaultApi>;
5
5
  ops: IOpenApiOperationBlock;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../../types';
2
+ import type { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../../types';
3
3
  export declare const getFetchCall: <TDefaultApi>(p: IOpenApiCodeBlock<TDefaultApi>, ops: IOpenApiOperationBlock) => JSX.Element | undefined;
@@ -1,2 +1,2 @@
1
- import { IFetchLines, IOpenApiCodeBlock, IOpenApiOperationBlock } from '../../types';
1
+ import type { IFetchLines, IOpenApiCodeBlock, IOpenApiOperationBlock } from '../../types';
2
2
  export declare const getFetchLines: <TDefaultApi>(ops: IOpenApiOperationBlock, p: IOpenApiCodeBlock<TDefaultApi>) => IFetchLines;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../../types';
2
+ import type { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../../types';
3
3
  export declare const getRequestOptions: <TDefaultApi>(p: IOpenApiCodeBlock<TDefaultApi>, ops: IOpenApiOperationBlock) => JSX.Element | undefined;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../types';
2
+ import type { IOpenApiCodeBlock, IOpenApiOperationBlock } from '../types';
3
3
  export declare const Fetch: <TDefaultApi>({ ops, p, }: {
4
4
  p: IOpenApiCodeBlock<TDefaultApi>;
5
5
  ops: IOpenApiOperationBlock;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IOpenApi, IOpenApiCodeBlock, IOpenApiOperation, IOpenApiOperationBlock } from '../types';
2
+ import type { IOpenApi, IOpenApiCodeBlock, IOpenApiOperation, IOpenApiOperationBlock } from '../types';
3
3
  export declare const Highlight: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: import("react").ElementType<any> | undefined;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Root } from 'react-dom/client';
2
+ import type { Root } from 'react-dom/client';
3
3
  export interface IPromptModal {
4
4
  defaultValue?: string;
5
5
  placeholder?: string;
@@ -1,4 +1,5 @@
1
- import React, { ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
2
3
  export interface IRowOrColumn {
3
4
  noGrow?: boolean;
4
5
  center?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ISearchDialog, TSearchModalRes } from './types';
2
+ import type { ISearchDialog, TSearchModalRes } from './types';
3
3
  type ISearchBase<T> = ISearchDialog<T> & {
4
4
  onSearchTextChange?: (v: string) => void;
5
5
  onSelectItem?: (v: TSearchModalRes<T>) => void;
@@ -1,4 +1,4 @@
1
- import { ISearchDialog, TSearchModalRes } from './types';
1
+ import type { ISearchDialog, TSearchModalRes } from './types';
2
2
  /**
3
3
  * opens a searchmodal programatically, and resolves to either undefined, or the selected item
4
4
  * @param p
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ISearchInline, TSearchModalRes } from './types';
2
+ import type { ISearchInline, TSearchModalRes } from './types';
3
3
  export declare const SearchInline: <T>(p: ISearchInline<T> & {
4
4
  onSelectItem?: ((v: TSearchModalRes<T>) => void) | undefined;
5
5
  onSearchTextChange?: ((v: string) => void) | undefined;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ISearchModal, TSearchModalRes } from './types';
2
+ import type { ISearchModal, TSearchModalRes } from './types';
3
3
  export declare const SearchModal: <T>(p: ISearchModal<T> & {
4
4
  onSelectItem: (v: TSearchModalRes<T>) => void;
5
5
  }) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IRefTextEdit } from '../TextEdit';
2
+ import type { IRefTextEdit } from '../TextEdit';
3
3
  export interface ISearchBox {
4
4
  placeholderText?: string;
5
5
  searchText: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IRefTextEdit, ITextEdit } from './types';
2
+ import type { IRefTextEdit, ITextEdit } from './types';
3
3
  export declare const ValueReadonly: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: React.ElementType<any> | undefined;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface IRefTextEdit {
3
3
  /** Set the internal value of the typed string. Can be used to clear externally */
4
4
  setValue: React.Dispatch<React.SetStateAction<string>>;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import type { FC } from 'react';
2
2
  export interface ITimelineChartSeries {
3
3
  data: {
4
4
  x: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IToastInt, IToastProviderOptions, TAddToast } from './types';
2
+ import type { IToastInt, IToastProviderOptions, TAddToast } from './types';
3
3
  export declare const ToastContext: React.Context<{
4
4
  addToast: TAddToast;
5
5
  }>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { TreeNodeData } from './types';
2
+ import type { TreeNodeData } from './types';
3
3
  export declare const TreeChart: (tnd: TreeNodeData) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { TreeNodeData, TreeNodeOut } from './types';
1
+ import type { TreeNodeData, TreeNodeOut } from './types';
2
2
  interface TreeNodeRaw {
3
3
  name: string;
4
4
  size: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { User } from '../../helpers/jwt';
2
+ import type { User } from '../../helpers/jwt';
3
3
  export interface IUserImage {
4
4
  image?: string;
5
5
  className?: string;
@@ -1,4 +1,4 @@
1
- import { AxiosResponse } from 'axios';
1
+ import type { AxiosResponse } from 'axios';
2
2
  /**
3
3
  *
4
4
  * @param body accepts object or json, and passes as-is
@@ -1,6 +1,6 @@
1
- import { AxiosWrapperLite } from '../jwt';
2
- import { CacheItems } from '../routes';
3
- import { ICallOpenApi, OverrideAuth } from './types';
1
+ import type { AxiosWrapperLite } from '../jwt';
2
+ import type { CacheItems } from '../routes';
3
+ import type { ICallOpenApi, OverrideAuth } from './types';
4
4
  export type TCallOpenApiCached<T, TDefaultApi> = ICallOpenApi<T, TDefaultApi> & {
5
5
  /**
6
6
  * if falsey, will run callOpenApi directly
@@ -1,5 +1,5 @@
1
- import { AxiosWrapperLite } from '../jwt';
2
- import { ICallOpenApi, OverrideAuth } from './types';
1
+ import type { AxiosWrapperLite } from '../jwt';
2
+ import type { ICallOpenApi, OverrideAuth } from './types';
3
3
  /**
4
4
  * get the id_token from provided value, or cookie, or LS
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type { AxiosResponse } from 'axios';
2
- import { ApiResponse } from './types';
2
+ import type { ApiResponse } from './types';
3
3
  /**
4
4
  * shim to convert raw response to an axios style response.
5
5
  * must convert all DefaultClass requests to the Raw equivalent
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { AxiosWrapper } from '../jwt';
3
- import { CacheItems } from '../routes';
4
- import { ICallOpenApi } from './types';
2
+ import type { AxiosWrapper } from '../jwt';
3
+ import type { CacheItems } from '../routes';
4
+ import type { ICallOpenApi } from './types';
5
5
  export type TUseCallOpenApi<T> = AxiosWrapper<T> & {
6
6
  loaded: boolean;
7
7
  loadcount: number;
@@ -36,7 +36,8 @@ const useCallOpenApi = (inConfig) => {
36
36
  /** config about hook*/
37
37
  const [config, setConfig] = (0, react_1.useState)(inConfig);
38
38
  (0, useGranularHook_1.useGranularEffect)(() => {
39
- if (JSON.stringify(config) !== JSON.stringify(inConfig)) {
39
+ if (JSON.stringify(Object.assign(Object.assign({}, config), { headers: undefined, ssrCacheItems: undefined })) !==
40
+ JSON.stringify(Object.assign(Object.assign({}, inConfig), { headers: undefined, ssrCacheItems: undefined }))) {
40
41
  setConfig(inConfig);
41
42
  setResp(Object.assign(Object.assign({}, defaultState(inConfig, true)), { loading: true }));
42
43
  void (0, direct_1.callOpenApi)(inConfig).then((r) => setResp((r2) => (Object.assign(Object.assign(Object.assign({}, r2), r), { loading: false }))));
@@ -1,5 +1,5 @@
1
1
  import type { AxiosResponse } from 'axios';
2
- import { User } from '../jwt';
2
+ import type { User } from '../jwt';
3
3
  export interface OverrideAuth {
4
4
  id_token?: string;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { ReturnType, TParse } from './const';
1
+ import type { ReturnType, TParse } from './const';
2
2
  export declare function useCookie<T>(p: {
3
3
  defaultValue: T;
4
4
  name: string;
@@ -1,5 +1,5 @@
1
- import { TLang } from '../../common/helpers/i18n';
2
- import { AxiosWrapperLite } from './jwt';
1
+ import type { TLang } from '../../common/helpers/i18n';
2
+ import type { AxiosWrapperLite } from './jwt';
3
3
  export type TProtocol = 'http:' | 'https:';
4
4
  export interface LocationSubset {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { DependencyList, EffectCallback } from 'react';
1
+ import type { DependencyList, EffectCallback } from 'react';
2
2
  type HookWithDependencies<C, R> = (callback: C, deps: DependencyList) => R;
3
3
  export declare const useGranularHook: <T extends HookWithDependencies<C, ReturnType<T>>, C>(hook: T, callback: C, primaryDeps: DependencyList, secondaryDeps: DependencyList) => ReturnType<T>;
4
4
  export declare const useGranularEffect: (effect: EffectCallback, primaryDeps: DependencyList, secondaryDeps: DependencyList) => void;
@@ -1,4 +1,4 @@
1
- import { RefObject } from 'react';
1
+ import type { RefObject } from 'react';
2
2
  type Event = MouseEvent | TouchEvent;
3
3
  export declare function useOnClickOutside<T extends HTMLElement = HTMLElement>(p: {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { RefObject } from 'react';
1
+ import type { RefObject } from 'react';
2
2
  export interface IScroll {
3
3
  y: number;
4
4
  x: number;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.472",
2
+ "version": "0.0.474",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
@@ -36,12 +36,12 @@
36
36
  "typescript": "^5"
37
37
  },
38
38
  "devDependencies": {
39
- "@babel/core": "7.22.9",
40
- "@babel/preset-typescript": "^7.21.5",
41
- "@babel/types": "^7.21.5",
39
+ "@babel/core": "7.22.10",
40
+ "@babel/preset-typescript": "7.21.5",
41
+ "@babel/types": "7.21.5",
42
42
  "@emotion/react": "11.11.1",
43
43
  "@emotion/styled": "11.11.0",
44
- "@smithy/types": "^2.0.2",
44
+ "@smithy/types": "2.0.2",
45
45
  "@storybook/addon-actions": "7.2.1",
46
46
  "@storybook/addon-docs": "7.2.1",
47
47
  "@storybook/addon-essentials": "7.2.1",
@@ -51,17 +51,17 @@
51
51
  "@storybook/react": "7.2.1",
52
52
  "@storybook/react-webpack5": "7.2.1",
53
53
  "@storybook/theming": "7.2.1",
54
- "@types/jest": "^29.5.3",
54
+ "@types/jest": "29.5.3",
55
55
  "@types/jsonwebtoken": "9.0.2",
56
- "@types/node": "20.4.6",
56
+ "@types/node": "20.4.8",
57
57
  "@types/react": "18.2.18",
58
58
  "@types/react-dom": "18.2.7",
59
59
  "cross-env": "7.0.3",
60
- "eslint-config-e7npm": "0.0.15",
61
- "jest": "^29.6.2",
60
+ "eslint-config-e7npm": "0.0.18",
61
+ "jest": "29.6.2",
62
62
  "rimraf": "5.0.1",
63
63
  "storybook": "7.2.1",
64
- "ts-jest": "^29.1.1"
64
+ "ts-jest": "29.1.1"
65
65
  },
66
66
  "files": [
67
67
  "dist/**/*",