@pisell/core 1.0.33 → 1.0.35

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 (63) hide show
  1. package/es/app/app.d.ts +7 -7
  2. package/es/app/index.d.ts +1 -1
  3. package/es/applicationManager/application.d.ts +2 -2
  4. package/es/cmd/const.d.ts +5 -5
  5. package/es/hooks/useStore/index.d.ts +1 -1
  6. package/es/indexDB/index.d.ts +2 -2
  7. package/es/indexDB/index.js +633 -572
  8. package/es/locales/type.d.ts +3 -3
  9. package/es/logger/index.d.ts +1 -1
  10. package/es/models/index.d.ts +4 -4
  11. package/es/pubsub/index.d.ts +1 -1
  12. package/es/request/cache.d.ts +1 -1
  13. package/es/request/pisell2Request.d.ts +1 -1
  14. package/es/request/type.d.ts +1 -1
  15. package/es/routes/index.d.ts +2 -2
  16. package/es/socket/monitor.js +2 -0
  17. package/es/socket/types.d.ts +4 -3
  18. package/es/tasks/index.d.ts +0 -1
  19. package/es/tasks/index.js +0 -1
  20. package/es/tasks/type.d.ts +4 -4
  21. package/es/variables/index.d.ts +3 -3
  22. package/lib/app/app.d.ts +7 -7
  23. package/lib/app/app.js +21 -51
  24. package/lib/app/index.d.ts +1 -1
  25. package/lib/applicationManager/application.d.ts +2 -2
  26. package/lib/applicationManager/application.js +6 -12
  27. package/lib/applicationManager/index.js +4 -2
  28. package/lib/aws/index.js +0 -3
  29. package/lib/cmd/const.d.ts +5 -5
  30. package/lib/cmd/const.js +5 -5
  31. package/lib/cmd/index.js +0 -2
  32. package/lib/cookie/index.js +4 -2
  33. package/lib/data/index.js +0 -3
  34. package/lib/history/index.js +22 -24
  35. package/lib/hooks/useStore/index.d.ts +1 -1
  36. package/lib/indexDB/index.d.ts +2 -2
  37. package/lib/indexDB/index.js +233 -327
  38. package/lib/locales/index.js +94 -95
  39. package/lib/locales/type.d.ts +3 -3
  40. package/lib/logger/index.d.ts +1 -1
  41. package/lib/logger/index.js +8 -18
  42. package/lib/menuManager/index.js +12 -9
  43. package/lib/models/index.d.ts +4 -4
  44. package/lib/pubsub/index.d.ts +1 -1
  45. package/lib/pubsub/index.js +3 -1
  46. package/lib/request/cache.d.ts +1 -1
  47. package/lib/request/pisell2Request.d.ts +1 -1
  48. package/lib/request/type.d.ts +1 -1
  49. package/lib/routes/index.d.ts +2 -2
  50. package/lib/routes/index.js +1 -3
  51. package/lib/socket/components/SocketMonitorPage.js +12 -6
  52. package/lib/socket/heartbeat.js +5 -10
  53. package/lib/socket/index.js +3 -1
  54. package/lib/socket/monitor.js +26 -26
  55. package/lib/socket/reconnect.js +3 -10
  56. package/lib/socket/socket.js +10 -12
  57. package/lib/socket/types.d.ts +4 -3
  58. package/lib/storage/index.js +24 -25
  59. package/lib/tasks/index.d.ts +0 -1
  60. package/lib/tasks/index.js +329 -334
  61. package/lib/tasks/type.d.ts +4 -4
  62. package/lib/variables/index.d.ts +3 -3
  63. package/package.json +3 -2
package/es/app/app.d.ts CHANGED
@@ -42,13 +42,13 @@ declare class App {
42
42
  setConfig: (models: any[]) => void;
43
43
  };
