@satanwagen/reviewkit 0.1.2 → 0.1.3

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/README.md +134 -63
  3. package/dist/activate.cjs +150 -0
  4. package/dist/activate.cjs.map +1 -0
  5. package/dist/activate.d.cts +59 -0
  6. package/dist/activate.d.ts +59 -0
  7. package/dist/activate.js +21 -0
  8. package/dist/activate.js.map +1 -0
  9. package/dist/{chunk-4YNLMSCK.js → chunk-DG6O5XIC.js} +36 -10
  10. package/dist/chunk-DG6O5XIC.js.map +1 -0
  11. package/dist/chunk-ETAGGIDN.js +119 -0
  12. package/dist/chunk-ETAGGIDN.js.map +1 -0
  13. package/dist/{chunk-YWBFAV57.js → chunk-NSXRFM75.js} +853 -1544
  14. package/dist/chunk-NSXRFM75.js.map +1 -0
  15. package/dist/chunk-Q7U43PXE.js +36 -0
  16. package/dist/chunk-Q7U43PXE.js.map +1 -0
  17. package/dist/client/index.cjs +4530 -4237
  18. package/dist/client/index.cjs.map +1 -1
  19. package/dist/client/index.d.cts +1 -1
  20. package/dist/client/index.d.ts +1 -1
  21. package/dist/client/index.js +49 -3
  22. package/dist/client/index.js.map +1 -1
  23. package/dist/effects-EWKHKUDP.js +851 -0
  24. package/dist/effects-EWKHKUDP.js.map +1 -0
  25. package/dist/index-BUSmAweg.d.ts +77 -0
  26. package/dist/index-Dl2Fl0qr.d.cts +77 -0
  27. package/dist/index.cjs +4544 -4256
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +1 -1
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +35 -3
  32. package/dist/index.js.map +1 -1
  33. package/dist/lazy.cjs +8988 -0
  34. package/dist/lazy.cjs.map +1 -0
  35. package/dist/lazy.d.cts +7 -0
  36. package/dist/lazy.d.ts +7 -0
  37. package/dist/lazy.js +8 -0
  38. package/dist/lazy.js.map +1 -0
  39. package/dist/next.cjs +8989 -0
  40. package/dist/next.cjs.map +1 -0
  41. package/dist/next.d.cts +4 -0
  42. package/dist/next.d.ts +4 -0
  43. package/dist/next.js +9 -0
  44. package/dist/next.js.map +1 -0
  45. package/dist/schema.cjs +53 -16
  46. package/dist/schema.cjs.map +1 -1
  47. package/dist/schema.d.cts +20 -5
  48. package/dist/schema.d.ts +20 -5
  49. package/dist/schema.js +30 -2
  50. package/dist/schema.js.map +1 -1
  51. package/package.json +21 -8
  52. package/cli/emblema-sync.mjs +0 -675
  53. package/dist/chunk-4YNLMSCK.js.map +0 -1
  54. package/dist/chunk-YWBFAV57.js.map +0 -1
  55. package/dist/index-BbucFgZi.d.ts +0 -49
  56. package/dist/index-CBlJrKkm.d.cts +0 -49
