fairy-ring 0.0.0-stage → 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/README.md CHANGED
@@ -1,3 +1,17 @@
1
- # Temporary Holding Version
1
+ # fairy-ring
2
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.
3
+ customizable webring library with just enough features
4
+
5
+ ## development
6
+
7
+ Install:
8
+
9
+ ```bash
10
+ pnpm i
11
+ ```
12
+
13
+ Run storybook:
14
+
15
+ ```bash
16
+ pnpm dev
17
+ ```
@@ -0,0 +1,2 @@
1
+ export declare class FairyRingElement extends HTMLElement {}
2
+ export declare function define(tagName?: string): void;
@@ -0,0 +1,6 @@
1
+ // src/element.ts
2
+ var FairyRingElement = class extends HTMLElement {};
3
+ function define(tagName = "fairy-ring") {
4
+ if (!customElements.get(tagName)) customElements.define(tagName, FairyRingElement);
5
+ }
6
+ export { FairyRingElement, define };
@@ -0,0 +1 @@
1
+ export interface FairyRingOptions {}
package/dist/index.js ADDED
File without changes
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from "react";
2
+ export declare function FairyRing(): ReactElement;
package/dist/react.js ADDED
@@ -0,0 +1,8 @@
1
+ import { createElement } from "react";
2
+ import { define } from "./element.js";
3
+ // src/react.ts
4
+ function FairyRing() {
5
+ define();
6
+ return createElement("fairy-ring");
7
+ }
8
+ export { FairyRing };
@@ -0,0 +1 @@
1
+ export declare function FairyRing(): HTMLElement;
package/dist/solid.js ADDED
@@ -0,0 +1,7 @@
1
+ import { define } from "./element.js";
2
+ // src/solid.ts
3
+ function FairyRing() {
4
+ define();
5
+ return document.createElement("fairy-ring");
6
+ }
7
+ export { FairyRing };
package/dist/vue.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { Component } from "vue";
2
+ export declare const FairyRing: Component;
package/dist/vue.js ADDED
@@ -0,0 +1,8 @@
1
+ import { defineComponent, h } from "vue";
2
+ import { define } from "./element.js";
3
+ // src/vue.ts
4
+ const FairyRing = defineComponent(() => {
5
+ define();
6
+ return () => h("fairy-ring");
7
+ });
8
+ export { FairyRing };
package/package.json CHANGED
@@ -1,6 +1,84 @@
1
1
  {
2
2
  "name": "fairy-ring",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.1",
4
+ "description": "",
5
+ "license": "ISC",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "type": "module",
10
+ "sideEffects": false,
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "./element": {
17
+ "types": "./dist/element.d.ts",
18
+ "default": "./dist/element.js"
19
+ },
20
+ "./react": {
21
+ "types": "./dist/react.d.ts",
22
+ "default": "./dist/react.js"
23
+ },
24
+ "./vue": {
25
+ "types": "./dist/vue.d.ts",
26
+ "default": "./dist/vue.js"
27
+ },
28
+ "./solid": {
29
+ "types": "./dist/solid.d.ts",
30
+ "default": "./dist/solid.js"
31
+ },
32
+ "./package.json": "./package.json"
33
+ },
34
+ "dependencies": {
35
+ "zod": "^4.6.7"
36
+ },
37
+ "devDependencies": {
38
+ "@changesets/cli": "^3.0.3",
39
+ "@storybook/addon-vitest": "^10.6.7",
40
+ "@storybook/web-components-vite": "^10.6.7",
41
+ "@types/react": "^19.3.0",
42
+ "@vitest/browser-playwright": "^5.1.1",
43
+ "oxfmt": "^0.79.0",
44
+ "oxlint": "^1.94.0",
45
+ "playwright": "^1.65.1",
46
+ "react": "^19.3.1",
47
+ "solid-js": "^2.0.1",
48
+ "storybook": "^10.6.7",
49
+ "tsdown": "^0.23.7",
50
+ "typescript": "^7.0.2",
51
+ "vite": "^8.3.8",
52
+ "vitest": "^5.1.1",
53
+ "vue": "^3.5.45"
54
+ },
55
+ "peerDependencies": {
56
+ "react": "^19.0.0",
57
+ "solid-js": "^2.0.0",
58
+ "vue": "^3.5.0"
59
+ },
60
+ "peerDependenciesMeta": {
61
+ "react": {
62
+ "optional": true
63
+ },
64
+ "vue": {
65
+ "optional": true
66
+ },
67
+ "solid-js": {
68
+ "optional": true
69
+ }
70
+ },
71
+ "scripts": {
72
+ "build": "tsdown",
73
+ "dev": "storybook dev -p 6006",
74
+ "typecheck": "tsc --noEmit",
75
+ "lint": "oxlint",
76
+ "format": "oxfmt",
77
+ "format:check": "oxfmt --check",
78
+ "changeset": "changeset",
79
+ "release": "pnpm build && changeset publish",
80
+ "build-storybook": "storybook build",
81
+ "test": "./scripts/test.sh",
82
+ "test:update": "./scripts/test.sh --update"
83
+ }
6
84
  }