@canonical/react-ds-app-launchpad 0.45.0 → 0.48.0
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/esm/lib/DiffChangeMarker/DiffChangeMarker.js +8 -12
- package/dist/esm/lib/DiffChangeMarker/DiffChangeMarker.js.map +1 -1
- package/dist/esm/lib/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.js +2 -2
- package/dist/esm/lib/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.js.map +1 -1
- package/dist/esm/lib/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.js +3 -3
- package/dist/esm/lib/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.js.map +1 -1
- package/dist/esm/lib/EditableBlock/EditableBlock.js +2 -2
- package/dist/esm/lib/EditableBlock/EditableBlock.js.map +1 -1
- package/dist/esm/lib/FileTree/Provider.js +15 -6
- package/dist/esm/lib/FileTree/Provider.js.map +1 -1
- package/dist/esm/lib/FileTree/common/File/File.js +2 -2
- package/dist/esm/lib/FileTree/common/File/File.js.map +1 -1
- package/dist/esm/lib/FileTree/common/Folder/Folder.js +2 -2
- package/dist/esm/lib/FileTree/common/Folder/Folder.js.map +1 -1
- package/dist/esm/lib/FileTree/common/IndentationBlock/IndentationBlock.js +2 -2
- package/dist/esm/lib/FileTree/common/IndentationBlock/IndentationBlock.js.map +1 -1
- package/dist/esm/lib/FileTree/common/Node/Provider.js +17 -23
- package/dist/esm/lib/FileTree/common/Node/Provider.js.map +1 -1
- package/dist/esm/lib/FileTree/common/SearchBox/SearchBox.js +2 -2
- package/dist/esm/lib/FileTree/common/SearchBox/SearchBox.js.map +1 -1
- package/dist/esm/lib/GitDiffViewer/Provider.js +15 -5
- package/dist/esm/lib/GitDiffViewer/Provider.js.map +1 -1
- package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js +2 -2
- package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js.map +1 -1
- package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js +7 -9
- package/dist/esm/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js.map +1 -1
- package/dist/esm/lib/MarkdownEditor/MarkdownEditor.js +3 -1
- package/dist/esm/lib/MarkdownEditor/MarkdownEditor.js.map +1 -1
- package/dist/esm/lib/MarkdownEditor/common/Toolbar/Toolbar.js +2 -2
- package/dist/esm/lib/MarkdownEditor/common/Toolbar/Toolbar.js.map +1 -1
- package/dist/esm/lib/MarkdownEditor/common/Toolbar/common/Group/Group.js +2 -2
- package/dist/esm/lib/MarkdownEditor/common/Toolbar/common/Group/Group.js.map +1 -1
- package/dist/esm/lib/MarkdownEditor/common/Toolbar/common/Separator/Separator.js +2 -2
- package/dist/esm/lib/MarkdownEditor/common/Toolbar/common/Separator/Separator.js.map +1 -1
- package/dist/esm/lib/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.js +2 -2
- package/dist/esm/lib/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.js.map +1 -1
- package/dist/esm/lib/RelativeTime/RelativeTime.js +2 -2
- package/dist/esm/lib/RelativeTime/RelativeTime.js.map +1 -1
- package/dist/types/lib/DiffChangeMarker/DiffChangeMarker.d.ts +6 -2
- package/dist/types/lib/DiffChangeMarker/DiffChangeMarker.d.ts.map +1 -1
- package/dist/types/lib/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.d.ts +1 -1
- package/dist/types/lib/DiffChangeMarker/common/DetailedChangeMarker/DetailedChangeMarker.d.ts.map +1 -1
- package/dist/types/lib/DiffChangeMarker/common/DetailedChangeMarker/types.d.ts +8 -6
- package/dist/types/lib/DiffChangeMarker/common/DetailedChangeMarker/types.d.ts.map +1 -1
- package/dist/types/lib/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.d.ts +1 -1
- package/dist/types/lib/DiffChangeMarker/common/SimpleChangeMarker/SimpleChangeMarker.d.ts.map +1 -1
- package/dist/types/lib/DiffChangeMarker/common/SimpleChangeMarker/types.d.ts +6 -6
- package/dist/types/lib/DiffChangeMarker/common/SimpleChangeMarker/types.d.ts.map +1 -1
- package/dist/types/lib/DiffChangeMarker/types.d.ts +4 -6
- package/dist/types/lib/DiffChangeMarker/types.d.ts.map +1 -1
- package/dist/types/lib/EditableBlock/EditableBlock.d.ts +1 -1
- package/dist/types/lib/EditableBlock/EditableBlock.d.ts.map +1 -1
- package/dist/types/lib/EditableBlock/types.d.ts +4 -9
- package/dist/types/lib/EditableBlock/types.d.ts.map +1 -1
- package/dist/types/lib/FileTree/Provider.d.ts +1 -1
- package/dist/types/lib/FileTree/Provider.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/File/File.d.ts +1 -1
- package/dist/types/lib/FileTree/common/File/File.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/File/types.d.ts +6 -10
- package/dist/types/lib/FileTree/common/File/types.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/Folder/Folder.d.ts +1 -1
- package/dist/types/lib/FileTree/common/Folder/Folder.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/Folder/types.d.ts +5 -11
- package/dist/types/lib/FileTree/common/Folder/types.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/IndentationBlock/IndentationBlock.d.ts +1 -1
- package/dist/types/lib/FileTree/common/IndentationBlock/IndentationBlock.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/IndentationBlock/types.d.ts +5 -9
- package/dist/types/lib/FileTree/common/IndentationBlock/types.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/Node/Provider.d.ts +3 -1
- package/dist/types/lib/FileTree/common/Node/Provider.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/Node/types.d.ts +5 -10
- package/dist/types/lib/FileTree/common/Node/types.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/SearchBox/SearchBox.d.ts +1 -1
- package/dist/types/lib/FileTree/common/SearchBox/SearchBox.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/SearchBox/types.d.ts +2 -9
- package/dist/types/lib/FileTree/common/SearchBox/types.d.ts.map +1 -1
- package/dist/types/lib/FileTree/common/TreeView/types.d.ts.map +1 -1
- package/dist/types/lib/FileTree/types.d.ts +4 -7
- package/dist/types/lib/FileTree/types.d.ts.map +1 -1
- package/dist/types/lib/GitDiffViewer/Provider.d.ts +8 -2
- package/dist/types/lib/GitDiffViewer/Provider.d.ts.map +1 -1
- package/dist/types/lib/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.d.ts +9 -2
- package/dist/types/lib/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.d.ts.map +1 -1
- package/dist/types/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts +6 -1
- package/dist/types/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts.map +1 -1
- package/dist/types/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.d.ts +3 -9
- package/dist/types/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.d.ts.map +1 -1
- package/dist/types/lib/GitDiffViewer/common/CodeDiffViewer/types.d.ts +4 -7
- package/dist/types/lib/GitDiffViewer/common/CodeDiffViewer/types.d.ts.map +1 -1
- package/dist/types/lib/GitDiffViewer/common/FileHeader/types.d.ts +6 -12
- package/dist/types/lib/GitDiffViewer/common/FileHeader/types.d.ts.map +1 -1
- package/dist/types/lib/GitDiffViewer/types.d.ts +3 -4
- package/dist/types/lib/GitDiffViewer/types.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/MarkdownEditor.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/common/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/common/Toolbar/common/Button/types.d.ts +7 -9
- package/dist/types/lib/MarkdownEditor/common/Toolbar/common/Button/types.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/common/Toolbar/common/Group/Group.d.ts +1 -1
- package/dist/types/lib/MarkdownEditor/common/Toolbar/common/Group/Group.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/common/Toolbar/common/Group/types.d.ts +6 -12
- package/dist/types/lib/MarkdownEditor/common/Toolbar/common/Group/types.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/common/Toolbar/common/Separator/Separator.d.ts +1 -1
- package/dist/types/lib/MarkdownEditor/common/Toolbar/common/Separator/Separator.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/common/Toolbar/common/Separator/types.d.ts +2 -9
- package/dist/types/lib/MarkdownEditor/common/Toolbar/common/Separator/types.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/common/Toolbar/types.d.ts +6 -12
- package/dist/types/lib/MarkdownEditor/common/Toolbar/types.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.d.ts +1 -1
- package/dist/types/lib/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/common/ViewModeTabs/types.d.ts +5 -7
- package/dist/types/lib/MarkdownEditor/common/ViewModeTabs/types.d.ts.map +1 -1
- package/dist/types/lib/MarkdownEditor/types.d.ts +5 -15
- package/dist/types/lib/MarkdownEditor/types.d.ts.map +1 -1
- package/dist/types/lib/RelativeTime/RelativeTime.d.ts +1 -1
- package/dist/types/lib/RelativeTime/RelativeTime.d.ts.map +1 -1
- package/dist/types/lib/RelativeTime/types.d.ts +5 -9
- package/dist/types/lib/RelativeTime/types.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/FileTree/common/SearchBox/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/FileTree/common/SearchBox/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/FileTree/common/TreeView/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/FileTree/common/TreeView/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAKnD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AllOrNone } from "@canonical/ds-utils";
|
|
2
2
|
import type React from "react";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
3
4
|
import type { FileProps, FolderProps, SearchBoxProps, TreeViewProps } from "./common/index.js";
|
|
4
5
|
export type BaseNode = {
|
|
5
6
|
name: string;
|
|
@@ -47,13 +48,7 @@ export type ManagedContextOptions = {
|
|
|
47
48
|
focusNextSiblingCharacter: (character: string) => void;
|
|
48
49
|
};
|
|
49
50
|
export type ContextOptions = UserContextOptions & ManagedContextOptions;
|
|
50
|
-
|
|
51
|
-
/** A unique identifier for the SearchBox */
|
|
52
|
-
id?: string;
|
|
53
|
-
/** Additional CSS classes */
|
|
54
|
-
className?: string;
|
|
55
|
-
/** Inline styles */
|
|
56
|
-
style?: React.CSSProperties;
|
|
51
|
+
type OwnProps = {
|
|
57
52
|
/**
|
|
58
53
|
* Consider using `FileTree.Folder` and `FileTree.File` components to build the file tree.
|
|
59
54
|
*/
|
|
@@ -64,10 +59,12 @@ export type ProviderOptions = {
|
|
|
64
59
|
*/
|
|
65
60
|
header?: React.ReactNode;
|
|
66
61
|
} & UserContextOptions;
|
|
62
|
+
export type ProviderOptions = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
67
63
|
export type FileTreeComponent = ((props: ProviderOptions) => React.ReactElement) & {
|
|
68
64
|
SearchBox: (props: SearchBoxProps) => React.ReactElement | null;
|
|
69
65
|
File: (props: FileProps) => React.ReactElement | null;
|
|
70
66
|
Folder: (props: FolderProps) => React.ReactElement | null;
|
|
71
67
|
TreeView: (props: TreeViewProps) => React.ReactElement | null;
|
|
72
68
|
};
|
|
69
|
+
export {};
|
|
73
70
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/FileTree/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EACV,SAAS,EACT,WAAW,EACX,cAAc,EACd,aAAa,EACd,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG;IAClC,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,UA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MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAExE,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,GAAG,kBAAkB,CAAC;AAEvB,MAAM,MAAM,eAAe,GAAG,QAAQ,GACpC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAC/B,KAAK,EAAE,eAAe,KACnB,KAAK,CAAC,YAAY,CAAC,GAAG;IACzB,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAChE,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IACtD,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAC1D,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CAC/D,CAAC"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import "./styles.css";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const Provider: import("react").ForwardRefExoticComponent<(Omit<{
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
} & import("./types.js").LineDecorationOptions & import("./types.js").DiffOptions & import("./types.js").WrapLinesOption & import("./types.js").CollapseOption & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "diff" | "lineDecorations" | "wrapLines" | keyof import("./types.js").CollapseOption>, "ref"> | Omit<{
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
} & import("./types.js").LineDecorationOptions & import("./types.js").DiffOptions & import("./types.js").WrapLinesOption & {
|
|
7
|
+
isCollapsed?: undefined;
|
|
8
|
+
onCollapseToggle?: undefined;
|
|
9
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "diff" | "lineDecorations" | "wrapLines" | keyof import("./types.js").CollapseOption>, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
10
|
export default Provider;
|
|
5
11
|
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/lib/GitDiffViewer/Provider.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/lib/GitDiffViewer/Provider.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAC;AAKtB,QAAA,MAAM,QAAQ;;;;;;;wQA2Db,CAAC;eAEa,QAAQ"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import "./HighlighTheme.css";
|
|
3
3
|
import "./styles.css";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<{
|
|
5
|
+
AddComment?: import("./types.js").CodeDiffViewerAddComment;
|
|
6
|
+
onLineClick?: (options: import("./types.js").CodeDiffViewerLineSelectOptions) => void;
|
|
7
|
+
disableWidthCalculation?: boolean;
|
|
8
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref" | keyof {
|
|
9
|
+
AddComment?: import("./types.js").CodeDiffViewerAddComment;
|
|
10
|
+
onLineClick?: (options: import("./types.js").CodeDiffViewerLineSelectOptions) => void;
|
|
11
|
+
disableWidthCalculation?: boolean;
|
|
12
|
+
}> & React.RefAttributes<HTMLTableElement>>;
|
|
6
13
|
export default _default;
|
|
7
14
|
//# sourceMappingURL=CodeDiffViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeDiffViewer.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"CodeDiffViewer.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,cAAc,CAAC"}
|
|
@@ -6,6 +6,11 @@ import type { DiffLineProps } from "./types.js";
|
|
|
6
6
|
*
|
|
7
7
|
* @returns {React.ReactElement} - Rendered DiffLine
|
|
8
8
|
*/
|
|
9
|
-
declare const DiffLine: ({
|
|
9
|
+
declare const DiffLine: ({ onLineClick, className, type, content, hunkHeader, hunkIndex, addLineNumber, removeLineNumber, ...props }: DiffLineProps & {
|
|
10
|
+
hunkHeader?: string;
|
|
11
|
+
hunkIndex?: number;
|
|
12
|
+
addLineNumber?: number;
|
|
13
|
+
removeLineNumber?: number;
|
|
14
|
+
}) => React.ReactElement;
|
|
10
15
|
export default DiffLine;
|
|
11
16
|
//# sourceMappingURL=DiffLine.d.ts.map
|
package/dist/types/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiffLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAKhD;;;;GAIG;AACH,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"DiffLine.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAKhD;;;;GAIG;AACH,QAAA,MAAM,QAAQ,gHAUX,aAAa,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,KAAG,KAAK,CAAC,YAsET,CAAC;eAEa,QAAQ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
2
|
export type DiffContentLine = {
|
|
3
3
|
content: string;
|
|
4
4
|
} & ({
|
|
@@ -18,17 +18,11 @@ export type DiffHunkLine = {
|
|
|
18
18
|
hunkIndex: number;
|
|
19
19
|
};
|
|
20
20
|
type DiffLineCommonProps = {
|
|
21
|
-
/** A unique identifier for the DiffLine */
|
|
22
|
-
id?: string;
|
|
23
|
-
/** Additional CSS classes */
|
|
24
|
-
className?: string;
|
|
25
|
-
/** Inline styles */
|
|
26
|
-
style?: React.CSSProperties;
|
|
27
21
|
/** Callback function for when a line is clicked. */
|
|
28
22
|
onLineClick?: (() => void) | undefined;
|
|
29
23
|
};
|
|
30
|
-
export type DiffContentLineProps = DiffLineCommonProps & DiffContentLine
|
|
31
|
-
export type DiffHunkLineProps = DiffLineCommonProps & DiffHunkLine
|
|
24
|
+
export type DiffContentLineProps = DiffLineCommonProps & DiffContentLine & Omit<ComponentProps<"tr">, keyof DiffLineCommonProps | keyof DiffContentLine>;
|
|
25
|
+
export type DiffHunkLineProps = DiffLineCommonProps & DiffHunkLine & Omit<ComponentProps<"tr">, keyof DiffLineCommonProps | keyof DiffHunkLine>;
|
|
32
26
|
export type DiffLineProps = DiffContentLineProps | DiffHunkLineProps;
|
|
33
27
|
export {};
|
|
34
28
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,CACA;IACE,IAAI,EAAE,KAAK,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;CACvB,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CACJ,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,oDAAoD;IACpD,WAAW,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GACpD,eAAe,GACf,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,mBAAmB,GAAG,MAAM,eAAe,CAAC,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GACjD,YAAY,GACZ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,mBAAmB,GAAG,MAAM,YAAY,CAAC,CAAC;AAC7E,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
2
3
|
export type CodeDiffViewerLineSelectOptions = {
|
|
3
4
|
hunkLineNumber: number;
|
|
4
5
|
diffLineNumber: number;
|
|
@@ -6,11 +7,7 @@ export type CodeDiffViewerLineSelectOptions = {
|
|
|
6
7
|
export type CodeDiffViewerAddComment = (props: {
|
|
7
8
|
onClose: () => void;
|
|
8
9
|
} & CodeDiffViewerLineSelectOptions) => React.ReactNode;
|
|
9
|
-
|
|
10
|
-
/** A unique identifier for the CodeDiffViewer */
|
|
11
|
-
id?: string;
|
|
12
|
-
/** Additional CSS classes */
|
|
13
|
-
className?: string;
|
|
10
|
+
type OwnProps = {
|
|
14
11
|
/** Add comment element.
|
|
15
12
|
* If provided, the code viewer will be in interactive mode.
|
|
16
13
|
*/
|
|
@@ -19,8 +16,6 @@ export type CodeDiffViewerProps = {
|
|
|
19
16
|
* If provided, the code viewer will be in interactive mode.
|
|
20
17
|
*/
|
|
21
18
|
onLineClick?: (options: CodeDiffViewerLineSelectOptions) => void;
|
|
22
|
-
/** Inline styles */
|
|
23
|
-
style?: React.CSSProperties;
|
|
24
19
|
/**
|
|
25
20
|
* Disable width calculation for the table (default: false).
|
|
26
21
|
* This is useful when there is multiple instances of this component on the same page.
|
|
@@ -31,4 +26,6 @@ export type CodeDiffViewerProps = {
|
|
|
31
26
|
*/
|
|
32
27
|
disableWidthCalculation?: boolean;
|
|
33
28
|
};
|
|
29
|
+
export type CodeDiffViewerProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps | "ref">;
|
|
30
|
+
export {};
|
|
34
31
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/GitDiffViewer/common/CodeDiffViewer/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/GitDiffViewer/common/CodeDiffViewer/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,+BAA+B,GAAG;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,CACrC,KAAK,EAAE;IACL,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,GAAG,+BAA+B,KAChC,KAAK,CAAC,SAAS,CAAC;AAErB,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,+BAA+B,KAAK,IAAI,CAAC;IAEjE;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAKF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GACxC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC"}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
/** A unique identifier for the FileHeader */
|
|
4
|
-
id?: string;
|
|
5
|
-
/** Additional CSS classes */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Child elements */
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
/** Inline styles */
|
|
10
|
-
style?: React.CSSProperties;
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
11
3
|
/** Shown by default */
|
|
12
4
|
hideCollapse?: boolean;
|
|
13
5
|
showChangeCount?: boolean;
|
|
14
|
-
leftContent?:
|
|
15
|
-
rightContent?:
|
|
6
|
+
leftContent?: ReactNode;
|
|
7
|
+
rightContent?: ReactNode;
|
|
16
8
|
};
|
|
9
|
+
export type FileHeaderProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
10
|
+
export {};
|
|
17
11
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/GitDiffViewer/common/FileHeader/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/GitDiffViewer/common/FileHeader/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,uBAAuB;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,QAAQ,GACpC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AllOrNone } from "@canonical/ds-utils";
|
|
2
2
|
import type React from "react";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
3
4
|
/**
|
|
4
5
|
* When this is provided, the component will add support for collapsing the diff code section.
|
|
5
6
|
*/
|
|
@@ -40,15 +41,13 @@ type ManagedContextOptions = {
|
|
|
40
41
|
toggleAddCommentLocation: (lineNumber: number) => void;
|
|
41
42
|
};
|
|
42
43
|
export type ContextOptions = UserContextOptions & ManagedContextOptions;
|
|
43
|
-
|
|
44
|
-
id?: string;
|
|
45
|
-
className?: string;
|
|
46
|
-
style?: React.CSSProperties;
|
|
44
|
+
type OwnProps = {
|
|
47
45
|
/**
|
|
48
46
|
* Consider using `GitDiffViewer.FileHeader`, and `GitDiffViewer.CodeDiff` components.
|
|
49
47
|
*/
|
|
50
48
|
children?: React.ReactNode;
|
|
51
49
|
} & UserContextOptions;
|
|
50
|
+
export type ProviderOptions = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
52
51
|
export type Position = {
|
|
53
52
|
start: number;
|
|
54
53
|
end: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/GitDiffViewer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/GitDiffViewer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,gBAAgB,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;OAKG;I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Q,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;CAC5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../../../../src/lib/MarkdownEditor/MarkdownEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,0DAA0D,CAAC;AAQlE,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAY,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAOhE;;GAEG;AACH,QAAA,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../../../../src/lib/MarkdownEditor/MarkdownEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,0DAA0D,CAAC;AAQlE,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAY,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAOhE;;GAEG;AACH,QAAA,MAAM,cAAc,8GA6NnB,CAAC;eAEa,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/MarkdownEditor/common/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAQA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD;;GAEG;AACH,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/MarkdownEditor/common/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAQA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAInD;;GAEG;AACH,QAAA,MAAM,OAAO,EAsDP,gBAAgB,CAAC;eAMR,OAAO"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
/** Additional CSS classes */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** Child elements */
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/** Inline styles */
|
|
8
|
-
style?: React.CSSProperties;
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
type OwnProps = {
|
|
9
3
|
/** Toolbar button label */
|
|
10
4
|
label: string;
|
|
11
5
|
/** The shortcut key to trigger the button */
|
|
12
6
|
shortcut?: string;
|
|
13
|
-
|
|
7
|
+
/** Button contents (icon). */
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export type ToolbarButtonProps = OwnProps & Omit<ComponentProps<"button">, keyof OwnProps>;
|
|
11
|
+
export {};
|
|
14
12
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/MarkdownEditor/common/Toolbar/common/Button/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/MarkdownEditor/common/Toolbar/common/Button/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GACvC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -4,6 +4,6 @@ import "./styles.css";
|
|
|
4
4
|
/**
|
|
5
5
|
* A container for grouping related controls within a toolbar.
|
|
6
6
|
*/
|
|
7
|
-
declare const ToolbarGroup: ({
|
|
7
|
+
declare const ToolbarGroup: ({ children, className, label, ...props }: ToolbarGroupProps) => React.ReactElement;
|
|
8
8
|
export default ToolbarGroup;
|
|
9
9
|
//# sourceMappingURL=Group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/MarkdownEditor/common/Toolbar/common/Group/Group.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;AAItB;;GAEG;AACH,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/MarkdownEditor/common/Toolbar/common/Group/Group.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;AAItB;;GAEG;AACH,QAAA,MAAM,YAAY,6CAKf,iBAAiB,KAAG,KAAK,CAAC,YAY5B,CAAC;eAEa,YAAY"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
id?: string;
|
|
5
|
-
/** Additional CSS classes */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Child elements */
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
/** Inline styles */
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
/** Toolbar group label */
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
type OwnProps = {
|
|
3
|
+
/** Toolbar group label (also the group's accessible name). */
|
|
12
4
|
label: string;
|
|
13
|
-
}
|
|
5
|
+
};
|
|
6
|
+
export type ToolbarGroupProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
7
|
+
export {};
|
|
14
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/MarkdownEditor/common/Toolbar/common/Group/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/MarkdownEditor/common/Toolbar/common/Group/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,QAAQ,GAAG;IACd,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GACtC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -4,6 +4,6 @@ import type { ToolbarSeparatorProps } from "./types.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* A visual separator between groups of controls in a toolbar.
|
|
6
6
|
*/
|
|
7
|
-
declare const ToolbarSeparator: ({
|
|
7
|
+
declare const ToolbarSeparator: ({ className, ...props }: ToolbarSeparatorProps) => React.ReactElement;
|
|
8
8
|
export default ToolbarSeparator;
|
|
9
9
|
//# sourceMappingURL=Separator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/MarkdownEditor/common/Toolbar/common/Separator/Separator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAIxD;;GAEG;AACH,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/MarkdownEditor/common/Toolbar/common/Separator/Separator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAIxD;;GAEG;AACH,QAAA,MAAM,gBAAgB,4BAGnB,qBAAqB,KAAG,KAAK,CAAC,YAOhC,CAAC;eAEa,gBAAgB"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export
|
|
3
|
-
/** A unique identifier for the ToolbarSeparator */
|
|
4
|
-
id?: string;
|
|
5
|
-
/** Additional CSS classes */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Inline styles */
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
}
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export type ToolbarSeparatorProps = ComponentProps<"div">;
|
|
10
3
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/MarkdownEditor/common/Toolbar/common/Separator/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/MarkdownEditor/common/Toolbar/common/Separator/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
2
|
import type { ToolbarButtonProps, ToolbarGroupProps, ToolbarSeparatorProps } from "./common/index.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
id?: string;
|
|
6
|
-
/** Additional CSS classes */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Child elements */
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
/** Inline styles */
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
/** Toolbar label */
|
|
3
|
+
type OwnProps = {
|
|
4
|
+
/** Toolbar label (also the toolbar's accessible name). */
|
|
13
5
|
label: string;
|
|
14
|
-
}
|
|
6
|
+
};
|
|
7
|
+
export type ToolbarProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
15
8
|
export type ToolbarComponent = ((props: ToolbarProps) => React.ReactElement) & {
|
|
16
9
|
Button: (props: ToolbarButtonProps) => React.ReactElement | null;
|
|
17
10
|
Group: (props: ToolbarGroupProps) => React.ReactElement | null;
|
|
18
11
|
Separator: (props: ToolbarSeparatorProps) => React.ReactElement | null;
|
|
19
12
|
};
|
|
13
|
+
export {};
|
|
20
14
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/MarkdownEditor/common/Toolbar/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/MarkdownEditor/common/Toolbar/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,QAAQ,GAAG;IACd,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG;IAC7E,MAAM,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IACjE,KAAK,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAC/D,SAAS,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;CACxE,CAAC"}
|
|
@@ -4,6 +4,6 @@ import type { ViewModeTabsProps } from "./types.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* A toggle interface for switching between write and preview modes.
|
|
6
6
|
*/
|
|
7
|
-
declare const ViewModeTabs: ({ className,
|
|
7
|
+
declare const ViewModeTabs: ({ className, editMode, onEditModeChange, ariaLabelMessage, ...props }: ViewModeTabsProps) => React.ReactElement;
|
|
8
8
|
export default ViewModeTabs;
|
|
9
9
|
//# sourceMappingURL=ViewModeTabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewModeTabs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAMpD;;GAEG;AACH,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"ViewModeTabs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAMpD;;GAEG;AACH,QAAA,MAAM,YAAY,0EAMf,iBAAiB,KAAG,KAAK,CAAC,YAkD5B,CAAC;eAEa,YAAY"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
2
|
import type { EditMode } from "../../types.js";
|
|
3
|
-
|
|
4
|
-
/** Additional CSS classes */
|
|
5
|
-
className?: string;
|
|
6
|
-
/** Inline styles */
|
|
7
|
-
style?: React.CSSProperties;
|
|
3
|
+
type OwnProps = {
|
|
8
4
|
/** The current edit mode */
|
|
9
5
|
editMode: EditMode;
|
|
10
6
|
/** Callback for edit mode change */
|
|
11
7
|
onEditModeChange: (mode: EditMode, eventType: "click" | "keydown") => void;
|
|
12
8
|
ariaLabelMessage?: string;
|
|
13
|
-
}
|
|
9
|
+
};
|
|
10
|
+
export type ViewModeTabsProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
|
|
11
|
+
export {};
|
|
14
12
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/MarkdownEditor/common/ViewModeTabs/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/MarkdownEditor/common/ViewModeTabs/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,KAAK,QAAQ,GAAG;IACd,4BAA4B;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,oCAAoC;IACpC,gBAAgB,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,GAAG,SAAS,KAAK,IAAI,CAAC;IAC3E,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GACtC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
2
3
|
export type EditMode = "write" | "preview";
|
|
3
|
-
|
|
4
|
-
ref?: React.Ref<HTMLTextAreaElement>;
|
|
5
|
-
/** A unique identifier for the MarkdownEditor */
|
|
6
|
-
id?: string;
|
|
7
|
-
/** Additional CSS classes */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** Child elements */
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
/** Inline styles */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** Placeholder for the textarea */
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
/** Default value for the textarea (Markdown content) */
|
|
16
|
-
defaultValue?: string;
|
|
4
|
+
type OwnProps = {
|
|
17
5
|
/** Hide the toolbar */
|
|
18
6
|
hideToolbar?: boolean;
|
|
19
7
|
/** Hide the preview pane */
|
|
@@ -43,5 +31,7 @@ export type MarkdownEditorProps = {
|
|
|
43
31
|
ToolbarLinkButtonLabelMessage?: string;
|
|
44
32
|
ToolbarUnorderedListButtonLabelMessage?: string;
|
|
45
33
|
ToolbarOrderedListButtonLabelMessage?: string;
|
|
46
|
-
}
|
|
34
|
+
};
|
|
35
|
+
export type MarkdownEditorProps = OwnProps & Omit<ComponentProps<"textarea">, keyof OwnProps>;
|
|
36
|
+
export {};
|
|
47
37
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/MarkdownEditor/types.ts"],"names":[],"mappings":"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AChD,oCAAoC,CAAC,EAAE,MAAM,CAAC;CAC/C,CAAC;AAOF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GACxC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|
|
@@ -6,6 +6,6 @@ import type { RelativeTimeProps } from "./types.js";
|
|
|
6
6
|
* It features automatic live updates with interval optimization based on time distance, configurable "now" threshold,
|
|
7
7
|
* and renders as proper semantic HTML using the <time> element. The component leverages the Temporal API for calculations and Intl.RelativeTimeFormat for localization.
|
|
8
8
|
*/
|
|
9
|
-
declare const RelativeTime: ({
|
|
9
|
+
declare const RelativeTime: ({ time, relativeTimeFormat, nowThreshold, disableLiveUpdate, nowKeyword, invalidDateKeyword, className, ...props }: RelativeTimeProps) => React.ReactElement;
|
|
10
10
|
export default RelativeTime;
|
|
11
11
|
//# sourceMappingURL=RelativeTime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../../../src/lib/RelativeTime/RelativeTime.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AASpD;;;;;GAKG;AACH,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../../../src/lib/RelativeTime/RelativeTime.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AASpD;;;;;GAKG;AACH,QAAA,MAAM,YAAY,uHASf,iBAAiB,KAAG,KAAK,CAAC,YAyE5B,CAAC;eAEa,YAAY"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import type { Temporal } from "@js-temporal/polyfill";
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
/** A unique identifier for the RelativeTime */
|
|
5
|
-
id?: string;
|
|
6
|
-
/** Additional CSS classes */
|
|
7
|
-
className?: string;
|
|
8
|
-
/** Inline styles */
|
|
9
|
-
style?: React.CSSProperties;
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
type OwnProps = {
|
|
10
4
|
/**
|
|
11
5
|
* The time to be displayed as a relative time (ISO string or Date object).
|
|
12
6
|
*/
|
|
@@ -32,5 +26,7 @@ export interface RelativeTimeProps {
|
|
|
32
26
|
* The keyword to use when the given time is not a valid. (default: "invalid date")
|
|
33
27
|
*/
|
|
34
28
|
invalidDateKeyword?: string;
|
|
35
|
-
}
|
|
29
|
+
};
|
|
30
|
+
export type RelativeTimeProps = OwnProps & Omit<ComponentProps<"time">, keyof OwnProps>;
|
|
31
|
+
export {};
|
|
36
32
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/RelativeTime/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/RelativeTime/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC;IAEvC;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC;IAE7C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GACtC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
|