@ahoo-wang/fetcher-viewer 3.6.6 → 3.6.9
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/components/fullscreen/Fullscreen.d.ts.map +1 -1
- package/dist/components/fullscreen/index.d.ts +0 -2
- package/dist/components/fullscreen/index.d.ts.map +1 -1
- package/dist/filter/DateTimeFilter.d.ts.map +1 -1
- package/dist/filter/NumberFilter.d.ts.map +1 -1
- package/dist/filter/panel/EditableFilterPanel.d.ts.map +1 -1
- package/dist/index.es.js +985 -1083
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/table/cell/DateTimeCell.d.ts.map +1 -1
- package/dist/topbar/BarItem.d.ts.map +1 -1
- package/dist/topbar/TopBar.d.ts.map +1 -1
- package/dist/topbar/types.d.ts.map +1 -1
- package/dist/viewer/Viewer.d.ts.map +1 -1
- package/dist/viewer/ViewerSharedValueContext.d.ts +10 -14
- package/dist/viewer/ViewerSharedValueContext.d.ts.map +1 -1
- package/dist/viewer/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/components/fullscreen/useFullscreen.d.ts +0 -35
- package/dist/components/fullscreen/useFullscreen.d.ts.map +0 -1
- package/dist/components/fullscreen/utils.d.ts +0 -27
- package/dist/components/fullscreen/utils.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeCell.d.ts","sourceRoot":"","sources":["../../../src/table/cell/DateTimeCell.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,
|
|
1
|
+
{"version":3,"file":"DateTimeCell.d.ts","sourceRoot":"","sources":["../../../src/table/cell/DateTimeCell.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAK9B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,iBAAiB,CAAC,UAAU,GAAG,GAAG,CACjD,SAAQ,SAAS,CACf,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,EAC9B,UAAU,EACV,SAAS,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC,CAAA;CAAE,CAC7D;CACF;AAED,eAAO,MAAM,wBAAwB,wBAAwB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,wBAAgB,YAAY,CAAC,UAAU,GAAG,GAAG,EAC3C,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC,2CAerC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BarItem.d.ts","sourceRoot":"","sources":["../../src/topbar/BarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"BarItem.d.ts","sourceRoot":"","sources":["../../src/topbar/BarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,2CAQ1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../src/topbar/TopBar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAgB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../src/topbar/TopBar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAgB,MAAM,gBAAgB,CAAC;AAK3D,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CA2BxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/topbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/topbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,WAAW,eAAgB,SAAQ,YAAY;CACpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Viewer.d.ts","sourceRoot":"","sources":["../../src/viewer/Viewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAsB,eAAe,EAAS,MAAM,MAAM,CAAC;AAMlE,OAAO,EAAE,IAAI,EAAc,cAAc,EAAE,MAAM,IAAI,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAgBxC,MAAM,WAAW,WAAW,CAAC,UAAU,CAAE,SAAQ,YAAY;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAEhD,eAAe,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;CAClD;AAED,wBAAgB,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"Viewer.d.ts","sourceRoot":"","sources":["../../src/viewer/Viewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EAAsB,eAAe,EAAS,MAAM,MAAM,CAAC;AAMlE,OAAO,EAAE,IAAI,EAAc,cAAc,EAAE,MAAM,IAAI,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAgBxC,MAAM,WAAW,WAAW,CAAC,UAAU,CAAE,SAAQ,YAAY;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAEhD,eAAe,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;CAClD;AAED,wBAAgB,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,2CAwIhE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { ViewColumn } from './types';
|
|
2
3
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
|
-
|
|
4
|
+
export interface ViewerSharedValue {
|
|
4
5
|
aggregateName: string;
|
|
5
6
|
viewName: string;
|
|
6
7
|
viewColumns: ViewColumn[];
|
|
@@ -10,17 +11,12 @@ declare const ViewerSharedValueContext: import('react').Context<{
|
|
|
10
11
|
refreshData: () => void;
|
|
11
12
|
tableSize: SizeType;
|
|
12
13
|
setTableSize: (size: SizeType) => void;
|
|
13
|
-
}
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
refreshData: () => void;
|
|
22
|
-
tableSize: SizeType;
|
|
23
|
-
setTableSize: (size: SizeType) => void;
|
|
24
|
-
};
|
|
25
|
-
export default ViewerSharedValueContext;
|
|
14
|
+
}
|
|
15
|
+
export type ViewerSharedValueContext = ViewerSharedValue;
|
|
16
|
+
export declare const ViewerSharedValueContext: import('react').Context<ViewerSharedValue | undefined>;
|
|
17
|
+
export interface ViewerSharedValueOptions extends ViewerSharedValue {
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare function ViewerSharedValueProvider({ children, ...options }: ViewerSharedValueOptions): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function useViewerSharedValue(): ViewerSharedValueContext;
|
|
26
22
|
//# sourceMappingURL=ViewerSharedValueContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewerSharedValueContext.d.ts","sourceRoot":"","sources":["../../src/viewer/ViewerSharedValueContext.
|
|
1
|
+
{"version":3,"file":"ViewerSharedValueContext.d.ts","sourceRoot":"","sources":["../../src/viewer/ViewerSharedValueContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,SAAS,EAAc,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,cAAc,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAEpD,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,CAAC,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvD,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB,SAAS,EAAE,QAAQ,CAAC;IACpB,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACxC;AAED,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;AAEzD,eAAO,MAAM,wBAAwB,wDAEzB,CAAC;AAEb,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IACjE,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,wBAAwB,2CAM1B;AAED,wBAAgB,oBAAoB,IAAI,wBAAwB,CAM/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/viewer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/viewer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,oBAAqB,SAAQ,WAAW,EAAE,iBAAiB;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAC,CAAC;CACvC;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,EAAE,UAAU,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ahoo-wang/fetcher-viewer",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.9",
|
|
4
4
|
"description": "A comprehensive React component library for API documentation viewing and data filtering, built on top of Ant Design and the Fetcher ecosystem. Provides reusable UI components for building rich data-driven applications with advanced filtering capabilities and remote data selection.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@ahoo-wang/fetcher-react": "^3.0.0",
|
|
46
46
|
"@ahoo-wang/fetcher-storage": "^3.0.0",
|
|
47
47
|
"@ahoo-wang/fetcher-wow": "^3.0.0",
|
|
48
|
-
"antd": "^6.1.
|
|
48
|
+
"antd": "^6.1.1",
|
|
49
49
|
"@ant-design/icons": "^6.0.0",
|
|
50
50
|
"react": "^19.2.3",
|
|
51
51
|
"react-dom": "^19.2.3",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"jsdom": "^27.3.0",
|
|
70
70
|
"prettier": "^3.7.4",
|
|
71
71
|
"typescript": "^5.9.3",
|
|
72
|
-
"typescript-eslint": "^8.
|
|
72
|
+
"typescript-eslint": "^8.50.0",
|
|
73
73
|
"unplugin-dts": "1.0.0-beta.6",
|
|
74
74
|
"vite": "^7.3.0",
|
|
75
75
|
"vite-bundle-analyzer": "^1.3.2",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
export interface UseFullscreenOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Target element to make fullscreen. If not provided, uses the document root element.
|
|
5
|
-
*/
|
|
6
|
-
target?: RefObject<HTMLElement | null>;
|
|
7
|
-
/**
|
|
8
|
-
* Callback when fullscreen state changes
|
|
9
|
-
*/
|
|
10
|
-
onChange?: (isFullscreen: boolean) => void;
|
|
11
|
-
}
|
|
12
|
-
export interface UseFullscreenReturn {
|
|
13
|
-
/**
|
|
14
|
-
* Whether the target element is currently in fullscreen mode
|
|
15
|
-
*/
|
|
16
|
-
isFullscreen: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Toggle fullscreen mode on/off
|
|
19
|
-
*/
|
|
20
|
-
toggle: () => Promise<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Enter fullscreen mode
|
|
23
|
-
*/
|
|
24
|
-
enter: () => Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* Exit fullscreen mode
|
|
27
|
-
*/
|
|
28
|
-
exit: () => Promise<void>;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* React hook for managing fullscreen state and actions.
|
|
32
|
-
* Provides cross-browser fullscreen API support with automatic state tracking.
|
|
33
|
-
*/
|
|
34
|
-
export declare function useFullscreen(options?: UseFullscreenOptions): UseFullscreenReturn;
|
|
35
|
-
//# sourceMappingURL=useFullscreen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFullscreen.d.ts","sourceRoot":"","sources":["../../../src/components/fullscreen/useFullscreen.ts"],"names":[],"mappings":"AAaA,OAAO,EAAoC,SAAS,EAAE,MAAM,OAAO,CAAC;AASpE,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,OAAO,GAAE,oBAAyB,GACjC,mBAAmB,CA8CrB"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get the current fullscreen element across different browsers.
|
|
3
|
-
* @returns The fullscreen element or null if not in fullscreen.
|
|
4
|
-
*/
|
|
5
|
-
export declare function getFullscreenElement(): HTMLElement | null;
|
|
6
|
-
/**
|
|
7
|
-
* Request fullscreen for a given element.
|
|
8
|
-
* @param element The element to make fullscreen.
|
|
9
|
-
* @throws Error if fullscreen request fails.
|
|
10
|
-
*/
|
|
11
|
-
export declare function enterFullscreen(element: HTMLElement): Promise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* Exit fullscreen mode.
|
|
14
|
-
* @throws Error if fullscreen exit fails.
|
|
15
|
-
*/
|
|
16
|
-
export declare function exitFullscreen(): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Add fullscreen change event listeners across different browsers.
|
|
19
|
-
* @param callback The callback function to execute when fullscreen changes.
|
|
20
|
-
*/
|
|
21
|
-
export declare function addFullscreenChangeListener(callback: () => void): void;
|
|
22
|
-
/**
|
|
23
|
-
* Remove fullscreen change event listeners across different browsers.
|
|
24
|
-
* @param callback The callback function to remove.
|
|
25
|
-
*/
|
|
26
|
-
export declare function removeFullscreenChangeListener(callback: () => void): void;
|
|
27
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/fullscreen/utils.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,WAAW,GAAG,IAAI,CAOzD;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBzE;AAED;;;GAGG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAiBpD;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAKtE;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAKzE"}
|