@camstack/addon-export-hap 0.1.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/dist/@mf-types/compiled-types/page/HomeKitOverviewPage.d.ts +24 -0
- package/dist/@mf-types/compiled-types/page/HomeKitOverviewPage.d.ts.map +1 -0
- package/dist/@mf-types/compiled-types/page/page.d.ts +12 -0
- package/dist/@mf-types/compiled-types/page/page.d.ts.map +1 -0
- package/dist/@mf-types/page.d.ts +2 -0
- package/dist/@mf-types.d.ts +3 -0
- package/dist/@mf-types.zip +0 -0
- package/dist/__mfe_internal__addon_export_hap_page__loadShare___mf_0_camstack_mf_1_sdk__loadShare__.mjs-B7qZNHZC.mjs +12 -0
- package/dist/__mfe_internal__addon_export_hap_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-B3wGuKgV.mjs +12 -0
- package/dist/__mfe_internal__addon_export_hap_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs-D4zYQtXk.mjs +73 -0
- package/dist/__mfe_internal__addon_export_hap_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs-DrrRnQpW.mjs +42 -0
- package/dist/__mfe_internal__addon_export_hap_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.mjs-BEeMNLCX.mjs +46 -0
- package/dist/__mfe_internal__addon_export_hap_page__loadShare__react__loadShare__.mjs-BPYrKf_3.mjs +56 -0
- package/dist/__mfe_internal__addon_export_hap_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-x684zh94.mjs +18 -0
- package/dist/__mfe_internal__addon_export_hap_page__loadShare__react_mf_2_dom__loadShare__.mjs-CHMNar3q.mjs +28 -0
- package/dist/__mfe_internal__addon_export_hap_page__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs-CM8j15CX.mjs +18 -0
- package/dist/_stub.js +3223 -0
- package/dist/_virtual_mf-localSharedImportMap___mfe_internal__addon_export_hap_page-Cq9F5QFd.mjs +156 -0
- package/dist/addon-export-hap.css +3 -0
- package/dist/browser-i_dCVxwk.mjs +1227 -0
- package/dist/client-COVrSAyU.mjs +7592 -0
- package/dist/dist-BLWGlNFD.mjs +2483 -0
- package/dist/dist-Bna6cbWX.mjs +17192 -0
- package/dist/dist-C_M8X1vZ.mjs +1260 -0
- package/dist/dist-C_kcZj9a.mjs +12848 -0
- package/dist/dist-DOK7aZoj.mjs +662 -0
- package/dist/dist-RCwIG6iQ.mjs +2229 -0
- package/dist/export-hap.addon.js +57821 -0
- package/dist/export-hap.addon.js.map +1 -0
- package/dist/export-hap.addon.mjs +57807 -0
- package/dist/export-hap.addon.mjs.map +1 -0
- package/dist/getErrorShape-BPSzUA7W-m6tLWUI0.mjs +189 -0
- package/dist/hostInit-CPk5kMR8.mjs +144 -0
- package/dist/index.js +9 -0
- package/dist/index.mjs +2 -0
- package/dist/jsx-runtime-C-bO5vlp.mjs +22 -0
- package/dist/modern-DN59UY0v.mjs +2184 -0
- package/dist/react-Bl6eCS2o.mjs +293 -0
- package/dist/react-dom-lYY58-MR.mjs +131 -0
- package/dist/remoteEntry.js +83 -0
- package/dist/rolldown-runtime-DC4cgjXG.mjs +20 -0
- package/dist/schemas-DswVYZsq.mjs +3483 -0
- package/dist/virtualExposes-Biq8M5a-.mjs +27 -0
- package/package.json +93 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region virtual:mf-exposes:__mfe_internal__addon_export_hap_page__remoteEntry_js
|
|
2
|
+
var e = {}, t = /* @__PURE__ */ new Set(), n = Promise.resolve();
|
|
3
|
+
async function r(e) {
|
|
4
|
+
let t = n.then(e, e);
|
|
5
|
+
return n = t.then(() => void 0, () => void 0), t;
|
|
6
|
+
}
|
|
7
|
+
async function i(n) {
|
|
8
|
+
if (typeof document > "u") return;
|
|
9
|
+
let r = e[n] || [];
|
|
10
|
+
await Promise.all(r.map((e) => {
|
|
11
|
+
let n = new URL(e, import.meta.url).href;
|
|
12
|
+
return t.has(n) || (t.add(n), document.querySelector(`link[rel="stylesheet"][data-mf-href="${n}"]`)) ? Promise.resolve() : new Promise((e, t) => {
|
|
13
|
+
let r = document.createElement("link");
|
|
14
|
+
r.rel = "stylesheet", r.href = n, r.setAttribute("data-mf-href", n), r.onload = () => e(), r.onerror = () => t(/* @__PURE__ */ Error(`[Module Federation] Failed to load CSS asset: ${n}`)), document.head.appendChild(r);
|
|
15
|
+
});
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
var a = { "./page": async () => {
|
|
19
|
+
await i("./page");
|
|
20
|
+
let e = await r(() => import("./_stub.js")), t = {};
|
|
21
|
+
return Object.assign(t, e), Object.defineProperty(t, "__esModule", {
|
|
22
|
+
value: !0,
|
|
23
|
+
enumerable: !1
|
|
24
|
+
}), t;
|
|
25
|
+
} };
|
|
26
|
+
//#endregion
|
|
27
|
+
export { a as default };
|
package/package.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@camstack/addon-export-hap",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "HomeKit (HAP) bridge exporter for CamStack devices. Publishes a bridged accessory per exposed device — MotionSensor in this MVP; Camera/Doorbell/Switch/Light follow.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"camstack",
|
|
7
|
+
"addon",
|
|
8
|
+
"camstack-addon",
|
|
9
|
+
"homekit",
|
|
10
|
+
"hap",
|
|
11
|
+
"bridge"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"module": "./dist/index.mjs",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.mjs",
|
|
21
|
+
"require": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"camstack": {
|
|
26
|
+
"displayName": "HomeKit Export",
|
|
27
|
+
"addons": [
|
|
28
|
+
{
|
|
29
|
+
"id": "export-hap",
|
|
30
|
+
"name": "HomeKit Export",
|
|
31
|
+
"description": "Publishes a HomeKit (HAP) bridge so iOS Home can pair with exposed CamStack devices. MVP supports MotionSensor; Camera / Doorbell / Switch / Light land next.",
|
|
32
|
+
"entry": "./dist/export-hap.addon.js",
|
|
33
|
+
"execution": {
|
|
34
|
+
"placement": "hub-only",
|
|
35
|
+
"group": "export-hap"
|
|
36
|
+
},
|
|
37
|
+
"capabilities": [
|
|
38
|
+
{
|
|
39
|
+
"name": "device-export"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "addon-pages-source"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"pages": [
|
|
46
|
+
{
|
|
47
|
+
"id": "export-hap",
|
|
48
|
+
"label": "HomeKit Export",
|
|
49
|
+
"icon": "home",
|
|
50
|
+
"path": "/addon/export-hap",
|
|
51
|
+
"remoteName": "addon_export_hap_page",
|
|
52
|
+
"bundle": "remoteEntry.js"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"files": [
|
|
59
|
+
"dist"
|
|
60
|
+
],
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "vite build && vite build -c vite.page.config.ts",
|
|
63
|
+
"build:lib": "vite build",
|
|
64
|
+
"build:page": "vite build -c vite.page.config.ts",
|
|
65
|
+
"dev:page": "vite",
|
|
66
|
+
"typecheck": "tsc --noEmit"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@camstack/types": "^0.1.0",
|
|
70
|
+
"react": ">=18",
|
|
71
|
+
"react-dom": ">=18"
|
|
72
|
+
},
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@homebridge/hap-nodejs": "^2.1.6",
|
|
75
|
+
"werift-rtp": "^0.8.8"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@camstack/sdk": "*",
|
|
79
|
+
"@camstack/types": "*",
|
|
80
|
+
"@camstack/ui-library": "*",
|
|
81
|
+
"@module-federation/vite": "^1.15.2",
|
|
82
|
+
"@tailwindcss/vite": "^4.2.0",
|
|
83
|
+
"@trpc/client": "^11.16.0",
|
|
84
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
85
|
+
"lucide-react": "^0.576",
|
|
86
|
+
"react": "^19.0.0",
|
|
87
|
+
"react-dom": "^19.0.0",
|
|
88
|
+
"tailwindcss": "^4.2.0",
|
|
89
|
+
"typescript": "~5.9.0",
|
|
90
|
+
"vite": "^8.0.11",
|
|
91
|
+
"vite-plugin-dts": "^5.0.0"
|
|
92
|
+
}
|
|
93
|
+
}
|