@alepha/react 0.13.0 → 0.13.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.
Files changed (45) hide show
  1. package/dist/auth/index.browser.js +4 -1642
  2. package/dist/auth/index.browser.js.map +1 -1
  3. package/dist/auth/index.d.ts +1 -1
  4. package/dist/auth/index.js +4 -1642
  5. package/dist/auth/index.js.map +1 -1
  6. package/dist/core/index.d.ts +83 -83
  7. package/dist/form/index.d.ts +1 -1
  8. package/dist/form/index.js +3 -1642
  9. package/dist/form/index.js.map +1 -1
  10. package/dist/head/index.browser.js +3 -1654
  11. package/dist/head/index.browser.js.map +1 -1
  12. package/dist/head/index.d.ts +149 -885
  13. package/dist/head/index.js +4 -1654
  14. package/dist/head/index.js.map +1 -1
  15. package/dist/i18n/index.d.ts +20 -20
  16. package/dist/i18n/index.js +3 -1653
  17. package/dist/i18n/index.js.map +1 -1
  18. package/dist/websocket/index.d.ts +159 -3
  19. package/dist/websocket/index.js +2 -1654
  20. package/dist/websocket/index.js.map +1 -1
  21. package/package.json +9 -15
  22. package/dist/auth/chunk-DhGyd7sr.js +0 -28
  23. package/dist/auth/index.cjs +0 -1800
  24. package/dist/auth/index.cjs.map +0 -1
  25. package/dist/auth/index.d.cts +0 -1274
  26. package/dist/core/chunk-DhGyd7sr.js +0 -28
  27. package/dist/core/index.cjs +0 -2087
  28. package/dist/core/index.cjs.map +0 -1
  29. package/dist/core/index.d.cts +0 -2763
  30. package/dist/form/chunk-DhGyd7sr.js +0 -28
  31. package/dist/form/index.cjs +0 -2074
  32. package/dist/form/index.cjs.map +0 -1
  33. package/dist/form/index.d.cts +0 -419
  34. package/dist/head/chunk-DhGyd7sr.js +0 -28
  35. package/dist/head/index.cjs +0 -1912
  36. package/dist/head/index.cjs.map +0 -1
  37. package/dist/head/index.d.cts +0 -1801
  38. package/dist/i18n/chunk-DhGyd7sr.js +0 -28
  39. package/dist/i18n/index.cjs +0 -1899
  40. package/dist/i18n/index.cjs.map +0 -1
  41. package/dist/i18n/index.d.cts +0 -437
  42. package/dist/websocket/index.cjs +0 -1787
  43. package/dist/websocket/index.cjs.map +0 -1
  44. package/dist/websocket/index.d.cts +0 -118
  45. package/src/i18n/README.md +0 -76
@@ -1,4 +1,4 @@
1
- import * as alepha80 from "alepha";
1
+ import * as alepha81 from "alepha";
2
2
  import { Alepha, AlephaError, Async, Atom, Descriptor, FileLike, Hook, Hooks, InstantiableClass, KIND, LogLevel, LoggerInterface, Service, State, Static, StreamLike, TArray, TAtomObject, TFile, TObject, TRecord, TSchema, TStream, TString, TVoid } from "alepha";
3
3
  import * as react0 from "react";
4
4
  import React, { AnchorHTMLAttributes, CSSProperties, DependencyList, ErrorInfo, FC, PropsWithChildren, ReactNode } from "react";
@@ -10,15 +10,15 @@ import { Readable } from "node:stream";
10
10
  import { ReadableStream } from "node:stream/web";
11
11
 
12
12
  //#region ../alepha/src/logger/schemas/logEntrySchema.d.ts
