@june-ai/june-ui 0.0.0-stage → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 June AI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,44 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # June UI SDK
2
+
3
+ A React Generative UI SDK powered by OpenUI.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @june-ai/june-ui
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { JuneUI } from "@june-ai/june-ui";
15
+
16
+ function App() {
17
+ return (
18
+ <JuneUI
19
+ response={response}
20
+ isStreaming={false}
21
+ />
22
+ );
23
+ }
24
+
25
+ export default App;
26
+ ```
27
+
28
+ ## Features
29
+
30
+ - Generative UI rendering
31
+ - Streaming support
32
+ - Custom React components
33
+ - Theme customization
34
+ - Action callbacks
35
+ - Error handling
36
+
37
+ ## Requirements
38
+
39
+ - React 19+
40
+ - React DOM 19+
41
+
42
+ ## License
43
+
44
+ MIT
package/dist/index.cjs ADDED
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ JuneUI: () => JuneUI
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/JuneUI.tsx
28
+ var import_react_lang = require("@openuidev/react-lang");
29
+ var import_react_ui = require("@openuidev/react-ui");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ function JuneUI({
32
+ response,
33
+ isStreaming = false,
34
+ onAction,
35
+ onError
36
+ }) {
37
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
+ import_react_lang.Renderer,
39
+ {
40
+ library: import_react_ui.openuiLibrary,
41
+ response,
42
+ isStreaming,
43
+ onAction,
44
+ onError
45
+ }
46
+ );
47
+ }
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ JuneUI
51
+ });
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+
3
+ interface JuneUIProps {
4
+ response: string | null;
5
+ isStreaming?: boolean;
6
+ onAction?: (event: unknown) => void;
7
+ onError?: (errors: unknown[]) => void;
8
+ }
9
+ declare function JuneUI({ response, isStreaming, onAction, onError, }: JuneUIProps): React.JSX.Element;
10
+
11
+ export { JuneUI, type JuneUIProps };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+
3
+ interface JuneUIProps {
4
+ response: string | null;
5
+ isStreaming?: boolean;
6
+ onAction?: (event: unknown) => void;
7
+ onError?: (errors: unknown[]) => void;
8
+ }
9
+ declare function JuneUI({ response, isStreaming, onAction, onError, }: JuneUIProps): React.JSX.Element;
10
+
11
+ export { JuneUI, type JuneUIProps };
package/dist/index.js ADDED
@@ -0,0 +1,24 @@
1
+ // src/JuneUI.tsx
2
+ import { Renderer } from "@openuidev/react-lang";
3
+ import { openuiLibrary } from "@openuidev/react-ui";
4
+ import { jsx } from "react/jsx-runtime";
5
+ function JuneUI({
6
+ response,
7
+ isStreaming = false,
8
+ onAction,
9
+ onError
10
+ }) {
11
+ return /* @__PURE__ */ jsx(
12
+ Renderer,
13
+ {
14
+ library: openuiLibrary,
15
+ response,
16
+ isStreaming,
17
+ onAction,
18
+ onError
19
+ }
20
+ );
21
+ }
22
+ export {
23
+ JuneUI
24
+ };
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "@june-ai/june-ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "A React Generative UI SDK powered by OpenUI",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md",
20
+ "LICENSE"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsup",
24
+ "typecheck": "tsc --noEmit",
25
+ "prepublishOnly": "npm run typecheck && npm run build"
26
+ },
27
+ "peerDependencies": {
28
+ "react": ">=19.0.0",
29
+ "react-dom": ">=19.0.0"
30
+ },
31
+ "dependencies": {
32
+ "@openuidev/react-lang": "^1.0.0",
33
+ "@openuidev/react-ui": "^0.18.0"
34
+ },
35
+ "devDependencies": {
36
+ "@types/react": "^19.0.0",
37
+ "@types/react-dom": "^19.0.0",
38
+ "@typescript/typescript6": "^6.0.2",
39
+ "tsup": "^8.0.0",
40
+ "typescript": "^5.0.0"
41
+ }
42
+ }