galadrim-feedback 0.0.61 → 0.0.63
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/README.md +23 -2
- package/dist/index.cjs +16 -14
- package/dist/index.es +16 -14
- package/dist/styles.css +19 -1023
- package/package.json +4 -4
- package/src/components/atoms/icons/CommentIcon.tsx +1 -1
- package/src/components/atoms/modals/Modal.tsx +1 -1
- package/src/components/molecules/feedbacks/group/FeedbackList.tsx +1 -1
- package/src/components/molecules/feedbacks/item/FeedbackInput.tsx +1 -1
- package/src/components/molecules/feedbacks/item/FeedbackItemSelected.tsx +1 -1
- package/src/components/molecules/feedbacks/item/FeedbackPin.tsx +1 -1
- package/src/components/molecules/feedbacks/shared/FeedbackTextArea.tsx +17 -10
- package/src/components/organisms/SideBar.tsx +1 -1
- package/src/contexts/FeedbackContext.tsx +4 -4
- package/src/index.css +19 -89
package/README.md
CHANGED
|
@@ -7,15 +7,36 @@ yarn add galadrim-feedback axios
|
|
|
7
7
|
|
|
8
8
|
ajouter "babel-plugin-react-generate-paths" comme plugin babel
|
|
9
9
|
|
|
10
|
+
par exemple dans vite.config.ts
|
|
11
|
+
|
|
12
|
+
import { defineConfig } from "vite";
|
|
13
|
+
import react from "@vitejs/plugin-react";
|
|
14
|
+
|
|
15
|
+
export default defineConfig({
|
|
16
|
+
plugins: [
|
|
17
|
+
react({
|
|
18
|
+
babel: {
|
|
19
|
+
plugins: [["babel-plugin-react-generate-paths"]],
|
|
20
|
+
},
|
|
21
|
+
}),
|
|
22
|
+
],
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
ou dans .babelrc
|
|
26
|
+
|
|
27
|
+
{
|
|
28
|
+
"plugins": ["babel-plugin-react-generate-paths"]
|
|
29
|
+
}
|
|
30
|
+
|
|
10
31
|
add the FeedbackRoot to the root of your app (it needs to be inside the router)
|
|
11
32
|
|
|
12
33
|
import FeedbackRoot from "galadrim-feedback";
|
|
13
|
-
import "galadrim-feedback/dist/styles.css";
|
|
34
|
+
import "galadrim-feedback/dist/styles.css"; // don't forget to import the styles
|
|
14
35
|
|
|
15
36
|
add the following props to the FeedbackRoot component :
|
|
16
37
|
<FeedbackRoot
|
|
17
38
|
rootDir="/path/to/your/project"
|
|
18
|
-
projectId="your-project-id"
|
|
39
|
+
projectId="your-project-id" // the id of the project in galadmin
|
|
19
40
|
navigate={(path) => navigate(path)}
|
|
20
41
|
/>
|
|
21
42
|
|