naria-ui 0.1.27 → 0.1.29

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 CHANGED
@@ -1,73 +1,87 @@
1
- # React + TypeScript + Vite
1
+ # Genmoji
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+ [![npm version](https://img.shields.io/npm/v/naria-ui?style=flat-square)](https://www.npmjs.com/package/naria-ui)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@janardanPethani/naria-ui?style=flat-square)](https://www.npmjs.com/package/naria-ui)
5
+ [![GitHub](https://img.shields.io/badge/github-JanardanPethani%2Fnaria-ui-blue?logo=github&style=flat-square)](https://github.com/JanardanPethani/naria-ui)
4
6
 
5
- Currently, two official plugins are available:
7
+ <!-- Add a license badge if you add a LICENSE file, e.g. MIT:
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
+ -->
6
10
 
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
11
+ Generate emojis, GIFs, and stickers as per user mood.
9
12
 
10
- ## React Compiler
13
+ ---
11
14
 
12
- The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
15
+ ## Features
13
16
 
14
- ## Expanding the ESLint configuration
17
+ - Generate mood-based emojis, memes, and slogans
18
+ - React component for easy integration
19
+ - No configuration required
15
20
 
16
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
21
+ ---
17
22
 
18
- ```js
19
- export default defineConfig([
20
- globalIgnores(['dist']),
21
- {
22
- files: ['**/*.{ts,tsx}'],
23
- extends: [
24
- // Other configs...
23
+ ## 📦 Installation
25
24
 
26
- // Remove tseslint.configs.recommended and replace with this
27
- tseslint.configs.recommendedTypeChecked,
28
- // Alternatively, use this for stricter rules
29
- tseslint.configs.strictTypeChecked,
30
- // Optionally, add this for stylistic rules
31
- tseslint.configs.stylisticTypeChecked,
32
-
33
- // Other configs...
34
- ],
35
- languageOptions: {
36
- parserOptions: {
37
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
38
- tsconfigRootDir: import.meta.dirname,
39
- },
40
- // other options...
41
- },
42
- },
43
- ])
25
+ ```bash
26
+ npm install naria-ui
44
27
  ```
45
28
 
46
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
47
-
48
- ```js
49
- // eslint.config.js
50
- import reactX from 'eslint-plugin-react-x'
51
- import reactDom from 'eslint-plugin-react-dom'
52
-
53
- export default defineConfig([
54
- globalIgnores(['dist']),
55
- {
56
- files: ['**/*.{ts,tsx}'],
57
- extends: [
58
- // Other configs...
59
- // Enable lint rules for React
60
- reactX.configs['recommended-typescript'],
61
- // Enable lint rules for React DOM
62
- reactDom.configs.recommended,
63
- ],
64
- languageOptions: {
65
- parserOptions: {
66
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
67
- tsconfigRootDir: import.meta.dirname,
68
- },
69
- // other options...
70
- },
71
- },
72
- ])
29
+ ---
30
+
31
+ ## 🚀 Usage
32
+
33
+ Here's a simple example using the main `Chat` component in your React app:
34
+
35
+ ```tsx
36
+ import React from "react";
37
+ import { Chat } from "naria-ui";
38
+
39
+ function App() {
40
+ return (
41
+ <div>
42
+ <h1>Genmoji Demo</h1>
43
+ <Chat />
44
+ </div>
45
+ );
46
+ }
47
+
48
+ export default App;
73
49
  ```
50
+
51
+ The `Chat` component provides a floating button. Click it, enter your mood, and get relevant emojis, memes, and slogans instantly!
52
+
53
+ ---
54
+
55
+ ## 📚 API
56
+
57
+ - **`<Chat />`**
58
+ A ready-to-use React component for mood-based emoji, meme, and slogan generation.
59
+
60
+ - **`generateResponse(input: string): Promise<{ memes: string[], emojis: string[], slogans: string[] }>`**
61
+ Utility function to generate content programmatically.
62
+
63
+ ---
64
+
65
+ ## 🛠 Configuration
66
+
67
+ No configuration or environment variables are required.
68
+
69
+ ---
70
+
71
+ ## 🤝 Contributing & Support
72
+
73
+ Maintained by [Janardan Pethani](https://janardanpethani.in)
74
+ Email: jpethani11@gmail.com
75
+ GitHub: [JanardanPethani/naria-ui](https://github.com/JanardanPethani/naria-ui)
76
+
77
+ Feel free to open issues or pull requests!
78
+
79
+ ---
80
+
81
+ ## 📄 License
82
+
83
+ _This project currently does not specify a license. To make your project open source, add a LICENSE file and badge!_
84
+
85
+ ---
86
+
87
+ > _Generated with ❤️ by [Janardan Pethani](https://janardanpethani.in)_
@@ -1,2 +1,2 @@
1
1
  import { default as React } from 'react';
2
- export declare const Chat: React.FC;
2
+ export declare const Button: React.FC;
@@ -0,0 +1 @@
1
+ export { Button } from './Button';
@@ -1 +1 @@
1
- export * from './Chat';
1
+ export * from './Button';
@@ -1,6 +1,22 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));require(`react`);var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r})),u=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("react");var T={exports:{}},R={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var I;function te(){if(I)return R;I=1;var s=Symbol.for("react.transitional.element"),_=Symbol.for("react.fragment");function f(d,a,u){var m=null;if(u!==void 0&&(m=""+u),a.key!==void 0&&(m=""+a.key),"key"in a){u={};for(var E in a)E!=="key"&&(u[E]=a[E])}else u=a;return a=u.ref,{$$typeof:s,type:d,key:m,ref:a!==void 0?a:null,props:u}}return R.Fragment=_,R.jsx=f,R.jsxs=f,R}var b={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var $;function ne(){return $||($=1,process.env.NODE_ENV!=="production"&&function(){function s(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Q?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case z:return"Profiler";case q:return"StrictMode";case X:return"Suspense";case B:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case W:return"Portal";case V:return(e.displayName||"Context")+".Provider";case J:return(e._context.displayName||"Context")+".Consumer";case G:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return r=e.displayName||null,r!==null?r:s(e.type)||"Memo";case x:r=e._payload,e=e._init;try{return s(e(r))}catch{}}return null}function _(e){return""+e}function f(e){try{_(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),_(e)}}function d(e){if(e===p)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===x)return"<...>";try{var r=s(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){var e=k.A;return e===null?null:e.getOwner()}function u(){return Error("react-stack-top-frame")}function m(e){if(h.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function E(e,r){function t(){y||(y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function L(){var e=s(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function U(e,r,t,n,l,c,A,S){return t=c.ref,e={$$typeof:w,type:e,key:r,props:c,_owner:l},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:L}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function j(e,r,t,n,l,c,A,S){var o=r.children;if(o!==void 0)if(n)if(K(o)){for(n=0;n<o.length;n++)g(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else g(o);if(h.call(r,"key")){o=s(e);var i=Object.keys(r).filter(function(ee){return ee!=="key"});n=0<i.length?"{key: someKey, "+i.join(": ..., ")+": ...}":"{key: someKey}",F[o+n]||(i=0<i.length?"{"+i.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
18
  let props = %s;
3
19
  <%s {...props} />
4
20
  React keys must be passed directly to JSX without using spread:
5
21
  let props = %s;
6
- <%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),d=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=l():t.exports=u()})),f=c(d());const p=()=>(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(`button`,{style:{position:`fixed`,bottom:24,right:24,zIndex:1e3,borderRadius:`50%`,width:56,height:56,background:`#007bff`,color:`#fff`,border:`none`,boxShadow:`0 2px 8px rgba(0,0,0,0.15)`,cursor:`pointer`},"aria-label":`Open chat`,children:`💬`})});async function m(e){let t=[`😃`,`😂`,`🎉`],n=[`😃`,`😂`,`🔥`,`🥳`,`😢`,`😎`,`🤔`,`🙌`,`💡`,`🎉`],r=n;return e.toLowerCase().includes(`happy`)&&(r=n.filter(e=>t.includes(e))),{memes:[`Meme for: ${e}`,`Another meme about ${e}`],emojis:r,slogans:[`Stay ${e}!`,`Keep calm and be ${e}`]}}function h(e){return e.charAt(0).toUpperCase()+e.slice(1)}exports.Chat=p,exports.capitalize=h,exports.generateResponse=m;
22
+ <%s key={someKey} {...props} />`,n,o,i,o),F[o+n]=!0)}if(o=null,t!==void 0&&(f(t),o=""+t),m(r)&&(f(r.key),o=""+r.key),"key"in r){t={};for(var P in r)P!=="key"&&(t[P]=r[P])}else t=r;return o&&E(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),U(e,o,c,l,a(),t,A,S)}function g(e){typeof e=="object"&&e!==null&&e.$$typeof===w&&e._store&&(e._store.validated=1)}var v=re,w=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),V=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),Q=Symbol.for("react.client.reference"),k=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h=Object.prototype.hasOwnProperty,K=Array.isArray,O=console.createTask?console.createTask:function(){return null};v={"react-stack-bottom-frame":function(e){return e()}};var y,N={},C=v["react-stack-bottom-frame"].bind(v,u)(),Y=O(d(u)),F={};b.Fragment=p,b.jsx=function(e,r,t,n,l){var c=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!1,n,l,c?Error("react-stack-top-frame"):C,c?O(d(e)):Y)},b.jsxs=function(e,r,t,n,l){var c=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!0,n,l,c?Error("react-stack-top-frame"):C,c?O(d(e)):Y)}}()),b}var D;function oe(){return D||(D=1,process.env.NODE_ENV==="production"?T.exports=te():T.exports=ne()),T.exports}var M=oe();const ae=()=>M.jsx(M.Fragment,{});function se(s){return s.charAt(0).toUpperCase()+s.slice(1)}exports.Button=ae;exports.capitalize=se;
@@ -1,234 +1,289 @@
1
- import "react";
2
- var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __copyProps = (e, i, o, s) => {
3
- if (i && typeof i == "object" || typeof i == "function") for (var c = __getOwnPropNames(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !__hasOwnProp.call(e, d) && d !== o && __defProp(e, d, {
4
- get: ((e) => i[e]).bind(null, d),
5
- enumerable: !(s = __getOwnPropDesc(i, d)) || s.enumerable
6
- });
7
- return e;
8
- }, __toESM = (n, r, a) => (a = n == null ? {} : __create(__getProtoOf(n)), __copyProps(r || !n || !n.__esModule ? __defProp(a, "default", {
9
- value: n,
10
- enumerable: !0
11
- }) : a, n)), __require = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
12
- if (typeof require < "u") return require.apply(this, arguments);
13
- throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function.");
14
- }), require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((e) => {
15
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
16
- function r(e, n, r) {
17
- var i = null;
18
- if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
19
- else r = n;
20
- return n = r.ref, {
21
- $$typeof: t,
22
- type: e,
23
- key: i,
24
- ref: n === void 0 ? null : n,
25
- props: r
26
- };
27
- }
28
- e.Fragment = n, e.jsx = r;
29
- })), require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((e) => {
30
- process.env.NODE_ENV !== "production" && (function() {
31
- function t(e) {
32
- if (e == null) return null;
33
- if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
34
- if (typeof e == "string") return e;
35
- switch (e) {
36
- case v: return "Fragment";
37
- case b: return "Profiler";
38
- case y: return "StrictMode";
39
- case w: return "Suspense";
40
- case T: return "SuspenseList";
41
- case O: return "Activity";
42
- }
43
- if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
44
- case _: return "Portal";
45
- case S: return e.displayName || "Context";
46
- case x: return (e._context.displayName || "Context") + ".Consumer";
47
- case C:
48
- var n = e.render;
49
- return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
50
- case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
51
- case D:
52
- n = e._payload, e = e._init;
53
- try {
54
- return t(e(n));
55
- } catch {}
56
- }
57
- return null;
58
- }
59
- function n(e) {
60
- return "" + e;
61
- }
62
- function r(e) {
63
- try {
64
- n(e);
65
- var t = !1;
66
- } catch {
67
- t = !0;
68
- }
69
- if (t) {
70
- t = console;
71
- var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
72
- return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
73
- }
74
- }
75
- function i(e) {
76
- if (e === v) return "<>";
77
- if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
78
- try {
79
- var n = t(e);
80
- return n ? "<" + n + ">" : "<...>";
81
- } catch {
82
- return "<...>";
83
- }
84
- }
85
- function a() {
86
- var e = A.A;
87
- return e === null ? null : e.getOwner();
88
- }
89
- function o() {
90
- return Error("react-stack-top-frame");
91
- }
92
- function s(e) {
93
- if (j.call(e, "key")) {
94
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
95
- if (t && t.isReactWarning) return !1;
96
- }
97
- return e.key !== void 0;
98
- }
99
- function c(e, t) {
100
- function n() {
101
- P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
102
- }
103
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
104
- get: n,
105
- configurable: !0
106
- });
107
- }
108
- function u() {
109
- var e = t(this.type);
110
- return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
111
- }
112
- function d(e, t, n, r, i, a) {
113
- var o = n.ref;
114
- return e = {
115
- $$typeof: g,
116
- type: e,
117
- key: t,
118
- props: n,
119
- _owner: r
120
- }, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
121
- enumerable: !1,
122
- value: null
123
- }) : Object.defineProperty(e, "ref", {
124
- enumerable: !1,
125
- get: u
126
- }), e._store = {}, Object.defineProperty(e._store, "validated", {
127
- configurable: !1,
128
- enumerable: !1,
129
- writable: !0,
130
- value: 0
131
- }), Object.defineProperty(e, "_debugInfo", {
132
- configurable: !1,
133
- enumerable: !1,
134
- writable: !0,
135
- value: null
136
- }), Object.defineProperty(e, "_debugStack", {
137
- configurable: !1,
138
- enumerable: !1,
139
- writable: !0,
140
- value: i
141
- }), Object.defineProperty(e, "_debugTask", {
142
- configurable: !1,
143
- enumerable: !1,
144
- writable: !0,
145
- value: a
146
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
147
- }
148
- function f(e, n, i, o, l, u) {
149
- var f = n.children;
150
- if (f !== void 0) if (o) if (M(f)) {
151
- for (o = 0; o < f.length; o++) p(f[o]);
152
- Object.freeze && Object.freeze(f);
153
- } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
154
- else p(f);
155
- if (j.call(n, "key")) {
156
- f = t(e);
157
- var m = Object.keys(n).filter(function(e) {
158
- return e !== "key";
159
- });
160
- o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, f, m, f), R[f + o] = !0);
161
- }
162
- if (f = null, i !== void 0 && (r(i), f = "" + i), s(n) && (r(n.key), f = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
163
- else i = n;
164
- return f && c(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, i, a(), l, u);
165
- }
166
- function p(e) {
167
- m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
168
- }
169
- function m(e) {
170
- return typeof e == "object" && !!e && e.$$typeof === g;
171
- }
172
- var h = __require("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
173
- return null;
174
- };
175
- h = { react_stack_bottom_frame: function(e) {
176
- return e();
177
- } };
178
- var P, F = {}, I = h.react_stack_bottom_frame.bind(h, o)(), L = N(i(o)), R = {};
179
- e.Fragment = v, e.jsx = function(e, t, n) {
180
- var r = 1e4 > A.recentlyCreatedOwnerStacks++;
181
- return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(i(e)) : L);
182
- }, e.jsxs = function(e, t, n) {
183
- var r = 1e4 > A.recentlyCreatedOwnerStacks++;
184
- return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(i(e)) : L);
185
- };
186
- })();
187
- })), import_jsx_runtime = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
188
- process.env.NODE_ENV === "production" ? t.exports = require_react_jsx_runtime_production() : t.exports = require_react_jsx_runtime_development();
189
- })))());
190
- const Chat = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
191
- style: {
192
- position: "fixed",
193
- bottom: 24,
194
- right: 24,
195
- zIndex: 1e3,
196
- borderRadius: "50%",
197
- width: 56,
198
- height: 56,
199
- background: "#007bff",
200
- color: "#fff",
201
- border: "none",
202
- boxShadow: "0 2px 8px rgba(0,0,0,0.15)",
203
- cursor: "pointer"
204
- },
205
- "aria-label": "Open chat",
206
- children: "💬"
207
- }) });
208
- async function generateResponse(e) {
209
- let t = [
210
- "😃",
211
- "😂",
212
- "🎉"
213
- ], n = [
214
- "😃",
215
- "😂",
216
- "🔥",
217
- "🥳",
218
- "😢",
219
- "😎",
220
- "🤔",
221
- "🙌",
222
- "💡",
223
- "🎉"
224
- ], r = n;
225
- return e.toLowerCase().includes("happy") && (r = n.filter((e) => t.includes(e))), {
226
- memes: [`Meme for: ${e}`, `Another meme about ${e}`],
227
- emojis: r,
228
- slogans: [`Stay ${e}!`, `Keep calm and be ${e}`]
229
- };
1
+ import re from "react";
2
+ var T = { exports: {} }, R = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var I;
13
+ function te() {
14
+ if (I) return R;
15
+ I = 1;
16
+ var s = Symbol.for("react.transitional.element"), _ = Symbol.for("react.fragment");
17
+ function f(m, a, u) {
18
+ var d = null;
19
+ if (u !== void 0 && (d = "" + u), a.key !== void 0 && (d = "" + a.key), "key" in a) {
20
+ u = {};
21
+ for (var E in a)
22
+ E !== "key" && (u[E] = a[E]);
23
+ } else u = a;
24
+ return a = u.ref, {
25
+ $$typeof: s,
26
+ type: m,
27
+ key: d,
28
+ ref: a !== void 0 ? a : null,
29
+ props: u
30
+ };
31
+ }
32
+ return R.Fragment = _, R.jsx = f, R.jsxs = f, R;
230
33
  }
231
- function capitalize(e) {
232
- return e.charAt(0).toUpperCase() + e.slice(1);
34
+ var b = {};
35
+ /**
36
+ * @license React
37
+ * react-jsx-runtime.development.js
38
+ *
39
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+ var $;
45
+ function ne() {
46
+ return $ || ($ = 1, process.env.NODE_ENV !== "production" && function() {
47
+ function s(e) {
48
+ if (e == null) return null;
49
+ if (typeof e == "function")
50
+ return e.$$typeof === Q ? null : e.displayName || e.name || null;
51
+ if (typeof e == "string") return e;
52
+ switch (e) {
53
+ case p:
54
+ return "Fragment";
55
+ case z:
56
+ return "Profiler";
57
+ case q:
58
+ return "StrictMode";
59
+ case X:
60
+ return "Suspense";
61
+ case B:
62
+ return "SuspenseList";
63
+ case Z:
64
+ return "Activity";
65
+ }
66
+ if (typeof e == "object")
67
+ switch (typeof e.tag == "number" && console.error(
68
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
+ ), e.$$typeof) {
70
+ case W:
71
+ return "Portal";
72
+ case V:
73
+ return (e.displayName || "Context") + ".Provider";
74
+ case J:
75
+ return (e._context.displayName || "Context") + ".Consumer";
76
+ case G:
77
+ var r = e.render;
78
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
79
+ case H:
80
+ return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
81
+ case g:
82
+ r = e._payload, e = e._init;
83
+ try {
84
+ return s(e(r));
85
+ } catch {
86
+ }
87
+ }
88
+ return null;
89
+ }
90
+ function _(e) {
91
+ return "" + e;
92
+ }
93
+ function f(e) {
94
+ try {
95
+ _(e);
96
+ var r = !1;
97
+ } catch {
98
+ r = !0;
99
+ }
100
+ if (r) {
101
+ r = console;
102
+ var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
103
+ return t.call(
104
+ r,
105
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
+ n
107
+ ), _(e);
108
+ }
109
+ }
110
+ function m(e) {
111
+ if (e === p) return "<>";
112
+ if (typeof e == "object" && e !== null && e.$$typeof === g)
113
+ return "<...>";
114
+ try {
115
+ var r = s(e);
116
+ return r ? "<" + r + ">" : "<...>";
117
+ } catch {
118
+ return "<...>";
119
+ }
120
+ }
121
+ function a() {
122
+ var e = k.A;
123
+ return e === null ? null : e.getOwner();
124
+ }
125
+ function u() {
126
+ return Error("react-stack-top-frame");
127
+ }
128
+ function d(e) {
129
+ if (h.call(e, "key")) {
130
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
131
+ if (r && r.isReactWarning) return !1;
132
+ }
133
+ return e.key !== void 0;
134
+ }
135
+ function E(e, r) {
136
+ function t() {
137
+ y || (y = !0, console.error(
138
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
139
+ r
140
+ ));
141
+ }
142
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
143
+ get: t,
144
+ configurable: !0
145
+ });
146
+ }
147
+ function M() {
148
+ var e = s(this.type);
149
+ return N[e] || (N[e] = !0, console.error(
150
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
151
+ )), e = this.props.ref, e !== void 0 ? e : null;
152
+ }
153
+ function U(e, r, t, n, l, c, A, S) {
154
+ return t = c.ref, e = {
155
+ $$typeof: x,
156
+ type: e,
157
+ key: r,
158
+ props: c,
159
+ _owner: l
160
+ }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
161
+ enumerable: !1,
162
+ get: M
163
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
164
+ configurable: !1,
165
+ enumerable: !1,
166
+ writable: !0,
167
+ value: 0
168
+ }), Object.defineProperty(e, "_debugInfo", {
169
+ configurable: !1,
170
+ enumerable: !1,
171
+ writable: !0,
172
+ value: null
173
+ }), Object.defineProperty(e, "_debugStack", {
174
+ configurable: !1,
175
+ enumerable: !1,
176
+ writable: !0,
177
+ value: A
178
+ }), Object.defineProperty(e, "_debugTask", {
179
+ configurable: !1,
180
+ enumerable: !1,
181
+ writable: !0,
182
+ value: S
183
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
184
+ }
185
+ function j(e, r, t, n, l, c, A, S) {
186
+ var o = r.children;
187
+ if (o !== void 0)
188
+ if (n)
189
+ if (K(o)) {
190
+ for (n = 0; n < o.length; n++)
191
+ w(o[n]);
192
+ Object.freeze && Object.freeze(o);
193
+ } else
194
+ console.error(
195
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
196
+ );
197
+ else w(o);
198
+ if (h.call(r, "key")) {
199
+ o = s(e);
200
+ var i = Object.keys(r).filter(function(ee) {
201
+ return ee !== "key";
202
+ });
203
+ n = 0 < i.length ? "{key: someKey, " + i.join(": ..., ") + ": ...}" : "{key: someKey}", F[o + n] || (i = 0 < i.length ? "{" + i.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ `A props object containing a "key" prop is being spread into JSX:
205
+ let props = %s;
206
+ <%s {...props} />
207
+ React keys must be passed directly to JSX without using spread:
208
+ let props = %s;
209
+ <%s key={someKey} {...props} />`,
210
+ n,
211
+ o,
212
+ i,
213
+ o
214
+ ), F[o + n] = !0);
215
+ }
216
+ if (o = null, t !== void 0 && (f(t), o = "" + t), d(r) && (f(r.key), o = "" + r.key), "key" in r) {
217
+ t = {};
218
+ for (var P in r)
219
+ P !== "key" && (t[P] = r[P]);
220
+ } else t = r;
221
+ return o && E(
222
+ t,
223
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
224
+ ), U(
225
+ e,
226
+ o,
227
+ c,
228
+ l,
229
+ a(),
230
+ t,
231
+ A,
232
+ S
233
+ );
234
+ }
235
+ function w(e) {
236
+ typeof e == "object" && e !== null && e.$$typeof === x && e._store && (e._store.validated = 1);
237
+ }
238
+ var v = re, x = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), V = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, h = Object.prototype.hasOwnProperty, K = Array.isArray, O = console.createTask ? console.createTask : function() {
239
+ return null;
240
+ };
241
+ v = {
242
+ "react-stack-bottom-frame": function(e) {
243
+ return e();
244
+ }
245
+ };
246
+ var y, N = {}, C = v["react-stack-bottom-frame"].bind(
247
+ v,
248
+ u
249
+ )(), Y = O(m(u)), F = {};
250
+ b.Fragment = p, b.jsx = function(e, r, t, n, l) {
251
+ var c = 1e4 > k.recentlyCreatedOwnerStacks++;
252
+ return j(
253
+ e,
254
+ r,
255
+ t,
256
+ !1,
257
+ n,
258
+ l,
259
+ c ? Error("react-stack-top-frame") : C,
260
+ c ? O(m(e)) : Y
261
+ );
262
+ }, b.jsxs = function(e, r, t, n, l) {
263
+ var c = 1e4 > k.recentlyCreatedOwnerStacks++;
264
+ return j(
265
+ e,
266
+ r,
267
+ t,
268
+ !0,
269
+ n,
270
+ l,
271
+ c ? Error("react-stack-top-frame") : C,
272
+ c ? O(m(e)) : Y
273
+ );
274
+ };
275
+ }()), b;
233
276
  }
234
- export { Chat, capitalize, generateResponse };
277
+ var D;
278
+ function oe() {
279
+ return D || (D = 1, process.env.NODE_ENV === "production" ? T.exports = te() : T.exports = ne()), T.exports;
280
+ }
281
+ var L = oe();
282
+ const se = () => /* @__PURE__ */ L.jsx(L.Fragment, {});
283
+ function ue(s) {
284
+ return s.charAt(0).toUpperCase() + s.slice(1);
285
+ }
286
+ export {
287
+ se as Button,
288
+ ue as capitalize
289
+ };
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "naria-ui",
3
- "private": false,
4
- "version": "0.1.27",
5
- "type": "module",
6
- "scripts": {
7
- "dev": "vite",
8
- "build": "tsc -p tsconfig.build.json && vite build",
9
- "lint": "eslint .",
10
- "preview": "vite preview"
3
+ "author": {
4
+ "email": "phoneticem@gmail.com",
5
+ "name": "Mohammad Mehdi Mohammadi",
6
+ "url": ""
11
7
  },
8
+ "version": "0.1.29",
9
+ "type": "module",
12
10
  "main": "dist/naria-ui.cjs.js",
13
11
  "module": "dist/naria-ui.es.js",
12
+ "types": "dist/index.d.ts",
14
13
  "exports": {
15
14
  ".": {
16
15
  "types": "./dist/index.d.ts",
@@ -21,30 +20,37 @@
21
20
  "files": [
22
21
  "dist"
23
22
  ],
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/mohammad-mehdi-mohammadi/naria-ui.git"
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "scripts": {
27
+ "dev": "vite",
28
+ "build": "tsc -p tsconfig.build.json && vite build",
29
+ "lint": "eslint .",
30
+ "preview": "vite preview"
27
31
  },
28
32
  "dependencies": {
29
- "react": "^19.1.1",
30
- "react-dom": "^19.1.1"
33
+ },
34
+ "peerDependencies": {
35
+ "react": "^19.1.0",
36
+ "react-dom": "^19.1.0"
31
37
  },
32
38
  "devDependencies": {
33
- "@eslint/js": "^9.36.0",
34
- "@types/node": "^24.6.0",
35
- "@types/react": "^19.1.16",
36
- "@types/react-dom": "^19.1.9",
37
- "@vitejs/plugin-react": "^5.0.4",
38
- "eslint": "^9.36.0",
39
+ "@eslint/js": "^9.25.0",
40
+ "@types/react": "^19.1.2",
41
+ "@types/react-dom": "^19.1.2",
42
+ "@vitejs/plugin-react": "^4.4.1",
43
+ "@vitest/browser": "^3.1.4",
44
+ "@vitest/coverage-v8": "^3.1.4",
45
+ "eslint": "^9.25.0",
39
46
  "eslint-plugin-react-hooks": "^5.2.0",
40
- "eslint-plugin-react-refresh": "^0.4.22",
41
- "globals": "^16.4.0",
42
- "typescript": "~5.9.3",
43
- "typescript-eslint": "^8.45.0",
44
- "vite": "npm:rolldown-vite@7.1.14",
47
+ "eslint-plugin-react-refresh": "^0.4.19",
48
+ "globals": "^16.0.0",
49
+ "playwright": "^1.52.0",
50
+ "typescript": "~5.8.3",
51
+ "typescript-eslint": "^8.30.1",
52
+ "vite": "^6.3.5",
53
+ "vitest": "^3.1.4",
45
54
  "vite-plugin-dts": "^4.5.4"
46
- },
47
- "overrides": {
48
- "vite": "npm:rolldown-vite@7.1.14"
49
55
  }
50
56
  }
@@ -1,6 +0,0 @@
1
- export type GenerationResult = {
2
- memes: string[];
3
- emojis: string[];
4
- slogans: string[];
5
- };
6
- export declare function generateResponse(input: string): Promise<GenerationResult>;
@@ -1,2 +0,0 @@
1
- export { Chat } from './Chat';
2
- export { generateResponse } from './generateResponse';