galadrim-feedback 1.0.13 → 1.0.15
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 +1 -1
- package/bin/cli.js +73 -29
- package/declaration.d.ts +5 -0
- package/dist/index.cjs +239 -95
- package/dist/index.mjs +240 -96
- package/dist/styles.css +20 -24
- package/dist/types/src/components/atoms/buttons/OpenFeedbackButton.d.ts +1 -2
- package/dist/types/src/components/atoms/tooltip/Tooltip.d.ts +5 -0
- package/dist/types/src/components/boundary/StyleBoundary.d.ts +6 -0
- package/dist/types/src/components/molecules/forms/ResetPasswordForm.d.ts +2 -2
- package/dist/types/src/components/molecules/forms/SignInForm.d.ts +3 -3
- package/dist/types/src/components/molecules/modals/Modal.d.ts +1 -1
- package/dist/types/src/components/organisms/SideBar.d.ts +1 -1
- package/dist/types/src/styles/GlobalStyles.d.ts +1 -0
- package/package.json +4 -3
- package/src/components/atoms/buttons/Button.tsx +3 -3
- package/src/components/atoms/buttons/CloseButton.tsx +2 -2
- package/src/components/atoms/buttons/OpenFeedbackButton.tsx +4 -7
- package/src/components/atoms/tooltip/Tooltip.tsx +64 -0
- package/src/components/boundary/StyleBoundary.tsx +34 -13
- package/src/components/molecules/feedbacks/item/FeedbackPin.tsx +2 -2
- package/src/components/molecules/feedbacks/menu/FastAccessButtons.tsx +36 -8
- package/src/components/molecules/feedbacks/menu/MenuItem.tsx +2 -1
- package/src/components/molecules/feedbacks/shared/FeedbackPositioner.tsx +5 -6
- package/src/components/molecules/feedbacks/shared/FeedbackTextArea.tsx +2 -1
- package/src/components/molecules/forms/ResetPasswordForm.tsx +3 -3
- package/src/components/molecules/forms/SignInForm.tsx +8 -6
- package/src/components/molecules/kanban/CreateCardModal.tsx +13 -1
- package/src/components/molecules/modals/Modal.tsx +2 -3
- package/src/components/organisms/Collaborators.tsx +2 -1
- package/src/components/organisms/Settings.tsx +2 -1
- package/src/components/organisms/SideBar.tsx +2 -3
- package/src/contexts/feedback/FeedbackProvider.tsx +1 -22
- package/src/index.css +20 -24
- package/src/index.tsx +5 -5
- package/src/styles/GlobalStyles.ts +0 -25
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ Galadrim Feedback requires a plugin to add file path data to your components.
|
|
|
110
110
|
1. Install the necessary packages:
|
|
111
111
|
|
|
112
112
|
```bash
|
|
113
|
-
yarn add -D swc-plugin-react-generate-paths
|
|
113
|
+
yarn add -D swc-plugin-react-generate-paths
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
2. Configure your build tool:
|
package/bin/cli.js
CHANGED
|
@@ -14,38 +14,82 @@ const NOTION_DATABASE_ID = process.argv
|
|
|
14
14
|
|
|
15
15
|
const CURSOR_PROMPT = `Install and configure Galadrim Feedback in this React project:
|
|
16
16
|
|
|
17
|
+
1. Install dependencies:
|
|
17
18
|
yarn add axios galadrim-feedback
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
20
|
+
2. Configure Path Generation Plugin:
|
|
21
|
+
Galadrim Feedback requires a plugin to add file path data to your components. We recommend using the SWC plugin for performance, but a Babel plugin is also available for older projects.
|
|
22
|
+
|
|
23
|
+
#### SWC Configuration (Recommended)
|
|
24
|
+
1. Install the necessary packages:
|
|
25
|
+
\`yarn add -D swc-plugin-react-generate-paths\`
|
|
26
|
+
|
|
27
|
+
2. Configure your build tool:
|
|
28
|
+
**For Vite:**
|
|
29
|
+
Install \`@vitejs/plugin-react-swc\` and update your \`vite.config.ts\`:
|
|
30
|
+
\`\`\`typescript
|
|
31
|
+
// vite.config.ts
|
|
32
|
+
import { defineConfig } from "vite";
|
|
33
|
+
import react from "@vitejs/plugin-react-swc";
|
|
34
|
+
|
|
35
|
+
export default defineConfig({
|
|
36
|
+
plugins: [
|
|
37
|
+
react({
|
|
38
|
+
plugins: [["swc-plugin-react-generate-paths", {}]],
|
|
39
|
+
}),
|
|
40
|
+
],
|
|
41
|
+
});
|
|
42
|
+
\`\`\`
|
|
43
|
+
|
|
44
|
+
**For Next.js (Turbopack):**
|
|
45
|
+
Update your \`next.config.js\`:
|
|
46
|
+
\`\`\`javascript
|
|
47
|
+
// next.config.js
|
|
48
|
+
module.exports = {
|
|
49
|
+
experimental: {
|
|
50
|
+
swcPlugins: [
|
|
51
|
+
[
|
|
52
|
+
"swc-plugin-react-generate-paths",
|
|
53
|
+
{
|
|
54
|
+
displayName: true,
|
|
55
|
+
ssr: true,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
],
|
|
37
59
|
},
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
60
|
+
};
|
|
61
|
+
\`\`\`
|
|
62
|
+
|
|
63
|
+
#### Babel Configuration
|
|
64
|
+
If your project uses Babel, you can use the Babel plugin instead.
|
|
65
|
+
|
|
66
|
+
1. Install the plugin:
|
|
67
|
+
\`yarn add -D babel-plugin-react-generate-paths\`
|
|
68
|
+
|
|
69
|
+
2. Configure your build tool:
|
|
70
|
+
**For Vite:**
|
|
71
|
+
\`\`\`typescript
|
|
72
|
+
// vite.config.ts
|
|
73
|
+
import { defineConfig } from "vite";
|
|
74
|
+
import react from "@vitejs/plugin-react";
|
|
75
|
+
|
|
76
|
+
export default defineConfig({
|
|
77
|
+
plugins: [
|
|
78
|
+
react({
|
|
79
|
+
babel: {
|
|
80
|
+
plugins: [["babel-plugin-react-generate-paths"]],
|
|
81
|
+
},
|
|
82
|
+
}),
|
|
83
|
+
],
|
|
84
|
+
});
|
|
85
|
+
\`\`\`
|
|
86
|
+
|
|
87
|
+
**For other Babel setups (e.g. \`.babelrc\`):**
|
|
88
|
+
\`\`\`json
|
|
89
|
+
{
|
|
90
|
+
"plugins": ["babel-plugin-react-generate-paths"]
|
|
91
|
+
}
|
|
92
|
+
\`\`\`
|
|
49
93
|
|
|
50
94
|
|
|
51
95
|
3. Configure FeedbackRoot component:
|