@fixefy/fixefy-ui-utils 0.0.9 → 0.0.10

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 (84) hide show
  1. package/dist-cjs/index.js +39 -17
  2. package/dist-cjs/index.js.map +1 -0
  3. package/{dist-types → dist-cjs/types}/index.d.ts +0 -3
  4. package/{dist-types → dist-cjs/types}/types/index.d.ts +5 -5
  5. package/dist-es/index.js +39 -14
  6. package/dist-es/index.js.map +1 -0
  7. package/dist-es/types/auth/index.d.ts +2 -0
  8. package/dist-es/types/aws/data_models.d.ts +21 -0
  9. package/dist-es/types/commander/index.d.ts +33 -0
  10. package/dist-es/types/constants/index.d.ts +6 -0
  11. package/dist-es/types/files/index.d.ts +2 -0
  12. package/dist-es/types/graphql/index.d.ts +38 -0
  13. package/dist-es/types/headers/index.d.ts +12 -0
  14. package/dist-es/types/images/index.d.ts +4 -0
  15. package/dist-es/types/index.d.ts +11 -0
  16. package/dist-es/types/json/index.d.ts +7 -0
  17. package/dist-es/types/page_context/index.d.ts +248 -0
  18. package/dist-es/types/redirect/index.d.ts +2 -0
  19. package/dist-es/types/resolvers/index.d.ts +11 -0
  20. package/dist-es/types/transform/index.d.ts +2 -0
  21. package/dist-es/types/types/index.d.ts +39 -0
  22. package/dist-es/types/validate/index.d.ts +5 -0
  23. package/package.json +71 -64
  24. package/dist-cjs/auth/index.jsx +0 -13
  25. package/dist-cjs/aws/aws_lambda_helper.js +0 -49
  26. package/dist-cjs/aws/aws_s3_helper.js +0 -1
  27. package/dist-cjs/aws/data_models.js +0 -2
  28. package/dist-cjs/aws/index.js +0 -4
  29. package/dist-cjs/commander/index.jsx +0 -280
  30. package/dist-cjs/constants/index.jsx +0 -87
  31. package/dist-cjs/contents/index.jsx +0 -32
  32. package/dist-cjs/files/index.jsx +0 -27
  33. package/dist-cjs/graphql/index.jsx +0 -217
  34. package/dist-cjs/headers/index.jsx +0 -68
  35. package/dist-cjs/images/index.jsx +0 -13
  36. package/dist-cjs/json/index.js +0 -135
  37. package/dist-cjs/package.json +0 -3
  38. package/dist-cjs/page_context/index.jsx +0 -494
  39. package/dist-cjs/redirect/index.jsx +0 -15
  40. package/dist-cjs/renderer/index.jsx +0 -66
  41. package/dist-cjs/resolvers/index.jsx +0 -35
  42. package/dist-cjs/transform/index.jsx +0 -40
  43. package/dist-cjs/types/index.js +0 -2
  44. package/dist-cjs/validate/index.jsx +0 -48
  45. package/dist-es/auth/index.jsx +0 -11
  46. package/dist-es/aws/aws_lambda_helper.js +0 -41
  47. package/dist-es/aws/aws_s3_helper.js +0 -1
  48. package/dist-es/aws/data_models.js +0 -1
  49. package/dist-es/commander/index.jsx +0 -250
  50. package/dist-es/constants/index.jsx +0 -84
  51. package/dist-es/contents/index.jsx +0 -31
  52. package/dist-es/files/index.jsx +0 -22
  53. package/dist-es/graphql/index.jsx +0 -235
  54. package/dist-es/headers/index.jsx +0 -57
  55. package/dist-es/images/index.jsx +0 -9
  56. package/dist-es/json/index.js +0 -125
  57. package/dist-es/package.json +0 -3
  58. package/dist-es/page_context/index.jsx +0 -511
  59. package/dist-es/redirect/index.jsx +0 -12
  60. package/dist-es/renderer/index.jsx +0 -60
  61. package/dist-es/resolvers/index.jsx +0 -31
  62. package/dist-es/transform/index.jsx +0 -35
  63. package/dist-es/types/index.js +0 -1
  64. package/dist-es/validate/index.jsx +0 -40
  65. package/dist-types/aws/aws_lambda_helper.d.ts +0 -5
  66. package/dist-types/aws/aws_s3_helper.d.ts +0 -0
  67. package/dist-types/contents/index.d.ts +0 -3
  68. package/dist-types/renderer/index.d.ts +0 -9
  69. /package/{dist-types → dist-cjs/types}/auth/index.d.ts +0 -0
  70. /package/{dist-types → dist-cjs/types}/aws/data_models.d.ts +0 -0
  71. /package/{dist-types → dist-cjs/types}/aws/index.d.ts +0 -0
  72. /package/{dist-types → dist-cjs/types}/commander/index.d.ts +0 -0
  73. /package/{dist-types → dist-cjs/types}/constants/index.d.ts +0 -0
  74. /package/{dist-types → dist-cjs/types}/files/index.d.ts +0 -0
  75. /package/{dist-types → dist-cjs/types}/graphql/index.d.ts +0 -0
  76. /package/{dist-types → dist-cjs/types}/headers/index.d.ts +0 -0
  77. /package/{dist-types → dist-cjs/types}/images/index.d.ts +0 -0
  78. /package/{dist-types → dist-cjs/types}/json/index.d.ts +0 -0
  79. /package/{dist-types → dist-cjs/types}/page_context/index.d.ts +0 -0
  80. /package/{dist-types → dist-cjs/types}/redirect/index.d.ts +0 -0
  81. /package/{dist-types → dist-cjs/types}/resolvers/index.d.ts +0 -0
  82. /package/{dist-types → dist-cjs/types}/transform/index.d.ts +0 -0
  83. /package/{dist-types → dist-cjs/types}/validate/index.d.ts +0 -0
  84. /package/dist-es/{aws/index.js → types/aws/index.d.ts} +0 -0
