@satanwagen/reviewkit 0.1.3 → 0.1.4

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.
@@ -1,4 +1,4 @@
1
- export { B as BadgeCorner, R as ReviewKit, a as ReviewKitConfig, b as ReviewKitProps } from '../index-Dl2Fl0qr.cjs';
1
+ export { B as BadgeCorner, R as ReviewKit, a as ReviewKitConfig, b as ReviewKitProps } from '../index-CWGkg1-E.cjs';
2
2
  import { ReviewTarget, ReviewSession, ParseResult } from '../schema.cjs';
3
3
  export { BoundingBox, CommentItem, CommentPayload, CopyItem, CopyPayload, DeleteItem, DeletePayload, EmblemaConfig, EmblemaReviewDispatch, Extensible, ITEM_STATUSES, ImageItem, ImagePayload, ItemPriority, ItemStatus, KNOWN_ITEM_TYPES, KnownItemType, KnownReviewItem, MoveItem, MovePayload, REVIEW_DISPATCH_VERSION, ReviewItem, ReviewItemBase, SCHEMA_VERSION, SiteInfo, StyleItem, StylePayload, TargetAttrs, UnknownReviewItem, isCommentItem, isCopyItem, isDeleteItem, isImageItem, isKnownItemType, isMoveItem, isStyleItem, parseSession, parseSessionJson } from '../schema.cjs';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- export { B as BadgeCorner, R as ReviewKit, a as ReviewKitConfig, b as ReviewKitProps } from '../index-BUSmAweg.js';
1
+ export { B as BadgeCorner, R as ReviewKit, a as ReviewKitConfig, b as ReviewKitProps } from '../index-DPsjkvaY.js';
2
2
  import { ReviewTarget, ReviewSession, ParseResult } from '../schema.js';
3
3
  export { BoundingBox, CommentItem, CommentPayload, CopyItem, CopyPayload, DeleteItem, DeletePayload, EmblemaConfig, EmblemaReviewDispatch, Extensible, ITEM_STATUSES, ImageItem, ImagePayload, ItemPriority, ItemStatus, KNOWN_ITEM_TYPES, KnownItemType, KnownReviewItem, MoveItem, MovePayload, REVIEW_DISPATCH_VERSION, ReviewItem, ReviewItemBase, SCHEMA_VERSION, SiteInfo, StyleItem, StylePayload, TargetAttrs, UnknownReviewItem, isCommentItem, isCopyItem, isDeleteItem, isImageItem, isKnownItemType, isMoveItem, isStyleItem, parseSession, parseSessionJson } from '../schema.js';
4
4
  import 'react';
@@ -7,7 +7,7 @@ import {
7
7
  importSessionFile,
8
8
  resolveTarget,
9
9
  sessionToJson
10
- } from "../chunk-NSXRFM75.js";
10
+ } from "../chunk-5MAFDRUI.js";
11
11
  import {
12
12
  ITEM_STATUSES,
13
13
  KNOWN_ITEM_TYPES,
@@ -24,17 +24,26 @@ interface ReviewKitConfig {
24
24
  */
25
25
  devAutoOn?: boolean;
26
26
  /**
27
- * Shared secret for the realtime sync server. Public in the browser by
28
- * nature (anyone with the review URL + bundle can read it) it gates
29
- * casual access, not determined attackers. Sync runs only when BOTH
30
- * `syncToken` and `syncUrl` are set; otherwise solo mode, no network.
27
+ * Live collaboration switch. Default `true`: the layer joins its private
28
+ * rooms on the sync server using `syncToken` (or, when that is unset, the
29
+ * review `token` itself one word does both jobs). `false` = solo mode,
30
+ * no network at all.
31
+ */
32
+ sync?: boolean;
33
+ /**
34
+ * Room secret for the sync server. Defaults to `token`. Any string of at
35
+ * least 8 characters works on the public server and gets its own private
36
+ * set of rooms; pick a different one from `token` if you want reviewers
37
+ * with the link but without room access (rare). Public in the bundle by
38
+ * nature — a gate against casual visitors, not a secret.
31
39
  */
32
40
  syncToken?: string;
33
41
  /**
34
- * WebSocket endpoint of your sync server (`realtime/server`), e.g.
35
- * `wss://your-site.tld/rk-sync`. No default there is no public server.
36
- * Unreachable/invalid = silent local mode. Remember the host page's CSP
37
- * must allow it in `connect-src` (see README "CSP").
42
+ * WebSocket endpoint of the sync server. Default: the public ReviewKit
43
+ * server `wss://2-59-219-26.sslip.io/rk-sync` (sslip.io hostname VPS IP,
44
+ * nothing to expire), so live collaboration needs no server setup at all.
45
+ * Override for a self-hosted `realtime/server`. The host page's CSP must
46
+ * allow the origin in `connect-src` (see README "CSP").
38
47
  */
39
48
  syncUrl?: string;
40
49
  /**
@@ -24,17 +24,26 @@ interface ReviewKitConfig {
24
24
  */
25
25
  devAutoOn?: boolean;
26
26
  /**
27
- * Shared secret for the realtime sync server. Public in the browser by
28
- * nature (anyone with the review URL + bundle can read it) it gates
29
- * casual access, not determined attackers. Sync runs only when BOTH
30
- * `syncToken` and `syncUrl` are set; otherwise solo mode, no network.
27
+ * Live collaboration switch. Default `true`: the layer joins its private
28
+ * rooms on the sync server using `syncToken` (or, when that is unset, the
29
+ * review `token` itself one word does both jobs). `false` = solo mode,
30
+ * no network at all.
31
+ */
32
+ sync?: boolean;
33
+ /**
34
+ * Room secret for the sync server. Defaults to `token`. Any string of at
35
+ * least 8 characters works on the public server and gets its own private
36
+ * set of rooms; pick a different one from `token` if you want reviewers
37
+ * with the link but without room access (rare). Public in the bundle by
38
+ * nature — a gate against casual visitors, not a secret.
31
39
  */
32
40
  syncToken?: string;
33
41
  /**
34
- * WebSocket endpoint of your sync server (`realtime/server`), e.g.
35
- * `wss://your-site.tld/rk-sync`. No default there is no public server.
36
- * Unreachable/invalid = silent local mode. Remember the host page's CSP
37
- * must allow it in `connect-src` (see README "CSP").
42
+ * WebSocket endpoint of the sync server. Default: the public ReviewKit
43
+ * server `wss://2-59-219-26.sslip.io/rk-sync` (sslip.io hostname VPS IP,
44
+ * nothing to expire), so live collaboration needs no server setup at all.
45
+ * Override for a self-hosted `realtime/server`. The host page's CSP must
46
+ * allow the origin in `connect-src` (see README "CSP").
38
47
  */
39
48
  syncUrl?: string;
40
49
  /**