@arkitektbedriftene/fe-lib 2.5.3 → 3.0.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/icons/icons.d.ts +1 -2
- package/dist/oidc/impersonate.d.ts +1 -1
- package/dist/oidc/oidc.d.ts +1 -1
- package/dist/rich-text/Editor.d.ts +1 -1
- package/dist/rich-text/Plugins/AlignPlugin.d.ts +1 -2
- package/dist/rich-text/Plugins/Image/ImageComponent.d.ts +2 -2
- package/dist/rich-text/Plugins/Image/ImageNode.d.ts +3 -3
- package/dist/rich-text/Plugins/Image/ImagePlugin.d.ts +2 -2
- package/dist/rich-text/Plugins/LinkEditPlugin.d.ts +1 -2
- package/dist/rich-text/Plugins/LinkInsertPlugin.d.ts +1 -2
- package/dist/rich-text/Plugins/Plugins.d.ts +1 -2
- package/dist/rich-text/Plugins/RutineLinkNode.d.ts +6 -2
- package/dist/rich-text/Plugins/TableEditPlugin.d.ts +1 -2
- package/dist/rich-text/Toolbar/BlockTypeSelector.d.ts +1 -2
- package/dist/rich-text/Toolbar/InsertSelector.d.ts +1 -2
- package/dist/rich-text/Toolbar/TextFormatToggleGroup.d.ts +1 -2
- package/dist/rich-text/Toolbar/Toolbar.d.ts +2 -2
- package/dist/rich-text/rich-text.d.ts +1 -0
- package/dist/rich-text.es.js +282 -282
- package/dist/ui/components/Avatar.d.ts +2 -4
- package/dist/ui/components/Dialog.d.ts +1 -1
- package/dist/ui/components/Form/Checkbox.d.ts +1 -1
- package/dist/ui/components/Form/Combobox.d.ts +1 -2
- package/dist/ui/components/Form/ReactSelect.d.ts +2 -97
- package/dist/ui/components/Form/Select.d.ts +1 -2
- package/dist/ui/components/Form/Switch.d.ts +4 -8
- package/dist/ui/components/Menu/DropdownMenu.d.ts +3 -3
- package/dist/ui/components/NavBar.d.ts +4 -6
- package/dist/ui/components/Popover.d.ts +4 -6
- package/dist/ui/components/Spinner.d.ts +1 -3
- package/dist/ui/components/Stack.d.ts +1 -1
- package/dist/ui/components/Toolbar.d.ts +2 -4
- package/dist/ui/components/Tooltip.d.ts +1 -2
- package/dist/ui/stitches.config.d.ts +1 -1
- package/package.json +13 -13
package/dist/icons/icons.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export type ImpersonationContextType = {
|
|
|
16
16
|
export declare const useImpersonationContext: () => ImpersonationContextType;
|
|
17
17
|
export declare const ImpersonationContextProvider: ({ children, }: {
|
|
18
18
|
children: ReactNode;
|
|
19
|
-
}) => JSX.Element;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
/**
|
|
21
21
|
* This hook is used to pick up the impersonation access token from the URL.
|
|
22
22
|
* The access token must be provided in the query string as "impersonateAccessToken".
|
package/dist/oidc/oidc.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const createAuthContext: (userManager: UserManager) => {
|
|
|
25
25
|
AuthContext: Context<AuthContextData | null>;
|
|
26
26
|
AuthProvider: ({ children }: {
|
|
27
27
|
children: ReactNode;
|
|
28
|
-
}) => JSX.Element;
|
|
28
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
useAuthContext: () => AuthContextData;
|
|
30
30
|
useAuthState: () => AuthState;
|
|
31
31
|
useSigninCallback: (onDone?: ((user?: User) => void) | undefined) => AuthState;
|
|
@@ -24,4 +24,4 @@ export declare const RichTextEditor: ({ isLoading, children, placeholderText, no
|
|
|
24
24
|
}> | undefined;
|
|
25
25
|
signUrl?: ((url: string) => Promise<string>) | undefined;
|
|
26
26
|
fileUpload?: UploadFn | undefined;
|
|
27
|
-
}) => JSX.Element;
|
|
27
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const AlignToolbarDropdown: () => JSX.Element;
|
|
1
|
+
export declare const AlignToolbarDropdown: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
2
|
export declare function ImageComponent({ src, altText, width, height, nodeKey, }: {
|
|
3
3
|
src: string;
|
|
4
4
|
altText: string;
|
|
5
5
|
width: "inherit" | number;
|
|
6
6
|
height: "inherit" | number;
|
|
7
7
|
nodeKey: string;
|
|
8
|
-
}):
|
|
8
|
+
}): ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { DOMConversionMap, DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from "lexical";
|
|
3
2
|
import { DecoratorNode } from "lexical";
|
|
3
|
+
import type { ReactElement } from "react";
|
|
4
4
|
export interface ImagePayload {
|
|
5
5
|
src: string;
|
|
6
6
|
altText: string;
|
|
@@ -22,7 +22,7 @@ export type SerializedImageNode = Spread<{
|
|
|
22
22
|
height: number;
|
|
23
23
|
};
|
|
24
24
|
}, SerializedLexicalNode>;
|
|
25
|
-
export declare class ImageNode extends DecoratorNode<
|
|
25
|
+
export declare class ImageNode extends DecoratorNode<ReactElement> {
|
|
26
26
|
__src: string;
|
|
27
27
|
__altText: string;
|
|
28
28
|
__width: "inherit" | number;
|
|
@@ -51,7 +51,7 @@ export declare class ImageNode extends DecoratorNode<JSX.Element> {
|
|
|
51
51
|
updateDOM(): false;
|
|
52
52
|
getSrc(): string;
|
|
53
53
|
getAltText(): string;
|
|
54
|
-
decorate():
|
|
54
|
+
decorate(): ReactElement;
|
|
55
55
|
}
|
|
56
56
|
export declare function $createImageNode({ altText, height, src, width, meta, key, }: ImagePayload): ImageNode;
|
|
57
57
|
export declare function $isImageNode(node: LexicalNode | null | undefined): node is ImageNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type LexicalCommand } from "lexical";
|
|
2
|
+
import { type ReactElement } from "react";
|
|
3
3
|
import { type ImagePayload } from "./ImageNode";
|
|
4
4
|
export type InsertImagePayload = Readonly<ImagePayload>;
|
|
5
5
|
export declare const INSERT_IMAGE_COMMAND: LexicalCommand<InsertImagePayload>;
|
|
6
|
-
export declare function ImagePlugin():
|
|
6
|
+
export declare function ImagePlugin(): ReactElement | null;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LinkEditPlugin: () => JSX.Element | null;
|
|
1
|
+
export declare const LinkEditPlugin: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const LinkToolbarButton: ({ getDocs, filePrefix, }: {
|
|
3
2
|
getDocs?: (() => {
|
|
4
3
|
label: string;
|
|
5
4
|
value: string;
|
|
6
5
|
}[]) | undefined;
|
|
7
6
|
filePrefix?: string | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Plugins: () => JSX.Element;
|
|
1
|
+
export declare const Plugins: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,24 +11,28 @@ export declare class RutineLinkNode extends LinkNode {
|
|
|
11
11
|
type: string;
|
|
12
12
|
url: string;
|
|
13
13
|
version: number;
|
|
14
|
-
title?: string | null | undefined;
|
|
15
14
|
children: import("lexical").SerializedLexicalNode[];
|
|
16
15
|
direction: "ltr" | "rtl" | null;
|
|
17
16
|
format: import("lexical").ElementFormatType;
|
|
18
17
|
indent: number;
|
|
18
|
+
textFormat?: number | undefined;
|
|
19
|
+
textStyle?: string | undefined;
|
|
19
20
|
rel?: string | null | undefined;
|
|
20
21
|
target?: string | null | undefined;
|
|
22
|
+
title?: string | null | undefined;
|
|
21
23
|
} | {
|
|
22
24
|
type: string;
|
|
23
25
|
url: string;
|
|
24
26
|
version: number;
|
|
25
|
-
title?: string | null | undefined;
|
|
26
27
|
children: import("lexical").SerializedLexicalNode[];
|
|
27
28
|
direction: "ltr" | "rtl" | null;
|
|
28
29
|
format: import("lexical").ElementFormatType;
|
|
29
30
|
indent: number;
|
|
31
|
+
textFormat?: number | undefined;
|
|
32
|
+
textStyle?: string | undefined;
|
|
30
33
|
rel?: string | null | undefined;
|
|
31
34
|
target?: string | null | undefined;
|
|
35
|
+
title?: string | null | undefined;
|
|
32
36
|
isUnlinked: boolean;
|
|
33
37
|
};
|
|
34
38
|
getURL(): string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const TableEditPlugin: () => JSX.Element | null;
|
|
1
|
+
export declare const TableEditPlugin: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const BlockTypeSelector: () => JSX.Element;
|
|
1
|
+
export declare const BlockTypeSelector: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const InsertSelector: () => JSX.Element;
|
|
1
|
+
export declare const InsertSelector: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const TextFormatToggleGroup: () => JSX.Element;
|
|
1
|
+
export declare const TextFormatToggleGroup: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { Toolbar } from "@ui";
|
|
|
3
3
|
type ToolbarProps = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
};
|
|
6
|
-
export declare const FloatingToolbar: ({ children }: ToolbarProps) => JSX.Element | null;
|
|
6
|
+
export declare const FloatingToolbar: ({ children }: ToolbarProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
7
|
export declare const RichTextToolbar: ({ children, ...props }: {
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
} & Omit<import("@radix-ui/react-toolbar").ToolbarProps & import("react").RefAttributes<HTMLDivElement>, "css"> & import("@stitches/react/types/styled-component").TransformProps<{}, {
|
|
@@ -122,5 +122,5 @@ export declare const RichTextToolbar: ({ children, ...props }: {
|
|
|
122
122
|
overlayCard: number;
|
|
123
123
|
};
|
|
124
124
|
}, import("@stitches/react/types/config").DefaultThemeMap, {}> | undefined;
|
|
125
|
-
}) => JSX.Element;
|
|
125
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
126
126
|
export {};
|