@agent-html/react 0.0.1 → 0.0.2-alpha.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.
Files changed (2) hide show
  1. package/package.json +18 -9
  2. package/src/index.tsx +18 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
- {
1
+ {
2
2
  "name": "@agent-html/react",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-alpha.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -11,10 +11,19 @@
11
11
  "!src/**/*.spec.ts",
12
12
  "!src/**/*.spec.tsx"
13
13
  ],
14
- "exports": {
15
- ".": "./src/index.tsx"
16
- },
17
- "peerDependencies": {
18
- "react": "^19.0.0"
19
- }
20
- }
14
+ "exports": {
15
+ ".": "./src/index.tsx"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/Sayhi-bzb/Agent-HTML.git",
20
+ "directory": "packages/react"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/Sayhi-bzb/Agent-HTML/issues"
24
+ },
25
+ "homepage": "https://github.com/Sayhi-bzb/Agent-HTML#readme",
26
+ "peerDependencies": {
27
+ "react": "^19.0.0"
28
+ }
29
+ }
package/src/index.tsx CHANGED
@@ -60,8 +60,8 @@ const ArtifactInteractionContext =
60
60
  export type ArtifactProps = {
61
61
  children?: ReactNode
62
62
  title: string
63
- }
64
-
63
+ }
64
+
65
65
  export type BlockProps = {
66
66
  children?: ReactNode
67
67
  id: string
@@ -242,22 +242,22 @@ export const useInstrumentedCheckedChange = useInstrumentedValueChange
242
242
  export function Artifact({ children, title }: ArtifactProps) {
243
243
  return (
244
244
  <main
245
- data-agent-html-artifact="true"
246
- data-agent-html-title={title}
247
- className="agent-html-artifact"
248
- >
249
- {children}
250
- </main>
251
- )
252
- }
253
-
254
- export function Block({ children, id, title }: BlockProps) {
255
- return (
256
- <section
257
- data-agent-html-block="true"
258
- data-agent-html-block-id={id}
259
- data-agent-html-block-title={title ?? id}
260
- >
245
+ data-agent-html-artifact="true"
246
+ data-agent-html-title={title}
247
+ className="agent-html-artifact"
248
+ >
249
+ {children}
250
+ </main>
251
+ )
252
+ }
253
+
254
+ export function Block({ children, id, title }: BlockProps) {
255
+ return (
256
+ <section
257
+ data-agent-html-block="true"
258
+ data-agent-html-block-id={id}
259
+ data-agent-html-block-title={title ?? id}
260
+ >
261
261
  {children}
262
262
  </section>
263
263
  )