@spteck/react-controls-v2 2.5.17 → 2.6.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/dist/assets/fluentEmojis.json.d.ts +55521 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +4 -0
- package/dist/components/EmojiPicker/IEmojiPickerProps.d.ts +64 -0
- package/dist/components/EmojiPicker/SkinToneSelector.d.ts +8 -0
- package/dist/components/EmojiPicker/emojiData.d.ts +17 -0
- package/dist/components/EmojiPicker/index.d.ts +4 -0
- package/dist/components/EmojiPicker/useEmojiPickerStyles.d.ts +18 -0
- package/dist/components/RichTextEditor/IRichTextEditorProps.d.ts +61 -3
- package/dist/components/RichTextEditor/Icons.d.ts +15 -0
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +59 -0
- package/dist/components/RichTextEditor/RichTextEditorBgColorPickerControl.d.ts +4 -0
- package/dist/components/RichTextEditor/RichTextEditorContext.d.ts +10 -0
- package/dist/components/RichTextEditor/RichTextEditorDragHandle.d.ts +15 -0
- package/dist/components/RichTextEditor/RichTextEditorEmojiPickerControl.d.ts +4 -0
- package/dist/components/RichTextEditor/RichTextEditorImageUploadControl.d.ts +19 -0
- package/dist/components/RichTextEditor/RichTextEditorResizableImage.d.ts +22 -0
- package/dist/components/RichTextEditor/RichTextEditorResizableImageView.d.ts +16 -0
- package/dist/components/RichTextEditor/RichTextEditorTableControls.d.ts +26 -0
- package/dist/components/RichTextEditor/controls.d.ts +84 -31
- package/dist/components/RichTextEditor/extensions.d.ts +17 -4
- package/dist/components/RichTextEditor/index.d.ts +12 -2
- package/dist/components/RichTextEditor/renderContentAsEmailHtml.d.ts +26 -0
- package/dist/components/RichTextEditor/useRichTextEditor.d.ts +36 -0
- package/dist/components/RichTextEditor/useRichTextEditorStyles.d.ts +3 -1
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/useAppToast.d.ts +47 -0
- package/dist/hooks/useFluentEmoji.d.ts +12 -0
- package/dist/hooks/useTimeZoneHelper.d.ts +13 -4
- package/dist/index.cjs +109 -84
- package/dist/index.d.ts +2 -1
- package/dist/index.js +54626 -4563
- package/dist/models/IToastContent.d.ts +19 -0
- package/dist/models/IToastOptions.d.ts +14 -0
- package/package.json +6 -3
- package/dist/hooks/useTimeZone.d.ts +0 -12
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IToastContent {
|
|
3
|
+
title: string | React.ReactNode;
|
|
4
|
+
body?: string | React.ReactNode;
|
|
5
|
+
subtitle?: string | React.ReactNode;
|
|
6
|
+
actions?: Array<{
|
|
7
|
+
label: string | React.ReactNode;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
appearance?: "primary" | "secondary" | "outline" | "subtle" | "transparent";
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
media?: React.ReactNode;
|
|
13
|
+
avatar?: React.ReactNode;
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
onStatusChange?: (e: Event, data: {
|
|
16
|
+
status: "queued" | "visible" | "dismissed";
|
|
17
|
+
}) => void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=IToastContent.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IToastOptions {
|
|
2
|
+
intent?: "success" | "error" | "warning" | "info";
|
|
3
|
+
appearance?: "inverted";
|
|
4
|
+
timeout?: number;
|
|
5
|
+
pauseOnHover?: boolean;
|
|
6
|
+
pauseOnWindowBlur?: boolean;
|
|
7
|
+
position?: "top-start" | "top" | "top-end" | "bottom-start" | "bottom" | "bottom-end";
|
|
8
|
+
priority?: number;
|
|
9
|
+
politeness?: "polite" | "assertive";
|
|
10
|
+
announce?: boolean;
|
|
11
|
+
imperativeRef?: React.Ref<HTMLElement>;
|
|
12
|
+
rootId?: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=IToastOptions.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spteck/react-controls-v2",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Framework-agnostic React controls for Vite, Next.js, and SPFx - based on Fluent UI 9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "João Mendes",
|
|
@@ -61,12 +61,15 @@
|
|
|
61
61
|
"@tiptap/core": "^3.22.3",
|
|
62
62
|
"@tiptap/extension-code-block-lowlight": "^3.22.3",
|
|
63
63
|
"@tiptap/extension-color": "^3.22.3",
|
|
64
|
+
"@tiptap/extension-drag-handle-react": "^3.22.4",
|
|
64
65
|
"@tiptap/extension-font-family": "^3.22.3",
|
|
65
66
|
"@tiptap/extension-highlight": "^3.22.3",
|
|
67
|
+
"@tiptap/extension-image": "^3.22.4",
|
|
66
68
|
"@tiptap/extension-link": "^3.22.3",
|
|
67
69
|
"@tiptap/extension-placeholder": "^3.22.3",
|
|
68
70
|
"@tiptap/extension-subscript": "^3.22.3",
|
|
69
71
|
"@tiptap/extension-superscript": "^3.22.3",
|
|
72
|
+
"@tiptap/extension-table": "^3.22.4",
|
|
70
73
|
"@tiptap/extension-task-item": "^3.22.3",
|
|
71
74
|
"@tiptap/extension-task-list": "^3.22.3",
|
|
72
75
|
"@tiptap/extension-text-align": "^3.22.3",
|
|
@@ -78,8 +81,8 @@
|
|
|
78
81
|
"adaptive-expressions": "^4.11.0",
|
|
79
82
|
"adaptivecards": "^2.11.0",
|
|
80
83
|
"adaptivecards-templating": "^2.3.1",
|
|
81
|
-
"date-fns": "
|
|
82
|
-
"date-fns-tz": "
|
|
84
|
+
"date-fns": "4.1.0",
|
|
85
|
+
"date-fns-tz": "3.2.0",
|
|
83
86
|
"dompurify": "^3.3.3",
|
|
84
87
|
"embla-carousel-react": "^8.5.1",
|
|
85
88
|
"jotai": "^2.10.2",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for timezone helper functions
|
|
3
|
-
* Uses timezone information from the application context
|
|
4
|
-
*/
|
|
5
|
-
export declare const useTimeZoneHelper: () => {
|
|
6
|
-
timeZone: string;
|
|
7
|
-
convertToUserTimeZone: (date: Date, targetTimeZone?: string) => Date;
|
|
8
|
-
convertFromUserTimeZone: (date: Date, sourceTimeZone?: string) => Date;
|
|
9
|
-
formatInTimeZone: (date: Date, formatStr: string, targetTimeZone?: string) => string;
|
|
10
|
-
getUserTimeZone: () => string;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=useTimeZone.d.ts.map
|