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.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/bin/cli.js +73 -29
  3. package/declaration.d.ts +5 -0
  4. package/dist/index.cjs +239 -95
  5. package/dist/index.mjs +240 -96
  6. package/dist/styles.css +20 -24
  7. package/dist/types/src/components/atoms/buttons/OpenFeedbackButton.d.ts +1 -2
  8. package/dist/types/src/components/atoms/tooltip/Tooltip.d.ts +5 -0
  9. package/dist/types/src/components/boundary/StyleBoundary.d.ts +6 -0
  10. package/dist/types/src/components/molecules/forms/ResetPasswordForm.d.ts +2 -2
  11. package/dist/types/src/components/molecules/forms/SignInForm.d.ts +3 -3
  12. package/dist/types/src/components/molecules/modals/Modal.d.ts +1 -1
  13. package/dist/types/src/components/organisms/SideBar.d.ts +1 -1
  14. package/dist/types/src/styles/GlobalStyles.d.ts +1 -0
  15. package/package.json +4 -3
  16. package/src/components/atoms/buttons/Button.tsx +3 -3
  17. package/src/components/atoms/buttons/CloseButton.tsx +2 -2
  18. package/src/components/atoms/buttons/OpenFeedbackButton.tsx +4 -7
  19. package/src/components/atoms/tooltip/Tooltip.tsx +64 -0
  20. package/src/components/boundary/StyleBoundary.tsx +34 -13
  21. package/src/components/molecules/feedbacks/item/FeedbackPin.tsx +2 -2
  22. package/src/components/molecules/feedbacks/menu/FastAccessButtons.tsx +36 -8
  23. package/src/components/molecules/feedbacks/menu/MenuItem.tsx +2 -1
  24. package/src/components/molecules/feedbacks/shared/FeedbackPositioner.tsx +5 -6
  25. package/src/components/molecules/feedbacks/shared/FeedbackTextArea.tsx +2 -1
  26. package/src/components/molecules/forms/ResetPasswordForm.tsx +3 -3
  27. package/src/components/molecules/forms/SignInForm.tsx +8 -6
  28. package/src/components/molecules/kanban/CreateCardModal.tsx +13 -1
  29. package/src/components/molecules/modals/Modal.tsx +2 -3
  30. package/src/components/organisms/Collaborators.tsx +2 -1
  31. package/src/components/organisms/Settings.tsx +2 -1
  32. package/src/components/organisms/SideBar.tsx +2 -3
  33. package/src/contexts/feedback/FeedbackProvider.tsx +1 -22
  34. package/src/index.css +20 -24
  35. package/src/index.tsx +5 -5
  36. 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 @swc/core
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
- ### Babel Plugin Configuration
21
-
22
- Add the **babel-plugin-react-generate-paths** plugin to your Babel configuration.
23
-
24
- #### Option 1: In vite.config.ts
25
-
26
- If you're using Vite, add the plugin in the vite.config.ts file as follows:
27
-
28
- import { defineConfig } from "vite";
29
- import react from "@vitejs/plugin-react";
30
-
31
- // https://vitejs.dev/config/
32
- export default defineConfig({
33
- plugins: [
34
- react({
35
- babel: {
36
- plugins: [["babel-plugin-react-generate-paths"]],
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
- #### Option 2: In .babelrc
43
-
44
- If you're using a .babelrc file, add the plugin to the plugins section:
45
-
46
- {
47
- "plugins": ["babel-plugin-react-generate-paths"]
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:
package/declaration.d.ts CHANGED
@@ -2,3 +2,8 @@ declare module "*.svg" {
2
2
  const content: string;
3
3
  export default content;
4
4
  }
5
+
6
+ declare module "*.css" {
7
+ const classes: { [key: string]: string };
8
+ export default classes;
9
+ }