44
44
  request: {
45
- get: (url: string, data: any, config: import("../request").RequestSetting | undefined) => Promise<any>;
46
- post: (url: string, data: any, config: import("../request").RequestSetting | undefined) => Promise<any>;
47
- put: (url: string, data: any, config: import("../request").RequestSetting | undefined) => Promise<any>;
48
- remove: (url: string, data: any, config: import("../request").RequestSetting | undefined) => Promise<any>;
49
- custom: (url: string, config: import("../request").RequestSetting | undefined) => any;
50
- setConfig: (newConfig: Partial<import("../request").RequestConfig>) => void;
51
- getConfig: () => import("../request").RequestConfig;
45
+ get: (url: string, data: any, config: import("@").RequestSetting | undefined) => Promise<any>;
46
+ post: (url: string, data: any, config: import("@").RequestSetting | undefined) => Promise<any>;
47
+ put: (url: string, data: any, config: import("@").RequestSetting | undefined) => Promise<any>;
48
+ remove: (url: string, data: any, config: import("@").RequestSetting | undefined) => Promise<any>;
49
+ custom: (url: string, config: import("@").RequestSetting | undefined) => any;
50
+ setConfig: (newConfig: Partial<import("@").RequestConfig>) => void;
51
+ getConfig: () => import("@").RequestConfig;
52
52
  };
53
53
  storage: Storage;
54
54
  menuManager: MenuManager;
package/es/app/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import App, { AppOptions } from "./app";
3
- declare type AppContextType = {
3
+ type AppContextType = {
4
4
  globalData: any;
5
5
  setGlobalData: React.Dispatch<React.SetStateAction<any>>;
6
6
  app: App;
@@ -5,7 +5,7 @@ import { MenuItem } from '../menuManager/index';
5
5
  * 应用接口类型定义
6
6
  * @description 描述应用中单个页面、组件或功能的接口结构
7
7
  */
8
- export declare type ApplicationInterface = {
8
+ export type ApplicationInterface = {
9
9
  /** 页面类型:低代码或普通代码 */
10
10
  page_type: 'low_code' | 'code';
11
11
  /** 页面唯一标识 */
@@ -34,7 +34,7 @@ export declare type ApplicationInterface = {
34
34
  * 应用数据类型定义
35
35
  * @description 描述完整应用的数据结构,包含应用的基本信息、接口、功能等
36
36
  */
37
- export declare type ApplicationData = {
37
+ export type ApplicationData = {
38
38
  /** 应用唯一标识 */
39
39
  app_id: number;
40
40
  /** 应用名称 */
package/es/cmd/const.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  export declare enum CMDCoreEnum {
2
- CMD_CONNECT,
3
- CMD_DISCONNECT,
4
- CMD_RECONNECT,
5
- CMD_MESSAGE,
6
- CMD_ERROR
2
+ CMD_CONNECT = "cmd.connect",
3
+ CMD_DISCONNECT = "cmd.disconnect",
4
+ CMD_RECONNECT = "cmd.reconnect",
5
+ CMD_MESSAGE = "cmd.message",
6
+ CMD_ERROR = "cmd.error"
7
7
  }
8
8
  declare const _default: {
9
9
  CMDCoreEnum: typeof CMDCoreEnum;
@@ -1,6 +1,6 @@
1
1
  import { ModelsState } from "../../models";
2
2
  declare const useStore: <T extends "global", D extends keyof ModelsState[T]>(props: {
3
3
  models: T;
4
- key?: D | undefined;
4
+ key?: D;
5
5
  }) => D extends undefined ? ModelsState[T] : ModelsState[T][D];
6
6
  export default useStore;
@@ -2,7 +2,7 @@ import App from "../app";
2
2
  /**
3
3
  * IndexDB 管理器模块
4
4
  *
5
- * 这个模块提供了对浏览器 IndexedDB 的简单封装,并在不支持 IndexedDB 的环境中
5
+ * 这个模块使用 Dexie.js 提供了对浏览器 IndexedDB 的简单封装,并在不支持 IndexedDB 的环境中
6
6
  * 自动降级使用内存存储作为备选存储方案。
7
7
  */
8
8
  /**
@@ -34,7 +34,7 @@ export interface DBOptions {
34
34
  }
35
35
  /**
36
36
  * IndexDB 管理器类
37
- * 提供对 IndexedDB 的简单封装,支持自动降级到内存存储
37
+ * 使用 Dexie.js 提供对 IndexedDB 的封装,支持自动降级到内存存储
38
38
  * @class IndexDBManager
39
39
  */
40
40
  declare class IndexDBManager {