prompt-mentions 0.0.1

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/index.cjs ADDED
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+
5
+ const Prompt = (props) => {
6
+ return jsxRuntime.jsx("div", { children: props.content });
7
+ };
8
+
9
+ exports.Prompt = Prompt;
10
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../src/components/Prompt/Prompt.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AAIA,MAAM,MAAM,GAAG,CAAC,KAAkB,KAAI;AACrC,IAAA,OAAOA,cAAA,CAAA,KAAA,EAAA,EAAA,QAAA,EAAM,KAAK,CAAC,OAAO,GAAO;AAClC;;;;"}
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface PromptProps {
4
+ content: string;
5
+ }
6
+ declare const Prompt: (props: PromptProps) => react_jsx_runtime.JSX.Element;
7
+
8
+ export { Prompt };
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+
3
+ const Prompt = (props) => {
4
+ return jsx("div", { children: props.content });
5
+ };
6
+
7
+ export { Prompt };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/components/Prompt/Prompt.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;AAIA,MAAM,MAAM,GAAG,CAAC,KAAkB,KAAI;AACrC,IAAA,OAAOA,GAAA,CAAA,KAAA,EAAA,EAAA,QAAA,EAAM,KAAK,CAAC,OAAO,GAAO;AAClC;;;;"}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "prompt-mentions",
3
+ "version": "0.0.1",
4
+ "description": "React component library to add an AI prompt with mentions.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "build": "rm -rf dist && rollup -c && rm -rf dist/types",
21
+ "dev": "rollup -c -w",
22
+ "test": "echo \"Error: no test specified\" && exit 1"
23
+ },
24
+ "keywords": [
25
+ "prompt",
26
+ "ai",
27
+ "mentions"
28
+ ],
29
+ "author": "blef",
30
+ "license": "MIT",
31
+ "peerDependencies": {
32
+ "react": "^18.0.0 || ^19.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "@rollup/plugin-commonjs": "^28.0.0",
36
+ "@rollup/plugin-node-resolve": "^16.0.0",
37
+ "@rollup/plugin-typescript": "^12.1.0",
38
+ "@types/react": "^19.2.7",
39
+ "react": "^19.2.3",
40
+ "rollup": "^4.40.0",
41
+ "rollup-plugin-dts": "^6.2.0",
42
+ "rollup-plugin-peer-deps-external": "^2.2.4",
43
+ "tslib": "^2.8.0",
44
+ "typescript": "^5.9.3"
45
+ }
46
+ }