@web-site-utilities/feedback 0.0.1 → 0.0.3
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/common/types/FormConfig.d.ts +1 -0
- package/dist/form/features/InPlaceForm/InPlaceForm.d.ts +1 -2
- package/dist/form/features/PopupForm/PopupForm.d.ts +1 -2
- package/dist/form/hooks/useIsClient.d.ts +1 -0
- package/dist/form/index.d.ts +17 -0
- package/dist/index.cjs.js +18 -18
- package/dist/index.d.ts +35 -0
- package/dist/index.es.js +741 -731
- package/dist/index.iife.js +18 -18
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormConfigTheme, InlineForm } from '@web-site-utilities/common/types/FormConfig';
|
|
3
3
|
import { Nullable } from '@web-site-utilities/common/types/Nullable';
|
|
4
|
-
type InPlaceFormProps = {
|
|
4
|
+
export type InPlaceFormProps = {
|
|
5
5
|
formId: string;
|
|
6
6
|
domainId: string;
|
|
7
7
|
formTheme: FormConfigTheme;
|
|
@@ -28,4 +28,3 @@ export declare const InPlaceForm: (props: InPlaceFormProps) => React.DOMElement<
|
|
|
28
28
|
}, Element>)[];
|
|
29
29
|
}, Element>)[];
|
|
30
30
|
}, Element>;
|
|
31
|
-
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormConfigTheme, PopupForm as PopupFormType } from '@web-site-utilities/common/types/FormConfig';
|
|
3
|
-
type PopupFormProps = {
|
|
3
|
+
export type PopupFormProps = {
|
|
4
4
|
formId: string;
|
|
5
5
|
domainId: string;
|
|
6
6
|
formTheme: FormConfigTheme;
|
|
7
7
|
popupForm: PopupFormType;
|
|
8
8
|
};
|
|
9
9
|
export declare const PopupForm: (props: PopupFormProps) => React.FunctionComponentElement<React.FragmentProps>;
|
|
10
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsClient: () => boolean;
|
package/dist/form/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InitiateFeedbackModuleOptions, InitiateFeedbackModuleOptionsCmp } from './types/InitiateFeedbackModuleOptions';
|
|
3
|
+
import { InPlaceFormProps } from "./features/InPlaceForm/InPlaceForm";
|
|
4
|
+
import { PopupFormProps } from "./features/PopupForm/PopupForm";
|
|
5
|
+
import { Variants } from "@web-site-utilities/common/theme/ThemeProvider";
|
|
3
6
|
export declare const initiateFeedbackModule: (options: InitiateFeedbackModuleOptions) => void;
|
|
4
7
|
export declare const renderFeedbackModule: (options: InitiateFeedbackModuleOptionsCmp) => React.FunctionComponentElement<{
|
|
5
8
|
formId: string;
|
|
@@ -8,3 +11,17 @@ export declare const renderFeedbackModule: (options: InitiateFeedbackModuleOptio
|
|
|
8
11
|
export declare const FeedbackModule: (options: InitiateFeedbackModuleOptionsCmp) => React.FunctionComponentElement<{
|
|
9
12
|
formId: string;
|
|
10
13
|
}> | null;
|
|
14
|
+
export declare const PreviewInPlaceForm: (props: InPlaceFormProps & {
|
|
15
|
+
variant: Variants;
|
|
16
|
+
}) => React.FunctionComponentElement<{
|
|
17
|
+
theme: typeof import("@web-site-utilities/common/theme/ThemeProvider").theme;
|
|
18
|
+
selectedVariant?: Variants;
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const PreviewPopupForm: (props: PopupFormProps & {
|
|
22
|
+
variant: Variants;
|
|
23
|
+
}) => React.FunctionComponentElement<{
|
|
24
|
+
theme: typeof import("@web-site-utilities/common/theme/ThemeProvider").theme;
|
|
25
|
+
selectedVariant?: Variants;
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
}>;
|