@classic-homes/feedback-react 0.0.0-stage → 0.1.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/index.cjs +797 -0
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +809 -0
- package/package.json +67 -4
- package/README.md +0 -3
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { FeedbackConfig, openFeedback, closeFeedback } from '@classic-homes/feedback-core';
|
|
3
|
+
export { DEFAULT_CATEGORIES, FeedbackCategoryOption, FeedbackConfig, FeedbackError, FeedbackErrorCode, FeedbackPageContext, FeedbackPayload, FeedbackState, OpenFeedbackOptions, SelectionData, SubmitResult, closeFeedback, isFeedbackError, openFeedback, submitFeedback } from '@classic-homes/feedback-core';
|
|
4
|
+
|
|
5
|
+
type FeedbackWidgetProps = FeedbackConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Feedback edge tab, selection "Comment" button and dialog. Renders nothing
|
|
8
|
+
* on the server; everything mounts into document.body after hydration.
|
|
9
|
+
*/
|
|
10
|
+
declare function FeedbackWidget(props: FeedbackWidgetProps): react.ReactPortal | null;
|
|
11
|
+
|
|
12
|
+
/** Open/close the feedback dialog from anywhere and read whether it is open. */
|
|
13
|
+
declare function useFeedback(): {
|
|
14
|
+
open: typeof openFeedback;
|
|
15
|
+
close: typeof closeFeedback;
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { FeedbackWidget, type FeedbackWidgetProps, useFeedback };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { FeedbackConfig, openFeedback, closeFeedback } from '@classic-homes/feedback-core';
|
|
3
|
+
export { DEFAULT_CATEGORIES, FeedbackCategoryOption, FeedbackConfig, FeedbackError, FeedbackErrorCode, FeedbackPageContext, FeedbackPayload, FeedbackState, OpenFeedbackOptions, SelectionData, SubmitResult, closeFeedback, isFeedbackError, openFeedback, submitFeedback } from '@classic-homes/feedback-core';
|
|
4
|
+
|
|
5
|
+
type FeedbackWidgetProps = FeedbackConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Feedback edge tab, selection "Comment" button and dialog. Renders nothing
|
|
8
|
+
* on the server; everything mounts into document.body after hydration.
|
|
9
|
+
*/
|
|
10
|
+
declare function FeedbackWidget(props: FeedbackWidgetProps): react.ReactPortal | null;
|
|
11
|
+
|
|
12
|
+
/** Open/close the feedback dialog from anywhere and read whether it is open. */
|
|
13
|
+
declare function useFeedback(): {
|
|
14
|
+
open: typeof openFeedback;
|
|
15
|
+
close: typeof closeFeedback;
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { FeedbackWidget, type FeedbackWidgetProps, useFeedback };
|