@reservi/wc 1.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 Reservi
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/dist/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";var h=Object.defineProperty;var b=(t,i,e)=>i in t?h(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e;var l=(t,i,e)=>b(t,typeof i!="symbol"?i+"":i,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("@reservi/preact"),n=require("@reservi/core"),a={"initial-view":"initialView","initial-date":"initialDate",locale:"locale",direction:"direction",theme:"theme"},o={editable:"editable",selectable:"selectable",weekends:"weekends"};class d extends HTMLElement{constructor(){super(...arguments);l(this,"handle",null);l(this,"props",{})}static get observedAttributes(){return[...Object.keys(a),...Object.keys(o)]}connectedCallback(){this.render()}disconnectedCallback(){var e;(e=this.handle)==null||e.destroy(),this.handle=null}attributeChangedCallback(){this.isConnected&&this.render()}get api(){var e;return(e=this.handle)==null?void 0:e.api}set options(e){this.props={...this.props,...e},this.render()}set events(e){this.props.events=e,this.render()}set resources(e){this.props.resources=e,this.render()}set plugins(e){this.props.plugins=e,this.render()}readAttributes(){const e={};for(const[r,s]of Object.entries(a)){const u=this.getAttribute(r);u!=null&&(e[s]=u)}for(const[r,s]of Object.entries(o))this.hasAttribute(r)&&(e[s]=this.getAttribute(r)!=="false");return e}render(){var r;const e={...this.readAttributes(),...this.props};!e.initialView||!e.plugins||((r=this.handle)==null||r.destroy(),this.handle=p.mount(this,e))}}function c(t="reservi-calendar"){typeof customElements<"u"&&!customElements.get(t)&&customElements.define(t,d)}c();Object.defineProperty(exports,"dayGridPlugin",{enumerable:!0,get:()=>n.dayGridPlugin});Object.defineProperty(exports,"listPlugin",{enumerable:!0,get:()=>n.listPlugin});Object.defineProperty(exports,"multiMonthPlugin",{enumerable:!0,get:()=>n.multiMonthPlugin});Object.defineProperty(exports,"resourcePlugin",{enumerable:!0,get:()=>n.resourcePlugin});Object.defineProperty(exports,"timeGridPlugin",{enumerable:!0,get:()=>n.timeGridPlugin});Object.defineProperty(exports,"timelinePlugin",{enumerable:!0,get:()=>n.timelinePlugin});exports.ReserviCalendarElement=d;exports.defineReserviCalendar=c;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import { mount, type ReserviCalendarHandle, type ReserviCalendarOptions } from \"@reservi/preact\";\nimport type { CalendarApi, EventInput, PluginDef, ResourceInput } from \"@reservi/core\";\n\n/** Atributos (string/bool) que se mapean a opciones del calendario. */\nconst ATTR_MAP: Record<string, keyof ReserviCalendarOptions> = {\n \"initial-view\": \"initialView\",\n \"initial-date\": \"initialDate\",\n locale: \"locale\",\n direction: \"direction\",\n theme: \"theme\",\n};\nconst BOOL_ATTRS: Record<string, keyof ReserviCalendarOptions> = {\n editable: \"editable\",\n selectable: \"selectable\",\n weekends: \"weekends\",\n};\n\n/**\n * Custom element `<reservi-calendar>`. Configurable por atributos (simples) y por\n * propiedades JS (objetos: events, resources, plugins, slots…). Funciona en\n * cualquier framework o vanilla.\n */\nexport class ReserviCalendarElement extends HTMLElement {\n static get observedAttributes(): string[] {\n return [...Object.keys(ATTR_MAP), ...Object.keys(BOOL_ATTRS)];\n }\n\n private handle: ReserviCalendarHandle | null = null;\n private props: Partial<ReserviCalendarOptions> = {};\n\n connectedCallback(): void {\n this.render();\n }\n\n disconnectedCallback(): void {\n this.handle?.destroy();\n this.handle = null;\n }\n\n attributeChangedCallback(): void {\n if (this.isConnected) this.render();\n }\n\n /** API del calendario (disponible tras conectar). */\n get api(): CalendarApi | undefined {\n return this.handle?.api;\n }\n\n // Propiedades JS para datos complejos.\n set options(value: Partial<ReserviCalendarOptions>) {\n this.props = { ...this.props, ...value };\n this.render();\n }\n set events(value: EventInput[]) {\n this.props.events = value;\n this.render();\n }\n set resources(value: ResourceInput[]) {\n this.props.resources = value;\n this.render();\n }\n set plugins(value: PluginDef[]) {\n this.props.plugins = value;\n this.render();\n }\n\n private readAttributes(): Partial<ReserviCalendarOptions> {\n const opts: Record<string, unknown> = {};\n for (const [attr, key] of Object.entries(ATTR_MAP)) {\n const value = this.getAttribute(attr);\n if (value != null) opts[key] = value;\n }\n for (const [attr, key] of Object.entries(BOOL_ATTRS)) {\n if (this.hasAttribute(attr)) opts[key] = this.getAttribute(attr) !== \"false\";\n }\n return opts as Partial<ReserviCalendarOptions>;\n }\n\n private render(): void {\n const options = { ...this.readAttributes(), ...this.props } as ReserviCalendarOptions;\n if (!options.initialView || !options.plugins) return; // aún sin configurar\n this.handle?.destroy();\n this.handle = mount(this, options);\n }\n}\n\n/** Registra el custom element (idempotente). */\nexport function defineReserviCalendar(tag = \"reservi-calendar\"): void {\n if (typeof customElements !== \"undefined\" && !customElements.get(tag)) {\n customElements.define(tag, ReserviCalendarElement);\n }\n}\n\n// Auto-registro al importar.\ndefineReserviCalendar();\n\n// Re-exporta plugins para uso vía propiedad `plugins`.\nexport {\n dayGridPlugin,\n timeGridPlugin,\n listPlugin,\n multiMonthPlugin,\n timelinePlugin,\n resourcePlugin,\n} from \"@reservi/core\";\n"],"names":["ATTR_MAP","BOOL_ATTRS","ReserviCalendarElement","__publicField","_a","value","opts","attr","key","options","mount","defineReserviCalendar","tag"],"mappings":"kTAIMA,EAAyD,CAC7D,eAAgB,cAChB,eAAgB,cAChB,OAAQ,SACR,UAAW,YACX,MAAO,OACT,EACMC,EAA2D,CAC/D,SAAU,WACV,WAAY,aACZ,SAAU,UACZ,EAOO,MAAMC,UAA+B,WAAY,CAAjD,kCAKGC,EAAA,cAAuC,MACvCA,EAAA,aAAyC,CAAA,GALjD,WAAW,oBAA+B,CACxC,MAAO,CAAC,GAAG,OAAO,KAAKH,CAAQ,EAAG,GAAG,OAAO,KAAKC,CAAU,CAAC,CAC9D,CAKA,mBAA0B,CACxB,KAAK,OAAA,CACP,CAEA,sBAA6B,QAC3BG,EAAA,KAAK,SAAL,MAAAA,EAAa,UACb,KAAK,OAAS,IAChB,CAEA,0BAAiC,CAC3B,KAAK,aAAa,KAAK,OAAA,CAC7B,CAGA,IAAI,KAA+B,OACjC,OAAOA,EAAA,KAAK,SAAL,YAAAA,EAAa,GACtB,CAGA,IAAI,QAAQC,EAAwC,CAClD,KAAK,MAAQ,CAAE,GAAG,KAAK,MAAO,GAAGA,CAAA,EACjC,KAAK,OAAA,CACP,CACA,IAAI,OAAOA,EAAqB,CAC9B,KAAK,MAAM,OAASA,EACpB,KAAK,OAAA,CACP,CACA,IAAI,UAAUA,EAAwB,CACpC,KAAK,MAAM,UAAYA,EACvB,KAAK,OAAA,CACP,CACA,IAAI,QAAQA,EAAoB,CAC9B,KAAK,MAAM,QAAUA,EACrB,KAAK,OAAA,CACP,CAEQ,gBAAkD,CACxD,MAAMC,EAAgC,CAAA,EACtC,SAAW,CAACC,EAAMC,CAAG,IAAK,OAAO,QAAQR,CAAQ,EAAG,CAClD,MAAMK,EAAQ,KAAK,aAAaE,CAAI,EAChCF,GAAS,OAAMC,EAAKE,CAAG,EAAIH,EACjC,CACA,SAAW,CAACE,EAAMC,CAAG,IAAK,OAAO,QAAQP,CAAU,EAC7C,KAAK,aAAaM,CAAI,IAAGD,EAAKE,CAAG,EAAI,KAAK,aAAaD,CAAI,IAAM,SAEvE,OAAOD,CACT,CAEQ,QAAe,OACrB,MAAMG,EAAU,CAAE,GAAG,KAAK,iBAAkB,GAAG,KAAK,KAAA,EAChD,CAACA,EAAQ,aAAe,CAACA,EAAQ,WACrCL,EAAA,KAAK,SAAL,MAAAA,EAAa,UACb,KAAK,OAASM,QAAM,KAAMD,CAAO,EACnC,CACF,CAGO,SAASE,EAAsBC,EAAM,mBAA0B,CAChE,OAAO,eAAmB,KAAe,CAAC,eAAe,IAAIA,CAAG,GAClE,eAAe,OAAOA,EAAKV,CAAsB,CAErD,CAGAS,EAAA"}
@@ -0,0 +1,50 @@
1
+ import { CalendarApi } from '@reservi/core';
2
+ import { dayGridPlugin } from '@reservi/core';
3
+ import { EventInput } from '@reservi/core';
4
+ import { listPlugin } from '@reservi/core';
5
+ import { multiMonthPlugin } from '@reservi/core';
6
+ import { PluginDef } from '@reservi/core';
7
+ import { ReserviCalendarOptions } from '@reservi/preact';
8
+ import { ResourceInput } from '@reservi/core';
9
+ import { resourcePlugin } from '@reservi/core';
10
+ import { timeGridPlugin } from '@reservi/core';
11
+ import { timelinePlugin } from '@reservi/core';
12
+
13
+ export { dayGridPlugin }
14
+
15
+ /** Registra el custom element (idempotente). */
16
+ export declare function defineReserviCalendar(tag?: string): void;
17
+
18
+ export { listPlugin }
19
+
20
+ export { multiMonthPlugin }
21
+
22
+ /**
23
+ * Custom element `<reservi-calendar>`. Configurable por atributos (simples) y por
24
+ * propiedades JS (objetos: events, resources, plugins, slots…). Funciona en
25
+ * cualquier framework o vanilla.
26
+ */
27
+ export declare class ReserviCalendarElement extends HTMLElement {
28
+ static get observedAttributes(): string[];
29
+ private handle;
30
+ private props;
31
+ connectedCallback(): void;
32
+ disconnectedCallback(): void;
33
+ attributeChangedCallback(): void;
34
+ /** API del calendario (disponible tras conectar). */
35
+ get api(): CalendarApi | undefined;
36
+ set options(value: Partial<ReserviCalendarOptions>);
37
+ set events(value: EventInput[]);
38
+ set resources(value: ResourceInput[]);
39
+ set plugins(value: PluginDef[]);
40
+ private readAttributes;
41
+ private render;
42
+ }
43
+
44
+ export { resourcePlugin }
45
+
46
+ export { timeGridPlugin }
47
+
48
+ export { timelinePlugin }
49
+
50
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,84 @@
1
+ var d = Object.defineProperty;
2
+ var c = (t, i, e) => i in t ? d(t, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[i] = e;
3
+ var r = (t, i, e) => c(t, typeof i != "symbol" ? i + "" : i, e);
4
+ import { mount as h } from "@reservi/preact";
5
+ import { dayGridPlugin as k, listPlugin as A, multiMonthPlugin as v, resourcePlugin as y, timeGridPlugin as C, timelinePlugin as P } from "@reservi/core";
6
+ const o = {
7
+ "initial-view": "initialView",
8
+ "initial-date": "initialDate",
9
+ locale: "locale",
10
+ direction: "direction",
11
+ theme: "theme"
12
+ }, a = {
13
+ editable: "editable",
14
+ selectable: "selectable",
15
+ weekends: "weekends"
16
+ };
17
+ class u extends HTMLElement {
18
+ constructor() {
19
+ super(...arguments);
20
+ r(this, "handle", null);
21
+ r(this, "props", {});
22
+ }
23
+ static get observedAttributes() {
24
+ return [...Object.keys(o), ...Object.keys(a)];
25
+ }
26
+ connectedCallback() {
27
+ this.render();
28
+ }
29
+ disconnectedCallback() {
30
+ var e;
31
+ (e = this.handle) == null || e.destroy(), this.handle = null;
32
+ }
33
+ attributeChangedCallback() {
34
+ this.isConnected && this.render();
35
+ }
36
+ /** API del calendario (disponible tras conectar). */
37
+ get api() {
38
+ var e;
39
+ return (e = this.handle) == null ? void 0 : e.api;
40
+ }
41
+ // Propiedades JS para datos complejos.
42
+ set options(e) {
43
+ this.props = { ...this.props, ...e }, this.render();
44
+ }
45
+ set events(e) {
46
+ this.props.events = e, this.render();
47
+ }
48
+ set resources(e) {
49
+ this.props.resources = e, this.render();
50
+ }
51
+ set plugins(e) {
52
+ this.props.plugins = e, this.render();
53
+ }
54
+ readAttributes() {
55
+ const e = {};
56
+ for (const [s, n] of Object.entries(o)) {
57
+ const l = this.getAttribute(s);
58
+ l != null && (e[n] = l);
59
+ }
60
+ for (const [s, n] of Object.entries(a))
61
+ this.hasAttribute(s) && (e[n] = this.getAttribute(s) !== "false");
62
+ return e;
63
+ }
64
+ render() {
65
+ var s;
66
+ const e = { ...this.readAttributes(), ...this.props };
67
+ !e.initialView || !e.plugins || ((s = this.handle) == null || s.destroy(), this.handle = h(this, e));
68
+ }
69
+ }
70
+ function p(t = "reservi-calendar") {
71
+ typeof customElements < "u" && !customElements.get(t) && customElements.define(t, u);
72
+ }
73
+ p();
74
+ export {
75
+ u as ReserviCalendarElement,
76
+ k as dayGridPlugin,
77
+ p as defineReserviCalendar,
78
+ A as listPlugin,
79
+ v as multiMonthPlugin,
80
+ y as resourcePlugin,
81
+ C as timeGridPlugin,
82
+ P as timelinePlugin
83
+ };
84
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { mount, type ReserviCalendarHandle, type ReserviCalendarOptions } from \"@reservi/preact\";\nimport type { CalendarApi, EventInput, PluginDef, ResourceInput } from \"@reservi/core\";\n\n/** Atributos (string/bool) que se mapean a opciones del calendario. */\nconst ATTR_MAP: Record<string, keyof ReserviCalendarOptions> = {\n \"initial-view\": \"initialView\",\n \"initial-date\": \"initialDate\",\n locale: \"locale\",\n direction: \"direction\",\n theme: \"theme\",\n};\nconst BOOL_ATTRS: Record<string, keyof ReserviCalendarOptions> = {\n editable: \"editable\",\n selectable: \"selectable\",\n weekends: \"weekends\",\n};\n\n/**\n * Custom element `<reservi-calendar>`. Configurable por atributos (simples) y por\n * propiedades JS (objetos: events, resources, plugins, slots…). Funciona en\n * cualquier framework o vanilla.\n */\nexport class ReserviCalendarElement extends HTMLElement {\n static get observedAttributes(): string[] {\n return [...Object.keys(ATTR_MAP), ...Object.keys(BOOL_ATTRS)];\n }\n\n private handle: ReserviCalendarHandle | null = null;\n private props: Partial<ReserviCalendarOptions> = {};\n\n connectedCallback(): void {\n this.render();\n }\n\n disconnectedCallback(): void {\n this.handle?.destroy();\n this.handle = null;\n }\n\n attributeChangedCallback(): void {\n if (this.isConnected) this.render();\n }\n\n /** API del calendario (disponible tras conectar). */\n get api(): CalendarApi | undefined {\n return this.handle?.api;\n }\n\n // Propiedades JS para datos complejos.\n set options(value: Partial<ReserviCalendarOptions>) {\n this.props = { ...this.props, ...value };\n this.render();\n }\n set events(value: EventInput[]) {\n this.props.events = value;\n this.render();\n }\n set resources(value: ResourceInput[]) {\n this.props.resources = value;\n this.render();\n }\n set plugins(value: PluginDef[]) {\n this.props.plugins = value;\n this.render();\n }\n\n private readAttributes(): Partial<ReserviCalendarOptions> {\n const opts: Record<string, unknown> = {};\n for (const [attr, key] of Object.entries(ATTR_MAP)) {\n const value = this.getAttribute(attr);\n if (value != null) opts[key] = value;\n }\n for (const [attr, key] of Object.entries(BOOL_ATTRS)) {\n if (this.hasAttribute(attr)) opts[key] = this.getAttribute(attr) !== \"false\";\n }\n return opts as Partial<ReserviCalendarOptions>;\n }\n\n private render(): void {\n const options = { ...this.readAttributes(), ...this.props } as ReserviCalendarOptions;\n if (!options.initialView || !options.plugins) return; // aún sin configurar\n this.handle?.destroy();\n this.handle = mount(this, options);\n }\n}\n\n/** Registra el custom element (idempotente). */\nexport function defineReserviCalendar(tag = \"reservi-calendar\"): void {\n if (typeof customElements !== \"undefined\" && !customElements.get(tag)) {\n customElements.define(tag, ReserviCalendarElement);\n }\n}\n\n// Auto-registro al importar.\ndefineReserviCalendar();\n\n// Re-exporta plugins para uso vía propiedad `plugins`.\nexport {\n dayGridPlugin,\n timeGridPlugin,\n listPlugin,\n multiMonthPlugin,\n timelinePlugin,\n resourcePlugin,\n} from \"@reservi/core\";\n"],"names":["ATTR_MAP","BOOL_ATTRS","ReserviCalendarElement","__publicField","_a","value","opts","attr","key","options","mount","defineReserviCalendar","tag"],"mappings":";;;;;AAIA,MAAMA,IAAyD;AAAA,EAC7D,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,OAAO;AACT,GACMC,IAA2D;AAAA,EAC/D,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,UAAU;AACZ;AAOO,MAAMC,UAA+B,YAAY;AAAA,EAAjD;AAAA;AAKG,IAAAC,EAAA,gBAAuC;AACvC,IAAAA,EAAA,eAAyC,CAAA;AAAA;AAAA,EALjD,WAAW,qBAA+B;AACxC,WAAO,CAAC,GAAG,OAAO,KAAKH,CAAQ,GAAG,GAAG,OAAO,KAAKC,CAAU,CAAC;AAAA,EAC9D;AAAA,EAKA,oBAA0B;AACxB,SAAK,OAAA;AAAA,EACP;AAAA,EAEA,uBAA6B;;AAC3B,KAAAG,IAAA,KAAK,WAAL,QAAAA,EAAa,WACb,KAAK,SAAS;AAAA,EAChB;AAAA,EAEA,2BAAiC;AAC/B,IAAI,KAAK,eAAa,KAAK,OAAA;AAAA,EAC7B;AAAA;AAAA,EAGA,IAAI,MAA+B;;AACjC,YAAOA,IAAA,KAAK,WAAL,gBAAAA,EAAa;AAAA,EACtB;AAAA;AAAA,EAGA,IAAI,QAAQC,GAAwC;AAClD,SAAK,QAAQ,EAAE,GAAG,KAAK,OAAO,GAAGA,EAAA,GACjC,KAAK,OAAA;AAAA,EACP;AAAA,EACA,IAAI,OAAOA,GAAqB;AAC9B,SAAK,MAAM,SAASA,GACpB,KAAK,OAAA;AAAA,EACP;AAAA,EACA,IAAI,UAAUA,GAAwB;AACpC,SAAK,MAAM,YAAYA,GACvB,KAAK,OAAA;AAAA,EACP;AAAA,EACA,IAAI,QAAQA,GAAoB;AAC9B,SAAK,MAAM,UAAUA,GACrB,KAAK,OAAA;AAAA,EACP;AAAA,EAEQ,iBAAkD;AACxD,UAAMC,IAAgC,CAAA;AACtC,eAAW,CAACC,GAAMC,CAAG,KAAK,OAAO,QAAQR,CAAQ,GAAG;AAClD,YAAMK,IAAQ,KAAK,aAAaE,CAAI;AACpC,MAAIF,KAAS,SAAMC,EAAKE,CAAG,IAAIH;AAAA,IACjC;AACA,eAAW,CAACE,GAAMC,CAAG,KAAK,OAAO,QAAQP,CAAU;AACjD,MAAI,KAAK,aAAaM,CAAI,MAAGD,EAAKE,CAAG,IAAI,KAAK,aAAaD,CAAI,MAAM;AAEvE,WAAOD;AAAA,EACT;AAAA,EAEQ,SAAe;;AACrB,UAAMG,IAAU,EAAE,GAAG,KAAK,kBAAkB,GAAG,KAAK,MAAA;AACpD,IAAI,CAACA,EAAQ,eAAe,CAACA,EAAQ,aACrCL,IAAA,KAAK,WAAL,QAAAA,EAAa,WACb,KAAK,SAASM,EAAM,MAAMD,CAAO;AAAA,EACnC;AACF;AAGO,SAASE,EAAsBC,IAAM,oBAA0B;AACpE,EAAI,OAAO,iBAAmB,OAAe,CAAC,eAAe,IAAIA,CAAG,KAClE,eAAe,OAAOA,GAAKV,CAAsB;AAErD;AAGAS,EAAA;"}
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@reservi/wc",
3
+ "version": "1.1.0",
4
+ "description": "Web Component (<reservi-calendar>) de Reservi Calendar para cualquier framework o vanilla.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": true,
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "main": "./dist/index.cjs",
12
+ "module": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js",
18
+ "require": "./dist/index.cjs"
19
+ }
20
+ },
21
+ "dependencies": {
22
+ "@reservi/core": "1.1.0",
23
+ "@reservi/preact": "1.1.0"
24
+ },
25
+ "peerDependencies": {
26
+ "preact": "^10.25.0"
27
+ },
28
+ "devDependencies": {
29
+ "jsdom": "^25.0.1",
30
+ "preact": "^10.25.4",
31
+ "typescript": "^5.7.2",
32
+ "vite": "^6.0.0",
33
+ "vite-plugin-dts": "^4.3.0",
34
+ "vitest": "^2.1.8",
35
+ "@reservi/eslint-config": "1.1.0",
36
+ "@reservi/tsconfig": "1.1.0"
37
+ },
38
+ "scripts": {
39
+ "build": "vite build",
40
+ "dev": "vite build --watch",
41
+ "test": "vitest run",
42
+ "lint": "eslint src",
43
+ "typecheck": "tsc --noEmit"
44
+ }
45
+ }