@uxpilot/openai-astra-shape-cue 1.0.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/dist/panel.css ADDED
@@ -0,0 +1,178 @@
1
+ .astra-panel [hidden] {
2
+ display: none !important;
3
+ }
4
+
5
+ .astra-panel {
6
+ position: fixed;
7
+ top: 1rem;
8
+ right: 1rem;
9
+ z-index: 50;
10
+ width: 18.5rem;
11
+ max-height: calc(100vh - 2rem);
12
+ overflow: auto;
13
+ border: 1px solid rgba(255, 255, 255, 0.12);
14
+ border-radius: 0.75rem;
15
+ background: rgba(12, 12, 14, 0.82);
16
+ color: #e6e6e6;
17
+ font-size: 0.8125rem;
18
+ scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
19
+ backdrop-filter: blur(14px);
20
+ -webkit-backdrop-filter: blur(14px);
21
+ }
22
+
23
+ .astra-panel::-webkit-scrollbar {
24
+ width: 8px;
25
+ }
26
+
27
+ .astra-panel::-webkit-scrollbar-thumb {
28
+ border: 2px solid transparent;
29
+ border-radius: 999px;
30
+ background: rgba(255, 255, 255, 0.2);
31
+ background-clip: padding-box;
32
+ }
33
+
34
+ .astra-panel header {
35
+ position: sticky;
36
+ top: 0;
37
+ z-index: 2;
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: space-between;
41
+ padding: 0.625rem 0.75rem;
42
+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);
43
+ background: rgba(12, 12, 14, 0.92);
44
+ backdrop-filter: blur(14px);
45
+ }
46
+
47
+ .astra-panel-toggle {
48
+ width: 1.5rem;
49
+ height: 1.5rem;
50
+ border: 0;
51
+ background: none;
52
+ color: inherit;
53
+ font-size: 1rem;
54
+ cursor: pointer;
55
+ }
56
+
57
+ .astra-panel-body {
58
+ display: flex;
59
+ flex-direction: column;
60
+ gap: 0.5rem;
61
+ padding: 0.5rem 0.75rem 0.75rem;
62
+ }
63
+
64
+ .astra-panel label {
65
+ display: flex;
66
+ flex-direction: column;
67
+ gap: 0.25rem;
68
+ }
69
+
70
+ .astra-panel select {
71
+ width: 100%;
72
+ padding: 0.3rem 0.4rem;
73
+ border: 1px solid rgba(255, 255, 255, 0.14);
74
+ border-radius: 0.375rem;
75
+ background: rgba(255, 255, 255, 0.06);
76
+ color: inherit;
77
+ }
78
+
79
+ .astra-panel select option {
80
+ background: #15151a;
81
+ }
82
+
83
+ .astra-range span {
84
+ float: right;
85
+ opacity: 0.7;
86
+ font-variant-numeric: tabular-nums;
87
+ }
88
+
89
+ .astra-range input {
90
+ width: 100%;
91
+ accent-color: #9b87ff;
92
+ }
93
+
94
+ .astra-check {
95
+ flex-direction: row !important;
96
+ align-items: center;
97
+ gap: 0.5rem !important;
98
+ }
99
+
100
+ .astra-check input {
101
+ accent-color: #9b87ff;
102
+ }
103
+
104
+ .astra-custom {
105
+ position: relative;
106
+ display: flex;
107
+ align-items: flex-start;
108
+ flex-direction: column;
109
+ gap: 0.35rem;
110
+ }
111
+
112
+ .astra-svg-file {
113
+ position: absolute;
114
+ width: 1px;
115
+ height: 1px;
116
+ overflow: hidden;
117
+ clip: rect(0 0 0 0);
118
+ clip-path: inset(50%);
119
+ white-space: nowrap;
120
+ }
121
+
122
+ .astra-svg-upload {
123
+ display: inline-flex;
124
+ align-items: center;
125
+ justify-content: center;
126
+ min-height: 2rem;
127
+ padding: 0.4rem 0.75rem;
128
+ border: 1px solid rgba(155, 135, 255, 0.55);
129
+ border-radius: 0.375rem;
130
+ background: rgba(155, 135, 255, 0.12);
131
+ color: #f5f6fb;
132
+ font-weight: 650;
133
+ cursor: pointer;
134
+ transition: 150ms ease;
135
+ }
136
+
137
+ .astra-svg-upload:hover,
138
+ .astra-svg-upload:focus-visible {
139
+ border-color: #9b87ff;
140
+ background: rgba(155, 135, 255, 0.2);
141
+ outline: 2px solid rgba(155, 135, 255, 0.28);
142
+ outline-offset: 2px;
143
+ }
144
+
145
+ .astra-upload-note {
146
+ color: rgba(230, 230, 230, 0.58);
147
+ font-size: 0.7rem;
148
+ }
149
+
150
+ .astra-error {
151
+ color: #fa994c;
152
+ font-size: 0.75rem;
153
+ }
154
+
155
+ .astra-actions {
156
+ display: flex;
157
+ gap: 0.5rem;
158
+ margin-top: 0.25rem;
159
+ }
160
+
161
+ .astra-panel button[data-action] {
162
+ flex: 1;
163
+ padding: 0.375rem 0.5rem;
164
+ border: 1px solid rgba(255, 255, 255, 0.16);
165
+ border-radius: 0.375rem;
166
+ background: rgba(255, 255, 255, 0.1);
167
+ color: inherit;
168
+ cursor: pointer;
169
+ }
170
+
171
+ .astra-panel button[data-action]:hover {
172
+ background: rgba(255, 255, 255, 0.18);
173
+ }
174
+
175
+
176
+ .astra-panel { position: relative; inset: auto; width: 100%; max-height: 100%; box-sizing: border-box; font-family: system-ui,sans-serif; }
177
+ .astra-panel *, .astra-panel *::before, .astra-panel *::after { box-sizing: border-box; }
178
+ .astra-panel button, .astra-panel select, .astra-panel input { font: inherit; }
@@ -0,0 +1,27 @@
1
+ import type { CSSProperties, HTMLAttributes, ForwardRefExoticComponent, RefAttributes } from "react";
2
+ import type { Cue, CueOptions, Shape, ParticleOptions, AnimationOptions, ScrollOptions } from "./index.js";
3
+ export interface ShapeCueHandle {
4
+ readonly cue: Cue | null;
5
+ replay(): void;
6
+ setShape(shape: Shape): void;
7
+ update(options: CueOptions): void;
8
+ pause(): void;
9
+ play(): void;
10
+ loadSVG(source: File | Blob | string): Promise<Cue>;
11
+ getOptions(): CueOptions | null;
12
+ setScrollProgress(progress: number | null): void;
13
+ }
14
+ export interface ShapeCueProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "onError"> {
15
+ shape?: Shape;
16
+ options?: Omit<CueOptions, "shape">;
17
+ colors?: string[] | null;
18
+ particles?: ParticleOptions;
19
+ animation?: AnimationOptions;
20
+ bloom?: number;
21
+ scroll?: ScrollOptions;
22
+ style?: CSSProperties;
23
+ onReady?: (cue: Cue) => void;
24
+ onError?: (error: unknown) => void;
25
+ onSettingsChange?: (options: CueOptions) => void;
26
+ }
27
+ export const ShapeCue: ForwardRefExoticComponent<ShapeCueProps & RefAttributes<ShapeCueHandle>>;
package/dist/react.js ADDED
@@ -0,0 +1,50 @@
1
+ "use client";
2
+ /*! @uxpilot/openai-astra-shape-cue v1.0.0 | Copyright 2026 UX Pilot Inc., original contributions. | UX Pilot Creative Use License 1.0. See LICENSE.md.
3
+
4
+ three
5
+ The MIT License
6
+
7
+ Copyright © 2010-2025 three.js authors
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in
17
+ all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
+ THE SOFTWARE.
26
+
27
+
28
+ postprocessing
29
+ Copyright © 2015 Raoul van Rüschen
30
+
31
+ This software is provided 'as-is', without any express or implied warranty. In
32
+ no event will the authors be held liable for any damages arising from the use of
33
+ this software.
34
+
35
+ Permission is granted to anyone to use this software for any purpose, including
36
+ commercial applications, and to alter it and redistribute it freely, subject to
37
+ the following restrictions:
38
+
39
+ 1. The origin of this software must not be misrepresented; you must not claim
40
+ that you wrote the original software. If you use this software in a product,
41
+ an acknowledgment in the product documentation would be appreciated but is
42
+ not required.
43
+
44
+ 2. Altered source versions must be plainly marked as such, and must not be
45
+ misrepresented as being the original software.
46
+
47
+ 3. This notice may not be removed or altered from any source distribution.
48
+
49
+ */
50
+ "use client";import{createElement as O,forwardRef as P,useEffect as y,useImperativeHandle as G,useRef as h}from"react";import{createShapeCue as b}from"./index.js";var j=Object.freeze({}),T=P(function({shape:i="star",options:s=j,colors:n,particles:t,animation:u,bloom:d,scroll:c,onReady:p,onError:l,onSettingsChange:S,style:E,children:z,...w},C){let o=h(null),r=h(null),f=h({onReady:p,onError:l,onSettingsChange:S});return f.current={onReady:p,onError:l,onSettingsChange:S},G(C,()=>({get cue(){return r.current},replay(){r.current?.replay()},setShape(e){r.current?.setShape(e)},update(e){r.current?.update(e)},pause(){r.current?.pause()},play(){r.current?.play()},loadSVG(e){return r.current?r.current.loadSVG(e):Promise.reject(new Error("Shape Cue is not mounted."))},getOptions(){return r.current?.getOptions()??null},setScrollProgress(e){r.current?.setScrollProgress(e)}}),[]),y(()=>{let e,g;try{if(e=b(o.current,{...s,shape:i,...n!==void 0?{colors:n}:{},...t!==void 0?{particles:t}:{},...u!==void 0?{animation:u}:{},...d!==void 0?{bloom:d}:{},...c!==void 0?{scroll:c}:{}}),r.current=e,e.status==="error")throw new Error("Unable to initialize the WebGL renderer.");g=e.onChange(a=>f.current.onSettingsChange?.(a)),f.current.onReady?.(e)}catch(a){e?.dispose(),r.current=null,f.current.onError?.(a)}return()=>{g?.(),e?.dispose(),r.current=null}},[]),y(()=>{try{r.current?.update({...s,shape:i,...n!==void 0?{colors:n}:{},...t!==void 0?{particles:t}:{},...u!==void 0?{animation:u}:{},...d!==void 0?{bloom:d}:{},...c!==void 0?{scroll:c}:{}})}catch(e){f.current.onError?.(e)}},[i,s,n,t,u,d,c]),O("div",{...w,ref:o,style:{width:"100%",height:500,...E}})});export{T as ShapeCue};
@@ -0,0 +1,188 @@
1
+ export interface EngineConfig {
2
+ animationPlaying?: boolean;
3
+ animationRestartKey?: number;
4
+ bloomIntensity?: number;
5
+ bloomThreshold?: number;
6
+ colorMode?: boolean;
7
+ convergeDuration?: number;
8
+ faceForward?: boolean;
9
+ pathShapeAutoRotate?: boolean;
10
+ pathShapeAutoRotateAmount?: number;
11
+ pathShapeAutoRotateSpeed?: number;
12
+ pathShapeScatter?: number;
13
+ rotationDepth?: number;
14
+ scrollDisperseDistance?: number;
15
+ scrollEffects?: boolean;
16
+ scrollStarDriftSpeed?: number;
17
+ scrollStartOffset?: number;
18
+ scrollTextFadeDistance?: number;
19
+ showCenterCluster?: boolean;
20
+ accretionExhale?: {
21
+ accretionRatio?: number;
22
+ ambientAmount?: number;
23
+ ambientSpeed?: number;
24
+ coreIntensity?: number;
25
+ duration?: number;
26
+ exhaleStrength?: number;
27
+ inwardStrength?: number;
28
+ propagationSoftness?: number;
29
+ settleDuration?: number;
30
+ startScale?: number;
31
+ };
32
+ animationPreset?: string;
33
+ colorPalette?: string;
34
+ colorPaletteColors?: string[];
35
+ dirtyGlass?: {
36
+ distortion?: number;
37
+ drift?: boolean;
38
+ driftStrength?: number;
39
+ enabled?: boolean;
40
+ grain?: number;
41
+ procedural?: number;
42
+ texture?: number;
43
+ };
44
+ grow?: {
45
+ duration?: number;
46
+ growthSpeed?: number;
47
+ softness?: number;
48
+ startZoom?: number;
49
+ };
50
+ interaction?: {
51
+ depthDisplacement?: number;
52
+ followDamping?: number;
53
+ illumination?: number;
54
+ magnification?: number;
55
+ particleRepel?: boolean;
56
+ repelDistance?: number;
57
+ repelFalloff?: number;
58
+ repelHighlight?: number;
59
+ repelHighlightRadius?: number;
60
+ repelPressMultiplier?: number;
61
+ repelRadius?: number;
62
+ repelReturnSpring?: number;
63
+ repelSpring?: number;
64
+ rotationLag?: number;
65
+ radius?: number;
66
+ smearCurl?: number;
67
+ smearTrailLength?: number;
68
+ };
69
+ interactionMode?: string;
70
+ lensFlare?: {
71
+ animated?: boolean;
72
+ enabled?: boolean;
73
+ ghosts?: number;
74
+ halo?: number;
75
+ intensity?: number;
76
+ secondary?: number;
77
+ streakLength?: number;
78
+ streaks?: number;
79
+ verticalStreaks?: number;
80
+ };
81
+ orbitalDust?: {
82
+ density?: number;
83
+ driftSpeed?: number;
84
+ enabled?: boolean;
85
+ intensity?: number;
86
+ reach?: number;
87
+ spread?: number;
88
+ tightSpread?: number;
89
+ };
90
+ stars?: {
91
+ density?: number;
92
+ densityFalloff?: number;
93
+ flowInward?: boolean;
94
+ flowSpeed?: number;
95
+ intensity?: number;
96
+ scatter?: number;
97
+ size?: number;
98
+ sizeFalloff?: number;
99
+ twinkleSpeed?: number;
100
+ };
101
+ }
102
+ export interface EngineSettingValues {
103
+ "animationPlaying": boolean;
104
+ "animationRestartKey": number;
105
+ "bloomIntensity": number;
106
+ "bloomThreshold": number;
107
+ "colorMode": boolean;
108
+ "convergeDuration": number;
109
+ "faceForward": boolean;
110
+ "pathShapeAutoRotate": boolean;
111
+ "pathShapeAutoRotateAmount": number;
112
+ "pathShapeAutoRotateSpeed": number;
113
+ "pathShapeScatter": number;
114
+ "rotationDepth": number;
115
+ "scrollDisperseDistance": number;
116
+ "scrollEffects": boolean;
117
+ "scrollStarDriftSpeed": number;
118
+ "scrollStartOffset": number;
119
+ "scrollTextFadeDistance": number;
120
+ "showCenterCluster": boolean;
121
+ "accretionExhale.accretionRatio": number;
122
+ "accretionExhale.ambientAmount": number;
123
+ "accretionExhale.ambientSpeed": number;
124
+ "accretionExhale.coreIntensity": number;
125
+ "accretionExhale.duration": number;
126
+ "accretionExhale.exhaleStrength": number;
127
+ "accretionExhale.inwardStrength": number;
128
+ "accretionExhale.propagationSoftness": number;
129
+ "accretionExhale.settleDuration": number;
130
+ "accretionExhale.startScale": number;
131
+ "animationPreset": string;
132
+ "colorPalette": string;
133
+ "colorPaletteColors": string[];
134
+ "dirtyGlass.distortion": number;
135
+ "dirtyGlass.drift": boolean;
136
+ "dirtyGlass.driftStrength": number;
137
+ "dirtyGlass.enabled": boolean;
138
+ "dirtyGlass.grain": number;
139
+ "dirtyGlass.procedural": number;
140
+ "dirtyGlass.texture": number;
141
+ "grow.duration": number;
142
+ "grow.growthSpeed": number;
143
+ "grow.softness": number;
144
+ "grow.startZoom": number;
145
+ "interaction.depthDisplacement": number;
146
+ "interaction.followDamping": number;
147
+ "interaction.illumination": number;
148
+ "interaction.magnification": number;
149
+ "interaction.particleRepel": boolean;
150
+ "interaction.repelDistance": number;
151
+ "interaction.repelFalloff": number;
152
+ "interaction.repelHighlight": number;
153
+ "interaction.repelHighlightRadius": number;
154
+ "interaction.repelPressMultiplier": number;
155
+ "interaction.repelRadius": number;
156
+ "interaction.repelReturnSpring": number;
157
+ "interaction.repelSpring": number;
158
+ "interaction.rotationLag": number;
159
+ "interaction.radius": number;
160
+ "interaction.smearCurl": number;
161
+ "interaction.smearTrailLength": number;
162
+ "interactionMode": string;
163
+ "lensFlare.animated": boolean;
164
+ "lensFlare.enabled": boolean;
165
+ "lensFlare.ghosts": number;
166
+ "lensFlare.halo": number;
167
+ "lensFlare.intensity": number;
168
+ "lensFlare.secondary": number;
169
+ "lensFlare.streakLength": number;
170
+ "lensFlare.streaks": number;
171
+ "lensFlare.verticalStreaks": number;
172
+ "orbitalDust.density": number;
173
+ "orbitalDust.driftSpeed": number;
174
+ "orbitalDust.enabled": boolean;
175
+ "orbitalDust.intensity": number;
176
+ "orbitalDust.reach": number;
177
+ "orbitalDust.spread": number;
178
+ "orbitalDust.tightSpread": number;
179
+ "stars.density": number;
180
+ "stars.densityFalloff": number;
181
+ "stars.flowInward": boolean;
182
+ "stars.flowSpeed": number;
183
+ "stars.intensity": number;
184
+ "stars.scatter": number;
185
+ "stars.size": number;
186
+ "stars.sizeFalloff": number;
187
+ "stars.twinkleSpeed": number;
188
+ }
@@ -0,0 +1,34 @@
1
+ 'use client';
2
+ import { useState } from 'react';
3
+ import { ShapeCue } from '@uxpilot/openai-astra-shape-cue/react';
4
+
5
+ export default function ReactHero() {
6
+ const [shape, setShape] = useState('heart');
7
+ const [playing, setPlaying] = useState(true);
8
+ const [speed, setSpeed] = useState(0.4);
9
+ const [error, setError] = useState('');
10
+ return (
11
+ <section style={{ background: '#0b0b12', color: '#eee', padding: 24 }}>
12
+ <h1>Shape Cue by UX Pilot</h1>
13
+ <label>Shape{' '}
14
+ <select value={shape} onChange={e => setShape(e.target.value)}>
15
+ <option value="heart">Heart</option>
16
+ <option value="star">Star</option>
17
+ <option value="infinity">Infinity</option>
18
+ <option value="hexagon">Hexagon</option>
19
+ </select>
20
+ </label>{' '}
21
+ <label>Speed{' '}
22
+ <input type="range" min="0" max="3" step="0.05" value={speed}
23
+ onChange={e => setSpeed(Number(e.target.value))} />
24
+ </label>{' '}
25
+ <button onClick={() => setPlaying(!playing)}>{playing ? 'Pause' : 'Resume'}</button>
26
+ {error && <p role="alert">{error}</p>}
27
+ <ShapeCue shape={shape} colors={['#9b87ff', '#47e2c2', '#ffffff']}
28
+ particles={{ density: 2, size: 1.5 }}
29
+ animation={{ speed, duration: 3, playing }} bloom={0.5}
30
+ options={{ interaction: 'rotate', background: 'transparent' }}
31
+ style={{ height: 500 }} onError={e => setError(String(e))} />
32
+ </section>
33
+ );
34
+ }
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1">
3
+ <title>Customize Shape Cue</title>
4
+ <style>body{background:#0b0b12;color:#eee;font:16px system-ui;margin:24px}button{padding:10px 16px;margin-right:8px;border-radius:6px;border:1px solid #77679c;background:#292336;color:#eee;cursor:pointer}astra-shape-cue{display:block;width:100%;height:65vh;min-height:320px}</style>
5
+ <script defer src="../dist/astra.min.js"></script></head><body>
6
+ <h1>Shape Cue by UX Pilot</h1>
7
+ <p>Switch colors and motion without editing the engine.</p>
8
+ <astra-shape-cue id="effect" shape="heart" colors="#9b87ff,#47e2c2,#ffffff" speed="0.4" gather-duration="3" particle-density="2" particle-size="1.5" bloom="0.5"></astra-shape-cue>
9
+ <button id="colors">Warm colors</button><button id="motion">Pause</button><button id="replay">Replay</button>
10
+ <script>
11
+ window.addEventListener('DOMContentLoaded',()=>{
12
+ const effect=document.getElementById('effect');
13
+ document.getElementById('colors').onclick=()=>effect.setAttribute('colors','#ff8e5e,#ffcf87');
14
+ document.getElementById('motion').onclick=e=>{
15
+ const paused=!effect.hasAttribute('paused');
16
+ effect.toggleAttribute('paused',paused);
17
+ e.target.textContent=paused?'Resume':'Pause';
18
+ };
19
+ document.getElementById('replay').onclick=()=>effect.cue.replay();
20
+ });
21
+ </script></body></html>
@@ -0,0 +1,25 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <title>Shape Cue by UX Pilot</title>
7
+ <link rel="stylesheet" href="../dist/panel.css">
8
+ <style>
9
+ body { margin:0; background:#08080b; color:#eee; font:14px system-ui; }
10
+ main { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; padding:24px; min-height:100vh; box-sizing:border-box; }
11
+ #effect { display:block; width:100%; height:calc(100vh - 48px); min-height:400px; }
12
+ #controls { max-height:calc(100vh - 48px); overflow:auto; }
13
+ @media(max-width:760px) { main { grid-template-columns:1fr; } #effect { height:55vh; } }
14
+ </style>
15
+ </head>
16
+ <body>
17
+ <main><div id="effect"></div><div id="controls"></div></main>
18
+ <script src="../dist/astra.min.js"></script>
19
+ <script>
20
+ const cue = UXPShapeCue.createShapeCue(document.getElementById('effect'), { shape:'star', palette:'aurora' });
21
+ const removeControls = UXPShapeCue.mountControls(cue, document.getElementById('controls'));
22
+ window.addEventListener('pagehide', () => { removeControls(); cue.dispose(); }, {once:true});
23
+ </script>
24
+ </body>
25
+ </html>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100">
2
+ <circle cx="50" cy="50" r="36"/>
3
+ <circle cx="150" cy="50" r="24"/>
4
+ </svg>
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@uxpilot/openai-astra-shape-cue",
3
+ "version": "1.0.0",
4
+ "description": "Interactive WebGL particle shapes for HTML and React, with custom SVG support.",
5
+ "type": "module",
6
+ "author": "UX Pilot Inc.",
7
+ "license": "SEE LICENSE IN LICENSE.md",
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "default": "./dist/index.js" },
13
+ "./react": { "types": "./dist/react.d.ts", "import": "./dist/react.js", "default": "./dist/react.js" },
14
+ "./panel.css": "./dist/panel.css",
15
+ "./dist/astra.min.js": "./dist/astra.min.js"
16
+ },
17
+ "unpkg": "dist/astra.min.js",
18
+ "jsdelivr": "dist/astra.min.js",
19
+ "files": ["dist", "examples", "LICENSE.md", "THIRD_PARTY_NOTICES.md", "README.md", "SETTINGS.md"],
20
+ "peerDependencies": { "react": ">=18 <20" },
21
+ "peerDependenciesMeta": { "react": { "optional": true } },
22
+ "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" },
23
+ "keywords": ["particles", "webgl", "svg", "animation", "react", "web-component"]
24
+ }