akeyless-client-commons 1.0.1

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.
@@ -0,0 +1,265 @@
1
+ import { Command as Command$1 } from 'cmdk';
2
+ import * as React$1 from 'react';
3
+ import { ReactNode, Dispatch, SetStateAction } from 'react';
4
+ import * as RPNInput from 'react-phone-number-input';
5
+ import { WhereFilterOp, Unsubscribe } from 'firebase/firestore';
6
+
7
+ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
8
+ children?: React$1.ReactNode;
9
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
10
+ ref?: React$1.Ref<HTMLDivElement>;
11
+ } & {
12
+ asChild?: boolean;
13
+ }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
14
+ label?: string;
15
+ shouldFilter?: boolean;
16
+ filter?: (value: string, search: string, keywords?: string[]) => number;
17
+ defaultValue?: string;
18
+ value?: string;
19
+ onValueChange?: (value: string) => void;
20
+ loop?: boolean;
21
+ disablePointerSelection?: boolean;
22
+ vimBindings?: boolean;
23
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
24
+
25
+ interface MultipleSelectorOption {
26
+ value: string;
27
+ label: string;
28
+ disable?: boolean;
29
+ fixed?: boolean;
30
+ [key: string]: string | boolean | undefined;
31
+ }
32
+ interface MultipleSelectorProps {
33
+ value?: MultipleSelectorOption[];
34
+ defaultOptions?: MultipleSelectorOption[];
35
+ options?: MultipleSelectorOption[];
36
+ placeholder?: string;
37
+ loadingIndicator?: React$1.ReactNode;
38
+ emptyIndicator?: React$1.ReactNode;
39
+ delay?: number;
40
+ triggerSearchOnFocus?: boolean;
41
+ onSearch?: (value: string) => Promise<MultipleSelectorOption[]>;
42
+ onSearchSync?: (value: string) => MultipleSelectorOption[];
43
+ onChange?: (options: MultipleSelectorOption[]) => void;
44
+ maxSelected?: number;
45
+ onMaxSelected?: (maxLimit: number) => void;
46
+ hidePlaceholderWhenSelected?: boolean;
47
+ disabled?: boolean;
48
+ groupBy?: string;
49
+ className?: string;
50
+ badgeClassName?: string;
51
+ selectFirstItem?: boolean;
52
+ creatable?: boolean;
53
+ commandProps?: React$1.ComponentPropsWithoutRef<typeof Command>;
54
+ inputProps?: Omit<React$1.ComponentPropsWithoutRef<typeof Command$1.Input>, "value" | "placeholder" | "disabled">;
55
+ hideClearAllButton?: boolean;
56
+ dropdownClassName?: string;
57
+ dropdownOptionClassName?: string;
58
+ dropdownContainerClassName?: string;
59
+ emptyIndicatorClassName?: string;
60
+ unremovableOptions?: MultipleSelectorOption[];
61
+ name?: string;
62
+ }
63
+
64
+ type Direction = "rtl" | "ltr";
65
+ type SetState<T> = (updater: ((prev: T) => T) | T) => void;
66
+ type ModularPopUp = null | {
67
+ element: JSX.Element;
68
+ elementName?: string & {};
69
+ onClose?: () => void | Promise<void>;
70
+ top?: string;
71
+ left?: string;
72
+ bottom?: string;
73
+ right?: string;
74
+ background?: string;
75
+ };
76
+
77
+ type OnSnapshotCallback = (documents: any[], config: OnSnapshotConfig) => void;
78
+ interface OnSnapshotParsers {
79
+ onFirstTime?: OnSnapshotCallback;
80
+ onAdd?: OnSnapshotCallback;
81
+ onModify?: OnSnapshotCallback;
82
+ onRemove?: OnSnapshotCallback;
83
+ }
84
+ interface WhereCondition {
85
+ field_name: string;
86
+ operator: WhereFilterOp;
87
+ value: any;
88
+ }
89
+ interface OnSnapshotConfig extends OnSnapshotParsers {
90
+ collectionName: string;
91
+ extraParsers?: OnSnapshotParsers[];
92
+ conditions?: WhereCondition[];
93
+ orderBy?: {
94
+ fieldName: string;
95
+ direction: "asc" | "desc";
96
+ }[];
97
+ }
98
+ interface OnSnapshotConfigDocument extends Omit<OnSnapshotParsers, "onAdd"> {
99
+ collectionName: string;
100
+ documentId: string;
101
+ extraParsers?: Omit<OnSnapshotParsers, "onAdd">[];
102
+ conditions?: WhereCondition[];
103
+ }
104
+ interface SnapshotResult {
105
+ promise: Promise<void>;
106
+ unsubscribe: Unsubscribe;
107
+ }
108
+ type Snapshot = (config: OnSnapshotConfig, snapshotsFirstTime: string[]) => SnapshotResult;
109
+ type SnapshotDocument = (config: OnSnapshotConfigDocument, snapshotsFirstTime: string[]) => SnapshotResult;
110
+
111
+ type ValidationType = "text" | "numbers" | "numbersOnly" | "price" | "textNumbers" | "email" | "color" | "address" | "cars" | "charts" | (string & {});
112
+
113
+ interface SearchSelectOptions extends Record<string, string> {
114
+ value: string;
115
+ label: string;
116
+ }
117
+
118
+ interface BaseElementProps {
119
+ name?: string;
120
+ labelContent?: string;
121
+ required?: boolean;
122
+ labelClassName?: string;
123
+ containerClassName?: string;
124
+ elementClassName?: string;
125
+ minLength?: number;
126
+ validationError?: string;
127
+ direction?: Direction;
128
+ }
129
+ interface InputElement extends BaseElementProps {
130
+ type: "input";
131
+ inputType?: string;
132
+ defaultValue?: string;
133
+ validationName?: ValidationType;
134
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
135
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
136
+ value?: string;
137
+ placeholder?: string;
138
+ props?: React.InputHTMLAttributes<HTMLInputElement>;
139
+ }
140
+ interface TextAreaElement extends BaseElementProps {
141
+ type: "textarea";
142
+ defaultValue?: string;
143
+ onKeyDown?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
144
+ onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
145
+ placeholder?: string;
146
+ props?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
147
+ }
148
+ interface SelectElement extends BaseElementProps {
149
+ type: "select";
150
+ options: {
151
+ value: any;
152
+ label: string;
153
+ }[];
154
+ optionsContainerClassName?: string;
155
+ defaultValue?: any;
156
+ onChange?: (value: any) => void;
157
+ optionClassName?: string;
158
+ sortDirection?: "abc" | "cba";
159
+ sortAsNumber?: boolean;
160
+ }
161
+ interface MultiSelectProps extends Omit<BaseElementProps, "containerClassName" | "elementClassName"> {
162
+ type?: "multiSelect";
163
+ options: MultipleSelectorOption[];
164
+ emptyOptionsElement?: ReactNode;
165
+ onChange?: (value: MultipleSelectorOption[]) => void;
166
+ onSearch?: (value: string) => Promise<MultipleSelectorOption[]>;
167
+ triggerSearchOnFocus?: boolean;
168
+ onSearchSync?: (value: string) => MultipleSelectorOption[];
169
+ selectedOptions?: MultipleSelectorOption[];
170
+ styles?: {
171
+ containerClassName?: string;
172
+ badgeClassName?: string;
173
+ className?: string;
174
+ dropdownClassName?: string;
175
+ dropdownOptionClassName?: string;
176
+ emptyIndicatorClassName?: string;
177
+ dropdownContainerClassName?: string;
178
+ };
179
+ unremovableOptions?: MultipleSelectorOption[];
180
+ placeholder?: string;
181
+ groupBy?: string;
182
+ sortDirection?: "abc" | "cba";
183
+ sortAsNumber?: boolean;
184
+ searchInputProps?: MultipleSelectorProps["inputProps"];
185
+ }
186
+ interface SelectWithSearchProps extends BaseElementProps {
187
+ type?: "selectWithSearch";
188
+ options: SearchSelectOptions[];
189
+ onChange?: (value: SearchSelectOptions["value"]) => void;
190
+ value?: SearchSelectOptions["value"];
191
+ defaultValue?: SearchSelectOptions["value"];
192
+ dropdownClassName?: string;
193
+ dropdownOptionClassName?: string;
194
+ placeholder?: string;
195
+ notFoundLabel?: string;
196
+ searchPlaceholder?: string;
197
+ notFoundLabelClassName?: string;
198
+ searchClassName?: string;
199
+ selectButtonClassName?: string;
200
+ sortDirection?: "abc" | "cba";
201
+ sortAsNumber?: boolean;
202
+ disabled?: boolean;
203
+ }
204
+ interface InternationalInputProps extends Omit<BaseElementProps, "elementClassName"> {
205
+ type?: "internationalPhoneInput";
206
+ phoneValue?: string;
207
+ setPhoneValue?: Dispatch<SetStateAction<string>>;
208
+ placeholder?: string;
209
+ className?: string;
210
+ containerClassName?: string;
211
+ style?: React.CSSProperties;
212
+ flagContainerClassName?: string;
213
+ inputClassName?: string;
214
+ defaultValue?: string;
215
+ defaultCountry?: RPNInput.Country;
216
+ onEnter?: () => void;
217
+ direction?: Direction;
218
+ }
219
+ interface CustomElementProps extends BaseElementProps {
220
+ type: "custom";
221
+ element: JSX.Element;
222
+ }
223
+ interface InputContainerProps extends Partial<InputElement> {
224
+ }
225
+ interface SelectContainerProps extends Partial<SelectElement> {
226
+ }
227
+ interface TextAreaContainerProps extends Partial<TextAreaElement> {
228
+ }
229
+ type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps;
230
+ interface ModularFormProps {
231
+ submitFunction: (form: React.FormEvent<HTMLFormElement>) => Promise<void>;
232
+ elements: FormElement[];
233
+ buttonContent: React.ReactNode;
234
+ headerContent?: React.ReactNode;
235
+ buttonClassName?: string;
236
+ formClassName?: string;
237
+ headerClassName?: string;
238
+ direction?: Direction;
239
+ submitRef?: React.MutableRefObject<HTMLButtonElement | null>;
240
+ }
241
+ interface ConfirmFormProps {
242
+ onV: () => Promise<void> | void;
243
+ onX: () => Promise<void> | void;
244
+ headline?: string;
245
+ direction?: Direction;
246
+ containerClassName?: string;
247
+ headlineClassName?: string;
248
+ buttonsContainerClassName?: string;
249
+ }
250
+ interface DatePickerProps {
251
+ submit?: (form: React.FormEvent<HTMLFormElement>) => Promise<void>;
252
+ formClassName?: string;
253
+ labelsClassName?: string;
254
+ inputsClassName?: string;
255
+ buttonClassName?: string;
256
+ buttonStyle?: React.CSSProperties;
257
+ defaultFrom?: string;
258
+ defaultTo?: string;
259
+ direction?: Direction;
260
+ fromText?: string;
261
+ toText?: string;
262
+ buttonText?: string;
263
+ }
264
+
265
+ export type { BaseElementProps, ConfirmFormProps, CustomElementProps, DatePickerProps, Direction, FormElement, InputContainerProps, InputElement, InternationalInputProps, ModularFormProps, ModularPopUp, MultiSelectProps, OnSnapshotCallback, OnSnapshotConfig, OnSnapshotConfigDocument, OnSnapshotParsers, SelectContainerProps, SelectElement, SelectWithSearchProps, SetState, Snapshot, SnapshotDocument, SnapshotResult, TextAreaContainerProps, TextAreaElement, WhereCondition };
@@ -0,0 +1,265 @@
1
+ import { Command as Command$1 } from 'cmdk';
2
+ import * as React$1 from 'react';
3
+ import { ReactNode, Dispatch, SetStateAction } from 'react';
4
+ import * as RPNInput from 'react-phone-number-input';
5
+ import { WhereFilterOp, Unsubscribe } from 'firebase/firestore';
6
+
7
+ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
8
+ children?: React$1.ReactNode;
9
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
10
+ ref?: React$1.Ref<HTMLDivElement>;
11
+ } & {
12
+ asChild?: boolean;
13
+ }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild"> & {
14
+ label?: string;
15
+ shouldFilter?: boolean;
16
+ filter?: (value: string, search: string, keywords?: string[]) => number;
17
+ defaultValue?: string;
18
+ value?: string;
19
+ onValueChange?: (value: string) => void;
20
+ loop?: boolean;
21
+ disablePointerSelection?: boolean;
22
+ vimBindings?: boolean;
23
+ } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
24
+
25
+ interface MultipleSelectorOption {
26
+ value: string;
27
+ label: string;
28
+ disable?: boolean;
29
+ fixed?: boolean;
30
+ [key: string]: string | boolean | undefined;
31
+ }
32
+ interface MultipleSelectorProps {
33
+ value?: MultipleSelectorOption[];
34
+ defaultOptions?: MultipleSelectorOption[];
35
+ options?: MultipleSelectorOption[];
36
+ placeholder?: string;
37
+ loadingIndicator?: React$1.ReactNode;
38
+ emptyIndicator?: React$1.ReactNode;
39
+ delay?: number;
40
+ triggerSearchOnFocus?: boolean;
41
+ onSearch?: (value: string) => Promise<MultipleSelectorOption[]>;
42
+ onSearchSync?: (value: string) => MultipleSelectorOption[];
43
+ onChange?: (options: MultipleSelectorOption[]) => void;
44
+ maxSelected?: number;
45
+ onMaxSelected?: (maxLimit: number) => void;
46
+ hidePlaceholderWhenSelected?: boolean;
47
+ disabled?: boolean;
48
+ groupBy?: string;
49
+ className?: string;
50
+ badgeClassName?: string;
51
+ selectFirstItem?: boolean;
52
+ creatable?: boolean;
53
+ commandProps?: React$1.ComponentPropsWithoutRef<typeof Command>;
54
+ inputProps?: Omit<React$1.ComponentPropsWithoutRef<typeof Command$1.Input>, "value" | "placeholder" | "disabled">;
55
+ hideClearAllButton?: boolean;
56
+ dropdownClassName?: string;
57
+ dropdownOptionClassName?: string;
58
+ dropdownContainerClassName?: string;
59
+ emptyIndicatorClassName?: string;
60
+ unremovableOptions?: MultipleSelectorOption[];
61
+ name?: string;
62
+ }
63
+
64
+ type Direction = "rtl" | "ltr";
65
+ type SetState<T> = (updater: ((prev: T) => T) | T) => void;
66
+ type ModularPopUp = null | {
67
+ element: JSX.Element;
68
+ elementName?: string & {};
69
+ onClose?: () => void | Promise<void>;
70
+ top?: string;
71
+ left?: string;
72
+ bottom?: string;
73
+ right?: string;
74
+ background?: string;
75
+ };
76
+
77
+ type OnSnapshotCallback = (documents: any[], config: OnSnapshotConfig) => void;
78
+ interface OnSnapshotParsers {
79
+ onFirstTime?: OnSnapshotCallback;
80
+ onAdd?: OnSnapshotCallback;
81
+ onModify?: OnSnapshotCallback;
82
+ onRemove?: OnSnapshotCallback;
83
+ }
84
+ interface WhereCondition {
85
+ field_name: string;
86
+ operator: WhereFilterOp;
87
+ value: any;
88
+ }
89
+ interface OnSnapshotConfig extends OnSnapshotParsers {
90
+ collectionName: string;
91
+ extraParsers?: OnSnapshotParsers[];
92
+ conditions?: WhereCondition[];
93
+ orderBy?: {
94
+ fieldName: string;
95
+ direction: "asc" | "desc";
96
+ }[];
97
+ }
98
+ interface OnSnapshotConfigDocument extends Omit<OnSnapshotParsers, "onAdd"> {
99
+ collectionName: string;
100
+ documentId: string;
101
+ extraParsers?: Omit<OnSnapshotParsers, "onAdd">[];
102
+ conditions?: WhereCondition[];
103
+ }
104
+ interface SnapshotResult {
105
+ promise: Promise<void>;
106
+ unsubscribe: Unsubscribe;
107
+ }
108
+ type Snapshot = (config: OnSnapshotConfig, snapshotsFirstTime: string[]) => SnapshotResult;
109
+ type SnapshotDocument = (config: OnSnapshotConfigDocument, snapshotsFirstTime: string[]) => SnapshotResult;
110
+
111
+ type ValidationType = "text" | "numbers" | "numbersOnly" | "price" | "textNumbers" | "email" | "color" | "address" | "cars" | "charts" | (string & {});
112
+
113
+ interface SearchSelectOptions extends Record<string, string> {
114
+ value: string;
115
+ label: string;
116
+ }
117
+
118
+ interface BaseElementProps {
119
+ name?: string;
120
+ labelContent?: string;
121
+ required?: boolean;
122
+ labelClassName?: string;
123
+ containerClassName?: string;
124
+ elementClassName?: string;
125
+ minLength?: number;
126
+ validationError?: string;
127
+ direction?: Direction;
128
+ }
129
+ interface InputElement extends BaseElementProps {
130
+ type: "input";
131
+ inputType?: string;
132
+ defaultValue?: string;
133
+ validationName?: ValidationType;
134
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
135
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
136
+ value?: string;
137
+ placeholder?: string;
138
+ props?: React.InputHTMLAttributes<HTMLInputElement>;
139
+ }
140
+ interface TextAreaElement extends BaseElementProps {
141
+ type: "textarea";
142
+ defaultValue?: string;
143
+ onKeyDown?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
144
+ onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
145
+ placeholder?: string;
146
+ props?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
147
+ }
148
+ interface SelectElement extends BaseElementProps {
149
+ type: "select";
150
+ options: {
151
+ value: any;
152
+ label: string;
153
+ }[];
154
+ optionsContainerClassName?: string;
155
+ defaultValue?: any;
156
+ onChange?: (value: any) => void;
157
+ optionClassName?: string;
158
+ sortDirection?: "abc" | "cba";
159
+ sortAsNumber?: boolean;
160
+ }
161
+ interface MultiSelectProps extends Omit<BaseElementProps, "containerClassName" | "elementClassName"> {
162
+ type?: "multiSelect";
163
+ options: MultipleSelectorOption[];
164
+ emptyOptionsElement?: ReactNode;
165
+ onChange?: (value: MultipleSelectorOption[]) => void;
166
+ onSearch?: (value: string) => Promise<MultipleSelectorOption[]>;
167
+ triggerSearchOnFocus?: boolean;
168
+ onSearchSync?: (value: string) => MultipleSelectorOption[];
169
+ selectedOptions?: MultipleSelectorOption[];
170
+ styles?: {
171
+ containerClassName?: string;
172
+ badgeClassName?: string;
173
+ className?: string;
174
+ dropdownClassName?: string;
175
+ dropdownOptionClassName?: string;
176
+ emptyIndicatorClassName?: string;
177
+ dropdownContainerClassName?: string;
178
+ };
179
+ unremovableOptions?: MultipleSelectorOption[];
180
+ placeholder?: string;
181
+ groupBy?: string;
182
+ sortDirection?: "abc" | "cba";
183
+ sortAsNumber?: boolean;
184
+ searchInputProps?: MultipleSelectorProps["inputProps"];
185
+ }
186
+ interface SelectWithSearchProps extends BaseElementProps {
187
+ type?: "selectWithSearch";
188
+ options: SearchSelectOptions[];
189
+ onChange?: (value: SearchSelectOptions["value"]) => void;
190
+ value?: SearchSelectOptions["value"];
191
+ defaultValue?: SearchSelectOptions["value"];
192
+ dropdownClassName?: string;
193
+ dropdownOptionClassName?: string;
194
+ placeholder?: string;
195
+ notFoundLabel?: string;
196
+ searchPlaceholder?: string;
197
+ notFoundLabelClassName?: string;
198
+ searchClassName?: string;
199
+ selectButtonClassName?: string;
200
+ sortDirection?: "abc" | "cba";
201
+ sortAsNumber?: boolean;
202
+ disabled?: boolean;
203
+ }
204
+ interface InternationalInputProps extends Omit<BaseElementProps, "elementClassName"> {
205
+ type?: "internationalPhoneInput";
206
+ phoneValue?: string;
207
+ setPhoneValue?: Dispatch<SetStateAction<string>>;
208
+ placeholder?: string;
209
+ className?: string;
210
+ containerClassName?: string;
211
+ style?: React.CSSProperties;
212
+ flagContainerClassName?: string;
213
+ inputClassName?: string;
214
+ defaultValue?: string;
215
+ defaultCountry?: RPNInput.Country;
216
+ onEnter?: () => void;
217
+ direction?: Direction;
218
+ }
219
+ interface CustomElementProps extends BaseElementProps {
220
+ type: "custom";
221
+ element: JSX.Element;
222
+ }
223
+ interface InputContainerProps extends Partial<InputElement> {
224
+ }
225
+ interface SelectContainerProps extends Partial<SelectElement> {
226
+ }
227
+ interface TextAreaContainerProps extends Partial<TextAreaElement> {
228
+ }
229
+ type FormElement = InputElement | SelectElement | MultiSelectProps | InternationalInputProps | CustomElementProps | TextAreaElement | SelectWithSearchProps;
230
+ interface ModularFormProps {
231
+ submitFunction: (form: React.FormEvent<HTMLFormElement>) => Promise<void>;
232
+ elements: FormElement[];
233
+ buttonContent: React.ReactNode;
234
+ headerContent?: React.ReactNode;
235
+ buttonClassName?: string;
236
+ formClassName?: string;
237
+ headerClassName?: string;
238
+ direction?: Direction;
239
+ submitRef?: React.MutableRefObject<HTMLButtonElement | null>;
240
+ }
241
+ interface ConfirmFormProps {
242
+ onV: () => Promise<void> | void;
243
+ onX: () => Promise<void> | void;
244
+ headline?: string;
245
+ direction?: Direction;
246
+ containerClassName?: string;
247
+ headlineClassName?: string;
248
+ buttonsContainerClassName?: string;
249
+ }
250
+ interface DatePickerProps {
251
+ submit?: (form: React.FormEvent<HTMLFormElement>) => Promise<void>;
252
+ formClassName?: string;
253
+ labelsClassName?: string;
254
+ inputsClassName?: string;
255
+ buttonClassName?: string;
256
+ buttonStyle?: React.CSSProperties;
257
+ defaultFrom?: string;
258
+ defaultTo?: string;
259
+ direction?: Direction;
260
+ fromText?: string;
261
+ toText?: string;
262
+ buttonText?: string;
263
+ }
264
+
265
+ export type { BaseElementProps, ConfirmFormProps, CustomElementProps, DatePickerProps, Direction, FormElement, InputContainerProps, InputElement, InternationalInputProps, ModularFormProps, ModularPopUp, MultiSelectProps, OnSnapshotCallback, OnSnapshotConfig, OnSnapshotConfigDocument, OnSnapshotParsers, SelectContainerProps, SelectElement, SelectWithSearchProps, SetState, Snapshot, SnapshotDocument, SnapshotResult, TextAreaContainerProps, TextAreaElement, WhereCondition };
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ function _type_of(obj) {
3
+ "@swc/helpers - typeof";
4
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5
+ }
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __copyProps = function(to, from, except, desc) {
11
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
12
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
13
+ try {
14
+ var _loop = function() {
15
+ var key = _step.value;
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: function() {
18
+ return from[key];
19
+ },
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ };
23
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
24
+ } catch (err) {
25
+ _didIteratorError = true;
26
+ _iteratorError = err;
27
+ } finally{
28
+ try {
29
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
30
+ _iterator.return();
31
+ }
32
+ } finally{
33
+ if (_didIteratorError) {
34
+ throw _iteratorError;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ return to;
40
+ };
41
+ var __toCommonJS = function(mod) {
42
+ return __copyProps(__defProp({}, "__esModule", {
43
+ value: true
44
+ }), mod);
45
+ };
46
+ // src/types/index.ts
47
+ var types_exports = {};
48
+ module.exports = __toCommonJS(types_exports);
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["c:\\work\\akeyless\\commons\\client_commons\\dist\\types\\index.js"],"names":[],"mappings":"","sourcesContent":["var __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/types/index.ts\nvar types_exports = {};\nmodule.exports = __toCommonJS(types_exports);\n"]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "name": "akeyless-client-commons",
3
+ "version": "1.0.1",
4
+ "scripts": {
5
+ "build": "tsup",
6
+ "deploy": "npm run build && git add . && git commit -am 'build' && git push origin main",
7
+ "dt": "npm run build && git add . && git commit -am 'build' && git push origin test",
8
+ "uc": "npm i git+https://github.com/akeylesspro/akeyless-types-commons.git",
9
+ "git": "powershell -ExecutionPolicy Bypass -File ./ps/create_branch.ps1",
10
+ "git2": "powershell -ExecutionPolicy Bypass -File ./ps/move_to_main.ps1"
11
+ },
12
+ "license": "ISC",
13
+ "dependencies": {
14
+ "@radix-ui/react-dialog": "^1.1.6",
15
+ "@radix-ui/react-label": "^2.1.2",
16
+ "@radix-ui/react-popover": "^1.1.6",
17
+ "@radix-ui/react-progress": "^1.1.1",
18
+ "@radix-ui/react-slot": "^1.1.2",
19
+ "@types/lodash": "^4.17.13",
20
+ "akeyless-types-commons": "github:akeylesspro/akeyless-types-commons",
21
+ "axios": "^1.7.9",
22
+ "class-variance-authority": "^0.7.0",
23
+ "clsx": "^2.1.1",
24
+ "cmdk": "^1.0.0",
25
+ "exceljs": "^4.4.0",
26
+ "file-saver": "^2.0.5",
27
+ "firebase": "^11.0.2",
28
+ "input-otp": "^1.4.1",
29
+ "libphonenumber-js": "^1.11.12",
30
+ "lodash": "^4.17.21",
31
+ "lucide-react": "^0.460.0",
32
+ "moment": "^2.30.1",
33
+ "moment-timezone": "^0.5.46",
34
+ "react": "^18.3.1",
35
+ "react-dom": "^18.3.1",
36
+ "react-phone-number-input": "^3.4.10",
37
+ "react-spinners": "^0.14.1",
38
+ "tailwind-merge": "^2.5.4",
39
+ "tailwindcss-animate": "^1.0.7",
40
+ "xregexp": "^5.1.1",
41
+ "zustand": "^5.0.0"
42
+ },
43
+ "devDependencies": {
44
+ "@swc/core": "^1.7.36",
45
+ "@types/react": "^18.3.11",
46
+ "@types/react-dom": "^18.3.1",
47
+ "autoprefixer": "^10.4.20",
48
+ "postcss": "^8.4.47",
49
+ "tailwindcss": "^3.4.14",
50
+ "tsup": "^8.3.0",
51
+ "typescript": "^5.6.3"
52
+ },
53
+ "files": ["dist"],
54
+ "exports": {
55
+ "./assets": {
56
+ "import": "./dist/assets/index.mjs",
57
+ "require": "./dist/assets/index.js"
58
+ },
59
+ "./components": {
60
+ "import": "./dist/components/index.mjs",
61
+ "require": "./dist/components/index.js"
62
+ },
63
+ "./helpers": {
64
+ "import": "./dist/helpers/index.mjs",
65
+ "require": "./dist/helpers/index.js"
66
+ },
67
+ "./hooks": {
68
+ "import": "./dist/hooks/index.mjs",
69
+ "require": "./dist/hooks/index.js"
70
+ },
71
+ "./types": {
72
+ "import": "./dist/types/index.mjs",
73
+ "require": "./dist/types/index.js"
74
+ }
75
+ },
76
+ "typesVersions": {
77
+ "*": {
78
+ "assets": [
79
+ "./dist/assets/index.d.ts"
80
+ ],
81
+ "components": [
82
+ "./dist/components/index.d.ts"
83
+ ],
84
+ "helpers": [
85
+ "./dist/helpers/index.d.ts"
86
+ ],
87
+ "hooks": [
88
+ "./dist/hooks/index.d.ts"
89
+ ],
90
+ "types": [
91
+ "./dist/types/index.d.ts"
92
+ ]
93
+ }
94
+ }
95
+ }