iglooform 3.4.0 → 3.4.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.
- package/.dumi/tmp/core/EmptyRoute.d.ts +1 -0
- package/.dumi/tmp/core/defineApp.d.ts +22 -0
- package/.dumi/tmp/core/defineApp.ts +1 -1
- package/.dumi/tmp/core/exportStaticRuntimePlugin.d.ts +1 -0
- package/.dumi/tmp/core/helmet.d.ts +3 -0
- package/.dumi/tmp/core/helmet.ts +1 -1
- package/.dumi/tmp/core/helmetContext.d.ts +1 -0
- package/.dumi/tmp/core/history.d.ts +4 -0
- package/.dumi/tmp/core/history.ts +1 -1
- package/.dumi/tmp/core/historyIntelli.d.ts +50 -0
- package/.dumi/tmp/core/historyIntelli.ts +1 -1
- package/.dumi/tmp/core/plugin.d.ts +25 -0
- package/.dumi/tmp/core/plugin.ts +2 -2
- package/.dumi/tmp/core/pluginConfig.d.ts +315 -0
- package/.dumi/tmp/core/polyfill.d.ts +198 -0
- package/.dumi/tmp/core/polyfill.ts +197 -197
- package/.dumi/tmp/core/route.d.ts +230 -0
- package/.dumi/tmp/core/route.tsx +33 -33
- package/.dumi/tmp/core/terminal.d.ts +14 -0
- package/.dumi/tmp/dumi/exports.d.ts +2 -0
- package/.dumi/tmp/dumi/exports.ts +1 -1
- package/.dumi/tmp/dumi/locales/config.d.ts +90 -0
- package/.dumi/tmp/dumi/locales/runtime.d.ts +2 -0
- package/.dumi/tmp/dumi/locales/runtime.tsx +2 -2
- package/.dumi/tmp/dumi/meta/atoms.d.ts +1 -0
- package/.dumi/tmp/dumi/meta/index.d.ts +203 -0
- package/.dumi/tmp/dumi/meta/index.ts +33 -33
- package/.dumi/tmp/dumi/meta/runtime.d.ts +3 -0
- package/.dumi/tmp/dumi/meta/runtime.ts +1 -1
- package/.dumi/tmp/dumi/meta/tabs.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/ContextWrapper.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +1 -1
- package/.dumi/tmp/dumi/theme/builtins/API.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/builtins/API.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/Badge.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/builtins/Badge.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/Container.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/builtins/Container.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/Previewer.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/SourceCode.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/Table.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/builtins/Table.ts +1 -1
- package/.dumi/tmp/dumi/theme/builtins/Tree.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/builtins/Tree.ts +1 -1
- package/.dumi/tmp/dumi/theme/layouts/DocLayout.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +1 -1
- package/.dumi/tmp/dumi/theme/loading.d.ts +4 -0
- package/.dumi/tmp/dumi/theme/loading.tsx +1 -1
- package/.dumi/tmp/dumi/theme/slots/ColorSwitch.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/ColorSwitch.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Content.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/Content.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/ContentFooter.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/ContentFooter.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/ContentTabs.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Features.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/Features.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Footer.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/Footer.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Header.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/Header.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/HeaderExtra.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/HeaderExtra.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Hero.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/Hero.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/HeroTitle.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/LangSwitch.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Logo.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/Logo.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Navbar.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/Navbar.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/NavbarExtra.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/NavbarExtra.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/NotFound.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/NotFound.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/PreviewerActions.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/RtlSwitch.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/SearchBar.d.ts +2 -0
- package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +2 -2
- package/.dumi/tmp/dumi/theme/slots/SearchResult.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Sidebar.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/SocialIcon.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/SocialIcon.ts +1 -1
- package/.dumi/tmp/dumi/theme/slots/Toc.d.ts +1 -0
- package/.dumi/tmp/dumi/theme/slots/Toc.ts +1 -1
- package/.dumi/tmp/exports.d.ts +11 -0
- package/.dumi/tmp/exports.ts +5 -5
- package/.dumi/tmp/plugin-antd/runtime.d.ts +1 -0
- package/.dumi/tmp/plugin-html2sketch/index.d.ts +1 -0
- package/.dumi/tmp/testBrowser.d.ts +10 -0
- package/.dumi/tmp/testBrowser.tsx +3 -3
- package/.dumi/tmp/umi.d.ts +4 -0
- package/.dumi/tmp/umi.ts +4 -4
- package/es/admin-amount/style/index.d.ts +0 -0
- package/es/admin-upload/style/index.d.ts +1 -0
- package/es/alert-message/style/index.d.ts +1 -0
- package/es/babel-plugin-import-option.d.ts +7 -0
- package/es/back-top/index.d.ts +5 -0
- package/es/back-top/style/index.d.ts +1 -0
- package/es/button/style/index.d.ts +1 -0
- package/es/card-detail/style/index.d.ts +1 -0
- package/es/checkbox/style/index.d.ts +1 -0
- package/es/claim-list/style/index.d.ts +1 -0
- package/es/config-provider.d.ts +9 -0
- package/es/confirmation/style/index.d.ts +1 -0
- package/es/currency-context/index.d.ts +8 -0
- package/es/currency-context/style/index.d.ts +0 -0
- package/es/date-picker/style/index.d.ts +1 -0
- package/es/declaration/style/index.d.ts +1 -0
- package/es/detail-panel/style/index.d.ts +1 -0
- package/es/documents/style/index.d.ts +1 -0
- package/es/filter/style/index.d.ts +1 -0
- package/es/form/addable-section/style/index.d.ts +1 -0
- package/es/form/divider/style/index.d.ts +1 -0
- package/es/form/element/style/index.d.ts +1 -0
- package/es/form/hstep/style/index.d.ts +1 -0
- package/es/form/hsteps/style/index.d.ts +1 -0
- package/es/form/login/style/index.d.ts +1 -0
- package/es/form/messages.d.ts +48 -0
- package/es/form/page/style/index.d.ts +1 -0
- package/es/form/pages/style/index.d.ts +1 -0
- package/es/form/render/style/index.d.ts +1 -0
- package/es/form/section/style/index.d.ts +1 -0
- package/es/form/step/style/index.d.ts +1 -0
- package/es/form/steps/style/index.d.ts +1 -0
- package/es/form/style/index.d.ts +1 -0
- package/es/free-form/addable-section/style/index.d.ts +1 -0
- package/es/free-form/element/style/index.d.ts +1 -0
- package/es/free-form/messages.d.ts +48 -0
- package/es/free-form/page/style/index.d.ts +1 -0
- package/es/free-form/pages/style/index.d.ts +1 -0
- package/es/free-form/section/style/index.d.ts +1 -0
- package/es/free-form/step/style/index.d.ts +1 -0
- package/es/free-form/steps/style/index.d.ts +1 -0
- package/es/free-form/style/index.d.ts +1 -0
- package/es/home-menu/style/index.d.ts +1 -0
- package/es/input/style/amount/index.d.ts +2 -0
- package/es/input/style/index.d.ts +2 -0
- package/es/input/style/input-date/index.d.ts +2 -0
- package/es/input/style/otp/index.d.ts +2 -0
- package/es/input/style/phone-number/index.d.ts +2 -0
- package/es/input/style/text-area/index.d.ts +2 -0
- package/es/layout/defaultHeader.d.ts +4 -0
- package/es/layout/style/index.d.ts +1 -0
- package/es/locale/en-US.d.ts +2 -0
- package/es/locale/format-message.d.ts +10 -0
- package/es/locale/formatted-message.d.ts +6 -0
- package/es/locale/id-ID.d.ts +2 -0
- package/es/locale/index.d.ts +4 -0
- package/es/locale/locale-context.d.ts +12 -0
- package/es/locale/locale-provider.d.ts +13 -0
- package/es/locale/ms-MY.d.ts +2 -0
- package/es/locale/th-TH.d.ts +2 -0
- package/es/locale/vi-VN.d.ts +2 -0
- package/es/locale/zh-CN.d.ts +2 -0
- package/es/locale/zh-TW.d.ts +2 -0
- package/es/login-page/index.d.ts +7 -0
- package/es/login-page/style/index.d.ts +1 -0
- package/es/media/file-icon.d.ts +9 -0
- package/es/media/style/index.d.ts +1 -0
- package/es/message/style/index.d.ts +1 -0
- package/es/mobile-insurer-detail/style/index.d.ts +1 -0
- package/es/mobile-insurer-list/style/index.d.ts +1 -0
- package/es/modal/style/index.d.ts +1 -0
- package/es/ocr/micro-blink/style/index.d.ts +1 -0
- package/es/platform/index.d.ts +2 -0
- package/es/platform/platform-card/index.d.ts +12 -0
- package/es/platform/platform-card/style/index.d.ts +1 -0
- package/es/platform/switch-platform/index.d.ts +12 -0
- package/es/platform/switch-platform/style/index.d.ts +1 -0
- package/es/policy-list/style/index.d.ts +1 -0
- package/es/radio/style/index.d.ts +1 -0
- package/es/search-box/style/index.d.ts +1 -0
- package/es/select/style/index.d.ts +1 -0
- package/es/status-box/style/index.d.ts +1 -0
- package/es/table/style/index.d.ts +1 -0
- package/es/tabs/index.d.ts +15 -0
- package/es/tabs/style/index.d.ts +1 -0
- package/es/typography/style/index.d.ts +1 -0
- package/es/upload/style/index.d.ts +1 -0
- package/es/upload-photo/index.js +15 -4
- package/es/upload-photo/media.d.ts +7 -0
- package/es/upload-photo/style/index.d.ts +1 -0
- package/es/upload-preview/style/index.d.ts +1 -0
- package/es/utils/agent-detect.d.ts +1 -0
- package/es/utils/tools.d.ts +5 -0
- package/es/utils/useAsyncEffect.d.ts +3 -0
- package/lib/admin-amount/style/index.d.ts +0 -0
- package/lib/admin-upload/style/index.d.ts +1 -0
- package/lib/alert-message/style/index.d.ts +1 -0
- package/lib/babel-plugin-import-option.d.ts +7 -0
- package/lib/back-top/index.d.ts +5 -0
- package/lib/back-top/style/index.d.ts +1 -0
- package/lib/button/style/index.d.ts +1 -0
- package/lib/card-detail/style/index.d.ts +1 -0
- package/lib/checkbox/style/index.d.ts +1 -0
- package/lib/claim-list/style/index.d.ts +1 -0
- package/lib/config-provider.d.ts +9 -0
- package/lib/confirmation/style/index.d.ts +1 -0
- package/lib/currency-context/index.d.ts +8 -0
- package/lib/currency-context/style/index.d.ts +0 -0
- package/lib/date-picker/style/index.d.ts +1 -0
- package/lib/declaration/style/index.d.ts +1 -0
- package/lib/detail-panel/style/index.d.ts +1 -0
- package/lib/documents/style/index.d.ts +1 -0
- package/lib/filter/style/index.d.ts +1 -0
- package/lib/form/addable-section/style/index.d.ts +1 -0
- package/lib/form/divider/style/index.d.ts +1 -0
- package/lib/form/element/style/index.d.ts +1 -0
- package/lib/form/hstep/style/index.d.ts +1 -0
- package/lib/form/hsteps/style/index.d.ts +1 -0
- package/lib/form/login/style/index.d.ts +1 -0
- package/lib/form/messages.d.ts +48 -0
- package/lib/form/page/style/index.d.ts +1 -0
- package/lib/form/pages/style/index.d.ts +1 -0
- package/lib/form/render/style/index.d.ts +1 -0
- package/lib/form/section/style/index.d.ts +1 -0
- package/lib/form/step/style/index.d.ts +1 -0
- package/lib/form/steps/style/index.d.ts +1 -0
- package/lib/form/style/index.d.ts +1 -0
- package/lib/free-form/addable-section/style/index.d.ts +1 -0
- package/lib/free-form/element/style/index.d.ts +1 -0
- package/lib/free-form/messages.d.ts +48 -0
- package/lib/free-form/page/style/index.d.ts +1 -0
- package/lib/free-form/pages/style/index.d.ts +1 -0
- package/lib/free-form/section/style/index.d.ts +1 -0
- package/lib/free-form/step/style/index.d.ts +1 -0
- package/lib/free-form/steps/style/index.d.ts +1 -0
- package/lib/free-form/style/index.d.ts +1 -0
- package/lib/home-menu/style/index.d.ts +1 -0
- package/lib/input/style/amount/index.d.ts +2 -0
- package/lib/input/style/index.d.ts +2 -0
- package/lib/input/style/input-date/index.d.ts +2 -0
- package/lib/input/style/otp/index.d.ts +2 -0
- package/lib/input/style/phone-number/index.d.ts +2 -0
- package/lib/input/style/text-area/index.d.ts +2 -0
- package/lib/layout/defaultHeader.d.ts +4 -0
- package/lib/layout/style/index.d.ts +1 -0
- package/lib/locale/en-US.d.ts +2 -0
- package/lib/locale/format-message.d.ts +10 -0
- package/lib/locale/formatted-message.d.ts +6 -0
- package/lib/locale/id-ID.d.ts +2 -0
- package/lib/locale/index.d.ts +4 -0
- package/lib/locale/locale-context.d.ts +12 -0
- package/lib/locale/locale-provider.d.ts +13 -0
- package/lib/locale/ms-MY.d.ts +2 -0
- package/lib/locale/th-TH.d.ts +2 -0
- package/lib/locale/vi-VN.d.ts +2 -0
- package/lib/locale/zh-CN.d.ts +2 -0
- package/lib/locale/zh-TW.d.ts +2 -0
- package/lib/login-page/index.d.ts +7 -0
- package/lib/login-page/style/index.d.ts +1 -0
- package/lib/media/file-icon.d.ts +9 -0
- package/lib/media/style/index.d.ts +1 -0
- package/lib/message/style/index.d.ts +1 -0
- package/lib/mobile-insurer-detail/style/index.d.ts +1 -0
- package/lib/mobile-insurer-list/style/index.d.ts +1 -0
- package/lib/modal/style/index.d.ts +1 -0
- package/lib/ocr/micro-blink/style/index.d.ts +1 -0
- package/lib/platform/index.d.ts +2 -0
- package/lib/platform/platform-card/index.d.ts +12 -0
- package/lib/platform/platform-card/style/index.d.ts +1 -0
- package/lib/platform/switch-platform/index.d.ts +12 -0
- package/lib/platform/switch-platform/style/index.d.ts +1 -0
- package/lib/policy-list/style/index.d.ts +1 -0
- package/lib/radio/style/index.d.ts +1 -0
- package/lib/search-box/style/index.d.ts +1 -0
- package/lib/select/style/index.d.ts +1 -0
- package/lib/status-box/style/index.d.ts +1 -0
- package/lib/table/style/index.d.ts +1 -0
- package/lib/tabs/index.d.ts +15 -0
- package/lib/tabs/style/index.d.ts +1 -0
- package/lib/typography/style/index.d.ts +1 -0
- package/lib/upload/style/index.d.ts +1 -0
- package/lib/upload-photo/index.js +15 -4
- package/lib/upload-photo/media.d.ts +7 -0
- package/lib/upload-photo/style/index.d.ts +1 -0
- package/lib/upload-preview/style/index.d.ts +1 -0
- package/lib/utils/agent-detect.d.ts +1 -0
- package/lib/utils/tools.d.ts +5 -0
- package/lib/utils/useAsyncEffect.d.ts +3 -0
- package/package.json +1 -1
- package/yarn-error.log +16168 -0
- package/es/upload-photo/index.d.ts +0 -28
- package/es/utils/form-utils.d.ts +0 -79
- package/lib/upload-photo/index.d.ts +0 -28
- package/lib/utils/form-utils.d.ts +0 -79
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function EmptyRoute(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IRuntimeConfig as Plugin0 } from '/Users/lei/iglooform/.dumi/tmp/plugin-antd/runtimeConfig.d';
|
|
2
|
+
interface IDefaultRuntimeConfig {
|
|
3
|
+
onRouteChange?: (props: {
|
|
4
|
+
routes: any;
|
|
5
|
+
clientRoutes: any;
|
|
6
|
+
location: any;
|
|
7
|
+
action: any;
|
|
8
|
+
isFirst: boolean;
|
|
9
|
+
}) => void;
|
|
10
|
+
patchRoutes?: (props: {
|
|
11
|
+
routes: any;
|
|
12
|
+
}) => void;
|
|
13
|
+
patchClientRoutes?: (props: {
|
|
14
|
+
routes: any;
|
|
15
|
+
}) => void;
|
|
16
|
+
render?: (oldRender: () => void) => void;
|
|
17
|
+
rootContainer?: (lastRootContainer: JSX.Element, args?: any) => void;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export type RuntimeConfig = IDefaultRuntimeConfig & Plugin0;
|
|
21
|
+
export declare function defineApp(config: RuntimeConfig): RuntimeConfig;
|
|
22
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
// This file is generated by Umi automatically
|
|
3
3
|
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import type { IRuntimeConfig as Plugin0 } from '/Users/
|
|
4
|
+
import type { IRuntimeConfig as Plugin0 } from '/Users/lei/iglooform/.dumi/tmp/plugin-antd/runtimeConfig.d'
|
|
5
5
|
interface IDefaultRuntimeConfig {
|
|
6
6
|
onRouteChange?: (props: { routes: any, clientRoutes: any, location: any, action: any, isFirst: boolean }) => void;
|
|
7
7
|
patchRoutes?: (props: { routes: any }) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function modifyClientRenderOpts(memo: any): any;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HelmetProvider } from '/Users/lei/iglooform/node_modules/@umijs/renderer-react';
|
|
3
|
+
export declare const innerProvider: (container: any) => React.CElement<React.PropsWithChildren<import("react-helmet-async").ProviderProps>, HelmetProvider>;
|
package/.dumi/tmp/core/helmet.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file is generated by Umi automatically
|
|
3
3
|
// DO NOT CHANGE IT MANUALLY!
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { HelmetProvider } from '/Users/
|
|
5
|
+
import { HelmetProvider } from '/Users/lei/iglooform/node_modules/@umijs/renderer-react';
|
|
6
6
|
import { context } from './helmetContext';
|
|
7
7
|
|
|
8
8
|
export const innerProvider = (container) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const context: {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
// This file is generated by Umi automatically
|
|
3
3
|
// DO NOT CHANGE IT MANUALLY!
|
|
4
|
-
import { createHashHistory, createMemoryHistory, createBrowserHistory } from '/Users/
|
|
4
|
+
import { createHashHistory, createMemoryHistory, createBrowserHistory } from '/Users/lei/iglooform/node_modules/@umijs/renderer-react';
|
|
5
5
|
import type { UmiHistory } from './historyIntelli';
|
|
6
6
|
|
|
7
7
|
let history: UmiHistory;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { getRoutes } from './route';
|
|
2
|
+
import type { History } from '/Users/lei/iglooform/node_modules/@umijs/renderer-react';
|
|
3
|
+
type Routes = Awaited<ReturnType<typeof getRoutes>>['routes'];
|
|
4
|
+
type AllRoute = Routes[keyof Routes];
|
|
5
|
+
type IsRoot<T extends any> = 'parentId' extends keyof T ? false : true;
|
|
6
|
+
type GetAllRouteWithoutLayout<Item extends AllRoute> = Item extends any ? 'isWrapper' extends keyof Item ? never : 'isLayout' extends keyof Item ? never : Item : never;
|
|
7
|
+
type AllRouteWithoutLayout = GetAllRouteWithoutLayout<AllRoute>;
|
|
8
|
+
type IndexRoutePathname = '/' extends AllRouteWithoutLayout['path'] ? '/' : never;
|
|
9
|
+
type GetChildrens<T extends any> = T extends any ? IsRoot<T> extends true ? never : T : never;
|
|
10
|
+
type Childrens = GetChildrens<AllRoute>;
|
|
11
|
+
type Root = Exclude<AllRoute, Childrens>;
|
|
12
|
+
type AllIds = AllRoute['id'];
|
|
13
|
+
type GetChildrensByParentId<Id extends AllIds, Item = AllRoute> = Item extends any ? 'parentId' extends keyof Item ? Item['parentId'] extends Id ? Item : never : never : never;
|
|
14
|
+
type RouteObject<Id extends AllIds, Item = GetChildrensByParentId<Id>> = IsNever<Item> extends true ? '' : Item extends AllRoute ? {
|
|
15
|
+
[Key in Item['path'] as TrimSlash<Key>]: UnionMerge<RouteObject<Item['id']>>;
|
|
16
|
+
} : never;
|
|
17
|
+
type GetRootRouteObject<Item extends Root> = Item extends Root ? {
|
|
18
|
+
[K in Item['path'] as TrimSlash<K>]: UnionMerge<RouteObject<Item['id']>>;
|
|
19
|
+
} : never;
|
|
20
|
+
type MergedResult = UnionMerge<GetRootRouteObject<Root>>;
|
|
21
|
+
type HistoryTo = Parameters<History['push']>['0'];
|
|
22
|
+
type HistoryPath = Exclude<HistoryTo, string>;
|
|
23
|
+
type UmiPathname = Path<MergedResult> | (string & {});
|
|
24
|
+
interface UmiPath extends HistoryPath {
|
|
25
|
+
pathname: UmiPathname;
|
|
26
|
+
}
|
|
27
|
+
type UmiTo = UmiPathname | UmiPath;
|
|
28
|
+
type UmiPush = (to: UmiTo, state?: any) => void;
|
|
29
|
+
type UmiReplace = (to: UmiTo, state?: any) => void;
|
|
30
|
+
export interface UmiHistory extends History {
|
|
31
|
+
push: UmiPush;
|
|
32
|
+
replace: UmiReplace;
|
|
33
|
+
}
|
|
34
|
+
type TrimLeftSlash<T extends string> = T extends `/${infer R}` ? TrimLeftSlash<R> : T;
|
|
35
|
+
type TrimRightSlash<T extends string> = T extends `${infer R}/` ? TrimRightSlash<R> : T;
|
|
36
|
+
type TrimSlash<T extends string> = TrimLeftSlash<TrimRightSlash<T>>;
|
|
37
|
+
type IsNever<T> = [T] extends [never] ? true : false;
|
|
38
|
+
type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B ? 1 : 2 ? true : false;
|
|
39
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
40
|
+
type UnionMerge<U> = UnionToIntersection<U> extends infer O ? {
|
|
41
|
+
[K in keyof O]: O[K];
|
|
42
|
+
} : never;
|
|
43
|
+
type ExcludeEmptyKey<T> = IsEqual<T, ''> extends true ? never : T;
|
|
44
|
+
type PathConcat<TKey extends string, TValue, N = TrimSlash<TKey>> = TValue extends string ? ExcludeEmptyKey<N> : ExcludeEmptyKey<N> | `${N & string}${IsNever<ExcludeEmptyKey<N>> extends true ? '' : '/'}${UnionPath<TValue>}`;
|
|
45
|
+
type UnionPath<T> = {
|
|
46
|
+
[K in keyof T]-?: PathConcat<K & string, T[K]>;
|
|
47
|
+
}[keyof T];
|
|
48
|
+
type MakeSureLeftSlash<T> = T extends any ? `/${TrimRightSlash<T & string>}` : never;
|
|
49
|
+
type Path<T, K = UnionPath<T>> = Exclude<MakeSureLeftSlash<K>, '/*'> | IndexRoutePathname;
|
|
50
|
+
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file is generated by Umi automatically
|
|
3
3
|
// DO NOT CHANGE IT MANUALLY!
|
|
4
4
|
import { getRoutes } from './route'
|
|
5
|
-
import type { History } from '/Users/
|
|
5
|
+
import type { History } from '/Users/lei/iglooform/node_modules/@umijs/renderer-react'
|
|
6
6
|
|
|
7
7
|
type Routes = Awaited<ReturnType<typeof getRoutes>>['routes']
|
|
8
8
|
type AllRoute = Routes[keyof Routes]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Plugin_0 from '@@/core/exportStaticRuntimePlugin.ts';
|
|
2
|
+
import * as Plugin_1 from '@@/core/helmet.ts';
|
|
3
|
+
import * as Plugin_2 from '@@/dumi/meta/runtime.ts';
|
|
4
|
+
import * as Plugin_3 from '@@/dumi/locales/runtime.tsx';
|
|
5
|
+
import * as Plugin_4 from '/Users/lei/iglooform/.dumi/tmp/plugin-antd/runtime.tsx';
|
|
6
|
+
import { PluginManager } from 'umi';
|
|
7
|
+
export declare function getPlugins(): ({
|
|
8
|
+
apply: typeof Plugin_0;
|
|
9
|
+
path: string | undefined;
|
|
10
|
+
} | {
|
|
11
|
+
apply: typeof Plugin_1;
|
|
12
|
+
path: string | undefined;
|
|
13
|
+
} | {
|
|
14
|
+
apply: typeof Plugin_2;
|
|
15
|
+
path: string | undefined;
|
|
16
|
+
} | {
|
|
17
|
+
apply: typeof Plugin_3;
|
|
18
|
+
path: string | undefined;
|
|
19
|
+
} | {
|
|
20
|
+
apply: typeof Plugin_4;
|
|
21
|
+
path: string | undefined;
|
|
22
|
+
})[];
|
|
23
|
+
export declare function getValidKeys(): string[];
|
|
24
|
+
export declare function createPluginManager(): PluginManager;
|
|
25
|
+
export declare function getPluginManager(): any;
|
package/.dumi/tmp/core/plugin.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as Plugin_0 from '@@/core/exportStaticRuntimePlugin.ts';
|
|
|
5
5
|
import * as Plugin_1 from '@@/core/helmet.ts';
|
|
6
6
|
import * as Plugin_2 from '@@/dumi/meta/runtime.ts';
|
|
7
7
|
import * as Plugin_3 from '@@/dumi/locales/runtime.tsx';
|
|
8
|
-
import * as Plugin_4 from '/Users/
|
|
8
|
+
import * as Plugin_4 from '/Users/lei/iglooform/.dumi/tmp/plugin-antd/runtime.tsx';
|
|
9
9
|
import { PluginManager } from 'umi';
|
|
10
10
|
|
|
11
11
|
function __defaultExport (obj) {
|
|
@@ -34,7 +34,7 @@ export function getPlugins() {
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
apply: Plugin_4,
|
|
37
|
-
path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/
|
|
37
|
+
path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/lei/iglooform/.dumi/tmp/plugin-antd/runtime.tsx',
|
|
38
38
|
},
|
|
39
39
|
];
|
|
40
40
|
}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { IConfigFromPluginsJoi } from "./pluginConfigJoi.d";
|
|
2
|
+
interface IConfigTypes {
|
|
3
|
+
codeSplitting: {
|
|
4
|
+
jsStrategy: "bigVendors" | "depPerChunk" | "granularChunks";
|
|
5
|
+
jsStrategyOptions?: ({} | undefined);
|
|
6
|
+
cssStrategy?: ("mergeAll" | undefined);
|
|
7
|
+
cssStrategyOptions?: ({} | undefined);
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
styles: Array<string | {
|
|
11
|
+
src?: (string | undefined);
|
|
12
|
+
} | {
|
|
13
|
+
content?: (string | undefined);
|
|
14
|
+
} | {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
}>;
|
|
17
|
+
scripts: Array<string | {
|
|
18
|
+
src?: (string | undefined);
|
|
19
|
+
} | {
|
|
20
|
+
content?: (string | undefined);
|
|
21
|
+
} | {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
}>;
|
|
24
|
+
routes: Array<{
|
|
25
|
+
component?: (string | undefined);
|
|
26
|
+
layout?: (false | undefined);
|
|
27
|
+
path?: (string | undefined);
|
|
28
|
+
redirect?: (string | undefined);
|
|
29
|
+
routes?: IConfigTypes['routes'];
|
|
30
|
+
wrappers?: (Array<string> | undefined);
|
|
31
|
+
} | {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
}>;
|
|
34
|
+
reactRouter5Compat: boolean | {};
|
|
35
|
+
presets: Array<string>;
|
|
36
|
+
plugins: Array<string>;
|
|
37
|
+
npmClient: "pnpm" | "tnpm" | "cnpm" | "yarn" | "npm";
|
|
38
|
+
mountElementId: string;
|
|
39
|
+
metas: Array<{
|
|
40
|
+
charset?: (string | undefined);
|
|
41
|
+
content?: (string | undefined);
|
|
42
|
+
"http-equiv"?: (string | undefined);
|
|
43
|
+
name?: (string | undefined);
|
|
44
|
+
} | {
|
|
45
|
+
[x: string]: any;
|
|
46
|
+
}>;
|
|
47
|
+
links: Array<{
|
|
48
|
+
crossorigin?: (string | undefined);
|
|
49
|
+
href?: (string | undefined);
|
|
50
|
+
hreflang?: (string | undefined);
|
|
51
|
+
media?: (string | undefined);
|
|
52
|
+
referrerpolicy?: (string | undefined);
|
|
53
|
+
rel?: (string | undefined);
|
|
54
|
+
sizes?: (any | undefined);
|
|
55
|
+
title?: (any | undefined);
|
|
56
|
+
type?: (any | undefined);
|
|
57
|
+
} | {
|
|
58
|
+
[x: string]: any;
|
|
59
|
+
}>;
|
|
60
|
+
historyWithQuery: {};
|
|
61
|
+
history: {
|
|
62
|
+
type: "browser" | "hash" | "memory";
|
|
63
|
+
};
|
|
64
|
+
headScripts: Array<string | {
|
|
65
|
+
src?: (string | undefined);
|
|
66
|
+
} | {
|
|
67
|
+
content?: (string | undefined);
|
|
68
|
+
} | {
|
|
69
|
+
[x: string]: any;
|
|
70
|
+
}>;
|
|
71
|
+
esbuildMinifyIIFE: boolean;
|
|
72
|
+
conventionRoutes: {
|
|
73
|
+
base?: (string | undefined);
|
|
74
|
+
exclude?: (Array<any> | undefined);
|
|
75
|
+
};
|
|
76
|
+
conventionLayout: boolean;
|
|
77
|
+
base: string;
|
|
78
|
+
analyze: {};
|
|
79
|
+
writeToDisk: boolean;
|
|
80
|
+
theme: {
|
|
81
|
+
[x: string]: any;
|
|
82
|
+
};
|
|
83
|
+
targets: {
|
|
84
|
+
[x: string]: any;
|
|
85
|
+
};
|
|
86
|
+
svgr: {
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
};
|
|
89
|
+
svgo: {
|
|
90
|
+
[x: string]: any;
|
|
91
|
+
} | boolean;
|
|
92
|
+
styleLoader: {
|
|
93
|
+
[x: string]: any;
|
|
94
|
+
};
|
|
95
|
+
srcTranspilerOptions: {
|
|
96
|
+
esbuild?: ({
|
|
97
|
+
[x: string]: any;
|
|
98
|
+
} | undefined);
|
|
99
|
+
swc?: ({
|
|
100
|
+
[x: string]: any;
|
|
101
|
+
} | undefined);
|
|
102
|
+
};
|
|
103
|
+
srcTranspiler: "babel" | "esbuild" | "swc" | "none";
|
|
104
|
+
sassLoader: {
|
|
105
|
+
[x: string]: any;
|
|
106
|
+
};
|
|
107
|
+
runtimePublicPath: {};
|
|
108
|
+
purgeCSS: {
|
|
109
|
+
[x: string]: any;
|
|
110
|
+
};
|
|
111
|
+
publicPath: string;
|
|
112
|
+
proxy: {
|
|
113
|
+
[x: string]: any;
|
|
114
|
+
} | Array<any>;
|
|
115
|
+
postcssLoader: {
|
|
116
|
+
[x: string]: any;
|
|
117
|
+
};
|
|
118
|
+
outputPath: string;
|
|
119
|
+
normalCSSLoaderModules: {
|
|
120
|
+
[x: string]: any;
|
|
121
|
+
};
|
|
122
|
+
mfsu: {
|
|
123
|
+
cacheDirectory?: (string | undefined);
|
|
124
|
+
chainWebpack?: (((...args: any[]) => unknown) | undefined);
|
|
125
|
+
esbuild?: (boolean | undefined);
|
|
126
|
+
exclude?: (Array<string | any> | undefined);
|
|
127
|
+
include?: (Array<string> | undefined);
|
|
128
|
+
mfName?: (string | undefined);
|
|
129
|
+
remoteAliases?: (Array<string> | undefined);
|
|
130
|
+
remoteName?: (string | undefined);
|
|
131
|
+
runtimePublicPath?: (boolean | undefined);
|
|
132
|
+
shared?: ({
|
|
133
|
+
[x: string]: any;
|
|
134
|
+
} | undefined);
|
|
135
|
+
strategy?: ("eager" | "normal" | undefined);
|
|
136
|
+
} | boolean;
|
|
137
|
+
mdx: {
|
|
138
|
+
loader?: (string | undefined);
|
|
139
|
+
loaderOptions?: ({
|
|
140
|
+
[x: string]: any;
|
|
141
|
+
} | undefined);
|
|
142
|
+
};
|
|
143
|
+
manifest: {
|
|
144
|
+
basePath?: (string | undefined);
|
|
145
|
+
fileName?: (string | undefined);
|
|
146
|
+
};
|
|
147
|
+
lessLoader: {
|
|
148
|
+
[x: string]: any;
|
|
149
|
+
};
|
|
150
|
+
jsMinifierOptions: {
|
|
151
|
+
[x: string]: any;
|
|
152
|
+
};
|
|
153
|
+
jsMinifier: "esbuild" | "swc" | "terser" | "uglifyJs" | "none";
|
|
154
|
+
inlineLimit: number;
|
|
155
|
+
ignoreMomentLocale: boolean;
|
|
156
|
+
https: {
|
|
157
|
+
cert?: (string | undefined);
|
|
158
|
+
hosts?: (Array<string> | undefined);
|
|
159
|
+
http2?: (boolean | undefined);
|
|
160
|
+
key?: (string | undefined);
|
|
161
|
+
};
|
|
162
|
+
hash: boolean;
|
|
163
|
+
forkTSChecker: {
|
|
164
|
+
[x: string]: any;
|
|
165
|
+
};
|
|
166
|
+
fastRefresh: boolean;
|
|
167
|
+
extraPostCSSPlugins: Array<any>;
|
|
168
|
+
extraBabelPresets: Array<string | Array<any>>;
|
|
169
|
+
extraBabelPlugins: Array<string | Array<any>>;
|
|
170
|
+
extraBabelIncludes: Array<string | any>;
|
|
171
|
+
externals: {
|
|
172
|
+
[x: string]: any;
|
|
173
|
+
} | string | ((...args: any[]) => unknown);
|
|
174
|
+
esm: {};
|
|
175
|
+
devtool: "cheap-source-map" | "cheap-module-source-map" | "eval" | "eval-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | "source-map" | "hidden-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "inline-source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | boolean;
|
|
176
|
+
depTranspiler: "babel" | "esbuild" | "swc" | "none";
|
|
177
|
+
define: {
|
|
178
|
+
[x: string]: any;
|
|
179
|
+
};
|
|
180
|
+
deadCode: {
|
|
181
|
+
context?: (string | undefined);
|
|
182
|
+
detectUnusedExport?: (boolean | undefined);
|
|
183
|
+
detectUnusedFiles?: (boolean | undefined);
|
|
184
|
+
exclude?: (Array<string> | undefined);
|
|
185
|
+
failOnHint?: (boolean | undefined);
|
|
186
|
+
patterns?: (Array<string> | undefined);
|
|
187
|
+
};
|
|
188
|
+
cssMinifierOptions: {
|
|
189
|
+
[x: string]: any;
|
|
190
|
+
};
|
|
191
|
+
cssMinifier: "cssnano" | "esbuild" | "parcelCSS" | "none";
|
|
192
|
+
cssLoaderModules: {
|
|
193
|
+
[x: string]: any;
|
|
194
|
+
};
|
|
195
|
+
cssLoader: {
|
|
196
|
+
[x: string]: any;
|
|
197
|
+
};
|
|
198
|
+
copy: Array<{
|
|
199
|
+
from: string;
|
|
200
|
+
to: string;
|
|
201
|
+
} | string>;
|
|
202
|
+
checkDepCssModules?: boolean;
|
|
203
|
+
cacheDirectoryPath: string;
|
|
204
|
+
babelLoaderCustomize: string;
|
|
205
|
+
autoprefixer: {
|
|
206
|
+
[x: string]: any;
|
|
207
|
+
};
|
|
208
|
+
autoCSSModules: boolean;
|
|
209
|
+
alias: {
|
|
210
|
+
[x: string]: any;
|
|
211
|
+
};
|
|
212
|
+
crossorigin: boolean | {
|
|
213
|
+
includes?: (Array<any> | undefined);
|
|
214
|
+
};
|
|
215
|
+
esmi: {
|
|
216
|
+
cdnOrigin: string;
|
|
217
|
+
shimUrl?: (string | undefined);
|
|
218
|
+
};
|
|
219
|
+
exportStatic: {
|
|
220
|
+
extraRoutePaths?: (((...args: any[]) => unknown) | Array<string> | undefined);
|
|
221
|
+
};
|
|
222
|
+
favicons: Array<string>;
|
|
223
|
+
helmet: boolean;
|
|
224
|
+
icons: {
|
|
225
|
+
autoInstall?: ({} | undefined);
|
|
226
|
+
defaultComponentConfig?: ({} | undefined);
|
|
227
|
+
alias?: ({} | undefined);
|
|
228
|
+
include?: (Array<string> | undefined);
|
|
229
|
+
};
|
|
230
|
+
mock: {
|
|
231
|
+
exclude?: (Array<string> | undefined);
|
|
232
|
+
include?: (Array<string> | undefined);
|
|
233
|
+
};
|
|
234
|
+
mpa: {
|
|
235
|
+
template?: (string | undefined);
|
|
236
|
+
layout?: (string | undefined);
|
|
237
|
+
getConfigFromEntryFile?: (boolean | undefined);
|
|
238
|
+
entry?: ({} | undefined);
|
|
239
|
+
};
|
|
240
|
+
phantomDependency: {
|
|
241
|
+
exclude?: (Array<string> | undefined);
|
|
242
|
+
};
|
|
243
|
+
polyfill: {
|
|
244
|
+
imports?: (Array<string> | undefined);
|
|
245
|
+
};
|
|
246
|
+
routePrefetch: {};
|
|
247
|
+
terminal: {};
|
|
248
|
+
tmpFiles: boolean;
|
|
249
|
+
clientLoader: {};
|
|
250
|
+
routeProps: {};
|
|
251
|
+
ssr: {
|
|
252
|
+
serverBuildPath?: (string | undefined);
|
|
253
|
+
platform?: (string | undefined);
|
|
254
|
+
builder?: ("esbuild" | "webpack" | undefined);
|
|
255
|
+
};
|
|
256
|
+
lowImport: {
|
|
257
|
+
libs?: (Array<any> | undefined);
|
|
258
|
+
css?: (string | undefined);
|
|
259
|
+
};
|
|
260
|
+
vite: {};
|
|
261
|
+
apiRoute: {
|
|
262
|
+
platform?: (string | undefined);
|
|
263
|
+
};
|
|
264
|
+
monorepoRedirect: boolean | {
|
|
265
|
+
srcDir?: (Array<string> | undefined);
|
|
266
|
+
exclude?: (Array<any> | undefined);
|
|
267
|
+
peerDeps?: (boolean | undefined);
|
|
268
|
+
};
|
|
269
|
+
test: {};
|
|
270
|
+
clickToComponent: {
|
|
271
|
+
/** 默认情况下,点击将默认编辑器为vscode, 你可以设置编辑器 vscode 或者 vscode-insiders */
|
|
272
|
+
editor?: (string | undefined);
|
|
273
|
+
};
|
|
274
|
+
legacy: {
|
|
275
|
+
buildOnly?: (boolean | undefined);
|
|
276
|
+
nodeModulesTransform?: (boolean | undefined);
|
|
277
|
+
checkOutput?: (boolean | undefined);
|
|
278
|
+
};
|
|
279
|
+
/** 设置 babel class-properties 启用 loose
|
|
280
|
+
@doc https://umijs.org/docs/api/config#classpropertiesloose */
|
|
281
|
+
classPropertiesLoose: boolean | {};
|
|
282
|
+
ui: {};
|
|
283
|
+
hmrGuardian: boolean;
|
|
284
|
+
verifyCommit: {
|
|
285
|
+
scope?: (Array<string> | undefined);
|
|
286
|
+
allowEmoji?: (boolean | undefined);
|
|
287
|
+
};
|
|
288
|
+
run: {
|
|
289
|
+
globals?: (Array<string> | undefined);
|
|
290
|
+
};
|
|
291
|
+
antd: {
|
|
292
|
+
configProvider?: ({
|
|
293
|
+
[x: string]: any;
|
|
294
|
+
} | undefined);
|
|
295
|
+
dark?: (boolean | undefined);
|
|
296
|
+
compact?: (boolean | undefined);
|
|
297
|
+
import?: (boolean | undefined);
|
|
298
|
+
style?: ("less" | "css" | undefined);
|
|
299
|
+
theme?: ({
|
|
300
|
+
[x: string]: any;
|
|
301
|
+
} | undefined);
|
|
302
|
+
appConfig?: ({
|
|
303
|
+
[x: string]: any;
|
|
304
|
+
} | undefined);
|
|
305
|
+
momentPicker?: (boolean | undefined);
|
|
306
|
+
styleProvider?: ({
|
|
307
|
+
[x: string]: any;
|
|
308
|
+
} | undefined);
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
type PrettifyWithCloseable<T> = {
|
|
312
|
+
[K in keyof T]: T[K] | false;
|
|
313
|
+
} & {};
|
|
314
|
+
export type IConfigFromPlugins = PrettifyWithCloseable<IConfigFromPluginsJoi & Partial<IConfigTypes>>;
|
|
315
|
+
export {};
|