@luci-dev/toolbar 0.0.0-stage → 0.5.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 +21 -0
- package/README.md +68 -2
- package/dist/devToolbar.d.ts +55 -0
- package/dist/devToolbar.d.ts.map +1 -0
- package/dist/devToolbar.js +475 -0
- package/dist/devToolbar.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/luci-toolbar.js +37593 -0
- package/dist/script.d.ts +9 -0
- package/dist/script.d.ts.map +1 -0
- package/dist/script.js +16 -0
- package/dist/script.js.map +1 -0
- package/package.json +25 -3
package/dist/script.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { mountDevToolbar, type DevToolbarHandle } from './devToolbar.js';
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
__LUCI_BRIDGE__?: string;
|
|
5
|
+
luciDevToolbar?: Promise<DevToolbarHandle>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export { mountDevToolbar };
|
|
9
|
+
//# sourceMappingURL=script.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../src/script.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEzE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,cAAc,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/dist/script.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The script-tag entry (`<script src="http://127.0.0.1:4545/toolbar.js"></script>`, served by
|
|
3
|
+
* `luci serve`): mounts the dev toolbar once the page is ready, once per page.
|
|
4
|
+
*/
|
|
5
|
+
import { LUCI_FRAME_NAME } from '@luci-dev/capture';
|
|
6
|
+
import { mountDevToolbar } from './devToolbar.js';
|
|
7
|
+
export { mountDevToolbar };
|
|
8
|
+
// Not inside the hidden frames Luci reads other widths in (responsive capture): only the page itself
|
|
9
|
+
if (typeof window !== 'undefined' && !window.luciDevToolbar && window.name !== LUCI_FRAME_NAME) {
|
|
10
|
+
const start = () => { window.luciDevToolbar = mountDevToolbar(); };
|
|
11
|
+
if (document.readyState === 'loading')
|
|
12
|
+
document.addEventListener('DOMContentLoaded', start, { once: true });
|
|
13
|
+
else
|
|
14
|
+
start();
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script.js","sourceRoot":"","sources":["../src/script.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAyB,MAAM,iBAAiB,CAAC;AASzE,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,qGAAqG;AACrG,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,MAAM,CAAC,cAAc,IAAI,MAAM,CAAC,IAAI,KAAK,eAAe,EAAE,CAAC;IAC/F,MAAM,KAAK,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,cAAc,GAAG,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,QAAQ,CAAC,UAAU,KAAK,SAAS;QAAE,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;;QACvG,KAAK,EAAE,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luci-dev/toolbar",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "The dev toolbar: feedback and capture in your own app, saved into the project through luci serve.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./script": {
|
|
13
|
+
"default": "./dist/luci-toolbar.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@luci-dev/capture": "0.5.0",
|
|
21
|
+
"@luci-dev/feedback": "0.5.0",
|
|
22
|
+
"@luci-dev/format": "0.5.0",
|
|
23
|
+
"@luci-dev/ui": "0.5.0"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
}
|
|
6
28
|
}
|