@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.
- package/CHANGELOG.md +105 -0
- package/README.md +134 -63
- package/dist/activate.cjs +150 -0
- package/dist/activate.cjs.map +1 -0
- package/dist/activate.d.cts +59 -0
- package/dist/activate.d.ts +59 -0
- package/dist/activate.js +21 -0
- package/dist/activate.js.map +1 -0
- package/dist/{chunk-4YNLMSCK.js → chunk-DG6O5XIC.js} +36 -10
- package/dist/chunk-DG6O5XIC.js.map +1 -0
- package/dist/chunk-ETAGGIDN.js +119 -0
- package/dist/chunk-ETAGGIDN.js.map +1 -0
- package/dist/{chunk-YWBFAV57.js → chunk-NSXRFM75.js} +853 -1544
- package/dist/chunk-NSXRFM75.js.map +1 -0
- package/dist/chunk-Q7U43PXE.js +36 -0
- package/dist/chunk-Q7U43PXE.js.map +1 -0
- package/dist/client/index.cjs +4530 -4237
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +49 -3
- package/dist/client/index.js.map +1 -1
- package/dist/effects-EWKHKUDP.js +851 -0
- package/dist/effects-EWKHKUDP.js.map +1 -0
- package/dist/index-BUSmAweg.d.ts +77 -0
- package/dist/index-Dl2Fl0qr.d.cts +77 -0
- package/dist/index.cjs +4544 -4256
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +35 -3
- package/dist/index.js.map +1 -1
- package/dist/lazy.cjs +8988 -0
- package/dist/lazy.cjs.map +1 -0
- package/dist/lazy.d.cts +7 -0
- package/dist/lazy.d.ts +7 -0
- package/dist/lazy.js +8 -0
- package/dist/lazy.js.map +1 -0
- package/dist/next.cjs +8989 -0
- package/dist/next.cjs.map +1 -0
- package/dist/next.d.cts +4 -0
- package/dist/next.d.ts +4 -0
- package/dist/next.js +9 -0
- package/dist/next.js.map +1 -0
- package/dist/schema.cjs +53 -16
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +20 -5
- package/dist/schema.d.ts +20 -5
- package/dist/schema.js +30 -2
- package/dist/schema.js.map +1 -1
- package/package.json +21 -8
- package/cli/emblema-sync.mjs +0 -675
- package/dist/chunk-4YNLMSCK.js.map +0 -1
- package/dist/chunk-YWBFAV57.js.map +0 -1
- package/dist/index-BbucFgZi.d.ts +0 -49
- package/dist/index-CBlJrKkm.d.cts +0 -49
package/dist/index-BbucFgZi.d.ts
DELETED
|
@@ -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 };
|