paintcannon-react 0.0.1 → 0.0.6

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,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 Synthetic Lab
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
package/package.json CHANGED
@@ -1,11 +1,22 @@
1
1
  {
2
2
  "name": "paintcannon-react",
3
- "version": "0.0.1",
3
+ "version": "0.0.6",
4
+ "license": "ISC",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/synthetic-lab/paintcannon.git",
8
+ "directory": "paintcannon-react"
9
+ },
4
10
  "main": "dist/src/index.js",
5
11
  "types": "dist/src/index.d.ts",
6
12
  "type": "module",
13
+ "publishConfig": {
14
+ "access": "public",
15
+ "registry": "https://registry.npmjs.org/"
16
+ },
7
17
  "files": [
8
18
  "README.md",
19
+ "LICENSE",
9
20
  "dist/src"
10
21
  ],
11
22
  "scripts": {
@@ -25,7 +36,7 @@
25
36
  "scheduler": "^0.25.0"
26
37
  },
27
38
  "peerDependencies": {
28
- "paintcannon": "^0.0.1",
39
+ "paintcannon": "^0.0.6",
29
40
  "react": "^19.0.0"
30
41
  },
31
42
  "devDependencies": {
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { PaintCannon } from 'paintcannon';
3
- export type PaintCannonReactApp = {
4
- readonly paintCannon: PaintCannon;
5
- exit(errorOrResult?: unknown): void;
6
- waitUntilExit(): Promise<unknown>;
7
- };
8
- export declare const AppContext: React.Context<PaintCannonReactApp | undefined>;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export const AppContext = React.createContext(undefined);
@@ -1,8 +0,0 @@
1
- import type { ButtonElement as PaintButtonElement } from 'paintcannon';
2
- import type { CommonProps, HostComponent, Scrollable } from './shared.ts';
3
- export type Props = CommonProps & Partial<Scrollable> & {
4
- type?: 'submit' | 'button';
5
- };
6
- export type Element = PaintButtonElement;
7
- export declare const type: "paintcannon.button";
8
- export declare const Component: HostComponent<Props, Element>;
@@ -1,3 +0,0 @@
1
- import { typeString } from "./shared.js";
2
- export const type = typeString('paintcannon.button');
3
- export const Component = type;
@@ -1,6 +0,0 @@
1
- import type { DivElement as PaintDivElement } from 'paintcannon';
2
- import type { CommonProps, HostComponent, Scrollable } from './shared.ts';
3
- export type Props = CommonProps & Partial<Scrollable>;
4
- export type Element = PaintDivElement;
5
- export declare const type: "paintcannon.div";
6
- export declare const Component: HostComponent<Props, Element>;
@@ -1,3 +0,0 @@
1
- import { typeString } from "./shared.js";
2
- export const type = typeString('paintcannon.div');
3
- export const Component = type;
@@ -1,6 +0,0 @@
1
- import type { FormElement as PaintFormElement } from 'paintcannon';
2
- import type { CommonProps, HostComponent, Scrollable } from './shared.ts';
3
- export type Props = CommonProps & Partial<Scrollable>;
4
- export type Element = PaintFormElement;
5
- export declare const type: "paintcannon.form";
6
- export declare const Component: HostComponent<Props, Element>;
@@ -1,3 +0,0 @@
1
- import { typeString } from "./shared.js";
2
- export const type = typeString('paintcannon.form');
3
- export const Component = type;
@@ -1,8 +0,0 @@
1
- import type { InputElement as PaintInputElement } from 'paintcannon';
2
- import type { HostComponent, TextControlProps } from './shared.ts';
3
- export type Props = TextControlProps & {
4
- type?: 'text';
5
- };
6
- export type Element = PaintInputElement;
7
- export declare const type: "paintcannon.input";
8
- export declare const Component: HostComponent<Props, Element>;
@@ -1,3 +0,0 @@
1
- import { typeString } from "./shared.js";
2
- export const type = typeString('paintcannon.input');
3
- export const Component = type;
@@ -1,6 +0,0 @@
1
- import type { SpanElement as PaintSpanElement } from 'paintcannon';
2
- import type { CommonProps, HostComponent, Scrollable } from './shared.ts';
3
- export type Props = CommonProps & Partial<Scrollable>;
4
- export type Element = PaintSpanElement;
5
- export declare const type: "paintcannon.span";
6
- export declare const Component: HostComponent<Props, Element>;
@@ -1,3 +0,0 @@
1
- import { typeString } from "./shared.js";
2
- export const type = typeString('paintcannon.span');
3
- export const Component = type;
@@ -1,8 +0,0 @@
1
- import type { TextAreaElement as PaintTextAreaElement } from 'paintcannon';
2
- import type { HostComponent, Scrollable, TextControlProps } from './shared.ts';
3
- export type Props = TextControlProps & Partial<Scrollable> & {
4
- type?: never;
5
- };
6
- export type Element = PaintTextAreaElement;
7
- export declare const type: "paintcannon.textarea";
8
- export declare const Component: HostComponent<Props, Element>;
@@ -1,3 +0,0 @@
1
- import { typeString } from "./shared.js";
2
- export const type = typeString('paintcannon.textarea');
3
- export const Component = type;