@mirantes-micro/foundation-design-system 1.2.263 → 1.2.265

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 (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +198 -198
package/dist/index.js CHANGED
@@ -3054,7 +3054,7 @@ query GET_RATINGS($options: GetRatingsInput) {
3054
3054
  breakdown
3055
3055
  }
3056
3056
  }
3057
- `;var Wie=async({apiUrl:e,accessToken:t,userId:o,pageId:r,communityId:n})=>{let a={};return o&&(a.userId=o),r&&(a.pageId=r),n&&(a.communityId=n),(await m7__default.default(e??"",iL,a,{"x-access-token":t??""}))?.getRatingStats};function sf(e,t,o,r){let{user:n,profileApiUrl:a}=C(),s=o||r||t||void 0,i=!!(a&&n?.accessToken&&s),l=o?"page":r?"community":"user",{data:d,isLoading:c}=ze({queryKey:["rating-stats",l,s],queryFn:()=>Wie({apiUrl:a,accessToken:n?.accessToken,userId:t,pageId:o,communityId:r}),enabled:i});return {ratingsSummary:d,isGettingRattingSummary:c}}var su=(e=0)=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString(),lf=e=>{let t=Math.floor((new Date().getTime()-new Date(e).getTime())/1e3);if(t<60)return `${t}s`;let o=Math.floor(t/60);if(o<60)return `${o}m`;let r=Math.floor(o/60);if(r<24)return `${r}h`;let n=Math.floor(r/24);if(n<7)return `${n}D`;let a=Math.floor(n/7);if(a<4)return `${a}W`;let s=Math.floor(n/30);return s<12?`${s}M`:`${Math.floor(n/365)}Y`};var $1=({rating:e,size:t="md"})=>{let o=t==="sm"?"w-3.5 h-3.5":"w-5 h-5";return K__namespace.default.createElement("div",{className:"flex gap-[2px] my-1"},Array.from({length:5}).map((r,n)=>{let a=n+1,s=e>=a,i=!s&&e>=a-.5,l="M9.14692 0.511345L11.0023 4.23991C11.139 4.51004 11.3999 4.69764 11.7008 4.73933L15.8684 5.3463C16.1117 5.38049 16.3326 5.50889 16.4818 5.70482C16.6294 5.89825 16.6927 6.14338 16.6569 6.38433C16.6277 6.58443 16.5335 6.76953 16.3893 6.91127L13.3695 9.83859C13.1486 10.0429 13.0486 10.3455 13.1019 10.6415L13.8454 14.7569C13.9246 15.2538 13.5954 15.7224 13.1019 15.8166C12.8986 15.8491 12.6902 15.815 12.5068 15.7216L8.78934 13.7848C8.51345 13.6455 8.18755 13.6455 7.91165 13.7848L4.19419 15.7216C3.73742 15.9642 3.17147 15.7991 2.91725 15.3489C2.82306 15.1696 2.78972 14.9654 2.82056 14.7661L3.56405 10.6498C3.6174 10.3547 3.51654 10.0504 3.2965 9.84609L0.276681 6.92044C-0.0825632 6.57359 -0.0933988 6.00247 0.252509 5.64312C0.26001 5.63562 0.268345 5.62728 0.276681 5.61894C0.420045 5.47303 0.608418 5.38049 0.811795 5.35631L4.97936 4.7485C5.27942 4.70598 5.54031 4.52005 5.67784 4.24825L7.46656 0.511345C7.62576 0.191182 7.95583 -0.00808573 8.31424 0.000251838H8.42593C8.73683 0.0377709 9.00772 0.230369 9.14692 0.511345";return i?K__namespace.default.createElement("svg",{key:n,className:o,viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},K__namespace.default.createElement("defs",null,K__namespace.default.createElement("linearGradient",{id:`half-star-${n}`},K__namespace.default.createElement("stop",{offset:"50%",stopColor:"#EC991C"}),K__namespace.default.createElement("stop",{offset:"50%",stopColor:"rgba(236,153,28,0.3)"}))),K__namespace.default.createElement("path",{d:l,fill:`url(#half-star-${n})`})):K__namespace.default.createElement("svg",{key:n,className:o,viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},K__namespace.default.createElement("path",{d:l,fill:s?"#EC991C":"rgba(236,153,28,0.3)"}))}))};function lL({asPage:e,receiverUserId:t,receiverPageId:o,receiverCommunityId:r,userSlug:n,pageSlug:a,communitySlug:s}){let{isGettingRattingSummary:i,ratingsSummary:l}=sf(e,t,o,r),{locale:d}=C(),c=()=>{be(),e&&a?window.location.href=`/company/${d}/${a}`:r&&s?window.location.href=`/community/${d}/${s}`:n&&(window.location.href=`/profile/${d}/${n}`);};if(i)return K__namespace.default.createElement("div",{className:"w-full h-[5.521rem] items-center gap-4"},K__namespace.default.createElement("div",{className:"h-12 w-16 bg-gray-200 rounded"}),K__namespace.default.createElement("div",{className:"flex flex-col gap-2 flex-1"},K__namespace.default.createElement("div",{className:"h-6 w-24 bg-gray-200 rounded"}),K__namespace.default.createElement("div",{className:"h-4 w-32 bg-gray-200 rounded"})));let p=l?.average??0,m=l?.totalRatings??0,f=e&&a||r&&s||n;return K__namespace.default.createElement("div",{className:`w-full h-[5.521rem] flex items-center gap-4 ${f?"cursor-pointer":""}`,onClick:f?c:void 0},K__namespace.default.createElement("span",{className:"text-[#050910] font-bold text-[3rem] leading-[120%] tracking-[-0.5px]"},p.toFixed(1)),K__namespace.default.createElement("div",{className:"flex flex-col gap-1"},K__namespace.default.createElement($1,{rating:p}),K__namespace.default.createElement("span",{className:"text-[#687588] text-sm"},F(d,"ratings-label",{count:su(m)}))))}function cf({label:e="",value:t="",onChange:o,required:r=false,className:n,disabled:a=false,maxLength:s=500,error:i,textAreaClassName:l,showMaxLength:d=true}){let[c,p]=K.useState(t),{locale:m}=C();K.useEffect(()=>{p(t);},[t]);let f=u=>{let g=u.target.value;g.length<=s&&(p(g),o?.(g));};return K__namespace.default.createElement("div",{className:E("space-y-2",n)},e&&K__namespace.default.createElement("label",{className:"text-body-md font-normal"},e," ",r&&K__namespace.default.createElement("span",{className:"text-red-shade6"},"*")),K__namespace.default.createElement("div",{className:"relative"},K__namespace.default.createElement(R2,{placeholder:pe(m,"component.workspace.panel.modal.form.description"),value:c,onChange:f,disabled:a,className:E("min-h-[200px] resize-none rounded-xl border-border p-4 text-dark placeholder:text-gray-shade8/70 focus-visible:ring-primary",l,i&&"border-red-500")}),d&&K__namespace.default.createElement("div",{className:"absolute bottom-3 left-3 right-3 flex items-center justify-end"},K__namespace.default.createElement("div",{className:"text-body-sm self-end text-gray-shade8"},c.length,"/",s))),i&&K__namespace.default.createElement("p",{className:"text-sm text-red-500"},i))}var Xie=m7.gql`
3057
+ `;var Wie=async({apiUrl:e,accessToken:t,userId:o,pageId:r,communityId:n})=>{let a={};return o&&(a.userId=o),r&&(a.pageId=r),n&&(a.communityId=n),(await m7__default.default(e??"",iL,a,{"x-access-token":t??""}))?.getRatingStats};function sf(e,t,o,r){let{user:n,profileApiUrl:a}=C(),s=o||r||t||void 0,i=!!(a&&n?.accessToken&&s),l=o?"page":r?"community":"user",{data:d,isLoading:c}=ze({queryKey:["rating-stats",l,s],queryFn:()=>Wie({apiUrl:a,accessToken:n?.accessToken,userId:t,pageId:o,communityId:r}),enabled:i});return {ratingsSummary:d,isGettingRattingSummary:c}}var su=(e=0)=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString(),lf=e=>{let t=Math.floor((new Date().getTime()-new Date(e).getTime())/1e3);if(t<60)return `${t}s`;let o=Math.floor(t/60);if(o<60)return `${o}m`;let r=Math.floor(o/60);if(r<24)return `${r}h`;let n=Math.floor(r/24);if(n<7)return `${n}D`;let a=Math.floor(n/7);if(a<4)return `${a}W`;let s=Math.floor(n/30);return s<12?`${s}M`:`${Math.floor(n/365)}Y`};var $1=({rating:e,size:t="md"})=>{let o=t==="sm"?"w-3.5 h-3.5":"w-5 h-5";return K__namespace.default.createElement("div",{className:"flex flex-wrap gap-[2px] my-1"},Array.from({length:5}).map((r,n)=>{let a=n+1,s=e>=a,i=!s&&e>=a-.5,l="M9.14692 0.511345L11.0023 4.23991C11.139 4.51004 11.3999 4.69764 11.7008 4.73933L15.8684 5.3463C16.1117 5.38049 16.3326 5.50889 16.4818 5.70482C16.6294 5.89825 16.6927 6.14338 16.6569 6.38433C16.6277 6.58443 16.5335 6.76953 16.3893 6.91127L13.3695 9.83859C13.1486 10.0429 13.0486 10.3455 13.1019 10.6415L13.8454 14.7569C13.9246 15.2538 13.5954 15.7224 13.1019 15.8166C12.8986 15.8491 12.6902 15.815 12.5068 15.7216L8.78934 13.7848C8.51345 13.6455 8.18755 13.6455 7.91165 13.7848L4.19419 15.7216C3.73742 15.9642 3.17147 15.7991 2.91725 15.3489C2.82306 15.1696 2.78972 14.9654 2.82056 14.7661L3.56405 10.6498C3.6174 10.3547 3.51654 10.0504 3.2965 9.84609L0.276681 6.92044C-0.0825632 6.57359 -0.0933988 6.00247 0.252509 5.64312C0.26001 5.63562 0.268345 5.62728 0.276681 5.61894C0.420045 5.47303 0.608418 5.38049 0.811795 5.35631L4.97936 4.7485C5.27942 4.70598 5.54031 4.52005 5.67784 4.24825L7.46656 0.511345C7.62576 0.191182 7.95583 -0.00808573 8.31424 0.000251838H8.42593C8.73683 0.0377709 9.00772 0.230369 9.14692 0.511345";return i?K__namespace.default.createElement("svg",{key:n,className:o,viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},K__namespace.default.createElement("defs",null,K__namespace.default.createElement("linearGradient",{id:`half-star-${n}`},K__namespace.default.createElement("stop",{offset:"50%",stopColor:"#EC991C"}),K__namespace.default.createElement("stop",{offset:"50%",stopColor:"rgba(236,153,28,0.3)"}))),K__namespace.default.createElement("path",{d:l,fill:`url(#half-star-${n})`})):K__namespace.default.createElement("svg",{key:n,className:o,viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},K__namespace.default.createElement("path",{d:l,fill:s?"#EC991C":"rgba(236,153,28,0.3)"}))}))};function lL({asPage:e,receiverUserId:t,receiverPageId:o,receiverCommunityId:r,userSlug:n,pageSlug:a,communitySlug:s}){let{isGettingRattingSummary:i,ratingsSummary:l}=sf(e,t,o,r),{locale:d}=C(),c=()=>{be(),e&&a?window.location.href=`/company/${d}/${a}`:r&&s?window.location.href=`/community/${d}/${s}`:n&&(window.location.href=`/profile/${d}/${n}`);};if(i)return K__namespace.default.createElement("div",{className:"w-full h-[5.521rem] items-center gap-4"},K__namespace.default.createElement("div",{className:"h-12 w-16 bg-gray-200 rounded"}),K__namespace.default.createElement("div",{className:"flex flex-col gap-2 flex-1"},K__namespace.default.createElement("div",{className:"h-6 w-24 bg-gray-200 rounded"}),K__namespace.default.createElement("div",{className:"h-4 w-32 bg-gray-200 rounded"})));let p=l?.average??0,m=l?.totalRatings??0,f=e&&a||r&&s||n;return K__namespace.default.createElement("div",{className:`w-full h-[5.521rem] flex items-center gap-4 ${f?"cursor-pointer":""}`,onClick:f?c:void 0},K__namespace.default.createElement("span",{className:"text-[#050910] font-bold text-[3rem] leading-[120%] tracking-[-0.5px]"},p.toFixed(1)),K__namespace.default.createElement("div",{className:"flex flex-col gap-1"},K__namespace.default.createElement($1,{rating:p}),K__namespace.default.createElement("span",{className:"text-[#687588] text-sm"},F(d,"ratings-label",{count:su(m)}))))}function cf({label:e="",value:t="",onChange:o,required:r=false,className:n,disabled:a=false,maxLength:s=500,error:i,textAreaClassName:l,showMaxLength:d=true}){let[c,p]=K.useState(t),{locale:m}=C();K.useEffect(()=>{p(t);},[t]);let f=u=>{let g=u.target.value;g.length<=s&&(p(g),o?.(g));};return K__namespace.default.createElement("div",{className:E("space-y-2",n)},e&&K__namespace.default.createElement("label",{className:"text-body-md font-normal"},e," ",r&&K__namespace.default.createElement("span",{className:"text-red-shade6"},"*")),K__namespace.default.createElement("div",{className:"relative"},K__namespace.default.createElement(R2,{placeholder:pe(m,"component.workspace.panel.modal.form.description"),value:c,onChange:f,disabled:a,className:E("min-h-[200px] resize-none rounded-xl border-border p-4 text-dark placeholder:text-gray-shade8/70 focus-visible:ring-primary",l,i&&"border-red-500")}),d&&K__namespace.default.createElement("div",{className:"absolute bottom-3 left-3 right-3 flex items-center justify-end"},K__namespace.default.createElement("div",{className:"text-body-sm self-end text-gray-shade8"},c.length,"/",s))),i&&K__namespace.default.createElement("p",{className:"text-sm text-red-500"},i))}var Xie=m7.gql`
3058
3058
  mutation CreateRating($createRatingInput: CreateRatingInput!) {
3059
3059
  createRating(createRatingInput: $createRatingInput) {
3060
3060
  id
package/package.json CHANGED
@@ -1,198 +1,198 @@
1
- {
2
- "name": "@mirantes-micro/foundation-design-system",
3
- "description": "A scalable and customizable design system package featuring a collection of reusable React components, utility functions, and context providers. Built to enforce visual and functional consistency across applications, this package offers accessible, themeable UI elements, shared logic through utility helpers, and context-based providers for managing global state such as themes, modals, and user sessions.",
4
- "version": "1.2.263",
5
- "license": "MIT",
6
- "author": {
7
- "name": "Mirantes Frontend team"
8
- },
9
- "sideEffects": [
10
- "*.css"
11
- ],
12
- "exports": {
13
- ".": {
14
- "import": {
15
- "types": "./dist/index.d.ts",
16
- "default": "./dist/index.js"
17
- },
18
- "require": {
19
- "types": "./dist/index.d.ts",
20
- "default": "./dist/index.js"
21
- }
22
- },
23
- "./styles.css": "./dist/styles.css"
24
- },
25
- "source": "./src/components/fromMirantes/index.ts",
26
- "module": "./dist/index.js",
27
- "types": "./dist/index.d.ts",
28
- "files": [
29
- "dist/*"
30
- ],
31
- "scripts": {
32
- "dev": "webpack serve --mode development",
33
- "build": "webpack --mode production",
34
- "build:webpack": "tsup src/components/fromMirantes/index.ts --format cjs --minify",
35
- "release": "pnpm build:webpack && npm publish",
36
- "build:css": "npx tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css --minify",
37
- "prepare": "husky",
38
- "format": "biome check --staged --write",
39
- "test": "vitest --passWithNoTests"
40
- },
41
- "devDependencies": {
42
- "@babel/core": "7.26.0",
43
- "@babel/preset-env": "7.26.0",
44
- "@babel/preset-react": "7.26.3",
45
- "@biomejs/biome": "2.4.6",
46
- "@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
47
- "@tailwindcss/postcss7-compat": "2.2.17",
48
- "@tanstack/react-query": "5.76.1",
49
- "@testing-library/dom": "10.4.1",
50
- "@testing-library/jest-dom": "6.9.1",
51
- "@testing-library/react": "16.3.2",
52
- "@types/country-data": "0.0.5",
53
- "@types/crypto-js": "4.2.2",
54
- "@types/js-cookie": "3.0.6",
55
- "@types/lodash.throttle": "^4.1.9",
56
- "@types/node": "22.10.5",
57
- "@types/react": "19.1.4",
58
- "@types/react-detect-offline": "2.4.5",
59
- "@types/react-dom": "19.1.5",
60
- "@types/react-syntax-highlighter": "15.5.13",
61
- "@types/uuid": "10.0.0",
62
- "@vitejs/plugin-react": "5.1.4",
63
- "babel-loader": "9.2.1",
64
- "baseline-browser-mapping": "^2.9.19",
65
- "css-loader": "6.8.1",
66
- "esbuild-sass-plugin": "3.3.1",
67
- "eslint": "9.17.0",
68
- "eslint-plugin-react": "7.37.3",
69
- "file-loader": "6.2.0",
70
- "graphql-tag": "2.12.6",
71
- "html-webpack-plugin": "5.5.3",
72
- "husky": "9.1.7",
73
- "jsdom": "28.1.0",
74
- "postcss": "8.4.39",
75
- "postcss-import": "16.1.0",
76
- "postcss-important": "0.3.0",
77
- "postcss-loader": "7.3.3",
78
- "postcss-nesting": "12.1.5",
79
- "prettier": "3.4.2",
80
- "react-refresh": "0.16.0",
81
- "sass": "^1.94.2",
82
- "sass-embedded": "^1.93.3",
83
- "sass-loader": "^16.0.6",
84
- "style-loader": "3.3.3",
85
- "tailwind-merge": "2.6.0",
86
- "tailwindcss": "3.4.4",
87
- "tailwindcss-animate": "1.0.7",
88
- "ts-loader": "9.5.1",
89
- "tsup": "8.3.5",
90
- "typescript": "5.7.2",
91
- "vite-tsconfig-paths": "6.1.1",
92
- "vitest": "4.0.18",
93
- "webpack": "5.97.1",
94
- "webpack-cli": "6.0.1",
95
- "webpack-dev-server": "5.2.0"
96
- },
97
- "dependencies": {
98
- "@emotion/is-prop-valid": "^1.4.0",
99
- "@ffmpeg/ffmpeg": "0.12.15",
100
- "@ffmpeg/util": "0.12.2",
101
- "@floating-ui/react": "^0.27.16",
102
- "@hookform/resolvers": "^5.2.2",
103
- "@mirantes-micro/billing-v2": "0.1.50",
104
- "@mirantes-micro/notifications-v2": "0.0.45",
105
- "@mirantes-micro/widgets": "0.0.161",
106
- "@radix-ui/react-avatar": "^1.1.10",
107
- "@radix-ui/react-checkbox": "^1.3.3",
108
- "@radix-ui/react-dialog": "^1.1.15",
109
- "@radix-ui/react-dropdown-menu": "^2.1.16",
110
- "@radix-ui/react-label": "^2.1.7",
111
- "@radix-ui/react-popover": "1.1.15",
112
- "@radix-ui/react-radio-group": "^1.3.8",
113
- "@radix-ui/react-scroll-area": "^1.2.10",
114
- "@radix-ui/react-select": "^2.2.6",
115
- "@radix-ui/react-slot": "^1.2.3",
116
- "@radix-ui/react-tooltip": "^1.2.8",
117
- "@radix-ui/react-visually-hidden": "1.2.4",
118
- "@tanstack/react-query-devtools": "5.76.1",
119
- "@tiptap/core": "^3.10.7",
120
- "@tiptap/extension-highlight": "^3.13.0",
121
- "@tiptap/extension-horizontal-rule": "^3.13.0",
122
- "@tiptap/extension-image": "^3.13.0",
123
- "@tiptap/extension-list": "^3.13.0",
124
- "@tiptap/extension-mention": "^3.10.7",
125
- "@tiptap/extension-placeholder": "^3.10.7",
126
- "@tiptap/extension-subscript": "^3.13.0",
127
- "@tiptap/extension-superscript": "^3.13.0",
128
- "@tiptap/extension-text-align": "^3.13.0",
129
- "@tiptap/extension-typography": "^3.13.0",
130
- "@tiptap/extensions": "^3.13.0",
131
- "@tiptap/pm": "^3.13.0",
132
- "@tiptap/react": "^3.10.7",
133
- "@tiptap/starter-kit": "^3.10.7",
134
- "@tiptap/suggestion": "^3.10.7",
135
- "@uidotdev/usehooks": "2.4.1",
136
- "axios": "1.11.0",
137
- "browser-image-compression": "2.0.2",
138
- "class-variance-authority": "0.7.1",
139
- "clsx": "2.1.1",
140
- "cmdk": "^1.1.1",
141
- "cookies-next": "^5.1.0",
142
- "country-data": "0.0.31",
143
- "crypto-js": "4.2.0",
144
- "currencies.json": "1.1.0",
145
- "date-fns": "^4.1.0",
146
- "emoji-mart": "5.6.0",
147
- "emoji-picker-react": "4.13.3",
148
- "framer-motion": "12.19.2",
149
- "global-currencies": "1.0.3",
150
- "graphql": "16.11.0",
151
- "graphql-request": "^7.3.1",
152
- "html2canvas": "1.4.1",
153
- "isomorphic-dompurify": "^2.34.0",
154
- "js-cookie": "3.0.5",
155
- "jspdf": "3.0.3",
156
- "link-preview-js": "^3.1.0",
157
- "lodash.throttle": "^4.1.1",
158
- "lucide-react": "0.510.0",
159
- "marked": "^17.0.0",
160
- "motion": "^12.23.24",
161
- "next": "15.3.2",
162
- "ogp-parser": "0.8.1",
163
- "pdf-lib": "^1.17.1",
164
- "pdfjs-dist": "4.8.69",
165
- "process": "0.11.10",
166
- "radix-ui": "^1.4.3",
167
- "react": "19.1.0",
168
- "react-day-picker": "^9.11.1",
169
- "react-detect-offline": "2.4.5",
170
- "react-dom": "19.1.0",
171
- "react-dropzone": "14.3.8",
172
- "react-hook-form": "^7.65.0",
173
- "react-hotkeys-hook": "^5.2.1",
174
- "react-infinite-scroll-hook": "6.0.1",
175
- "react-markdown": "^10.1.0",
176
- "react-mentions-ts": "5.4.7",
177
- "react-router-dom": "7.6.0",
178
- "react-syntax-highlighter": "16.1.0",
179
- "react-toastify": "^11.0.5",
180
- "remark-gfm": "^4.0.1",
181
- "shiki": "^3.15.0",
182
- "slugify": "1.6.6",
183
- "socket.io-client": "4.8.1",
184
- "swiper": "11.2.10",
185
- "tailwind-scrollbar-hide": "4.0.0",
186
- "tippy.js": "^6.3.7",
187
- "tw-animate-css": "1.2.9",
188
- "uuid": "11.1.0",
189
- "vaul": "^1.1.2",
190
- "yup": "^1.7.1",
191
- "zustand": "^5.0.8"
192
- },
193
- "peerDependencies": {
194
- "tailwind-scrollbar-hide": "^4.0.0",
195
- "tailwindcss": "^3.0.0",
196
- "tailwindcss-animate": "^1.0.0"
197
- }
198
- }
1
+ {
2
+ "name": "@mirantes-micro/foundation-design-system",
3
+ "description": "A scalable and customizable design system package featuring a collection of reusable React components, utility functions, and context providers. Built to enforce visual and functional consistency across applications, this package offers accessible, themeable UI elements, shared logic through utility helpers, and context-based providers for managing global state such as themes, modals, and user sessions.",
4
+ "version": "1.2.265",
5
+ "license": "MIT",
6
+ "author": {
7
+ "name": "Mirantes Frontend team"
8
+ },
9
+ "sideEffects": [
10
+ "*.css"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "import": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ },
18
+ "require": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.js"
21
+ }
22
+ },
23
+ "./styles.css": "./dist/styles.css"
24
+ },
25
+ "source": "./src/components/fromMirantes/index.ts",
26
+ "module": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "files": [
29
+ "dist/*"
30
+ ],
31
+ "scripts": {
32
+ "dev": "webpack serve --mode development",
33
+ "build": "webpack --mode production",
34
+ "build:webpack": "tsup src/components/fromMirantes/index.ts --format cjs --minify",
35
+ "release": "pnpm build:webpack && npm publish",
36
+ "build:css": "npx tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css --minify",
37
+ "prepare": "husky",
38
+ "format": "biome check --staged --write",
39
+ "test": "vitest --passWithNoTests"
40
+ },
41
+ "devDependencies": {
42
+ "@babel/core": "7.26.0",
43
+ "@babel/preset-env": "7.26.0",
44
+ "@babel/preset-react": "7.26.3",
45
+ "@biomejs/biome": "2.4.6",
46
+ "@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
47
+ "@tailwindcss/postcss7-compat": "2.2.17",
48
+ "@tanstack/react-query": "5.76.1",
49
+ "@testing-library/dom": "10.4.1",
50
+ "@testing-library/jest-dom": "6.9.1",
51
+ "@testing-library/react": "16.3.2",
52
+ "@types/country-data": "0.0.5",
53
+ "@types/crypto-js": "4.2.2",
54
+ "@types/js-cookie": "3.0.6",
55
+ "@types/lodash.throttle": "^4.1.9",
56
+ "@types/node": "22.10.5",
57
+ "@types/react": "19.1.4",
58
+ "@types/react-detect-offline": "2.4.5",
59
+ "@types/react-dom": "19.1.5",
60
+ "@types/react-syntax-highlighter": "15.5.13",
61
+ "@types/uuid": "10.0.0",
62
+ "@vitejs/plugin-react": "5.1.4",
63
+ "babel-loader": "9.2.1",
64
+ "baseline-browser-mapping": "^2.9.19",
65
+ "css-loader": "6.8.1",
66
+ "esbuild-sass-plugin": "3.3.1",
67
+ "eslint": "9.17.0",
68
+ "eslint-plugin-react": "7.37.3",
69
+ "file-loader": "6.2.0",
70
+ "graphql-tag": "2.12.6",
71
+ "html-webpack-plugin": "5.5.3",
72
+ "husky": "9.1.7",
73
+ "jsdom": "28.1.0",
74
+ "postcss": "8.4.39",
75
+ "postcss-import": "16.1.0",
76
+ "postcss-important": "0.3.0",
77
+ "postcss-loader": "7.3.3",
78
+ "postcss-nesting": "12.1.5",
79
+ "prettier": "3.4.2",
80
+ "react-refresh": "0.16.0",
81
+ "sass": "^1.94.2",
82
+ "sass-embedded": "^1.93.3",
83
+ "sass-loader": "^16.0.6",
84
+ "style-loader": "3.3.3",
85
+ "tailwind-merge": "2.6.0",
86
+ "tailwindcss": "3.4.4",
87
+ "tailwindcss-animate": "1.0.7",
88
+ "ts-loader": "9.5.1",
89
+ "tsup": "8.3.5",
90
+ "typescript": "5.7.2",
91
+ "vite-tsconfig-paths": "6.1.1",
92
+ "vitest": "4.0.18",
93
+ "webpack": "5.97.1",
94
+ "webpack-cli": "6.0.1",
95
+ "webpack-dev-server": "5.2.0"
96
+ },
97
+ "dependencies": {
98
+ "@emotion/is-prop-valid": "^1.4.0",
99
+ "@ffmpeg/ffmpeg": "0.12.15",
100
+ "@ffmpeg/util": "0.12.2",
101
+ "@floating-ui/react": "^0.27.16",
102
+ "@hookform/resolvers": "^5.2.2",
103
+ "@mirantes-micro/billing-v2": "0.1.50",
104
+ "@mirantes-micro/notifications-v2": "0.0.45",
105
+ "@mirantes-micro/widgets": "0.0.161",
106
+ "@radix-ui/react-avatar": "^1.1.10",
107
+ "@radix-ui/react-checkbox": "^1.3.3",
108
+ "@radix-ui/react-dialog": "^1.1.15",
109
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
110
+ "@radix-ui/react-label": "^2.1.7",
111
+ "@radix-ui/react-popover": "1.1.15",
112
+ "@radix-ui/react-radio-group": "^1.3.8",
113
+ "@radix-ui/react-scroll-area": "^1.2.10",
114
+ "@radix-ui/react-select": "^2.2.6",
115
+ "@radix-ui/react-slot": "^1.2.3",
116
+ "@radix-ui/react-tooltip": "^1.2.8",
117
+ "@radix-ui/react-visually-hidden": "1.2.4",
118
+ "@tanstack/react-query-devtools": "5.76.1",
119
+ "@tiptap/core": "^3.10.7",
120
+ "@tiptap/extension-highlight": "^3.13.0",
121
+ "@tiptap/extension-horizontal-rule": "^3.13.0",
122
+ "@tiptap/extension-image": "^3.13.0",
123
+ "@tiptap/extension-list": "^3.13.0",
124
+ "@tiptap/extension-mention": "^3.10.7",
125
+ "@tiptap/extension-placeholder": "^3.10.7",
126
+ "@tiptap/extension-subscript": "^3.13.0",
127
+ "@tiptap/extension-superscript": "^3.13.0",
128
+ "@tiptap/extension-text-align": "^3.13.0",
129
+ "@tiptap/extension-typography": "^3.13.0",
130
+ "@tiptap/extensions": "^3.13.0",
131
+ "@tiptap/pm": "^3.13.0",
132
+ "@tiptap/react": "^3.10.7",
133
+ "@tiptap/starter-kit": "^3.10.7",
134
+ "@tiptap/suggestion": "^3.10.7",
135
+ "@uidotdev/usehooks": "2.4.1",
136
+ "axios": "1.11.0",
137
+ "browser-image-compression": "2.0.2",
138
+ "class-variance-authority": "0.7.1",
139
+ "clsx": "2.1.1",
140
+ "cmdk": "^1.1.1",
141
+ "cookies-next": "^5.1.0",
142
+ "country-data": "0.0.31",
143
+ "crypto-js": "4.2.0",
144
+ "currencies.json": "1.1.0",
145
+ "date-fns": "^4.1.0",
146
+ "emoji-mart": "5.6.0",
147
+ "emoji-picker-react": "4.13.3",
148
+ "framer-motion": "12.19.2",
149
+ "global-currencies": "1.0.3",
150
+ "graphql": "16.11.0",
151
+ "graphql-request": "^7.3.1",
152
+ "html2canvas": "1.4.1",
153
+ "isomorphic-dompurify": "^2.34.0",
154
+ "js-cookie": "3.0.5",
155
+ "jspdf": "3.0.3",
156
+ "link-preview-js": "^3.1.0",
157
+ "lodash.throttle": "^4.1.1",
158
+ "lucide-react": "0.510.0",
159
+ "marked": "^17.0.0",
160
+ "motion": "^12.23.24",
161
+ "next": "15.3.2",
162
+ "ogp-parser": "0.8.1",
163
+ "pdf-lib": "^1.17.1",
164
+ "pdfjs-dist": "4.8.69",
165
+ "process": "0.11.10",
166
+ "radix-ui": "^1.4.3",
167
+ "react": "19.1.0",
168
+ "react-day-picker": "^9.11.1",
169
+ "react-detect-offline": "2.4.5",
170
+ "react-dom": "19.1.0",
171
+ "react-dropzone": "14.3.8",
172
+ "react-hook-form": "^7.65.0",
173
+ "react-hotkeys-hook": "^5.2.1",
174
+ "react-infinite-scroll-hook": "6.0.1",
175
+ "react-markdown": "^10.1.0",
176
+ "react-mentions-ts": "5.4.7",
177
+ "react-router-dom": "7.6.0",
178
+ "react-syntax-highlighter": "16.1.0",
179
+ "react-toastify": "^11.0.5",
180
+ "remark-gfm": "^4.0.1",
181
+ "shiki": "^3.15.0",
182
+ "slugify": "1.6.6",
183
+ "socket.io-client": "4.8.1",
184
+ "swiper": "11.2.10",
185
+ "tailwind-scrollbar-hide": "4.0.0",
186
+ "tippy.js": "^6.3.7",
187
+ "tw-animate-css": "1.2.9",
188
+ "uuid": "11.1.0",
189
+ "vaul": "^1.1.2",
190
+ "yup": "^1.7.1",
191
+ "zustand": "^5.0.8"
192
+ },
193
+ "peerDependencies": {
194
+ "tailwind-scrollbar-hide": "^4.0.0",
195
+ "tailwindcss": "^3.0.0",
196
+ "tailwindcss-animate": "^1.0.0"
197
+ }
198
+ }