ag-common 0.0.774 → 0.0.776

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.
@@ -1,6 +1,5 @@
1
1
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
2
2
  import * as React from 'react';
3
- declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
- declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
5
- declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
- export { Avatar, AvatarFallback, AvatarImage };
3
+ export declare const Avatar: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>) => React.JSX.Element;
4
+ export declare const AvatarImage: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>) => React.JSX.Element;
5
+ export declare const AvatarFallback: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>) => React.JSX.Element;
@@ -45,25 +45,22 @@ var __rest = (this && this.__rest) || function (s, e) {
45
45
  return t;
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.AvatarImage = exports.AvatarFallback = exports.Avatar = void 0;
48
+ exports.AvatarFallback = exports.AvatarImage = exports.Avatar = void 0;
49
49
  const AvatarPrimitive = __importStar(require("@radix-ui/react-avatar"));
50
50
  const React = __importStar(require("react"));
51
51
  const utils_1 = require("../../helpers/utils");
52
- const Avatar = React.forwardRef((_a, ref) => {
52
+ const Avatar = (_a) => {
53
53
  var { className } = _a, props = __rest(_a, ["className"]);
54
- return (React.createElement(AvatarPrimitive.Root, Object.assign({ ref: ref, className: (0, utils_1.cn)('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className) }, props)));
55
- });
54
+ return (React.createElement(AvatarPrimitive.Root, Object.assign({ className: (0, utils_1.cn)('relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full', className) }, props)));
55
+ };
56
56
  exports.Avatar = Avatar;
57
- Avatar.displayName = AvatarPrimitive.Root.displayName;
58
- const AvatarImage = React.forwardRef((_a, ref) => {
57
+ const AvatarImage = (_a) => {
59
58
  var { className } = _a, props = __rest(_a, ["className"]);
60
- return (React.createElement(AvatarPrimitive.Image, Object.assign({ ref: ref, className: (0, utils_1.cn)('aspect-square h-full w-full', className) }, props)));
61
- });
59
+ return (React.createElement(AvatarPrimitive.Image, Object.assign({ className: (0, utils_1.cn)('aspect-square h-full w-full', className) }, props)));
60
+ };
62
61
  exports.AvatarImage = AvatarImage;
63
- AvatarImage.displayName = AvatarPrimitive.Image.displayName;
64
- const AvatarFallback = React.forwardRef((_a, ref) => {
62
+ const AvatarFallback = (_a) => {
65
63
  var { className } = _a, props = __rest(_a, ["className"]);
66
- return (React.createElement(AvatarPrimitive.Fallback, Object.assign({ ref: ref, className: (0, utils_1.cn)('flex h-full w-full items-center justify-center rounded-full bg-muted', className) }, props)));
67
- });
64
+ return (React.createElement(AvatarPrimitive.Fallback, Object.assign({ className: (0, utils_1.cn)('flex h-full w-full items-center justify-center rounded-full bg-muted', className) }, props)));
65
+ };
68
66
  exports.AvatarFallback = AvatarFallback;
69
- AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
@@ -1,4 +1,4 @@
1
1
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
2
  import * as React from 'react';
3
- declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
- export { Checkbox };
3
+ export declare const Checkbox: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> & {}) => React.JSX.Element;
4
+ export declare const CheckboxIndicator: React.ForwardRefExoticComponent<CheckboxPrimitive.CheckboxIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
@@ -45,16 +45,16 @@ var __rest = (this && this.__rest) || function (s, e) {
45
45
  return t;
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.Checkbox = void 0;
48
+ exports.CheckboxIndicator = exports.Checkbox = void 0;
49
49
  const CheckboxPrimitive = __importStar(require("@radix-ui/react-checkbox"));
50
50
  const react_icons_1 = require("@radix-ui/react-icons");
51
51
  const React = __importStar(require("react"));
52
52
  const utils_1 = require("../../helpers/utils");
53
- const Checkbox = React.forwardRef((_a, ref) => {
53
+ const Checkbox = (_a) => {
54
54
  var { className } = _a, props = __rest(_a, ["className"]);
55
- return (React.createElement(CheckboxPrimitive.Root, Object.assign({ ref: ref, className: (0, utils_1.cn)('peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow-sm focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', className) }, props),
55
+ return (React.createElement(CheckboxPrimitive.Root, Object.assign({}, props, { className: (0, utils_1.cn)('peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow-sm focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', className) }),
56
56
  React.createElement(CheckboxPrimitive.Indicator, { className: (0, utils_1.cn)('flex items-center justify-center text-current') },
57
57
  React.createElement(react_icons_1.CheckIcon, { className: "h-4 w-4" }))));
58
- });
58
+ };
59
59
  exports.Checkbox = Checkbox;
60
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
60
+ exports.CheckboxIndicator = CheckboxPrimitive.Indicator;
@@ -4,8 +4,8 @@ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
4
  declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
5
  declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
6
  declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
- declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const DialogOverlay: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>) => React.JSX.Element;
8
+ declare const DialogContent: ({ className, children, ...props }: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>) => React.JSX.Element;
9
9
  declare const DialogHeader: {
10
10
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
11
11
  displayName: string;
@@ -14,6 +14,6 @@ declare const DialogFooter: {
14
14
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
15
15
  displayName: string;
16
16
  };
17
- declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
17
+ declare const DialogTitle: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>) => React.JSX.Element;
18
+ declare const DialogDescription: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>) => React.JSX.Element;
19
19
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -58,24 +58,22 @@ const DialogPortal = DialogPrimitive.Portal;
58
58
  exports.DialogPortal = DialogPortal;
59
59
  const DialogClose = DialogPrimitive.Close;
60
60
  exports.DialogClose = DialogClose;
61
- const DialogOverlay = React.forwardRef((_a, ref) => {
61
+ const DialogOverlay = (_a) => {
62
62
  var { className } = _a, props = __rest(_a, ["className"]);
63
- return (React.createElement(DialogPrimitive.Overlay, Object.assign({ ref: ref, className: (0, utils_1.cn)('fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className) }, props)));
64
- });
63
+ return (React.createElement(DialogPrimitive.Overlay, Object.assign({ className: (0, utils_1.cn)('fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0', className) }, props)));
64
+ };
65
65
  exports.DialogOverlay = DialogOverlay;
66
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
67
- const DialogContent = React.forwardRef((_a, ref) => {
66
+ const DialogContent = (_a) => {
68
67
  var { className, children } = _a, props = __rest(_a, ["className", "children"]);
69
68
  return (React.createElement(DialogPortal, null,
70
69
  React.createElement(DialogOverlay, null),
71
- React.createElement(DialogPrimitive.Content, Object.assign({ ref: ref, className: (0, utils_1.cn)('fixed left-[50%] top-[50%] z-50 grid max-w-[80dvw] max-h-[80dvh] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-2 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-none', className) }, props),
70
+ React.createElement(DialogPrimitive.Content, Object.assign({ className: (0, utils_1.cn)('fixed left-[50%] top-[50%] z-50 grid max-w-[80dvw] max-h-[80dvh] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-2 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-none', className) }, props),
72
71
  children,
73
72
  React.createElement(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" },
74
73
  React.createElement(react_icons_1.Cross2Icon, { className: "h-4 w-4" }),
75
74
  React.createElement("span", { className: "sr-only" }, "Close")))));
76
- });
75
+ };
77
76
  exports.DialogContent = DialogContent;
78
- DialogContent.displayName = DialogPrimitive.Content.displayName;
79
77
  const DialogHeader = (_a) => {
80
78
  var { className } = _a, props = __rest(_a, ["className"]);
81
79
  return (React.createElement("div", Object.assign({ className: (0, utils_1.cn)('flex flex-col space-y-1.5 text-center sm:text-left', className) }, props)));
@@ -88,19 +86,17 @@ const DialogFooter = (_a) => {
88
86
  };
89
87
  exports.DialogFooter = DialogFooter;
90
88
  DialogFooter.displayName = 'DialogFooter';
91
- const DialogTitle = React.forwardRef((_a, ref) => {
89
+ const DialogTitle = (_a) => {
92
90
  var { className } = _a, props = __rest(_a, ["className"]);
93
- return (React.createElement(DialogPrimitive.Title, Object.assign({ ref: ref, className: (0, utils_1.cn)(
91
+ return (React.createElement(DialogPrimitive.Title, Object.assign({ className: (0, utils_1.cn)(
94
92
  //no width or height if no content
95
93
  props.children
96
94
  ? 'text-lg font-semibold leading-none tracking-tight'
97
95
  : 'hidden', className) }, props)));
98
- });
96
+ };
99
97
  exports.DialogTitle = DialogTitle;
100
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
101
- const DialogDescription = React.forwardRef((_a, ref) => {
98
+ const DialogDescription = (_a) => {
102
99
  var { className } = _a, props = __rest(_a, ["className"]);
103
- return (React.createElement(DialogPrimitive.Description, Object.assign({ ref: ref, className: (0, utils_1.cn)('text-sm text-muted-foreground', className) }, props)));
104
- });
100
+ return (React.createElement(DialogPrimitive.Description, Object.assign({ className: (0, utils_1.cn)('text-sm text-muted-foreground', className) }, props)));
101
+ };
105
102
  exports.DialogDescription = DialogDescription;
106
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
@@ -3,6 +3,7 @@ import * as React from 'react';
3
3
  declare const Select: React.FC<SelectPrimitive.SelectProps>;
4
4
  declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
5
  declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
+ declare const SelectItemText: React.ForwardRefExoticComponent<SelectPrimitive.SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
6
7
  declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
8
  declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
9
  declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -10,4 +11,4 @@ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitiv
10
11
  declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
12
  declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
13
  declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
14
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -45,7 +45,7 @@ var __rest = (this && this.__rest) || function (s, e) {
45
45
  return t;
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.SelectValue = exports.SelectTrigger = exports.SelectSeparator = exports.SelectScrollUpButton = exports.SelectScrollDownButton = exports.SelectLabel = exports.SelectItem = exports.SelectGroup = exports.SelectContent = exports.Select = void 0;
48
+ exports.SelectValue = exports.SelectTrigger = exports.SelectSeparator = exports.SelectScrollUpButton = exports.SelectScrollDownButton = exports.SelectLabel = exports.SelectItemText = exports.SelectItem = exports.SelectGroup = exports.SelectContent = exports.Select = void 0;
49
49
  const react_icons_1 = require("@radix-ui/react-icons");
50
50
  const SelectPrimitive = __importStar(require("@radix-ui/react-select"));
51
51
  const React = __importStar(require("react"));
@@ -56,6 +56,8 @@ const SelectGroup = SelectPrimitive.Group;
56
56
  exports.SelectGroup = SelectGroup;
57
57
  const SelectValue = SelectPrimitive.Value;
58
58
  exports.SelectValue = SelectValue;
59
+ const SelectItemText = SelectPrimitive.SelectItemText;
60
+ exports.SelectItemText = SelectItemText;
59
61
  const SelectTrigger = React.forwardRef((_a, ref) => {
60
62
  var { className, children } = _a, props = __rest(_a, ["className", "children"]);
61
63
  return (React.createElement(SelectPrimitive.Trigger, Object.assign({ ref: ref, className: (0, utils_1.cn)('flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className) }, props),
@@ -1,7 +1,7 @@
1
1
  import * as SwitchPrimitive from '@radix-ui/react-switch';
2
2
  import * as React from 'react';
3
- interface SwitchProps extends React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> {
3
+ export type SwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> & {
4
4
  icon?: React.ReactNode;
5
- }
6
- declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
5
+ };
6
+ declare const Switch: ({ className, icon, ...props }: SwitchProps) => React.JSX.Element;
7
7
  export { Switch };
@@ -49,10 +49,9 @@ exports.Switch = void 0;
49
49
  const SwitchPrimitive = __importStar(require("@radix-ui/react-switch"));
50
50
  const React = __importStar(require("react"));
51
51
  const utils_1 = require("../../helpers/utils");
52
- const Switch = React.forwardRef((_a, ref) => {
52
+ const Switch = (_a) => {
53
53
  var { className, icon } = _a, props = __rest(_a, ["className", "icon"]);
54
- return (React.createElement(SwitchPrimitive.Root, Object.assign({ className: (0, utils_1.cn)('peer relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-sm border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input', className) }, props, { ref: ref }),
54
+ return (React.createElement(SwitchPrimitive.Root, Object.assign({ className: (0, utils_1.cn)('peer relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-sm border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input', className) }, props),
55
55
  React.createElement(SwitchPrimitive.Thumb, { className: (0, utils_1.cn)('pointer-events-none flex items-center justify-center h-4 w-4 rounded-sm bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0') }, icon)));
56
- });
56
+ };
57
57
  exports.Switch = Switch;
58
- Switch.displayName = SwitchPrimitive.Root.displayName;
@@ -1,4 +1,3 @@
1
- export declare const isServer: boolean;
2
1
  /**
3
2
  * hook for query string value
4
3
  * @param param0 can provide for SSR - queryValues will default to window if available
@@ -1,20 +1,17 @@
1
1
  "use strict";
2
2
  'use client';
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.useQueryStringSingle = exports.useQueryStringArray = exports.useQueryStringRaw = exports.isServer = void 0;
4
+ exports.useQueryStringSingle = exports.useQueryStringArray = exports.useQueryStringRaw = void 0;
5
5
  const react_1 = require("react");
6
6
  const log_1 = require("../../common/helpers/log");
7
7
  const object_1 = require("../../common/helpers/object");
8
- exports.isServer = typeof window === 'undefined';
9
8
  /**
10
9
  * hook for query string value
11
10
  * @param param0 can provide for SSR - queryValues will default to window if available
12
11
  * @returns
13
12
  */
14
13
  const useQueryStringRaw = ({ name, queryValues, defaultValue, stringify, parse, }) => {
15
- const qv = exports.isServer
16
- ? (queryValues !== null && queryValues !== void 0 ? queryValues : {})
17
- : (0, object_1.paramsToObject)(new URLSearchParams(window.location.search));
14
+ const qv = queryValues !== null && queryValues !== void 0 ? queryValues : (0, object_1.paramsToObject)(new URLSearchParams(window.location.search));
18
15
  const qsv = parse(qv[name]) || defaultValue;
19
16
  const [state, setStateRaw] = (0, react_1.useState)(qsv);
20
17
  //
@@ -27,7 +24,7 @@ const useQueryStringRaw = ({ name, queryValues, defaultValue, stringify, parse,
27
24
  delete qv[name];
28
25
  }
29
26
  const qs = '?' + (0, object_1.objectToString)(qv, '=', '&');
30
- if (!exports.isServer) {
27
+ if (typeof window !== 'undefined') {
31
28
  const loc = window.location.pathname + qs + window.location.hash;
32
29
  window.history.replaceState({}, '', loc);
33
30
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.774",
2
+ "version": "0.0.776",
3
3
  "name": "ag-common",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",