galadrim-feedback 0.0.46 → 0.0.48

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/styles.css CHANGED
@@ -985,6 +985,7 @@ textarea {
985
985
  border-radius: 8px;
986
986
  outline: none;
987
987
  color: #fff;
988
+ background-color: transparent;
988
989
  }
989
990
 
990
991
  .comment-input-filled {
package/package.json CHANGED
@@ -1,11 +1,19 @@
1
1
  {
2
2
  "name": "galadrim-feedback",
3
3
  "private": false,
4
- "version": "0.0.46",
4
+ "version": "0.0.48",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.es.js",
8
8
  "types": "dist/index.d.ts",
9
+ "files": [
10
+ "src",
11
+ "dist",
12
+ "package.json",
13
+ "*.d.ts",
14
+ "libs",
15
+ "README.md"
16
+ ],
9
17
  "scripts": {
10
18
  "prepublishOnly": "node scripts/updateApiUrl.cjs && npm run build",
11
19
  "build": "rollup -c",
package/src/index.css CHANGED
@@ -99,6 +99,7 @@ textarea {
99
99
  border-radius: 8px;
100
100
  outline: none;
101
101
  color: #fff;
102
+ background-color: transparent;
102
103
  }
103
104
 
104
105
  .comment-input-filled {
package/eslint.config.js DELETED
@@ -1,28 +0,0 @@
1
- import js from '@eslint/js'
2
- import globals from 'globals'
3
- import reactHooks from 'eslint-plugin-react-hooks'
4
- import reactRefresh from 'eslint-plugin-react-refresh'
5
- import tseslint from 'typescript-eslint'
6
-
7
- export default tseslint.config(
8
- { ignores: ['dist'] },
9
- {
10
- extends: [js.configs.recommended, ...tseslint.configs.recommended],
11
- files: ['**/*.{ts,tsx}'],
12
- languageOptions: {
13
- ecmaVersion: 2020,
14
- globals: globals.browser,
15
- },
16
- plugins: {
17
- 'react-hooks': reactHooks,
18
- 'react-refresh': reactRefresh,
19
- },
20
- rules: {
21
- ...reactHooks.configs.recommended.rules,
22
- 'react-refresh/only-export-components': [
23
- 'warn',
24
- { allowConstantExport: true },
25
- ],
26
- },
27
- },
28
- )
package/openapitools.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3
- "spaces": 2,
4
- "generator-cli": {
5
- "version": "7.11.0"
6
- }
7
- }
package/rollup.config.js DELETED
@@ -1,65 +0,0 @@
1
- // rollup.config.js
2
- import commonjs from "@rollup/plugin-commonjs";
3
- import resolve from "@rollup/plugin-node-resolve";
4
- import typescript from "@rollup/plugin-typescript";
5
- import postcss from "rollup-plugin-postcss";
6
- import json from "@rollup/plugin-json";
7
- import nodePolyfills from "rollup-plugin-node-polyfills";
8
- import pkg from "./package.json" assert { type: "json" };
9
- import tailwindcss from "tailwindcss";
10
- import autoprefixer from "autoprefixer";
11
- import babel from "@rollup/plugin-babel";
12
- import path from "path";
13
- import fs from "fs";
14
- import copy from "rollup-plugin-copy";
15
- import image from "@rollup/plugin-image";
16
-
17
- export default {
18
- input: "src/index.tsx", // Your entry point
19
- output: [
20
- {
21
- file: pkg.main, // dist/index.cjs.js
22
- format: "cjs",
23
- sourcemap: "inline",
24
- },
25
- {
26
- file: pkg.module, // dist/index.es.js
27
- format: "es",
28
- sourcemap: "inline",
29
- },
30
- ],
31
- external: [
32
- // Peer dependencies (don’t bundle React, ReactDOM, etc.)
33
- ...Object.keys(pkg.peerDependencies || {}),
34
- "react/jsx-runtime",
35
- ],
36
- plugins: [
37
- resolve({
38
- extensions: [".js", ".ts", ".tsx"], // Ajout des extensions
39
- }),
40
- nodePolyfills(),
41
- commonjs(),
42
- postcss({
43
- extract: "styles.css", // Ensures the CSS is written to dist/styles.css
44
- plugins: [tailwindcss(), autoprefixer()],
45
- }),
46
- typescript({
47
- tsconfig: "./tsconfig.json",
48
- }),
49
- json(),
50
- babel({
51
- babelHelpers: "bundled", // or "runtime" if you're using Babel runtime
52
- plugins: [
53
- // Use your forked plugin
54
- "react-refresh/babel",
55
- ["babel-plugin-react-generate-paths"],
56
- ],
57
- }),
58
- copy({
59
- targets: [
60
- { src: "src/assets/*", dest: "dist/assets" }, // Copy assets folder to dist/assets
61
- ],
62
- }),
63
- image(),
64
- ],
65
- };
@@ -1,20 +0,0 @@
1
- // updateApiUrl.js
2
- const fs = require("fs");
3
- const path = require("path");
4
-
5
- const configPath = path.join(__dirname, "../src/services/api.ts");
6
-
7
- const productionUrl =
8
- "http://ec2-13-38-214-191.eu-west-3.compute.amazonaws.com:1478";
9
-
10
- fs.readFile(configPath, "utf8", (err, data) => {
11
- if (err) {
12
- return console.log(err);
13
- }
14
-
15
- const result = data.replace(/http:\/\/localhost:3000/g, productionUrl);
16
-
17
- fs.writeFile(configPath, result, "utf8", (err) => {
18
- if (err) return console.log(err);
19
- });
20
- });
@@ -1,62 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- export default {
3
- content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
4
- theme: {
5
- extend: {
6
- colors: {
7
- "gray-feedback": {
8
- 25: "#FDFDFD",
9
- 50: "#FAFAFA",
10
- 100: "#F5F5F5",
11
- 200: "#E9EAEB",
12
- 300: "#D5D7DA",
13
- 400: "#A4A7AE",
14
- 500: "#717680",
15
- 600: "#535862",
16
- 700: "#414651",
17
- 750: "#343D4B",
18
- 800: "#252B37",
19
- 900: "#181D27",
20
- 950: "#0A0D12",
21
- },
22
- "primary-feedback": {
23
- 50: "#E6F2FF",
24
- 100: "#B8DBFF",
25
- 200: "#8AC4FF",
26
- 300: "#5CAEFF",
27
- 400: "#2E99FF",
28
- 500: "#0085FF",
29
- 600: "#026AD0",
30
- 700: "#0351A1",
31
- 800: "#033973",
32
- 900: "#022246",
33
- 950: "#010C19",
34
- },
35
- blue: {
36
- 50: "#F5FAFF",
37
- 100: "#EBF5FF",
38
- 500: "#0085FF",
39
- },
40
- red: {
41
- 100: "#FFD3E0",
42
- 500: "#FF2462",
43
- },
44
- rose: {
45
- 100: "#FFD3E0",
46
- 200: "#FFA7C0",
47
- },
48
- orange: {
49
- 50: "#FEF6EE",
50
- 200: "#F9DBAF",
51
- 700: "#B93815",
52
- },
53
- green: {
54
- 50: "#ECFDF3",
55
- 200: "#ABEFC6",
56
- 700: "#067647",
57
- },
58
- },
59
- },
60
- },
61
- plugins: [],
62
- };
package/tsconfig.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2017",
4
- "module": "ESNext",
5
- "jsx": "react-jsx",
6
- // Generate type definitions
7
- "declaration": true,
8
- "declarationDir": "dist/types",
9
- "outDir": "dist",
10
- "moduleResolution": "node",
11
- "isolatedModules": true,
12
- "esModuleInterop": true,
13
- "allowSyntheticDefaultImports": true,
14
- "skipLibCheck": true,
15
- "strict": true
16
- },
17
- "include": ["src", "libs", "index.d.ts", "declaration.d.ts"],
18
- "exclude": ["node_modules", "**/*.test.*"]
19
- }