@@ -1,49 +0,0 @@
1
- import { EmblemaConfig, ReviewSession } from './schema.js';
2
- import * as react from 'react';
3
-
4
- type BadgeCorner = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
5
- interface ReviewKitConfig {
6
- token?: string;
7
- /**
8
- * Shared secret for the realtime sync server. Public in the browser by
9
- * nature (anyone with the review URL + bundle can read it) — it gates
10
- * casual access, not determined attackers. Unset = solo mode, no network.
11
- */
12
- syncToken?: string;
13
- /**
14
- * WebSocket endpoint of the sync server. Defaults to the always-on
15
- * ReviewKit server (wss://agropolio.fucking.style/rk-sync) so live
16
- * collaboration works anywhere with zero setup; override for a
17
- * self-hosted server. Unreachable/invalid = silent local mode.
18
- */
19
- syncUrl?: string;
20
- /**
21
- * Optional host allowlist for where review may activate at all — e.g.
22
- * ['localhost', '*.dev.mojweb.sk', 'test.mojweb.sk']. Outside it nothing
23
- * activates, even with the right token. Unset = works everywhere
24
- * (the default; production use is intentional).
25
- */
26
- allowedHosts?: string[];
27
- defaultAuthor?: string;
28
- /**
29
- * Enables the Emblema bridge: review items push to a locally running
30
- * Emblema app automatically as they change (debounced, silent-fail), and
31
- * the panel's session menu gains a "Resend all to Emblema" fallback
32
- * (see INTEGRATION-EMBLEMA.md).
33
- */
34
- emblema?: EmblemaConfig;
35
- position?: BadgeCorner;
36
- storageKey?: string;
37
- onSessionChange?: (session: ReviewSession) => void;
38
- }
39
-
40
- type ReviewKitProps = ReviewKitConfig;
41
- /**
42
- * Drop-in visual review layer. Renders nothing unless activated via
43
- * `?review=<token>`, a dev build, or a `reviewkit` localStorage flag.
44
- * All UI lives in a shadow root on `document.body` — host CSS never leaks in,
45
- * plugin CSS never leaks out.
46
- */
47
- declare function ReviewKit(props: ReviewKitProps): react.JSX.Element | null;
48
-
49
- export { type BadgeCorner as B, ReviewKit as R, type ReviewKitConfig as a, type ReviewKitProps as b };
@@ -1,49 +0,0 @@
1
- import { EmblemaConfig, ReviewSession } from './schema.cjs';
2
- import * as react from 'react';
3
-
4
- type BadgeCorner = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
5
- interface ReviewKitConfig {
6
- token?: string;
7
- /**
8
- * Shared secret for the realtime sync server. Public in the browser by
9
- * nature (anyone with the review URL + bundle can read it) — it gates
10
- * casual access, not determined attackers. Unset = solo mode, no network.
11
- */
12
- syncToken?: string;
13
- /**
14
- * WebSocket endpoint of the sync server. Defaults to the always-on
15
- * ReviewKit server (wss://agropolio.fucking.style/rk-sync) so live
16
- * collaboration works anywhere with zero setup; override for a
17
- * self-hosted server. Unreachable/invalid = silent local mode.
18
- */
19
- syncUrl?: string;
20
- /**
21
- * Optional host allowlist for where review may activate at all — e.g.
22
- * ['localhost', '*.dev.mojweb.sk', 'test.mojweb.sk']. Outside it nothing
23
- * activates, even with the right token. Unset = works everywhere
24
- * (the default; production use is intentional).
25
- */
26
- allowedHosts?: string[];
27
- defaultAuthor?: string;
28
- /**
29
- * Enables the Emblema bridge: review items push to a locally running
30
- * Emblema app automatically as they change (debounced, silent-fail), and
31
- * the panel's session menu gains a "Resend all to Emblema" fallback
32
- * (see INTEGRATION-EMBLEMA.md).
33
- */
34
- emblema?: EmblemaConfig;
35
- position?: BadgeCorner;
36
- storageKey?: string;
37
- onSessionChange?: (session: ReviewSession) => void;
38
- }
39
-
40
- type ReviewKitProps = ReviewKitConfig;
41
- /**
42
- * Drop-in visual review layer. Renders nothing unless activated via
43
- * `?review=<token>`, a dev build, or a `reviewkit` localStorage flag.
44
- * All UI lives in a shadow root on `document.body` — host CSS never leaks in,
45
- * plugin CSS never leaks out.
46
- */
47
- declare function ReviewKit(props: ReviewKitProps): react.JSX.Element | null;
48
-
49
- export { type BadgeCorner as B, ReviewKit as R, type ReviewKitConfig as a, type ReviewKitProps as b };