13
- declare const logEntrySchema: alepha80.TObject<{
14
- level: alepha80.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
15
- message: alepha80.TString;
16
- service: alepha80.TString;
17
- module: alepha80.TString;
18
- context: alepha80.TOptional<alepha80.TString>;
19
- app: alepha80.TOptional<alepha80.TString>;
20
- data: alepha80.TOptional<alepha80.TAny>;
21
- timestamp: alepha80.TNumber;
13
+ declare const logEntrySchema: alepha81.TObject<{
14
+ level: alepha81.TUnsafe<"SILENT" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR">;
15
+ message: alepha81.TString;
16
+ service: alepha81.TString;
17
+ module: alepha81.TString;
18
+ context: alepha81.TOptional<alepha81.TString>;
19
+ app: alepha81.TOptional<alepha81.TString>;
20
+ data: alepha81.TOptional<alepha81.TAny>;
21
+ timestamp: alepha81.TNumber;
22
22
  }>;
23
23
  type LogEntry = Static<typeof logEntrySchema>;
24
24
  //#endregion
@@ -33,8 +33,8 @@ declare class DateTimeProvider {
33
33
  protected readonly timeouts: Timeout[];
34
34
  protected readonly intervals: Interval[];
35
35
  constructor();
36
- protected readonly onStart: alepha80.HookDescriptor<"start">;
37
- protected readonly onStop: alepha80.HookDescriptor<"stop">;
36
+ protected readonly onStart: alepha81.HookDescriptor<"start">;
37
+ protected readonly onStop: alepha81.HookDescriptor<"stop">;
38
38
  setLocale(locale: string): void;
39
39
  isDateTime(value: unknown): value is DateTime;
40
40
  /**
@@ -166,7 +166,7 @@ declare class Logger implements LoggerInterface {
166
166
  }
167
167
  //#endregion
168
168
  //#region ../alepha/src/logger/index.d.ts
169
- declare const envSchema$6: alepha80.TObject<{
169
+ declare const envSchema$6: alepha81.TObject<{
170
170
  /**
171
171
  * Default log level for the application.
172
172
  *
@@ -183,14 +183,14 @@ declare const envSchema$6: alepha80.TObject<{
183
183
  * LOG_LEVEL=my.module.name:debug,info # Set debug level for my.module.name and info for all other modules
184
184
  * LOG_LEVEL=alepha:trace, info # Set trace level for all alepha modules and info for all other modules
185
185
  */
186
- LOG_LEVEL: alepha80.TOptional<alepha80.TString>;
186
+ LOG_LEVEL: alepha81.TOptional<alepha81.TString>;
187
187
  /**
188
188
  * Built-in log formats.
189
189
  * - "json" - JSON format, useful for structured logging and log aggregation. {@link JsonFormatterProvider}
190
190
  * - "pretty" - Simple text format, human-readable, with colors. {@link SimpleFormatterProvider}
191
191
  * - "raw" - Raw format, no formatting, just the message. {@link RawFormatterProvider}
192
192
  */
193
- LOG_FORMAT: alepha80.TOptional<alepha80.TUnsafe<"json" | "pretty" | "raw">>;
193
+ LOG_FORMAT: alepha81.TOptional<alepha81.TUnsafe<"json" | "pretty" | "raw">>;
194
194
  }>;
195
195
  declare module "alepha" {
196
196
  interface Env extends Partial<Static<typeof envSchema$6>> {}
@@ -441,8 +441,8 @@ declare class ServerTimingProvider {
441
441
  prefix: string;
442
442
  disabled: boolean;
443
443
  };
444
- readonly onRequest: alepha80.HookDescriptor<"server:onRequest">;
445
- readonly onResponse: alepha80.HookDescriptor<"server:onResponse">;
444
+ readonly onRequest: alepha81.HookDescriptor<"server:onRequest">;
445
+ readonly onResponse: alepha81.HookDescriptor<"server:onResponse">;
446
446
  protected get handlerName(): string;
447
447
  beginTiming(name: string): void;
448
448
  endTiming(name: string): void;
@@ -506,11 +506,11 @@ declare class ServerProvider {
506
506
  /**
507
507
  * When a Node.js HTTP request is received from outside. (Vercel, AWS Lambda, etc.)
508
508
  */
509
- protected readonly onNodeRequest: alepha80.HookDescriptor<"node:request">;
509
+ protected readonly onNodeRequest: alepha81.HookDescriptor<"node:request">;
510
510
  /**
511
511
  * When a Web (Fetch API) request is received from outside. (Netlify, Cloudflare Workers, etc.)
512
512
  */
513
- protected readonly onWebRequest: alepha80.HookDescriptor<"web:request">;
513
+ protected readonly onWebRequest: alepha81.HookDescriptor<"web:request">;
514
514
  /**
515
515
  * Handle Node.js HTTP request event.
516
516
  *
@@ -845,15 +845,15 @@ type ServerActionHandler<TConfig extends RequestConfigSchema = RequestConfigSche
845
845
  interface ServerActionRequest<TConfig extends RequestConfigSchema> extends ServerRequest<TConfig> {}
846
846
  //#endregion
847
847
  //#region ../alepha/src/server/schemas/errorSchema.d.ts
848
- declare const errorSchema: alepha80.TObject<{
849
- error: alepha80.TString;
850
- status: alepha80.TInteger;
851
- message: alepha80.TString;
852
- details: alepha80.TOptional<alepha80.TString>;
853
- requestId: alepha80.TOptional<alepha80.TString>;
854
- cause: alepha80.TOptional<alepha80.TObject<{
855
- name: alepha80.TString;
856
- message: alepha80.TString;
848
+ declare const errorSchema: alepha81.TObject<{
849
+ error: alepha81.TString;
850
+ status: alepha81.TInteger;
851
+ message: alepha81.TString;
852
+ details: alepha81.TOptional<alepha81.TString>;
853
+ requestId: alepha81.TOptional<alepha81.TString>;
854
+ cause: alepha81.TOptional<alepha81.TObject<{
855
+ name: alepha81.TString;
856
+ message: alepha81.TString;
857
857
  }>>;
858
858
  }>;
859
859
  type ErrorSchema = Static<typeof errorSchema>;
@@ -878,18 +878,18 @@ interface HttpErrorLike extends Error {
878
878
  }
879
879
  //#endregion
880
880
  //#region ../alepha/src/server/providers/BunHttpServerProvider.d.ts
881
- declare const envSchema$5: alepha80.TObject<{
882
- SERVER_PORT: alepha80.TInteger;
883
- SERVER_HOST: alepha80.TString;
881
+ declare const envSchema$5: alepha81.TObject<{
882
+ SERVER_PORT: alepha81.TInteger;
883
+ SERVER_HOST: alepha81.TString;
884
884
  }>;
885
885
  declare module "alepha" {
886
886
  interface Env extends Partial<Static<typeof envSchema$5>> {}
887
887
  }
888
888
  //#endregion
889
889
  //#region ../alepha/src/server/providers/NodeHttpServerProvider.d.ts
890
- declare const envSchema$4: alepha80.TObject<{
891
- SERVER_PORT: alepha80.TInteger;
892
- SERVER_HOST: alepha80.TString;
890
+ declare const envSchema$4: alepha81.TObject<{
891
+ SERVER_PORT: alepha81.TInteger;
892
+ SERVER_HOST: alepha81.TString;
893
893
  }>;
894
894
  declare module "alepha" {
895
895
  interface Env extends Partial<Static<typeof envSchema$4>> {}
@@ -1077,8 +1077,8 @@ declare class Redirection extends Error {
1077
1077
  }
1078
1078
  //#endregion
1079
1079
  //#region src/core/providers/ReactPageProvider.d.ts
1080
- declare const envSchema$3: alepha80.TObject<{
1081
- REACT_STRICT_MODE: alepha80.TBoolean;
1080
+ declare const envSchema$3: alepha81.TObject<{
1081
+ REACT_STRICT_MODE: alepha81.TBoolean;
1082
1082
  }>;
1083
1083
  declare module "alepha" {
1084
1084
  interface Env extends Partial<Static<typeof envSchema$3>> {}
@@ -1121,7 +1121,7 @@ declare class ReactPageProvider {
1121
1121
  }, params?: Record<string, any>): string;
1122
1122
  compile(path: string, params?: Record<string, string>): string;
1123
1123
  protected renderView(index: number, path: string, view: ReactNode | undefined, page: PageRoute): ReactNode;
1124
- protected readonly configure: alepha80.HookDescriptor<"configure">;
1124
+ protected readonly configure: alepha81.HookDescriptor<"configure">;
1125
1125
  protected map(pages: Array<PageDescriptor>, target: PageDescriptor): PageRouteEntry;
1126
1126
  add(entry: PageRouteEntry): void;
1127
1127
  protected createMatch(page: PageRoute): string;
@@ -1531,15 +1531,15 @@ type CssAnimation = {
1531
1531
  };
1532
1532
  //#endregion
1533
1533
  //#region ../alepha/src/security/schemas/userAccountInfoSchema.d.ts
1534
- declare const userAccountInfoSchema: alepha80.TObject<{
1535
- id: alepha80.TString;
1536
- name: alepha80.TOptional<alepha80.TString>;
1537
- email: alepha80.TOptional<alepha80.TString>;
1538
- username: alepha80.TOptional<alepha80.TString>;
1539
- picture: alepha80.TOptional<alepha80.TString>;
1540
- sessionId: alepha80.TOptional<alepha80.TString>;
1541
- organizations: alepha80.TOptional<alepha80.TArray<alepha80.TString>>;
1542
- roles: alepha80.TOptional<alepha80.TArray<alepha80.TString>>;
1534
+ declare const userAccountInfoSchema: alepha81.TObject<{
1535
+ id: alepha81.TString;
1536
+ name: alepha81.TOptional<alepha81.TString>;
1537
+ email: alepha81.TOptional<alepha81.TString>;
1538
+ username: alepha81.TOptional<alepha81.TString>;
1539
+ picture: alepha81.TOptional<alepha81.TString>;
1540
+ sessionId: alepha81.TOptional<alepha81.TString>;
1541
+ organizations: alepha81.TOptional<alepha81.TArray<alepha81.TString>>;
1542
+ roles: alepha81.TOptional<alepha81.TArray<alepha81.TString>>;
1543
1543
  }>;
1544
1544
  type UserAccount = Static<typeof userAccountInfoSchema>;
1545
1545
  //#endregion
@@ -1565,8 +1565,8 @@ interface UserAccountToken extends UserAccount {
1565
1565
  }
1566
1566
  //#endregion
1567
1567
  //#region ../alepha/src/security/providers/SecurityProvider.d.ts
1568
- declare const envSchema$2: alepha80.TObject<{
1569
- APP_SECRET: alepha80.TString;
1568
+ declare const envSchema$2: alepha81.TObject<{
1569
+ APP_SECRET: alepha81.TString;
1570
1570
  }>;
1571
1571
  declare module "alepha" {
1572
1572
  interface Env extends Partial<Static<typeof envSchema$2>> {}
@@ -1659,23 +1659,23 @@ declare module "alepha/server" {
1659
1659
  */
1660
1660
  //#endregion
1661
1661
  //#region ../alepha/src/server-links/schemas/apiLinksResponseSchema.d.ts
1662
- declare const apiLinkSchema: alepha80.TObject<{
1663
- name: alepha80.TString;
1664
- group: alepha80.TOptional<alepha80.TString>;
1665
- path: alepha80.TString;
1666
- method: alepha80.TOptional<alepha80.TString>;
1667
- requestBodyType: alepha80.TOptional<alepha80.TString>;
1668
- service: alepha80.TOptional<alepha80.TString>;
1662
+ declare const apiLinkSchema: alepha81.TObject<{
1663
+ name: alepha81.TString;
1664
+ group: alepha81.TOptional<alepha81.TString>;
1665
+ path: alepha81.TString;
1666
+ method: alepha81.TOptional<alepha81.TString>;
1667
+ requestBodyType: alepha81.TOptional<alepha81.TString>;
1668
+ service: alepha81.TOptional<alepha81.TString>;
1669
1669
  }>;
1670
- declare const apiLinksResponseSchema: alepha80.TObject<{
1671
- prefix: alepha80.TOptional<alepha80.TString>;
1672
- links: alepha80.TArray<alepha80.TObject<{
1673
- name: alepha80.TString;
1674
- group: alepha80.TOptional<alepha80.TString>;
1675
- path: alepha80.TString;
1676
- method: alepha80.TOptional<alepha80.TString>;
1677
- requestBodyType: alepha80.TOptional<alepha80.TString>;
1678
- service: alepha80.TOptional<alepha80.TString>;
1670
+ declare const apiLinksResponseSchema: alepha81.TObject<{
1671
+ prefix: alepha81.TOptional<alepha81.TString>;
1672
+ links: alepha81.TArray<alepha81.TObject<{
1673
+ name: alepha81.TString;
1674
+ group: alepha81.TOptional<alepha81.TString>;
1675
+ path: alepha81.TString;
1676
+ method: alepha81.TOptional<alepha81.TString>;
1677
+ requestBodyType: alepha81.TOptional<alepha81.TString>;
1678
+ service: alepha81.TOptional<alepha81.TString>;
1679
1679
  }>>;
1680
1680
  }>;
1681
1681
  type ApiLinksResponse = Static<typeof apiLinksResponseSchema>;
@@ -1781,14 +1781,14 @@ declare class ReactBrowserRouterProvider extends RouterProvider<BrowserRoute> {
1781
1781
  protected readonly alepha: Alepha;
1782
1782
  protected readonly pageApi: ReactPageProvider;
1783
1783
  add(entry: PageRouteEntry): void;
1784
- protected readonly configure: alepha80.HookDescriptor<"configure">;
1784
+ protected readonly configure: alepha81.HookDescriptor<"configure">;
1785
1785
  transition(url: URL, previous?: PreviousLayerData[], meta?: {}): Promise<string | void>;
1786
1786
  root(state: ReactRouterState): ReactNode;
1787
1787
  }
1788
1788
  //#endregion
1789
1789
  //#region src/core/providers/ReactBrowserProvider.d.ts
1790
- declare const envSchema$1: alepha80.TObject<{
1791
- REACT_ROOT_ID: alepha80.TString;
1790
+ declare const envSchema$1: alepha81.TObject<{
1791
+ REACT_ROOT_ID: alepha81.TString;
1792
1792
  }>;
1793
1793
  declare module "alepha" {
1794
1794
  interface Env extends Partial<Static<typeof envSchema$1>> {}
@@ -1796,8 +1796,8 @@ declare module "alepha" {
1796
1796
  /**
1797
1797
  * React browser renderer configuration atom
1798
1798
  */
1799
- declare const reactBrowserOptions: alepha80.Atom<alepha80.TObject<{
1800
- scrollRestoration: alepha80.TUnsafe<"top" | "manual">;
1799
+ declare const reactBrowserOptions: alepha81.Atom<alepha81.TObject<{
1800
+ scrollRestoration: alepha81.TUnsafe<"top" | "manual">;
1801
1801
  }>, "alepha.react.browser.options">;
1802
1802
  type ReactBrowserRendererOptions = Static<typeof reactBrowserOptions.schema>;
1803
1803
  declare module "alepha" {
@@ -1845,8 +1845,8 @@ declare class ReactBrowserProvider {
1845
1845
  * Get embedded layers from the server.
1846
1846
  */
1847
1847
  protected getHydrationState(): ReactHydrationState | undefined;
1848
- protected readonly onTransitionEnd: alepha80.HookDescriptor<"react:transition:end">;
1849
- readonly ready: alepha80.HookDescriptor<"ready">;
1848
+ protected readonly onTransitionEnd: alepha81.HookDescriptor<"react:transition:end">;
1849
+ readonly ready: alepha81.HookDescriptor<"ready">;
1850
1850
  }
1851
1851
  interface RouterGoOptions {
1852
1852
  replace?: boolean;
@@ -2553,7 +2553,7 @@ declare class ServerStaticProvider {
2553
2553
  protected readonly fileDetector: FileDetector;
2554
2554
  protected readonly log: Logger;
2555
2555
  protected readonly directories: ServeDirectory[];
2556
- protected readonly configure: alepha80.HookDescriptor<"configure">;
2556
+ protected readonly configure: alepha81.HookDescriptor<"configure">;
2557
2557
  createStaticServer(options: ServeDescriptorOptions): Promise<void>;
2558
2558
  createFileHandler(filepath: string, options: ServeDescriptorOptions): Promise<ServerHandler>;
2559
2559
  protected getCacheFileTypes(): string[];
@@ -2569,10 +2569,10 @@ interface ServeDirectory {
2569
2569
  }
2570
2570
  //#endregion
2571
2571
  //#region src/core/providers/ReactServerProvider.d.ts
2572
- declare const envSchema: alepha80.TObject<{
2573
- REACT_SSR_ENABLED: alepha80.TOptional<alepha80.TBoolean>;
2574
- REACT_ROOT_ID: alepha80.TString;
2575
- REACT_SERVER_TEMPLATE: alepha80.TOptional<alepha80.TString>;
2572
+ declare const envSchema: alepha81.TObject<{
2573
+ REACT_SSR_ENABLED: alepha81.TOptional<alepha81.TBoolean>;
2574
+ REACT_ROOT_ID: alepha81.TString;
2575
+ REACT_SERVER_TEMPLATE: alepha81.TOptional<alepha81.TString>;
2576
2576
  }>;
2577
2577
  declare module "alepha" {
2578
2578
  interface Env extends Partial<Static<typeof envSchema>> {}
@@ -2583,11 +2583,11 @@ declare module "alepha" {
2583
2583
  /**
2584
2584
  * React server provider configuration atom
2585
2585
  */
2586
- declare const reactServerOptions: alepha80.Atom<alepha80.TObject<{
2587
- publicDir: alepha80.TString;
2588
- staticServer: alepha80.TObject<{
2589
- disabled: alepha80.TBoolean;
2590
- path: alepha80.TString;
2586
+ declare const reactServerOptions: alepha81.Atom<alepha81.TObject<{
2587
+ publicDir: alepha81.TString;
2588
+ staticServer: alepha81.TObject<{
2589
+ disabled: alepha81.TBoolean;
2590
+ path: alepha81.TString;
2591
2591
  }>;
2592
2592
  }>, "alepha.react.server.options">;
2593
2593
  type ReactServerProviderOptions = Static<typeof reactServerOptions.schema>;
@@ -2621,7 +2621,7 @@ declare class ReactServerProvider {
2621
2621
  /**
2622
2622
  * Configure the React server provider.
2623
2623
  */
2624
- readonly onConfigure: alepha80.HookDescriptor<"configure">;
2624
+ readonly onConfigure: alepha81.HookDescriptor<"configure">;
2625
2625
  get template(): string;
2626
2626
  protected registerPages(templateLoader: TemplateLoader): Promise<void>;
2627
2627
  /**
@@ -2757,7 +2757,7 @@ declare module "alepha" {
2757
2757
  * @see {@link $page}
2758
2758
  * @module alepha.react
2759
2759
  */
2760
- declare const AlephaReact: alepha80.Service<alepha80.Module>;
2760
+ declare const AlephaReact: alepha81.Service<alepha81.Module>;
2761
2761
  //#endregion
2762
2762
  export { $page, ActionContext, AlephaContext, AlephaReact, AnchorProps, ClientOnly, CreateLayersResult, ErrorBoundary, ErrorHandler, ErrorViewer, Layer, Link, type LinkProps, _default as NestedView, NotFoundPage as NotFound, PageAnimation, PageConfigSchema, PageDescriptor, PageDescriptorOptions, PageDescriptorRenderOptions, PageDescriptorRenderResult, PageRequestConfig, PageResolve, PageRoute, PageRouteEntry, PreviousLayerData, ReactBrowserProvider, ReactBrowserRendererOptions, ReactHydrationState, ReactPageProvider, ReactRouter, ReactRouterState, ReactServerProvider, ReactServerProviderOptions, Redirection, RouterGoOptions, RouterLayerContext, RouterLayerContextValue, RouterRenderOptions, RouterStackItem, TPropsDefault, TPropsParentDefault, TransitionOptions, UseActionOptions, UseActionReturn, UseActiveHook, UseActiveOptions, UseQueryParamsHookOptions, UseSchemaReturn, UseStoreReturn, VirtualRouter, isPageRoute, reactBrowserOptions, reactServerOptions, ssrSchemaLoading, useAction, useActive, useAlepha, useClient, useEvents, useInject, useQueryParams, useRouter, useRouterState, useSchema, useStore };
2763
2763
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import * as alepha8 from "alepha";
2
- import { Alepha, Descriptor, KIND, LogLevel, LoggerInterface, Static, TObject, TSchema, TypeBoxError } from "alepha";
2
+ import { Alepha, LogLevel, LoggerInterface, Static, TObject, TSchema, TypeBoxError } from "alepha";
3
3
  import { InputHTMLAttributes, ReactNode } from "react";
4
4
  import dayjsDuration from "dayjs/plugin/duration.js";
5
5
  import DayjsApi, { Dayjs, ManipulateType, PluginFunc } from "dayjs";