@cyberskill/shared 1.80.0 → 1.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_tsup-dts-rollup.d.cts +30 -8
- package/dist/_tsup-dts-rollup.d.ts +30 -8
- package/dist/configs/commitlint/index.d.cts +1 -1
- package/dist/configs/commitlint/index.d.ts +1 -1
- package/dist/configs/eslint/index.d.cts +1 -1
- package/dist/configs/eslint/index.d.ts +1 -1
- package/dist/configs/lint-staged/index.d.cts +1 -1
- package/dist/configs/lint-staged/index.d.ts +1 -1
- package/dist/configs/tsconfig/tsconfig.base.json +0 -8
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/nodejs/cli/cli.util.cjs +1 -1
- package/dist/nodejs/cli/cli.util.js +1 -1
- package/dist/nodejs/cli/index.cjs +1 -1
- package/dist/nodejs/cli/index.js +1 -1
- package/dist/nodejs/index.cjs +1 -1
- package/dist/nodejs/index.js +1 -1
- package/dist/{package-MZ24VJKI.json → package-KSSCGX3B.json} +1 -2
- package/dist/react/apollo-client/apollo-client.component.d.cts +1 -1
- package/dist/react/apollo-client/apollo-client.component.d.ts +1 -1
- package/dist/react/apollo-client/index.d.cts +1 -1
- package/dist/react/apollo-client/index.d.ts +1 -1
- package/dist/react/apollo-error/apollo-error.component.d.cts +1 -1
- package/dist/react/apollo-error/apollo-error.component.d.ts +1 -1
- package/dist/react/apollo-error/apollo-error.context.d.cts +1 -1
- package/dist/react/apollo-error/apollo-error.context.d.ts +1 -1
- package/dist/react/apollo-error/apollo-error.hook.d.cts +1 -1
- package/dist/react/apollo-error/apollo-error.hook.d.ts +1 -1
- package/dist/react/apollo-error/apollo-error.provider.d.cts +2 -2
- package/dist/react/apollo-error/apollo-error.provider.d.ts +2 -2
- package/dist/react/apollo-error/index.d.cts +5 -5
- package/dist/react/apollo-error/index.d.ts +5 -5
- package/dist/react/index.d.cts +1 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/next-intl/index.d.cts +1 -0
- package/dist/react/next-intl/index.d.ts +1 -0
- package/dist/react/next-intl/next-intl.constant.d.cts +1 -0
- package/dist/react/next-intl/next-intl.constant.d.ts +1 -0
- package/package.json +1 -2
- package/dist/configs/tsconfig/tsconfig.nodejs.d.cts +0 -1
- package/dist/configs/tsconfig/tsconfig.nodejs.d.ts +0 -1
- /package/dist/{configs/tsconfig/tsconfig.nextjs.d.cts → react/loading/loading.module.scss.d.d.cts} +0 -0
- /package/dist/{configs/tsconfig/tsconfig.nextjs.d.ts → react/loading/loading.module.scss.d.d.ts} +0 -0
|
@@ -29,13 +29,14 @@ import type { InsertManyResult } from 'mongodb';
|
|
|
29
29
|
import type { InsertOneResult } from 'mongodb';
|
|
30
30
|
import type { JSX } from 'react';
|
|
31
31
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
32
|
-
import
|
|
32
|
+
import { Locale } from 'date-fns';
|
|
33
33
|
import { Model } from 'mongoose';
|
|
34
34
|
import type mongoose from 'mongoose';
|
|
35
35
|
import mongoosePaginate from 'mongoose-paginate-v2';
|
|
36
36
|
import type mongooseRaw from 'mongoose';
|
|
37
37
|
import type { NormalizedCacheObject } from '@apollo/client';
|
|
38
38
|
import type { OptionalUnlessRequiredId } from 'mongodb';
|
|
39
|
+
import { Options } from 'tsup';
|
|
39
40
|
import type { PaginateModel } from 'mongoose';
|
|
40
41
|
import type { PaginateOptions } from 'mongoose';
|
|
41
42
|
import type { PaginateResult } from 'mongoose';
|
|
@@ -58,6 +59,7 @@ import { toast } from 'react-hot-toast';
|
|
|
58
59
|
import { Toaster } from 'react-hot-toast';
|
|
59
60
|
import type { UpdateQuery } from 'mongoose';
|
|
60
61
|
import type { UpdateResult } from 'mongodb';
|
|
62
|
+
import type { UriFunction } from '@apollo/client';
|
|
61
63
|
import type { UserConfig } from 'vite';
|
|
62
64
|
import { useTranslation } from 'react-i18next';
|
|
63
65
|
import { useTranslations } from 'next-intl';
|
|
@@ -258,7 +260,7 @@ declare const _default: {
|
|
|
258
260
|
};
|
|
259
261
|
export { _default as commitlintConfig }
|
|
260
262
|
export { _default as commitlintConfig_alias_1 }
|
|
261
|
-
export { _default as
|
|
263
|
+
export { _default as default_alias_1 }
|
|
262
264
|
|
|
263
265
|
declare const _default_2: {
|
|
264
266
|
languageOptions: {
|
|
@@ -1410,17 +1412,19 @@ declare const _default_2: {
|
|
|
1410
1412
|
};
|
|
1411
1413
|
ignores: string[];
|
|
1412
1414
|
}[];
|
|
1413
|
-
export { _default_2 as
|
|
1415
|
+
export { _default_2 as default_alias_2 }
|
|
1414
1416
|
export { _default_2 as eslintConfig }
|
|
1415
1417
|
export { _default_2 as eslintConfig_alias_1 }
|
|
1416
1418
|
|
|
1417
1419
|
declare const _default_3: {
|
|
1418
1420
|
'*': string[];
|
|
1419
1421
|
};
|
|
1420
|
-
export { _default_3 as
|
|
1422
|
+
export { _default_3 as default_alias_3 }
|
|
1421
1423
|
export { _default_3 as lintStagedConfig }
|
|
1422
1424
|
export { _default_3 as lintStagedConfig_alias_1 }
|
|
1423
1425
|
|
|
1426
|
+
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
1427
|
+
|
|
1424
1428
|
declare enum E_CommandType {
|
|
1425
1429
|
CLI = "CLI",
|
|
1426
1430
|
RAW = "RAW"
|
|
@@ -1550,7 +1554,7 @@ declare function HOOK({ isCurrentProject }: Partial<I_CommandContext>): {
|
|
|
1550
1554
|
'pre-push'?: {
|
|
1551
1555
|
raw: boolean;
|
|
1552
1556
|
cmd: string;
|
|
1553
|
-
}
|
|
1557
|
+
};
|
|
1554
1558
|
'pre-commit': string;
|
|
1555
1559
|
'commit-msg': string;
|
|
1556
1560
|
};
|
|
@@ -1570,7 +1574,7 @@ export { I_ApolloErrorContext as I_ApolloErrorContext_alias_2 }
|
|
|
1570
1574
|
export { I_ApolloErrorContext as I_ApolloErrorContext_alias_3 }
|
|
1571
1575
|
|
|
1572
1576
|
declare interface I_ApolloOptions extends Omit<ApolloClientOptions<NormalizedCacheObject>, 'cache'> {
|
|
1573
|
-
uri?: string;
|
|
1577
|
+
uri?: string | UriFunction;
|
|
1574
1578
|
wsUrl?: string;
|
|
1575
1579
|
cache?: ApolloCache<NormalizedCacheObject>;
|
|
1576
1580
|
customLinks?: ApolloLink[];
|
|
@@ -1916,7 +1920,7 @@ export { I_MongooseOptions as I_MongooseOptions_alias_3 }
|
|
|
1916
1920
|
|
|
1917
1921
|
declare interface I_NextIntlContext {
|
|
1918
1922
|
languages: I_NextIntlLanguage[];
|
|
1919
|
-
currentLanguage
|
|
1923
|
+
currentLanguage: I_NextIntlLanguage;
|
|
1920
1924
|
setCurrentLanguage: (newLang: I_NextIntlLanguage) => void;
|
|
1921
1925
|
}
|
|
1922
1926
|
export { I_NextIntlContext }
|
|
@@ -2226,6 +2230,23 @@ export { mongoosePaginate as mongoosePaginate_alias_1 }
|
|
|
2226
2230
|
export { mongoosePaginate as mongoosePaginate_alias_2 }
|
|
2227
2231
|
export { mongoosePaginate as mongoosePaginate_alias_3 }
|
|
2228
2232
|
|
|
2233
|
+
declare const NEXT_INTL_DEFAULT_LANGUAGE: {
|
|
2234
|
+
label: string;
|
|
2235
|
+
value: string;
|
|
2236
|
+
flag: string;
|
|
2237
|
+
adapterLocale: Locale;
|
|
2238
|
+
icon: string;
|
|
2239
|
+
numberFormat: {
|
|
2240
|
+
code: string;
|
|
2241
|
+
currency: string;
|
|
2242
|
+
};
|
|
2243
|
+
timezone: string;
|
|
2244
|
+
};
|
|
2245
|
+
export { NEXT_INTL_DEFAULT_LANGUAGE }
|
|
2246
|
+
export { NEXT_INTL_DEFAULT_LANGUAGE as NEXT_INTL_DEFAULT_LANGUAGE_alias_1 }
|
|
2247
|
+
export { NEXT_INTL_DEFAULT_LANGUAGE as NEXT_INTL_DEFAULT_LANGUAGE_alias_2 }
|
|
2248
|
+
export { NEXT_INTL_DEFAULT_LANGUAGE as NEXT_INTL_DEFAULT_LANGUAGE_alias_3 }
|
|
2249
|
+
|
|
2229
2250
|
declare const NextIntlContext: Context<I_NextIntlContext | undefined>;
|
|
2230
2251
|
export { NextIntlContext }
|
|
2231
2252
|
export { NextIntlContext as NextIntlContext_alias_1 }
|
|
@@ -2892,7 +2913,8 @@ export { T_PaginateOptions as T_PaginateOptions_alias_1 }
|
|
|
2892
2913
|
export { T_PaginateOptions as T_PaginateOptions_alias_2 }
|
|
2893
2914
|
export { T_PaginateOptions as T_PaginateOptions_alias_3 }
|
|
2894
2915
|
|
|
2895
|
-
declare interface T_PaginateOptionsWithPopulate extends T_PaginateOptions, T_PopulateOption {
|
|
2916
|
+
declare interface T_PaginateOptionsWithPopulate extends T_PaginateOptions, Omit<T_PopulateOption, 'populate'> {
|
|
2917
|
+
populate?: T_Input_Populate;
|
|
2896
2918
|
}
|
|
2897
2919
|
export { T_PaginateOptionsWithPopulate }
|
|
2898
2920
|
export { T_PaginateOptionsWithPopulate as T_PaginateOptionsWithPopulate_alias_1 }
|
|
@@ -29,13 +29,14 @@ import type { InsertManyResult } from 'mongodb';
|
|
|
29
29
|
import type { InsertOneResult } from 'mongodb';
|
|
30
30
|
import type { JSX } from 'react';
|
|
31
31
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
32
|
-
import
|
|
32
|
+
import { Locale } from 'date-fns';
|
|
33
33
|
import { Model } from 'mongoose';
|
|
34
34
|
import type mongoose from 'mongoose';
|
|
35
35
|
import mongoosePaginate from 'mongoose-paginate-v2';
|
|
36
36
|
import type mongooseRaw from 'mongoose';
|
|
37
37
|
import type { NormalizedCacheObject } from '@apollo/client';
|
|
38
38
|
import type { OptionalUnlessRequiredId } from 'mongodb';
|
|
39
|
+
import { Options } from 'tsup';
|
|
39
40
|
import type { PaginateModel } from 'mongoose';
|
|
40
41
|
import type { PaginateOptions } from 'mongoose';
|
|
41
42
|
import type { PaginateResult } from 'mongoose';
|
|
@@ -58,6 +59,7 @@ import { toast } from 'react-hot-toast';
|
|
|
58
59
|
import { Toaster } from 'react-hot-toast';
|
|
59
60
|
import type { UpdateQuery } from 'mongoose';
|
|
60
61
|
import type { UpdateResult } from 'mongodb';
|
|
62
|
+
import type { UriFunction } from '@apollo/client';
|
|
61
63
|
import type { UserConfig } from 'vite';
|
|
62
64
|
import { useTranslation } from 'react-i18next';
|
|
63
65
|
import { useTranslations } from 'next-intl';
|
|
@@ -258,7 +260,7 @@ declare const _default: {
|
|
|
258
260
|
};
|
|
259
261
|
export { _default as commitlintConfig }
|
|
260
262
|
export { _default as commitlintConfig_alias_1 }
|
|
261
|
-
export { _default as
|
|
263
|
+
export { _default as default_alias_1 }
|
|
262
264
|
|
|
263
265
|
declare const _default_2: {
|
|
264
266
|
languageOptions: {
|
|
@@ -1410,17 +1412,19 @@ declare const _default_2: {
|
|
|
1410
1412
|
};
|
|
1411
1413
|
ignores: string[];
|
|
1412
1414
|
}[];
|
|
1413
|
-
export { _default_2 as
|
|
1415
|
+
export { _default_2 as default_alias_2 }
|
|
1414
1416
|
export { _default_2 as eslintConfig }
|
|
1415
1417
|
export { _default_2 as eslintConfig_alias_1 }
|
|
1416
1418
|
|
|
1417
1419
|
declare const _default_3: {
|
|
1418
1420
|
'*': string[];
|
|
1419
1421
|
};
|
|
1420
|
-
export { _default_3 as
|
|
1422
|
+
export { _default_3 as default_alias_3 }
|
|
1421
1423
|
export { _default_3 as lintStagedConfig }
|
|
1422
1424
|
export { _default_3 as lintStagedConfig_alias_1 }
|
|
1423
1425
|
|
|
1426
|
+
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
1427
|
+
|
|
1424
1428
|
declare enum E_CommandType {
|
|
1425
1429
|
CLI = "CLI",
|
|
1426
1430
|
RAW = "RAW"
|
|
@@ -1550,7 +1554,7 @@ declare function HOOK({ isCurrentProject }: Partial<I_CommandContext>): {
|
|
|
1550
1554
|
'pre-push'?: {
|
|
1551
1555
|
raw: boolean;
|
|
1552
1556
|
cmd: string;
|
|
1553
|
-
}
|
|
1557
|
+
};
|
|
1554
1558
|
'pre-commit': string;
|
|
1555
1559
|
'commit-msg': string;
|
|
1556
1560
|
};
|
|
@@ -1570,7 +1574,7 @@ export { I_ApolloErrorContext as I_ApolloErrorContext_alias_2 }
|
|
|
1570
1574
|
export { I_ApolloErrorContext as I_ApolloErrorContext_alias_3 }
|
|
1571
1575
|
|
|
1572
1576
|
declare interface I_ApolloOptions extends Omit<ApolloClientOptions<NormalizedCacheObject>, 'cache'> {
|
|
1573
|
-
uri?: string;
|
|
1577
|
+
uri?: string | UriFunction;
|
|
1574
1578
|
wsUrl?: string;
|
|
1575
1579
|
cache?: ApolloCache<NormalizedCacheObject>;
|
|
1576
1580
|
customLinks?: ApolloLink[];
|
|
@@ -1916,7 +1920,7 @@ export { I_MongooseOptions as I_MongooseOptions_alias_3 }
|
|
|
1916
1920
|
|
|
1917
1921
|
declare interface I_NextIntlContext {
|
|
1918
1922
|
languages: I_NextIntlLanguage[];
|
|
1919
|
-
currentLanguage
|
|
1923
|
+
currentLanguage: I_NextIntlLanguage;
|
|
1920
1924
|
setCurrentLanguage: (newLang: I_NextIntlLanguage) => void;
|
|
1921
1925
|
}
|
|
1922
1926
|
export { I_NextIntlContext }
|
|
@@ -2226,6 +2230,23 @@ export { mongoosePaginate as mongoosePaginate_alias_1 }
|
|
|
2226
2230
|
export { mongoosePaginate as mongoosePaginate_alias_2 }
|
|
2227
2231
|
export { mongoosePaginate as mongoosePaginate_alias_3 }
|
|
2228
2232
|
|
|
2233
|
+
declare const NEXT_INTL_DEFAULT_LANGUAGE: {
|
|
2234
|
+
label: string;
|
|
2235
|
+
value: string;
|
|
2236
|
+
flag: string;
|
|
2237
|
+
adapterLocale: Locale;
|
|
2238
|
+
icon: string;
|
|
2239
|
+
numberFormat: {
|
|
2240
|
+
code: string;
|
|
2241
|
+
currency: string;
|
|
2242
|
+
};
|
|
2243
|
+
timezone: string;
|
|
2244
|
+
};
|
|
2245
|
+
export { NEXT_INTL_DEFAULT_LANGUAGE }
|
|
2246
|
+
export { NEXT_INTL_DEFAULT_LANGUAGE as NEXT_INTL_DEFAULT_LANGUAGE_alias_1 }
|
|
2247
|
+
export { NEXT_INTL_DEFAULT_LANGUAGE as NEXT_INTL_DEFAULT_LANGUAGE_alias_2 }
|
|
2248
|
+
export { NEXT_INTL_DEFAULT_LANGUAGE as NEXT_INTL_DEFAULT_LANGUAGE_alias_3 }
|
|
2249
|
+
|
|
2229
2250
|
declare const NextIntlContext: Context<I_NextIntlContext | undefined>;
|
|
2230
2251
|
export { NextIntlContext }
|
|
2231
2252
|
export { NextIntlContext as NextIntlContext_alias_1 }
|
|
@@ -2892,7 +2913,8 @@ export { T_PaginateOptions as T_PaginateOptions_alias_1 }
|
|
|
2892
2913
|
export { T_PaginateOptions as T_PaginateOptions_alias_2 }
|
|
2893
2914
|
export { T_PaginateOptions as T_PaginateOptions_alias_3 }
|
|
2894
2915
|
|
|
2895
|
-
declare interface T_PaginateOptionsWithPopulate extends T_PaginateOptions, T_PopulateOption {
|
|
2916
|
+
declare interface T_PaginateOptionsWithPopulate extends T_PaginateOptions, Omit<T_PopulateOption, 'populate'> {
|
|
2917
|
+
populate?: T_Input_Populate;
|
|
2896
2918
|
}
|
|
2897
2919
|
export { T_PaginateOptionsWithPopulate }
|
|
2898
2920
|
export { T_PaginateOptionsWithPopulate as T_PaginateOptionsWithPopulate_alias_1 }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default_alias_1 as default } from '../../_tsup-dts-rollup.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default_alias_1 as default } from '../../_tsup-dts-rollup.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default_alias_2 as default } from '../../_tsup-dts-rollup.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default_alias_2 as default } from '../../_tsup-dts-rollup.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default_alias_3 as default } from '../../_tsup-dts-rollup.cjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default_alias_3 as default } from '../../_tsup-dts-rollup.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"incremental": true,
|
|
4
3
|
"target": "ES2022",
|
|
5
4
|
"jsx": "react-jsx",
|
|
6
5
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
@@ -18,7 +17,6 @@
|
|
|
18
17
|
"strictPropertyInitialization": true,
|
|
19
18
|
"allowUnreachableCode": false,
|
|
20
19
|
"allowUnusedLabels": false,
|
|
21
|
-
"alwaysStrict": true,
|
|
22
20
|
"exactOptionalPropertyTypes": true,
|
|
23
21
|
"noFallthroughCasesInSwitch": true,
|
|
24
22
|
"noImplicitAny": true,
|
|
@@ -29,12 +27,6 @@
|
|
|
29
27
|
"noUnusedLocals": true,
|
|
30
28
|
"noUnusedParameters": true,
|
|
31
29
|
"useUnknownInCatchVariables": true,
|
|
32
|
-
"declaration": true,
|
|
33
|
-
"declarationMap": true,
|
|
34
|
-
"emitDeclarationOnly": false,
|
|
35
|
-
"inlineSources": true,
|
|
36
|
-
"noEmit": true,
|
|
37
|
-
"sourceMap": true,
|
|
38
30
|
"allowSyntheticDefaultImports": true,
|
|
39
31
|
"esModuleInterop": true,
|
|
40
32
|
"forceConsistentCasingInFileNames": true,
|