@topthink/components 1.1.7 → 1.1.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/es/editor-widget-ZqrBTAWC.js +355 -0
- package/es/image-xVpjTjcN.js +1 -0
- package/es/{index-pdAII942.js → index-4j3qlSEA.js} +1 -1
- package/es/{index-7Eo6mqDi.js → index-alLkMNpj.js} +2 -2
- package/es/index-fW_tvsVH.js +1 -0
- package/es/index-tFUwxWXk.js +78 -0
- package/es/index.js +1 -1
- package/es/infinite-scroller-toFkixFC.js +1 -0
- package/package.json +3 -2
- package/types/components/card.d.ts +1 -1
- package/types/components/clipboard.d.ts +1 -1
- package/types/components/dimmer.d.ts +1 -1
- package/types/components/error.d.ts +1 -2
- package/types/components/image-zoom.d.ts +1 -1
- package/types/components/lazy/form/widgets/editor-widget.d.ts +3 -4
- package/types/components/lazy/lightbox/image.d.ts +1 -1
- package/types/components/lazy/lightbox/index.d.ts +1 -1
- package/types/components/lazy/slider.d.ts +1 -2
- package/types/components/lazy/steps.d.ts +1 -1
- package/types/components/lazy/table/search.d.ts +2 -3
- package/types/components/lightbox.d.ts +4 -4
- package/types/components/loading-button.d.ts +1 -2
- package/types/components/modal/index.d.ts +1 -1
- package/types/components/modal/message.d.ts +1 -1
- package/types/components/number-format.d.ts +1 -2
- package/types/components/offcanvas.d.ts +1 -1
- package/types/components/pagination.d.ts +1 -2
- package/types/components/panel.d.ts +2 -2
- package/types/components/qrcode.d.ts +1 -2
- package/types/components/result.d.ts +5 -5
- package/types/components/slider.d.ts +1 -1
- package/types/components/space.d.ts +1 -1
- package/types/components/statistic.d.ts +1 -1
- package/types/components/steps.d.ts +3 -3
- package/types/components/toast-provider.d.ts +2 -0
- package/types/components/tooltip.d.ts +1 -2
- package/types/index.d.ts +2 -1
- package/types/theme.d.ts +7 -0
- package/es/editor-widget-CQ3zv-Xu.js +0 -355
- package/es/image-TAFDJRLj.js +0 -1
- package/es/index-rwu3sC2k.js +0 -76
- package/es/index-xM26Eo_f.js +0 -1
- package/es/infinite-scroller-5Z8JxvFT.js +0 -1
|
@@ -25,5 +25,5 @@ declare module 'yet-another-react-lightbox' {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
export default function Lightbox({ children, render, zoom, toolbar, plugins }: Props): JSX.Element;
|
|
28
|
+
export default function Lightbox({ children, render, zoom, toolbar, plugins }: Props): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SliderProps } from 'rc-slider';
|
|
3
2
|
import 'rc-slider/assets/index.css';
|
|
4
|
-
export default function Slider(props: SliderProps): JSX.Element;
|
|
3
|
+
export default function Slider(props: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import RcSteps, { Step } from 'rc-steps';
|
|
2
2
|
import 'rc-steps/assets/index.css';
|
|
3
3
|
import { ComponentProps } from 'react';
|
|
4
|
-
declare function Steps(props: ComponentProps<typeof RcSteps>): JSX.Element;
|
|
4
|
+
declare function Steps(props: ComponentProps<typeof RcSteps>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare namespace Steps {
|
|
6
6
|
var Step: typeof import("rc-steps").Step;
|
|
7
7
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="@rjsf/core" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
import type { Columns } from './index';
|
|
4
3
|
import { UiSchema } from '@topthink/json-form';
|
|
5
4
|
export type SearchOptions = {
|
|
@@ -14,10 +13,10 @@ interface SearchProps {
|
|
|
14
13
|
columns: Columns;
|
|
15
14
|
onSearch: (params: Record<string, any>) => void;
|
|
16
15
|
}
|
|
17
|
-
export default function Search({ data, options, columns, onSearch }: SearchProps): JSX.Element;
|
|
16
|
+
export default function Search({ data, options, columns, onSearch }: SearchProps): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
interface Props {
|
|
19
18
|
keyword: string;
|
|
20
19
|
onKeywordChange: (value: string) => void;
|
|
21
20
|
}
|
|
22
|
-
export declare function LightSearch({ keyword, onKeywordChange }: Props): JSX.Element;
|
|
21
|
+
export declare function LightSearch({ keyword, onKeywordChange }: Props): import("react/jsx-runtime").JSX.Element;
|
|
23
22
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { ImageContext as Context } from './lazy/lightbox/context';
|
|
3
3
|
declare const LazyLightbox: import("react").LazyExoticComponent<typeof import("./lazy/lightbox").default>;
|
|
4
|
-
declare const LazyImage: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ lazy, ...props }: import("./lazy/lightbox/image").Props) => JSX.Element>>;
|
|
5
|
-
declare function Lightbox(props: ComponentProps<typeof LazyLightbox>): JSX.Element;
|
|
4
|
+
declare const LazyImage: import("react").LazyExoticComponent<import("react").MemoExoticComponent<({ lazy, ...props }: import("./lazy/lightbox/image").Props) => import("react/jsx-runtime").JSX.Element>>;
|
|
5
|
+
declare function Lightbox(props: ComponentProps<typeof LazyLightbox>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare namespace Lightbox {
|
|
7
|
-
var Image: (props: import("./lazy/lightbox/image").Props) => JSX.Element;
|
|
7
|
+
var Image: (props: import("./lazy/lightbox/image").Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
var Context: import("react").Context<import("./lazy/lightbox/context").ImageContextType>;
|
|
9
9
|
}
|
|
10
10
|
export default Lightbox;
|
|
11
|
-
declare const Image: (props: ComponentProps<typeof LazyImage>) => JSX.Element;
|
|
11
|
+
declare const Image: (props: ComponentProps<typeof LazyImage>) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export { Image, Context };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ButtonProps } from 'react-bootstrap';
|
|
3
2
|
interface CustomButtonProps extends ButtonProps {
|
|
4
3
|
loading: boolean;
|
|
5
4
|
}
|
|
6
|
-
export default function LoadingButton({ loading, disabled, children, ...props }: CustomButtonProps): JSX.Element;
|
|
5
|
+
export default function LoadingButton({ loading, disabled, children, ...props }: CustomButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -26,7 +26,7 @@ export interface ModalProps extends Pick<ReactModalProps, 'style' | 'container'
|
|
|
26
26
|
confirmLoading?: boolean;
|
|
27
27
|
}
|
|
28
28
|
declare const Modal: {
|
|
29
|
-
({ header, children, footer, closable, show, cancelText, okText, onOk, onCancel, onHide, okButtonProps, bodyAs, headerAs, confirmLoading, ...rest }: ModalProps): JSX.Element;
|
|
29
|
+
({ header, children, footer, closable, show, cancelText, okText, onOk, onCancel, onHide, okButtonProps, bodyAs, headerAs, confirmLoading, ...rest }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
Message: typeof Message;
|
|
31
31
|
confirm: typeof confirm;
|
|
32
32
|
show: typeof show;
|
|
@@ -22,5 +22,5 @@ export declare function wrapMessage<T = {}, P = any>(Component: ComponentType<Me
|
|
|
22
22
|
export declare function createMessage<T = {}, P = any>(Component: ComponentType<MessageWrapProps<T, P>>): (message: T) => Promise<P | void>;
|
|
23
23
|
export declare const show: (modal: ReactNode) => void;
|
|
24
24
|
export declare const hide: (modal: ReactNode) => void;
|
|
25
|
-
export default function Message(props: MessageContextType): JSX.Element;
|
|
25
|
+
export default function Message(props: MessageContextType): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface Props {
|
|
3
2
|
value: number;
|
|
4
3
|
currency?: boolean;
|
|
@@ -6,5 +5,5 @@ interface Props {
|
|
|
6
5
|
className?: string;
|
|
7
6
|
options?: Intl.NumberFormatOptions;
|
|
8
7
|
}
|
|
9
|
-
export default function NumberFormat({ className, value, locale, currency, options }: Props): JSX.Element;
|
|
8
|
+
export default function NumberFormat({ className, value, locale, currency, options }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -8,4 +8,4 @@ export interface OffcanvasProps extends ReactOffcanvasProps {
|
|
|
8
8
|
bodyAs?: ElementType;
|
|
9
9
|
headerAs?: ElementType;
|
|
10
10
|
}
|
|
11
|
-
export default function Offcanvas({ header, children, closable, show, onHide, bodyAs, headerAs, ...rest }: OffcanvasProps): JSX.Element;
|
|
11
|
+
export default function Offcanvas({ header, children, closable, show, onHide, bodyAs, headerAs, ...rest }: OffcanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PaginationType } from '../utils/types';
|
|
3
2
|
export declare function isPaginationObject<T>(data: any): data is PaginationType<T>;
|
|
4
3
|
export interface PaginationProps {
|
|
@@ -10,4 +9,4 @@ export interface PaginationProps {
|
|
|
10
9
|
defaultPageSize?: number;
|
|
11
10
|
onChange?: (current: number, pageSize: number) => void;
|
|
12
11
|
}
|
|
13
|
-
export default function Pagination({ total, onChange, defaultCurrent, defaultPageSize, className, ...props }: PaginationProps): JSX.Element;
|
|
12
|
+
export default function Pagination({ total, onChange, defaultCurrent, defaultPageSize, className, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,7 @@ interface Props {
|
|
|
8
8
|
}
|
|
9
9
|
export declare function PanelGroup({ children }: {
|
|
10
10
|
children: ReactNode;
|
|
11
|
-
}): JSX.Element;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export declare const usePanel: () => [Set<string>, Dispatch<SetStateAction<Set<string>>>];
|
|
13
|
-
export default function Panel({ title, action, children, eventKey, open }: Props): JSX.Element;
|
|
13
|
+
export default function Panel({ title, action, children, eventKey, open }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
declare const IconMap: {
|
|
3
|
-
success: JSX.Element;
|
|
4
|
-
error: JSX.Element;
|
|
5
|
-
info: JSX.Element;
|
|
6
|
-
warning: JSX.Element;
|
|
3
|
+
success: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
error: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
info: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
warning: import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
};
|
|
8
8
|
interface ResultProps {
|
|
9
9
|
className?: string;
|
|
@@ -12,5 +12,5 @@ interface ResultProps {
|
|
|
12
12
|
title?: string;
|
|
13
13
|
extra?: ReactNode;
|
|
14
14
|
}
|
|
15
|
-
export default function Result({ className, status, title, icon, extra }: ResultProps): JSX.Element;
|
|
15
|
+
export default function Result({ className, status, title, icon, extra }: ResultProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
declare const LazySlider: import("react").LazyExoticComponent<typeof import("./lazy/slider").default>;
|
|
3
|
-
export default function Slider(props: ComponentProps<typeof LazySlider>): JSX.Element;
|
|
3
|
+
export default function Slider(props: ComponentProps<typeof LazySlider>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -5,5 +5,5 @@ interface SpaceProps {
|
|
|
5
5
|
direction?: 'vertical' | 'horizontal';
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
|
-
export default function Space({ children, className, size, direction }: SpaceProps): JSX.Element;
|
|
8
|
+
export default function Space({ children, className, size, direction }: SpaceProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -4,4 +4,4 @@ export interface StatisticProps {
|
|
|
4
4
|
content: ReactNode;
|
|
5
5
|
footer?: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export default function Statistic({ title, content, footer }: StatisticProps): JSX.Element;
|
|
7
|
+
export default function Statistic({ title, content, footer }: StatisticProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
declare const LazySteps: import("react").LazyExoticComponent<typeof import("./lazy/steps").default>;
|
|
3
3
|
declare const LazyStep: import("react").LazyExoticComponent<typeof import("rc-steps/lib/Step").default>;
|
|
4
|
-
declare function Steps(props: ComponentProps<typeof LazySteps>): JSX.Element;
|
|
4
|
+
declare function Steps(props: ComponentProps<typeof LazySteps>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare namespace Steps {
|
|
6
|
-
var Step: (props: import("rc-steps/lib/Step").StepProps & import("react").RefAttributes<import("rc-steps/lib/Step").default>) => JSX.Element;
|
|
6
|
+
var Step: (props: import("rc-steps/lib/Step").StepProps & import("react").RefAttributes<import("rc-steps/lib/Step").default>) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
}
|
|
8
8
|
export default Steps;
|
|
9
|
-
declare const Step: (props: ComponentProps<typeof LazyStep>) => JSX.Element;
|
|
9
|
+
declare const Step: (props: ComponentProps<typeof LazyStep>) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export { Step };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { OverlayTriggerProps } from 'react-bootstrap';
|
|
3
2
|
interface TooltipProps {
|
|
4
3
|
tooltip: string;
|
|
5
4
|
children: OverlayTriggerProps['children'];
|
|
6
5
|
placement?: OverlayTriggerProps['placement'];
|
|
7
6
|
}
|
|
8
|
-
export default function Tooltip({ tooltip, children, placement }: TooltipProps): JSX.Element;
|
|
7
|
+
export default function Tooltip({ tooltip, children, placement }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export {};
|
package/types/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export { default as Lightbox } from './components/lightbox';
|
|
|
38
38
|
export { default as InfiniteScroller, InfiniteScrollerType } from './components/infinite-scroller';
|
|
39
39
|
export { default as Slider } from './components/slider';
|
|
40
40
|
export { default as Qrcode } from './components/qrcode';
|
|
41
|
+
export { default as ToastProvider } from './components/toast-provider';
|
|
41
42
|
export { default as useRequest } from './hooks/use-request';
|
|
42
43
|
export { default as useOverlayState } from './hooks/use-overlay-state';
|
|
43
44
|
export { default as useControllableState } from './hooks/use-controllable-state';
|
|
@@ -51,7 +52,7 @@ export { default as useAsyncEffect } from './hooks/use-async-effect';
|
|
|
51
52
|
export { default as request, RequestConfig, RequestInstance, isRequestError, showRequestError } from './request';
|
|
52
53
|
export type { UiSchema as FormUiSchema, Schema as FormSchema, WidgetProps as FormWidgetProps, Widget as FormWidget, IChangeEvent as FormChangeEvent, ISubmitEvent as FormSubmitEvent } from '@topthink/json-form';
|
|
53
54
|
export { default as styled, css, keyframes, createGlobalStyle, StyleSheetManager, ThemeProvider } from 'styled-components';
|
|
55
|
+
export { ComponentsTheme } from './theme';
|
|
54
56
|
export { useAsync, useAsyncCallback } from 'react-async-hook';
|
|
55
57
|
export { useInView } from 'react-intersection-observer';
|
|
56
|
-
export { SnackbarProvider as ToastProvider } from 'notistack';
|
|
57
58
|
export { default as queryString } from 'query-string';
|
package/types/theme.d.ts
ADDED
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import"@toast-ui/editor/dist/toastui-editor-only.css";import"@toast-ui/editor/dist/i18n/zh-cn";import{Editor as t}from"@toast-ui/react-editor";import{useRef as i}from"react";import o from"styled-components";function r(o){const{value:r,onChange:a,placeholder:g,autofocus:d,options:l}=o,{editType:s="wysiwyg",outputType:p="markdown",onUpload:c}=l,I=i(null),m={};return c&&(m.addImageBlobHook=async(e,t)=>{t(await c(e))}),e(n,{children:e(t,{ref:I,placeholder:g,usageStatistics:!1,hooks:m,autofocus:d,linkAttributes:{target:"_blank"},onChange:()=>{const e=I.current?.getInstance();e&&a("markdown"===p?e.getMarkdown():e.getHTML())},language:"zh-CN",initialValue:r,previewStyle:"vertical",height:"600px",initialEditType:s})})}const n=o.div`
|
|
2
|
-
.ProseMirror {
|
|
3
|
-
position: relative;
|
|
4
|
-
word-wrap: break-word;
|
|
5
|
-
white-space: break-spaces;
|
|
6
|
-
-webkit-font-variant-ligatures: none;
|
|
7
|
-
font-variant-ligatures: none;
|
|
8
|
-
font-feature-settings: "liga" 0;
|
|
9
|
-
font-size: 15px;
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
overflow-X: hidden;
|
|
12
|
-
height: 100%;
|
|
13
|
-
|
|
14
|
-
&:focus {
|
|
15
|
-
outline: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
pre {
|
|
19
|
-
white-space: pre-wrap;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
li {
|
|
23
|
-
position: relative;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.placeholder {
|
|
27
|
-
color: #999;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ProseMirror-hideselection *::selection {
|
|
32
|
-
background: transparent;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ProseMirror-hideselection *::-moz-selection {
|
|
36
|
-
background: transparent;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.ProseMirror-hideselection {
|
|
40
|
-
caret-color: transparent;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.ProseMirror-selectednode {
|
|
44
|
-
outline: 2px solid #8cf;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/* Make sure li selections wrap around markers */
|
|
48
|
-
|
|
49
|
-
li.ProseMirror-selectednode {
|
|
50
|
-
outline: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
li.ProseMirror-selectednode:after {
|
|
54
|
-
content: "";
|
|
55
|
-
position: absolute;
|
|
56
|
-
left: -32px;
|
|
57
|
-
right: -2px;
|
|
58
|
-
top: -2px;
|
|
59
|
-
bottom: -2px;
|
|
60
|
-
border: 2px solid #8cf;
|
|
61
|
-
pointer-events: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* Protect against generic img rules */
|
|
65
|
-
|
|
66
|
-
img.ProseMirror-separator {
|
|
67
|
-
display: inline !important;
|
|
68
|
-
border: none !important;
|
|
69
|
-
margin: 0 !important;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
.ProseMirror-selectednode {
|
|
74
|
-
outline: none;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
table.ProseMirror-selectednode {
|
|
78
|
-
border-radius: 2px;
|
|
79
|
-
outline: 2px solid #00a9ff;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.html-block.ProseMirror-selectednode {
|
|
83
|
-
border-radius: 2px;
|
|
84
|
-
outline: 2px solid #00a9ff;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.toastui-editor-pseudo-clipboard {
|
|
88
|
-
position: fixed;
|
|
89
|
-
opacity: 0;
|
|
90
|
-
width: 0;
|
|
91
|
-
height: 0;
|
|
92
|
-
left: -1000px;
|
|
93
|
-
top: -1000px;
|
|
94
|
-
z-index: -1;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.toastui-editor-defaultUI {
|
|
98
|
-
font-family: inherit;
|
|
99
|
-
|
|
100
|
-
.ProseMirror {
|
|
101
|
-
height: 100%;
|
|
102
|
-
padding: 14px !important;
|
|
103
|
-
font-size: 1rem;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.toastui-editor-defaultUI-toolbar {
|
|
107
|
-
padding: 0 5px;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.toastui-editor-md-container {
|
|
111
|
-
.toastui-editor-md-preview {
|
|
112
|
-
padding: 5px 10px;
|
|
113
|
-
|
|
114
|
-
.toastui-editor-contents {
|
|
115
|
-
padding-top: 0;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.toastui-editor-contents {
|
|
122
|
-
-ms-text-size-adjust: 100%;
|
|
123
|
-
-webkit-text-size-adjust: 100%;
|
|
124
|
-
line-height: 1.2;
|
|
125
|
-
word-wrap: break-word;
|
|
126
|
-
|
|
127
|
-
& > *:first-child {
|
|
128
|
-
margin-top: 0 !important;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
& > *:last-child {
|
|
132
|
-
margin-bottom: 0 !important;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table, audio, video {
|
|
136
|
-
margin: 1em 0;
|
|
137
|
-
line-height: 1.2;
|
|
138
|
-
padding: 0;
|
|
139
|
-
|
|
140
|
-
&:last-child {
|
|
141
|
-
margin-bottom: 0 !important;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&:first-child {
|
|
145
|
-
margin-top: 0 !important;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
p {
|
|
150
|
-
margin-bottom: 1em;
|
|
151
|
-
line-height: 2;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
h1, h2, h3, h4, h5, h6 {
|
|
155
|
-
font-weight: normal;
|
|
156
|
-
|
|
157
|
-
&.align-right {
|
|
158
|
-
text-align: right;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
&.align-center {
|
|
162
|
-
text-align: center;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
h1 {
|
|
167
|
-
font-size: 2em;
|
|
168
|
-
line-height: 1.2;
|
|
169
|
-
border-bottom: 1px solid #eeeeee;
|
|
170
|
-
padding-bottom: .5em;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
h2 {
|
|
174
|
-
padding-bottom: .4em;
|
|
175
|
-
font-size: 1.3em;
|
|
176
|
-
line-height: 1.2;
|
|
177
|
-
border-bottom: 1px solid #eeeeee
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
h3 {
|
|
181
|
-
font-size: 1.2em;
|
|
182
|
-
line-height: 1.2;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
h4 {
|
|
186
|
-
font-size: 1.1em;
|
|
187
|
-
line-height: 1.2;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
h5 {
|
|
191
|
-
font-size: 1em;
|
|
192
|
-
line-height: 1.2;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
hr {
|
|
196
|
-
border: 0;
|
|
197
|
-
border-bottom: 1px solid #eeeeee;
|
|
198
|
-
margin-bottom: 0.5em;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
ul {
|
|
202
|
-
padding-left: 2em;
|
|
203
|
-
|
|
204
|
-
ul {
|
|
205
|
-
margin: 0;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
ol {
|
|
210
|
-
padding-left: 2em;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
li {
|
|
214
|
-
line-height: 2;
|
|
215
|
-
|
|
216
|
-
&.task-list-item {
|
|
217
|
-
list-style: none;
|
|
218
|
-
position: relative;
|
|
219
|
-
|
|
220
|
-
input[type=checkbox] {
|
|
221
|
-
position: absolute;
|
|
222
|
-
left: -1.5em;
|
|
223
|
-
top: 0.5em;
|
|
224
|
-
width: 1em;
|
|
225
|
-
height: 1em;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
code {
|
|
231
|
-
display: inline-block;
|
|
232
|
-
border-radius: 4px;
|
|
233
|
-
padding: .2em .4em;
|
|
234
|
-
background-color: #f7f7f7;
|
|
235
|
-
word-break: break-all;
|
|
236
|
-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
237
|
-
white-space: pre;
|
|
238
|
-
line-height: 1.3;
|
|
239
|
-
margin: -.2em .4em;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
pre {
|
|
243
|
-
padding: 1.05em;
|
|
244
|
-
overflow: auto;
|
|
245
|
-
line-height: 1.45;
|
|
246
|
-
background-color: #f7f7f7;
|
|
247
|
-
border: 0;
|
|
248
|
-
border-radius: 3px;
|
|
249
|
-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
pre > code {
|
|
254
|
-
display: inline;
|
|
255
|
-
max-width: 100%;
|
|
256
|
-
padding: 0;
|
|
257
|
-
margin: 0;
|
|
258
|
-
overflow: initial;
|
|
259
|
-
line-height: inherit;
|
|
260
|
-
background-color: rgba(0, 0, 0, 0);
|
|
261
|
-
border: 0;
|
|
262
|
-
tab-size: 4;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
table {
|
|
266
|
-
border-collapse: collapse;
|
|
267
|
-
table-layout: fixed;
|
|
268
|
-
width: 100%;
|
|
269
|
-
line-height: 1.8;
|
|
270
|
-
border-spacing: 0;
|
|
271
|
-
|
|
272
|
-
th {
|
|
273
|
-
text-align: left;
|
|
274
|
-
|
|
275
|
-
&[align='center'] {
|
|
276
|
-
text-align: center;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
&[align='right'] {
|
|
280
|
-
text-align: right;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
th, td {
|
|
285
|
-
border: 1px solid #e0e0e0;
|
|
286
|
-
padding: 3px 12px;
|
|
287
|
-
height: 34px;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
tr:hover td {
|
|
291
|
-
background-color: #f1f1f1;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
img {
|
|
296
|
-
max-width: 100%;
|
|
297
|
-
display: inline-block;
|
|
298
|
-
padding: 3px;
|
|
299
|
-
vertical-align: middle;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
a {
|
|
303
|
-
text-decoration: none;
|
|
304
|
-
color: var(--bs-primary);
|
|
305
|
-
|
|
306
|
-
&:hover {
|
|
307
|
-
text-decoration: underline;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
blockquote {
|
|
312
|
-
padding: 5px 5px 5px 15px;
|
|
313
|
-
color: #777777;
|
|
314
|
-
border-left: 4px solid #dddddd;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
video {
|
|
318
|
-
display: block;
|
|
319
|
-
width: 100%;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
audio {
|
|
323
|
-
display: block;
|
|
324
|
-
width: 100%;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.task-list-item {
|
|
328
|
-
border: 0;
|
|
329
|
-
list-style: none;
|
|
330
|
-
padding-left: 24px;
|
|
331
|
-
margin-left: -24px;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.task-list-item::before {
|
|
335
|
-
background-repeat: no-repeat;
|
|
336
|
-
background-size: 18px 18px;
|
|
337
|
-
background-position: center;
|
|
338
|
-
content: '';
|
|
339
|
-
margin-left: 0;
|
|
340
|
-
margin-top: 0;
|
|
341
|
-
border-radius: 2px;
|
|
342
|
-
height: 18px;
|
|
343
|
-
width: 18px;
|
|
344
|
-
position: absolute;
|
|
345
|
-
left: 0;
|
|
346
|
-
top: 7px;
|
|
347
|
-
cursor: pointer;
|
|
348
|
-
background: transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgZmlsbD0iI0ZGRiIgc3Ryb2tlPSIjQ0NDIj4KICAgICAgICAgICAgPGc+CiAgICAgICAgICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTAzMCAtMjk2KSB0cmFuc2xhdGUoNzg4IDE5MikgdHJhbnNsYXRlKDI0MiAxMDQpIj4KICAgICAgICAgICAgICAgICAgICA8cmVjdCB3aWR0aD0iMTciIGhlaWdodD0iMTciIHg9Ii41IiB5PSIuNSIgcng9IjIiLz4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+Cg==);
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.task-list-item.checked::before {
|
|
352
|
-
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgZmlsbD0iIzRCOTZFNiI+CiAgICAgICAgICAgIDxnPgogICAgICAgICAgICAgICAgPGc+CiAgICAgICAgICAgICAgICAgICAgPHBhdGggZD0iTTE2IDBjMS4xMDUgMCAyIC44OTUgMiAydjE0YzAgMS4xMDUtLjg5NSAyLTIgMkgyYy0xLjEwNSAwLTItLjg5NS0yLTJWMkMwIC44OTUuODk1IDAgMiAwaDE0em0tMS43OTMgNS4yOTNjLS4zOS0uMzktMS4wMjQtLjM5LTEuNDE0IDBMNy41IDEwLjU4NSA1LjIwNyA4LjI5M2wtLjA5NC0uMDgzYy0uMzkyLS4zMDUtLjk2LS4yNzgtMS4zMi4wODMtLjM5LjM5LS4zOSAxLjAyNCAwIDEuNDE0bDMgMyAuMDk0LjA4M2MuMzkyLjMwNS45Ni4yNzggMS4zMi0uMDgzbDYtNiAuMDgzLS4wOTRjLjMwNS0uMzkyLjI3OC0uOTYtLjA4My0xLjMyeiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEwNTAgLTI5NikgdHJhbnNsYXRlKDc4OCAxOTIpIHRyYW5zbGF0ZSgyNjIgMTA0KSIvPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
`;export{r as default};
|
package/es/image-TAFDJRLj.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t,Fragment as r}from"react/jsx-runtime";import{memo as e,useContext as i,useState as o,useEffect as s}from"react";import{I as a}from"./index-rwu3sC2k.js";import{useInView as m}from"react-intersection-observer";import"sweetalert2/dist/sweetalert2.js";import"sweetalert2-react-content";import"react-bootstrap";import"lodash";import"axios";import"query-string";import"retry-axios";import"notistack";import"path";import"react-async-hook";import"styled-components";import"dayjs";import"dayjs/locale/zh-cn";import"dayjs/plugin/relativeTime";import"classnames";import"use-url-search-params";import"copy-to-clipboard";import"immer";var n=e((e=>{let{lazy:n=!0,...c}=e;const{registerImage:p,setShow:l,setCurrent:h,getId:d}=i(a),[g,w]=o(),[u,f]=o(!1),{ref:y,inView:v}=m({threshold:.2,skip:!n,initialInView:!0}),[x]=o(d);if(s((()=>{if(c.src)return p(x,c.src)}),[]),u)return t(r,{children:c.alt?`[图片加载失败:${c.alt}]`:" "});const j=!v&&n&&g?"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3e %3crect width='1' height='1' fill='none'/%3e%3c/svg%3e":c.src;return t("img",{width:g?.[0],height:g?.[1],onLoad:t=>{g||w([t.currentTarget.clientWidth,t.currentTarget.clientHeight])},onError:()=>{f(!0)},ref:y,...c,alt:void 0,src:j,onClick:()=>{h(x),l(!0)}})}));export{n as default};
|