@githumbi/grabby 0.1.0 → 0.1.2
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/CHANGELOG.md +12 -0
- package/README.md +157 -70
- package/dist/chunk-6CBIOKZV.cjs.map +1 -1
- package/dist/cli/index.js +36 -14
- package/dist/cli/index.js.map +1 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/live/index.cjs.map +1 -1
- package/package.json +3 -3
package/dist/live/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/grabby/grabby/packages/grabby/dist/live/index.cjs","../../src/live.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,yDAA8B;AAC9B;AACA;ACYO,SAAS,cAAA,CAAe,OAAA,EAAkE;AAC/F,EAAA,MAAM,KAAA,EAA+B,EAAE,GAAG,OAAA,EAAS,IAAA,EAAM,OAAO,CAAA;AAChE,EAAA,IAAI,OAAA,EAAoC,IAAA;AACxC,EAAA,MAAM,KAAA,EAAO,CAAA,EAAA,GAAO,OAAA,IAAW,4DAAA,CAAO,mBAAc,GAAA,CAAE,IAAA,CAAK,CAAC,EAAE,KAAK,CAAA,EAAA,GAAM,IAAA,CAAK,IAAI,CAAC,CAAA;AAEnF,EAAA,IAAI,QAAA,EAAU,KAAA;AACd,EAAA,IAAI;AAAE,IAAA,QAAA,EAAU,CAAC,CAAC,YAAA,CAAa,OAAA,CAAQ,kBAAkB,CAAA;AAAA,EAAG,EAAA,UAAQ;AAAA,EAAe;AAEnF,EAAA,MAAM,MAAA,EAAQ,mDAAA,OAAoB,CAAQ,UAAU,EAAA,GAAK,QAAA,EAAU,IAAA,CAAK,EAAA,EAAI,OAAA,CAAQ,OAAA,CAAQ,IAAI,CAAA;AAChG,EAAA,OAAO;AAAA,IACL,KAAA;AAAA,IACA,IAAA,EAAM,MAAA,CAAA,EAAA,GAAY;AAChB,MAAA,oDAAA,CAAqB;AACrB,MAAA,MAAM,IAAA,EAAM,MAAM,IAAA,CAAK,CAAA;AACvB,MAAA,GAAA,CAAI,IAAA,CAAK,CAAA;AACT,MAAA,OAAO,GAAA;AAAA,IACT;AAAA,EACF,CAAA;AACF;ADTA;AACE;AACF,wCAAC","file":"/home/runner/work/grabby/grabby/packages/grabby/dist/live/index.cjs","sourcesContent":[null,"import type { GrabbyOptions, GrabbyAPI } from './core/types';\nimport { consumeFeedbackLink, startFeedbackSession } from './core/live/activation';\n\nexport interface LiveHandle {\n /** Start a feedback session and load Grabby, e.g. from your own \"Give feedback\" button. */\n show(): Promise<GrabbyAPI>;\n /** Resolves with the API once loaded, or null while the visitor isn't in a feedback session. */\n ready: Promise<GrabbyAPI | null>;\n}\n\n/**\n * Live mode for bundler users, without the weight: this entry is tiny and\n * imports the rest of Grabby only for visitors who opened a feedback link.\n *\n * import { initGrabbyLive } from '@githumbi/grabby/live';\n * initGrabbyLive({ server: 'https://feedback.example.com', projectKey: 'pk_…' });\n */\nexport function initGrabbyLive(options: Partial<GrabbyOptions> & { server: string }): LiveHandle {\n const opts: Partial<GrabbyOptions> = { ...options, mode: 'live' };\n let loaded: Promise<GrabbyAPI> | null = null;\n const load = () => (loaded ??= import('./core/index').then(({ init }) => init(opts)));\n\n let pending = false;\n try { pending = !!localStorage.getItem('grabby:v1:outbox'); } catch { /* ignore */ }\n\n const ready = consumeFeedbackLink(options.projectKey) || pending ? load() : Promise.resolve(null);\n return {\n ready,\n show: async () => {\n startFeedbackSession();\n const api = await load();\n api.show();\n return api;\n },\n };\n}\n\nexport type { GrabbyOptions, GrabbyAPI };\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@githumbi/grabby",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Point at any UI element, leave a comment, and hand the feedback to an AI coding agent. Works with React, Angular, Vue, Svelte and plain HTML.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"grabby",
|
|
@@ -169,8 +169,8 @@
|
|
|
169
169
|
},
|
|
170
170
|
"devDependencies": {
|
|
171
171
|
"@angular-devkit/architect": "^0.2102.24",
|
|
172
|
-
"@angular/build": "^21.2.
|
|
173
|
-
"@angular/core": "^21.2.
|
|
172
|
+
"@angular/build": "^21.2.23",
|
|
173
|
+
"@angular/core": "^21.2.23",
|
|
174
174
|
"@types/babel__core": "^7.20.5",
|
|
175
175
|
"esbuild": "^0.28.1",
|
|
176
176
|
"jsdom": "^26.1.0",
|