@@ -0,0 +1,2 @@
1
+ export declare const attachAuth: (ctx: any, headers: any) => any;
2
+ export declare const getToken: (ctx: any) => string;
@@ -0,0 +1,21 @@
1
+ export interface GenerateMappingsInput {
2
+ authorization: string;
3
+ file_name: string;
4
+ function_name: string;
5
+ raw: Array<unknown>;
6
+ ws: string;
7
+ }
8
+ export interface ListObjectOutput {
9
+ description?: string | undefined;
10
+ name?: string | undefined;
11
+ report?: string | undefined;
12
+ size?: number | undefined;
13
+ title?: string | undefined;
14
+ updated_at?: number | undefined;
15
+ updated_by?: string | undefined;
16
+ url?: string | undefined;
17
+ }
18
+ export interface SignedUrl {
19
+ name: string;
20
+ url: string;
21
+ }
@@ -0,0 +1,33 @@
1
+ import { Maybe } from '@fixefy/fixefy-entities';
2
+ export declare function buildCode(obj: any, level: number | undefined, name: string): string[];
3
+ export declare const copyToClipboard: (str: string) => void;
4
+ export declare function convertToString(input: any): Maybe<string>;
5
+ export declare const determineIconByEvent: (event: {
6
+ type: string;
7
+ }) => string | undefined;
8
+ export declare function formatNumberWithCommas(number: number): string;
9
+ export declare function getNormalizationKeyForEntity(entity_type: string): string;
10
+ export declare const getStringValueByValueType: ({ value, name }: {
11
+ value: any;
12
+ name: string;
13
+ }) => any;
14
+ export declare function getVal(val: any): any;
15
+ export declare const isInServer: () => boolean;
16
+ export declare const isValidTimestamp: (_timestamp: any) => boolean;
17
+ export declare function lineString(level: any, name?: String): string;
18
+ export declare function makeString(len?: number): string;
19
+ export declare const nest: ({ items }: {
20
+ items: Array<any>;
21
+ }) => any[];
22
+ export declare function normalizeTimestamp(timestamp: any, options: any): string;
23
+ export declare function normalizeStringBodyRaw(key: string, body: any): any;
24
+ export declare function titleCase(str?: string): string;
25
+ export declare function toCamelCase(inputArray: Maybe<Array<any>>): string;
26
+ export declare function toCamelCaseString(input: string): string;
27
+ export declare const toCurrency: (input: string | number) => string | number;
28
+ export declare const toInitials: (str: string) => string | undefined;
29
+ export declare function toPascalCase(string: string, title?: boolean): string;
30
+ export declare function toWords(input: Maybe<string>): RegExpMatchArray | null | undefined;
31
+ export declare function trimRuleCode(input: any): string;
32
+ export declare const useStatePromisify: (_state: any) => any[];
33
+ export declare const getScoreColor: (value: number) => "bad" | "low" | "medium" | "high" | "excellent";
@@ -0,0 +1,6 @@
1
+ export declare const ColumnInputTypes: Record<string, string>;
2
+ export declare const ComponentTypes: Record<string, string>;
3
+ export declare const DataTypes: Record<string, string>;
4
+ export declare const EntityTypes: Record<string, string>;
5
+ export declare const FilterOperatorType: Record<string, string>;
6
+ export declare const InputTypes: Record<string, string>;
@@ -0,0 +1,2 @@
1
+ export declare const convertFileSize: (fileSize: number) => string | undefined;
2
+ export declare const convertFileTypeToIcon: (fileType: string) => "uploader/file_type_csv.svg" | "uploader/file_type_xml.svg" | "uploader/file_type_json.svg" | "uploader/file_type_xls.svg";
@@ -0,0 +1,38 @@
1
+ export declare const operationTypes: {
2
+ MUTATIONS: {
3
+ CREATE: string;
4
+ DELETE: string;
5
+ UPDATE: string;
6
+ ACTION: string;
7
+ };
8
+ QUERIES: string;
9
+ SUBSCRIPTIONS: string;
10
+ };
11
+ export declare const draggableTypes: {
12
+ ACTION: string;
13
+ ENTITY: string;
14
+ FRAGMENT: string;
15
+ VARIABLES: string;
16
+ };
17
+ export declare const getFields: ({ arg }: {
18
+ arg: any;
19
+ }) => any;
20
+ export declare const getFieldsStringified: ({ arg }: {
21
+ arg: any;
22
+ }) => string[];
23
+ export declare const getTypeKind: (object: any) => any;
24
+ export declare const getTypeName: (object: any) => any;
25
+ export declare const getOperationObjectFromSchema: ({ operationName, schema }: {
26
+ operationName: string;
27
+ schema: any;
28
+ }) => any[];
29
+ export declare const getOperationTypeForMutation: ({ operationName }: {
30
+ operationName: string;
31
+ }) => string;
32
+ export declare const getVariablesKeys: ({ variables, operationType }: {
33
+ variables: any;
34
+ operationType: string;
35
+ }) => string[] | undefined;
36
+ export declare const insertNewVariable: ({ operationName, schema, key, value, _variables, action, ctx }: any) => void;
37
+ export declare const isArgMandatory: (arg: any) => boolean;
38
+ export declare const parseInputDataToDataObject: ({ key, value, parent, method, list, state, ...rest }: any) => any;
@@ -0,0 +1,12 @@
1
+ export declare const defaultHeaders: any;
2
+ export declare const getHeaders: (ctx: any, options?: {}) => any;
3
+ export declare const setHeaders: (ctx: any, _headers: any) => void;
4
+ export declare const getLastActivity: (ctx: any) => void;
5
+ export declare const setLastActivity: (ctx: any) => void;
6
+ export declare const flushLastActivity: (ctx: any) => void;
7
+ export declare const getWorkspace: (ctx: any) => string;
8
+ export declare const setWorkspace: (ctx: any, ws: string) => void;
9
+ export declare const flushWorkspace: (ctx: any) => void;
10
+ export declare const flushAll: (ctx: any) => void;
11
+ export declare const setCurrency: (ctx: any, currency: JSON) => void;
12
+ export declare const getCurrency: (ctx: any) => any;
@@ -0,0 +1,4 @@
1
+ export declare const imageLoader: ({ src, root }: {
2
+ src: any;
3
+ root: any;
4
+ }) => string;
@@ -0,0 +1,11 @@
1
+ export * from './auth';
2
+ export * from './commander';
3
+ export * from './constants';
4
+ export * from './graphql';
5
+ export * from './headers';
6
+ export * from './images';
7
+ export * from './json';
8
+ export * from './page_context';
9
+ export * from './redirect';
10
+ export * from './types';
11
+ export * from './validate';
@@ -0,0 +1,7 @@
1
+ export declare const getJToken: (jToken: any, jsonPath: string, defaultValue?: any) => any;
2
+ export declare const getJPart: (j: any, jsonPath: string, defaultValue: any) => any;
3
+ export declare const isHasKey: <T>(array: T[], key: string) => boolean;
4
+ export declare const isJson: (obj: any) => boolean;
5
+ export declare const isNested: (obj: any) => any;
6
+ export declare const isResultValid: (jResult: any) => boolean;
7
+ export declare const setJToken: (jEntity: any, fieldPathsAndValues: Array<any>) => void;
@@ -0,0 +1,248 @@
1
+ /// <reference types="react" />
2
+ import { Theme } from '@mui/material/styles';
3
+ declare module '@mui/styles/defaultTheme' {
4
+ interface DefaultTheme extends Theme {
5
+ }
6
+ }
7
+ declare module '@mui/material/styles' {
8
+ interface Theme {
9
+ sizes: Sizes;
10
+ }
11
+ interface ThemeOptions {
12
+ sizes: Sizes;
13
+ }
14
+ interface Sizes {
15
+ sideMenu: {
16
+ width: number;
17
+ itemHeight: number;
18
+ logoHeight: number;
19
+ paddingTop: number;
20
+ marginBottom: number;
21
+ };
22
+ hex: number;
23
+ hex_node: number;
24
+ hex_event: number;
25
+ hex_service: number;
26
+ hex_structure: number;
27
+ header: {
28
+ iconTray: number;
29
+ height: number;
30
+ };
31
+ }
32
+ interface Palette {
33
+ greyscale: Palette['primary'];
34
+ redscale: Palette['primary'];
35
+ orangescale: Palette['primary'];
36
+ goldscale: Palette['primary'];
37
+ yellowscale: Palette['primary'];
38
+ purplescale: Palette['primary'];
39
+ green1scale: Palette['primary'];
40
+ green2scale: Palette['primary'];
41
+ green3scale: Palette['primary'];
42
+ blue1scale: Palette['primary'];
43
+ blue2scale: Palette['primary'];
44
+ pending: Palette['primary'];
45
+ score: ScorePaletteColorOptions;
46
+ invoiceAnalysis: InvoiceAnalysisPaletteColorOptions;
47
+ status: StatusPaletteColorOptions;
48
+ invoiceState: InvoiceStatesPaletteColorOptions;
49
+ reconcilationState: RecosStatesPaletteColorOptions;
50
+ trends: TrendsPaletteColorOptions;
51
+ uploader: UploaderPaletteColorOptions;
52
+ snackbar: SnackbarPaletteColorOptions;
53
+ notificationStatus: NotificationPaletteColorOptions;
54
+ statistics: StatisticsPalleteColorOptions;
55
+ typography: TypographyPalleteColorOptions;
56
+ priority: PriorityPalleteColorOptions;
57
+ colors: ColorsPaletteColorOptions;
58
+ }
59
+ interface PaletteOptions {
60
+ greyscale: PaletteOptions['primary'];
61
+ redscale: PaletteOptions['primary'];
62
+ orangescale: PaletteOptions['primary'];
63
+ goldscale: PaletteOptions['primary'];
64
+ yellowscale: PaletteOptions['primary'];
65
+ purplescale: PaletteOptions['primary'];
66
+ green1scale: PaletteOptions['primary'];
67
+ green2scale: PaletteOptions['primary'];
68
+ green3scale: PaletteOptions['primary'];
69
+ blue1scale: PaletteOptions['primary'];
70
+ blue2scale: PaletteOptions['primary'];
71
+ pending: PaletteOptions['primary'];
72
+ score: ScorePaletteColorOptions;
73
+ invoiceAnalysis: InvoiceAnalysisPaletteColorOptions;
74
+ trends: TrendsPaletteColorOptions;
75
+ uploader: UploaderPaletteColorOptions;
76
+ status: StatusPaletteColorOptions;
77
+ invoiceState: InvoiceStatesPaletteColorOptions;
78
+ reconcilationState: RecosStatesPaletteColorOptions;
79
+ snackbar: SnackbarPaletteColorOptions;
80
+ notificationStatus: NotificationPaletteColorOptions;
81
+ statistics: StatisticsPalleteColorOptions;
82
+ typography: TypographyPalleteColorOptions;
83
+ priority: PriorityPalleteColorOptions;
84
+ colors: ColorsPaletteColorOptions;
85
+ }
86
+ interface ColorsPaletteColorOptions {
87
+ red: string;
88
+ lightRed: string;
89
+ orange: string;
90
+ lightOrange: string;
91
+ orangeHover: string;
92
+ orangeFocused: string;
93
+ gold: string;
94
+ lightGold: string;
95
+ yellow: string;
96
+ lightYellow: string;
97
+ yellowHover: string;
98
+ yellowFocused: string;
99
+ green1: string;
100
+ lightGreen1: string;
101
+ green2: string;
102
+ lightGreen2: string;
103
+ green2Hover: string;
104
+ green2Focused: string;
105
+ green3: string;
106
+ blue: string;
107
+ lightBlue: string;
108
+ blueHover: string;
109
+ blueFocused: string;
110
+ blue1: string;
111
+ lightBlue1: string;
112
+ blue1Hover: string;
113
+ blue1Focused: string;
114
+ purple: string;
115
+ lightPurple: string;
116
+ }
117
+ interface PriorityPalleteColorOptions {
118
+ critical: string;
119
+ high: string;
120
+ low: string;
121
+ medium: string;
122
+ }
123
+ interface UploaderPaletteColorOptions {
124
+ processing: {
125
+ border: string;
126
+ bg: string;
127
+ };
128
+ pause: {
129
+ border: string;
130
+ bg: string;
131
+ };
132
+ }
133
+ interface TrendsPaletteColorOptions {
134
+ positive: string;
135
+ negative: string;
136
+ critical: string;
137
+ percent: string;
138
+ sum: string;
139
+ }
140
+ interface TypographyPalleteColorOptions {
141
+ title: string;
142
+ delete: string;
143
+ }
144
+ interface ScorePaletteColorOptions {
145
+ excellent: string;
146
+ high: string;
147
+ medium: string;
148
+ low: string;
149
+ bad: string;
150
+ }
151
+ interface TypographyPalleteColorOptions {
152
+ title: string;
153
+ delete: string;
154
+ }
155
+ interface StatisticsPalleteColorOptions {
156
+ value: string;
157
+ label: string;
158
+ }
159
+ interface InvoiceAnalysisPaletteColorOptions {
160
+ underCharges: string;
161
+ overCharges: string;
162
+ matching: string;
163
+ invalid: string;
164
+ }
165
+ interface StatusPaletteColorOptions {
166
+ active: StatusColorOption;
167
+ approve: StatusColorOption;
168
+ challenge: StatusColorOption;
169
+ challenged: StatusColorOption;
170
+ declined: StatusColorOption;
171
+ discrepancy: StatusColorOption;
172
+ duplicate: StatusColorOption;
173
+ duplicated: StatusColorOption;
174
+ gold: StatusColorOption;
175
+ in_progress: StatusColorOption;
176
+ in_review: StatusColorOption;
177
+ no_pricing: StatusColorOption;
178
+ pending: StatusColorOption;
179
+ }
180
+ interface InvoiceStatesPaletteColorOptions {
181
+ approved: StatusColorOption;
182
+ created: StatusColorOption;
183
+ declined: StatusColorOption;
184
+ in_dispute: StatusColorOption;
185
+ in_progress: StatusColorOption;
186
+ paid: StatusColorOption;
187
+ closed: StatusColorOption;
188
+ }
189
+ interface RecosStatesPaletteColorOptions {
190
+ created: StatusColorOption;
191
+ in_progress: StatusColorOption;
192
+ approved: StatusColorOption;
193
+ declined: StatusColorOption;
194
+ refunded: StatusColorOption;
195
+ closed: StatusColorOption;
196
+ }
197
+ interface SnackbarPaletteColorOptions {
198
+ info: SnackbarColorOption;
199
+ warn: SnackbarColorOption;
200
+ error: SnackbarColorOption;
201
+ success: SnackbarColorOption;
202
+ critical: SnackbarColorOption;
203
+ silent: SnackbarColorOption;
204
+ alert: SnackbarColorOption;
205
+ }
206
+ interface StatisticsPalleteColorOptions {
207
+ value: string;
208
+ label: string;
209
+ }
210
+ interface NotificationPaletteColorOptions {
211
+ unread: string;
212
+ }
213
+ interface StatusColorOption {
214
+ border: string;
215
+ background: string;
216
+ }
217
+ interface SnackbarColorOption {
218
+ border: string;
219
+ icon: string;
220
+ }
221
+ interface TypographyVariants {
222
+ table: React.CSSProperties;
223
+ table2: React.CSSProperties;
224
+ overLineCaption: React.CSSProperties;
225
+ link: React.CSSProperties;
226
+ }
227
+ interface TypographyVariantsOptions {
228
+ table: React.CSSProperties;
229
+ table2: React.CSSProperties;
230
+ overLineCaption: React.CSSProperties;
231
+ link: React.CSSProperties;
232
+ }
233
+ }
234
+ declare module '@mui/material/Typography' {
235
+ interface TypographyPropsVariantOverrides {
236
+ table: true;
237
+ table2: true;
238
+ overLineCaption: true;
239
+ link: true;
240
+ }
241
+ }
242
+ declare module '@mui/material/Button' {
243
+ interface ButtonPropsVariantOverrides {
244
+ primary: true;
245
+ 'contained:rounded': true;
246
+ }
247
+ }
248
+ export default function getPageContext(darkMode?: boolean): any;
@@ -0,0 +1,2 @@
1
+ declare const redirect: (context: any, target: any) => void;
2
+ export default redirect;
@@ -0,0 +1,11 @@
1
+ export declare const resolvers: {
2
+ Mutation: {
3
+ changePage(_: any, args: any, { cache }: any): {
4
+ currentPage: {
5
+ name: any;
6
+ path: string;
7
+ __typename: string;
8
+ };
9
+ } | null;
10
+ };
11
+ };
@@ -0,0 +1,2 @@
1
+ import 'regenerator-runtime/runtime.js';
2
+ export declare const transform: ({ data, data_type, options }: any) => Promise<any>;
@@ -0,0 +1,39 @@
1
+ export declare type EntityStatusType = {
2
+ active: string;
3
+ deleted: string;
4
+ };
5
+ export declare type ChargeStateType = {
6
+ approved: string;
7
+ archived: string;
8
+ challenge: string;
9
+ closed: string;
10
+ discrepancy: string;
11
+ duplicated: string;
12
+ in_dispute: string;
13
+ no_pricing: string;
14
+ pending: string;
15
+ refunded: string;
16
+ };
17
+ export declare type InvoiceStateType = {
18
+ approved: string;
19
+ created: string;
20
+ declined: string;
21
+ in_dispute: string;
22
+ in_progress: string;
23
+ paid: string;
24
+ };
25
+ export declare type RecoStateType = {
26
+ approved: string;
27
+ closed: string;
28
+ created: string;
29
+ declined: string;
30
+ in_progress: string;
31
+ refunded: string;
32
+ };
33
+ export declare type ScoreType = {
34
+ excellent: string;
35
+ high: string;
36
+ medium: string;
37
+ low: string;
38
+ bad: string;
39
+ };
@@ -0,0 +1,5 @@
1
+ export declare const isArrayValid: (arr: Array<any>, minLength?: number, maxLength?: number) => boolean;
2
+ export declare const isDateValid: (date: any) => boolean;
3
+ export declare const isObjectValid: (obj: any, isCheckKeys?: boolean) => boolean;
4
+ export declare const isStringValid: (str: string, minLength?: number | null, maxLength?: number | null, isValidateType?: boolean) => boolean;
5
+ export declare const isObjectId: (value: string) => boolean;
package/package.json CHANGED
@@ -1,66 +1,73 @@
1
1
  {
2
- "author": "Fixefy Inc Team",
3
- "browser": {
4
- "fs": false
5
- },
6
- "dependencies": {
7
- "@fixefy/fixefy-ui-components": "^0.0.9",
8
- "@mui/material": "^5.14.11",
9
- "@mui/styled-engine": "^5.14.11",
10
- "@mui/styles": "^5.14.11",
11
- "aws-sdk": "^2.1467.0",
12
- "convert-excel-to-json": "^1.7.0",
13
- "nookies": "^2.5.2",
14
- "react": "^18.2.0",
15
- "react-dom": "^18.2.0"
16
- },
17
- "devDependencies": {
18
- "@svgr/webpack": "^8.1.0",
19
- "@types/convert-excel-to-json": "^1.7.2",
20
- "@types/node": "^20.7.1",
21
- "@types/nookies": "^2.0.3",
22
- "@types/react": "^18.2.23",
23
- "@typescript-eslint/eslint-plugin": "^6.7.3",
24
- "@typescript-eslint/parser": "^6.7.3",
25
- "eslint": "^8.50.0"
26
- },
27
- "license": "MIT",
28
- "name": "@fixefy/fixefy-ui-utils",
29
- "repository": {
30
- "type": "git",
31
- "url": "https://github.com/Fixefy/fixefy-commander.git"
32
- },
33
- "scripts": {
34
- "build": "tsc -p ./tsconfig.cjs.json && tsc -p ./tsconfig.es.json && tsc -p ./tsconfig.types.json && yarn build:copy",
35
- "build:copy": "node ../../scripts/copy-files-ex.js",
36
- "pre_release": "yarn clean && yarn && yarn build",
37
- "r": "yarn release",
38
- "release": "yarn pre_release && npm pack && npm publish",
39
- "release:config": "yarn pre_release && npm publish --userconfig ./.npmrc",
40
- "clean": "rm -rf build && rm -rf dist-* && yarn clean:node",
41
- "clean:node": "rm -rf node_modules",
42
- "release_patch": "yarn patch && yarn release",
43
- "release_minor": "yarn minor && yarn release",
44
- "release_major": "yarn major && yarn release",
45
- "patch": "yarn version --patch && git push --follow-tags",
46
- "minor": "yarn version --minor && git push --follow-tags",
47
- "major": "yarn version --major && git push --follow-tags"
48
- },
49
- "engines": {
50
- "node": "18.17.1"
51
- },
52
- "files": [
53
- "dist-*/**/*"
54
- ],
55
- "private": false,
56
- "main": "./dist-cjs/index.js",
57
- "module": "./dist-es/index.js",
58
- "exports": {
59
- ".": {
60
- "import": "./dist-es/index.js",
61
- "require": "./dist-cjs/index.js"
62
- }
63
- },
64
- "types": "./dist-types/index.d.ts",
65
- "version": "0.0.9"
2
+ "author": "Fixefy Inc Team",
3
+ "browser": {
4
+ "fs": false
5
+ },
6
+ "dependencies": {
7
+ "@fixefy/fixefy-ui-components": "^0.0.9",
8
+ "@mui/material": "^5.14.11",
9
+ "@mui/styled-engine": "^5.14.11",
10
+ "@mui/styles": "^5.14.11",
11
+ "aws-sdk": "^2.1467.0",
12
+ "convert-excel-to-json": "^1.7.0",
13
+ "nookies": "^2.5.2",
14
+ "react": "^18.2.0",
15
+ "react-dom": "^18.2.0"
16
+ },
17
+ "devDependencies": {
18
+ "@rollup/plugin-commonjs": "^25.0.4",
19
+ "@rollup/plugin-json": "^6.0.0",
20
+ "@rollup/plugin-node-resolve": "^15.2.1",
21
+ "@rollup/plugin-typescript": "^11.1.4",
22
+ "@svgr/webpack": "^8.1.0",
23
+ "@types/convert-excel-to-json": "^1.7.2",
24
+ "@types/node": "^20.7.1",
25
+ "@types/nookies": "^2.0.3",
26
+ "@types/react": "^18.2.23",
27
+ "@typescript-eslint/eslint-plugin": "^6.7.3",
28
+ "@typescript-eslint/parser": "^6.7.3",
29
+ "eslint": "^8.50.0",
30
+ "rollup": "^3.29.4",
31
+ "rollup-plugin-dts": "^6.0.2",
32
+ "rollup-plugin-peer-deps-external": "^2.2.4",
33
+ "rollup-plugin-terser": "^7.0.2"
34
+ },
35
+ "license": "MIT",
36
+ "name": "@fixefy/fixefy-ui-utils",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/Fixefy/fixefy-commander.git"
40
+ },
41
+ "scripts": {
42
+ "build": "rollup -c --bundleConfigAsCjs",
43
+ "pre_release": "yarn clean && yarn && yarn build",
44
+ "r": "yarn release",
45
+ "release": "yarn pre_release && npm pack && npm publish",
46
+ "release:config": "yarn pre_release && npm publish --userconfig ./.npmrc",
47
+ "clean": "rm -rf build && rm -rf dist-* && yarn clean:node",
48
+ "clean:node": "rm -rf node_modules",
49
+ "release_patch": "yarn patch && yarn release",
50
+ "release_minor": "yarn minor && yarn release",
51
+ "release_major": "yarn major && yarn release",
52
+ "patch": "yarn version --patch && git push --follow-tags",
53
+ "minor": "yarn version --minor && git push --follow-tags",
54
+ "major": "yarn version --major && git push --follow-tags"
55
+ },
56
+ "engines": {
57
+ "node": "18.17.1"
58
+ },
59
+ "files": [
60
+ "dist-*/**/*"
61
+ ],
62
+ "private": false,
63
+ "main": "./dist-cjs/index.js",
64
+ "module": "./dist-es/index.js",
65
+ "exports": {
66
+ ".": {
67
+ "import": "./dist-es/index.js",
68
+ "require": "./dist-cjs/index.js"
69
+ }
70
+ },
71
+ "types": "./dist-types/index.d.ts",
72
+ "version": "0.0.10"
66
73
  }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getToken = exports.attachAuth = void 0;
4
- const nookies_1 = require("nookies");
5
- const attachAuth = (ctx, headers) => {
6
- const token = (0, exports.getToken)(ctx);
7
- return Object.assign(Object.assign({}, headers), { authorization: `Bearer ${token}` });
8
- };
9
- exports.attachAuth = attachAuth;
10
- const getToken = (ctx) => {
11
- return (0, nookies_1.parseCookies)(ctx)['token'];
12
- };
13
- exports.getToken = getToken;