@vite-hub/comments 0.5.1 → 0.6.1
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/README.md +21 -4
- package/dist/{client-diagnostics-CvfTW5d4.js → client-diagnostics-D987sEK7.js} +4 -0
- package/dist/client.d.ts +96 -19
- package/dist/client.js +525 -79
- package/dist/{console-CK2F53QP.d.ts → console-CCLX_eIk.d.ts} +1 -1
- package/dist/{database-BkPoOdZr.js → database-Cguz3hZL.js} +1 -1
- package/dist/database.js +1 -1
- package/dist/{define-9uMM3Ewc.js → define-C2tnAtBU.js} +2 -2
- package/dist/{errors-DFNiJg67.js → errors-ByCRdInk.js} +1 -1
- package/dist/hosted/hosted-comments/{client-B3dlmmQd.js → client-Czl2zu9P.js} +3 -3
- package/dist/hosted/hosted-comments/frame.js +1 -1
- package/dist/hosted/hosted-comments/overlay-DpS0P-nd.js +186 -0
- package/dist/hosted/hosted-comments/protocol-DuB0Zhs-.js +1 -0
- package/dist/hosted/hosted-comments/rest-transport-CKZG_jZ4.js +1 -0
- package/dist/hosted/hosted-comments/tools-D8xg-kDW.js +126 -0
- package/dist/hosted/hosted-comments.js +13 -3
- package/dist/{index-BEnHTj2Z.d.ts → index-D1T7RJ4R.d.ts} +5 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -10
- package/dist/{install-B-FQpi47.d.ts → install-9L4ASzUC.d.ts} +11 -2
- package/dist/{install-BUXxryut.js → install-D6hXZaSN.js} +45 -19
- package/dist/{installed-C9SkldMi.js → installed-bPUnazFf.js} +1 -1
- package/dist/{operations-CKC_lMG_.js → operations-B1ALn4VS.js} +7 -7
- package/dist/{operations-Cic9A9e_.d.ts → operations-BkkrI8a3.d.ts} +1 -1
- package/dist/operations.d.ts +2 -2
- package/dist/operations.js +2 -2
- package/dist/overlay/{client-CerbVjTz.js → client-C7ftI-CB.js} +3 -3
- package/dist/overlay/overlay.js +42 -16
- package/dist/page/loader.js +1 -1
- package/dist/{page-xzgZ6DGm.js → page-2NzFladc.js} +5 -1
- package/dist/{plugin-B2hETRii.js → plugin-l4sPt5-n.js} +13 -7
- package/dist/realtime.d.ts +11 -3
- package/dist/realtime.js +14 -6
- package/dist/{rpc-BKY7XRlR.js → rpc-BYmbVkr8.js} +1 -1
- package/dist/rpc.js +1 -1
- package/dist/runtime/auth.js +1 -1
- package/dist/runtime/console.d.ts +1 -1
- package/dist/runtime/console.js +2 -2
- package/dist/runtime/index.d.ts +42 -10
- package/dist/runtime/index.js +16 -8
- package/dist/{server-BGbD7H5s.js → server-DvSehkPP.js} +1 -1
- package/dist/server.d.ts +3 -3
- package/dist/server.js +6 -6
- package/dist/{service-DDD4Ubxd.js → service-BIGe1Hpo.js} +11 -6
- package/dist/{service-CPiWPoiY.d.ts → service-IvgrI4XM.d.ts} +2 -0
- package/dist/{session-BGN6Vlm6.js → session-CCRLR9bf.js} +24 -9
- package/dist/{session-CTh9nisq.d.ts → session-CN4irEqf.d.ts} +1 -1
- package/dist/testing.js +1 -1
- package/dist/vite.d.ts +19 -2
- package/dist/vite.js +39 -10
- package/package.json +7 -7
- package/dist/hosted/hosted-comments/overlay-4-mWX4Uz.js +0 -170
- package/dist/hosted/hosted-comments/protocol-BHvtQKte.js +0 -1
- package/dist/hosted/hosted-comments/rest-transport-D-9_pNqZ.js +0 -1
- package/dist/hosted/hosted-comments/tools-CdwnUCOr.js +0 -126
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as viteHubPageToolsWanted, l as viteHubPageToolsLoader, n as viteHubBasePath, o as viteHubPageToolsHintCookie, p as withViteHubBase, r as viteHubPageSessionPath, s as viteHubPageToolsInlineScript, t as readViteHubPageAccount, u as viteHubPageToolsMarker } from "./page-tools-shared-fvmJQCrP.js";
|
|
2
2
|
import { r as matchesPublicOrigin, t as forwardedRequestOrigin } from "./request-origin-YPzfE2eh.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c as normalizeCommentPage } from "./page-2NzFladc.js";
|
|
4
4
|
import { getStandardContext } from "@vite-hub/runtime/internal/h3";
|
|
5
5
|
// ../internal/src/runtime/page-tools-html.ts
|
|
6
6
|
/** The effective script-element directive is shared by HTTP and HTML meta policies. */
|
|
@@ -198,6 +198,13 @@ async function readAccount(nitroApp, request) {
|
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Installs the reader of the Site access cookie. The Console installs it when the server starts, so page tools, such as
|
|
203
|
+
* Comments, know the person without depending on the Console.
|
|
204
|
+
*/
|
|
205
|
+
function installViteHubSiteVisitor(reader) {
|
|
206
|
+
state().siteVisitor = reader;
|
|
207
|
+
}
|
|
201
208
|
/** The reader of the Site access cookie, or undefined in an app where the Console did not install one. */
|
|
202
209
|
function viteHubSiteVisitorReader() {
|
|
203
210
|
return state().siteVisitor;
|
|
@@ -434,7 +441,7 @@ function installViteHubPageTools(nitroApp, options = {}) {
|
|
|
434
441
|
}
|
|
435
442
|
// src/runtime/session.ts
|
|
436
443
|
/**
|
|
437
|
-
* The person that Site access in the Console signed in to
|
|
444
|
+
* The person that Site access in the ViteHub Console signed in to the app, with their roles in `role`, as
|
|
438
445
|
* `commentsRoleAllows()` reads them. A Console member has `comments-*` roles, a guest the roles of the invite.
|
|
439
446
|
*/
|
|
440
447
|
async function siteUser(event) {
|
|
@@ -442,17 +449,23 @@ async function siteUser(event) {
|
|
|
442
449
|
if (!read) return null;
|
|
443
450
|
const visitor = await read(getStandardContext(event).req).catch(() => void 0);
|
|
444
451
|
if (!visitor) return null;
|
|
445
|
-
const { roles, ...person } = visitor;
|
|
446
452
|
return {
|
|
447
|
-
|
|
448
|
-
|
|
453
|
+
user: {
|
|
454
|
+
id: visitor.id,
|
|
455
|
+
name: visitor.name,
|
|
456
|
+
...visitor.email ? { email: visitor.email } : {},
|
|
457
|
+
...visitor.image ? { image: visitor.image } : {},
|
|
458
|
+
role: visitor.roles.join(",")
|
|
459
|
+
},
|
|
460
|
+
gate: {},
|
|
461
|
+
...visitor.kind === "member" && visitor.commentsAgent ? { commentsAgent: visitor.commentsAgent } : {}
|
|
449
462
|
};
|
|
450
463
|
}
|
|
451
464
|
/**
|
|
452
465
|
* The user of a request, shared by the overlay API, Realtime presence, the MCP tools, and the comment operations.
|
|
453
466
|
* With `identify`, the app decides: `identify` names the user, `null` is anonymous, and `authorize` decides what they may do. Without
|
|
454
|
-
* `identify`, it is the
|
|
455
|
-
*
|
|
467
|
+
* `identify`, it is the person of the Site access cookie. Then, when there is none, the user of `session`, the ViteHub
|
|
468
|
+
* Auth user, and last the person signed in with GitHub.
|
|
456
469
|
*/
|
|
457
470
|
async function resolveCommentsIdentity(comments, event, options = {}) {
|
|
458
471
|
if (comments.options.identify) {
|
|
@@ -462,8 +475,10 @@ async function resolveCommentsIdentity(comments, event, options = {}) {
|
|
|
462
475
|
gate: {}
|
|
463
476
|
};
|
|
464
477
|
}
|
|
478
|
+
const site = await siteUser(event);
|
|
479
|
+
if (site) return site;
|
|
465
480
|
return {
|
|
466
|
-
user: await options.session?.(event).catch(() => null) ?? await
|
|
481
|
+
user: await options.session?.(event).catch(() => null) ?? await options.githubLogin?.user(event).catch(() => null) ?? null,
|
|
467
482
|
gate: {}
|
|
468
483
|
};
|
|
469
484
|
}
|
|
@@ -494,4 +509,4 @@ async function resolveCommentsPage(comments, event, request, path) {
|
|
|
494
509
|
...mapped.revision === void 0 ? {} : { revision: mapped.revision }
|
|
495
510
|
};
|
|
496
511
|
}
|
|
497
|
-
export {
|
|
512
|
+
export { registerViteHubPageTool as a, installViteHubSiteVisitor as i, resolveCommentsPage as n, viteHubPageSessionHandler as o, installViteHubPageTools as r, resolveCommentsIdentity as t };
|
package/dist/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as replyMessageId } from "./reply-id-Cm9FGOBs.js";
|
|
2
|
-
import { t as commentsErrorDiagnostics } from "./errors-
|
|
2
|
+
import { t as commentsErrorDiagnostics } from "./errors-ByCRdInk.js";
|
|
3
3
|
// src/operations-core/testing.ts
|
|
4
4
|
function checkOutboxAccount(input, user) {
|
|
5
5
|
if (input.outbox && input.outbox.account !== user.id) throw Object.assign(commentsErrorDiagnostics.COMMENTS_OUTBOX_ACCOUNT_CHANGED(), { status: 401 });
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as CommentBuild } from "./types-BX3vH18p.js";
|
|
2
2
|
import { n as OperationContributions } from "./operations-8hqTi0DH.js";
|
|
3
|
-
import { i as ViteHubInspectionPluginMetadata, r as ViteHubConsoleRuntimeRecordTableSection, t as ViteHubConsoleOperationSection } from "./console-
|
|
3
|
+
import { i as ViteHubInspectionPluginMetadata, r as ViteHubConsoleRuntimeRecordTableSection, t as ViteHubConsoleOperationSection } from "./console-CCLX_eIk.js";
|
|
4
4
|
import "./types-l6GOb_yc.js";
|
|
5
5
|
import { n as mountedCommentsRoute } from "./page-DE71P_gQ.js";
|
|
6
6
|
import { Plugin, PluginOption } from "vite";
|
|
@@ -51,6 +51,7 @@ type DeploymentEnvContribution = (context: DeploymentEnvContext) => readonly Dep
|
|
|
51
51
|
interface CommentsImports {
|
|
52
52
|
/** Exports `defineCommentsPlugin`, `createCommentsHandler`, and `viteHubPageSessionHandler`. */
|
|
53
53
|
runtime: string;
|
|
54
|
+
siteVisitor?: string;
|
|
54
55
|
/** Exports `commentsRealtime`. */
|
|
55
56
|
realtime: string;
|
|
56
57
|
/** Exports `commentsAuthSession`. */
|
|
@@ -124,6 +125,21 @@ interface CommentsVitePluginOptions {
|
|
|
124
125
|
* `defineComments({ rateLimit })` there too. Default `false`: each process counts in its memory.
|
|
125
126
|
*/
|
|
126
127
|
rateLimit?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* More segments of the Comments pill, such as the **Console** segment of `vite-hub`. The generated Nitro plugin
|
|
130
|
+
* imports `export` from `module` and calls it with the Nitro app and `{ base, development, ...options }`, before it
|
|
131
|
+
* installs the pill. With `overlay: false`, the app has no pill and calls none of them.
|
|
132
|
+
*/
|
|
133
|
+
pillSegments?: readonly CommentsPillSegment[];
|
|
134
|
+
}
|
|
135
|
+
/** A segment of the Comments pill that another package adds. See `CommentsVitePluginOptions.pillSegments`. */
|
|
136
|
+
interface CommentsPillSegment {
|
|
137
|
+
/** The file or package path of the module that exports the install function. */
|
|
138
|
+
module: string;
|
|
139
|
+
/** The name of the install function. */
|
|
140
|
+
export: string;
|
|
141
|
+
/** JSON options that the install function gets with `base` and `development`. */
|
|
142
|
+
options?: Readonly<Record<string, string | number | boolean>>;
|
|
127
143
|
}
|
|
128
144
|
interface CommentsRealtimeContributionContext {
|
|
129
145
|
driver: "cloudflare" | "memory";
|
|
@@ -214,6 +230,7 @@ export declare function renderCommentsPlugin(input: {
|
|
|
214
230
|
build?: CommentBuild;
|
|
215
231
|
base?: string;
|
|
216
232
|
send?: boolean;
|
|
233
|
+
realtime?: boolean;
|
|
217
234
|
}): string;
|
|
218
235
|
/**
|
|
219
236
|
* Comments for any Vite app, without `vite-hub`: the comment overlay on every page with `?vitehub`, threads in a
|
|
@@ -306,4 +323,4 @@ export declare function findCommentsEntry(options: {
|
|
|
306
323
|
* or as its default export; both run every surface on the same tables.
|
|
307
324
|
*/
|
|
308
325
|
export declare function hubComments(options?: HubCommentsOptions): CommentsVitePlugin;
|
|
309
|
-
export { type CommentsComponent, type CommentsImports, type CommentsOptions, type CommentsOverlayAssets, type CommentsOverlayOptions, type CommentsRealtimeContributionContext, type CommentsVitePluginOptions, type StandaloneDatabase, comments as default, commentsConsoleSection$1 as commentsOperationsConsoleSection, githubRepository, mountedCommentsRoute };
|
|
326
|
+
export { type CommentsComponent, type CommentsImports, type CommentsOptions, type CommentsOverlayAssets, type CommentsOverlayOptions, type CommentsPillSegment, type CommentsRealtimeContributionContext, type CommentsVitePluginOptions, type StandaloneDatabase, comments as default, commentsConsoleSection$1 as commentsOperationsConsoleSection, githubRepository, mountedCommentsRoute };
|
package/dist/vite.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as invariant } from "./invariant-CmdvZ3vp.js";
|
|
2
|
-
import { c as validateCommentsDefinition } from "./define-
|
|
3
|
-
import { t as commentsErrorDiagnostics } from "./errors-
|
|
2
|
+
import { c as validateCommentsDefinition } from "./define-C2tnAtBU.js";
|
|
3
|
+
import { t as commentsErrorDiagnostics } from "./errors-ByCRdInk.js";
|
|
4
4
|
import { a as viteHubPageToolsCookie, d as viteHubPageToolsQuery, i as viteHubPageToolsAssets, n as viteHubBasePath, r as viteHubPageSessionPath, s as viteHubPageToolsInlineScript } from "./page-tools-shared-fvmJQCrP.js";
|
|
5
5
|
import { n as isRecordOrFunction } from "./object-CAK6UYR5.js";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as commentsRealtimeDefinition, o as commentsRoute, r as commentsNoticeDefinition, s as mountedCommentsRoute } from "./page-2NzFladc.js";
|
|
7
7
|
import { n as commentsTableNames, t as commentSendsTableNames } from "./table-names-BIHjuEFK.js";
|
|
8
8
|
import { formatDiagnostic } from "nostics";
|
|
9
9
|
import { existsSync, mkdirSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -956,6 +956,9 @@ function renderCommentsPlugin(input) {
|
|
|
956
956
|
const session = sessionWithGitHubLines(input.session ?? {}, input.imports, input.build?.repository, input.base);
|
|
957
957
|
const postgres = input.session?.dialect === "postgresql";
|
|
958
958
|
const overlay = input.session?.overlay === false ? "false" : JSON.stringify(`${commentsRoute}/assets/overlay.js?v=${version}`);
|
|
959
|
+
const segments = pillSegmentLines(input.session?.overlay === false ? [] : input.session?.pillSegments ?? []);
|
|
960
|
+
const realtime = input.realtime ? `realtime: () => import(${JSON.stringify(input.imports.realtime)})` : void 0;
|
|
961
|
+
const siteVisitor = input.session?.overlay === false && input.imports.siteVisitor ? `siteVisitor: async (request) => (await import(${JSON.stringify(input.imports.siteVisitor)})).readConsoleSiteVisitor(request, ${JSON.stringify(input.base ?? "")}, ${input.development === true})` : void 0;
|
|
959
962
|
if (input.standalone) {
|
|
960
963
|
const { where, fallback, node } = input.standalone;
|
|
961
964
|
const options = [`name: "comments"`, ...fallback ? [`fallback: ${JSON.stringify(fallback)}`] : []];
|
|
@@ -964,10 +967,11 @@ function renderCommentsPlugin(input) {
|
|
|
964
967
|
`import { connectDatabase } from ${JSON.stringify(node ? `${input.imports.connect}/node` : input.imports.connect)}`,
|
|
965
968
|
...definitionLines(input.definition, input.imports.runtime),
|
|
966
969
|
...session.imports,
|
|
970
|
+
...segments.imports,
|
|
967
971
|
"",
|
|
968
972
|
`const database = () => connectDatabase(${where === void 0 ? "undefined" : JSON.stringify(where)}, { ${options.join(", ")} })`,
|
|
969
973
|
"",
|
|
970
|
-
`export default defineCommentsPlugin({ comments, database, schema: "comments", session: ${session.value}, ${session.githubLogin ? "githubLogin, " : ""}development: ${input.development === true}, overlay: ${overlay}, base: ${JSON.stringify(input.base ?? "")} })`,
|
|
974
|
+
`export default defineCommentsPlugin({ comments, database, schema: "comments", session: ${session.value}, ${session.githubLogin ? "githubLogin, " : ""}development: ${input.development === true}, overlay: ${overlay}, base: ${JSON.stringify(input.base ?? "")}${realtime ? `, ${realtime}` : ""}${segments.value ? `, pillSegments: ${segments.value}` : ""} })`,
|
|
971
975
|
""
|
|
972
976
|
].join("\n");
|
|
973
977
|
}
|
|
@@ -975,6 +979,7 @@ function renderCommentsPlugin(input) {
|
|
|
975
979
|
`import { defineCommentsPlugin, selectCommentsDatabase } from ${JSON.stringify(input.imports.runtime)}`,
|
|
976
980
|
...definitionLines(input.definition, input.imports.runtime),
|
|
977
981
|
...session.imports,
|
|
982
|
+
...segments.imports,
|
|
978
983
|
"",
|
|
979
984
|
`const database = async () => selectCommentsDatabase((await import(${JSON.stringify(input.imports.databases)})).databases${input.database ? `, ${JSON.stringify(input.database)}` : ""})`,
|
|
980
985
|
"",
|
|
@@ -992,13 +997,23 @@ function renderCommentsPlugin(input) {
|
|
|
992
997
|
...input.session?.rateLimit ? ["rateLimit: checkRateLimit"] : [],
|
|
993
998
|
...postgres ? ["dialect: \"postgresql\"", "tables: { commentCounters: schema.vitehubCommentCounters, commentMessages: schema.vitehubCommentMessages, commentThreads: schema.vitehubCommentThreads, commentForge: schema.vitehubCommentForge }"] : [],
|
|
994
999
|
...input.send ? [`webhooks: () => import(${JSON.stringify(input.imports.webhooks)})`] : [],
|
|
1000
|
+
...realtime ? [realtime] : [],
|
|
995
1001
|
`development: ${input.development === true}`,
|
|
996
1002
|
`overlay: ${overlay}`,
|
|
997
|
-
`base: ${JSON.stringify(input.base ?? "")}
|
|
1003
|
+
`base: ${JSON.stringify(input.base ?? "")}`,
|
|
1004
|
+
...siteVisitor ? [siteVisitor] : [],
|
|
1005
|
+
...segments.value ? [`pillSegments: ${segments.value}`] : []
|
|
998
1006
|
].join(", ")} })`,
|
|
999
1007
|
""
|
|
1000
1008
|
].join("\n");
|
|
1001
1009
|
}
|
|
1010
|
+
function pillSegmentLines(segments) {
|
|
1011
|
+
if (!segments.length) return { imports: [] };
|
|
1012
|
+
return {
|
|
1013
|
+
imports: segments.map((segment, index) => `import { ${segment.export} as pillSegment${index} } from ${JSON.stringify(segment.module)}`),
|
|
1014
|
+
value: `[${segments.map((segment, index) => `(nitroApp, context) => pillSegment${index}(nitroApp, { ...context, ...${JSON.stringify(segment.options ?? {})} })`).join(", ")}]`
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1002
1017
|
/** The generated directory of Comments in a project. */
|
|
1003
1018
|
function generatedDirectory(projectRoot) {
|
|
1004
1019
|
return resolve(projectRoot, ".vitehub/nitro/comments");
|
|
@@ -1165,7 +1180,8 @@ function hubComments$1(options = {}) {
|
|
|
1165
1180
|
build,
|
|
1166
1181
|
base: appBase,
|
|
1167
1182
|
standalone,
|
|
1168
|
-
development
|
|
1183
|
+
development,
|
|
1184
|
+
realtime
|
|
1169
1185
|
}));
|
|
1170
1186
|
await addD1Binding(projectRoot, nitro.options, standalone.where);
|
|
1171
1187
|
await addD1Binding(projectRoot, nitro.options, standalone.fallback);
|
|
@@ -1181,20 +1197,32 @@ function hubComments$1(options = {}) {
|
|
|
1181
1197
|
if (!definition) return;
|
|
1182
1198
|
realtime = true;
|
|
1183
1199
|
const file = join(context.directory, "comments.mjs");
|
|
1200
|
+
const notices = join(context.directory, "comments-notices.mjs");
|
|
1184
1201
|
const { repository } = await readCommentsBuild(context.projectRoot);
|
|
1185
1202
|
const session = sessionWithGitHubLines(options, imports, repository, appBase);
|
|
1186
1203
|
await mkdir(context.directory, { recursive: true });
|
|
1187
|
-
|
|
1204
|
+
const importsAndDefinition = [
|
|
1188
1205
|
`import { commentsRealtime } from ${JSON.stringify(imports.realtime)}`,
|
|
1189
1206
|
...definitionLines(definition, imports.runtime),
|
|
1190
1207
|
...session.imports,
|
|
1191
|
-
"",
|
|
1192
|
-
`export default commentsRealtime(comments, { session: ${session.value}${session.githubLogin ? ", githubLogin" : ""} })`,
|
|
1193
1208
|
""
|
|
1194
|
-
]
|
|
1209
|
+
];
|
|
1210
|
+
const sessionOptions = `{ session: ${session.value}${session.githubLogin ? ", githubLogin" : ""} }`;
|
|
1211
|
+
await Promise.all([writeFile(file, [
|
|
1212
|
+
...importsAndDefinition,
|
|
1213
|
+
`export default commentsRealtime(comments, ${sessionOptions})`,
|
|
1214
|
+
""
|
|
1215
|
+
].join("\n")), writeFile(notices, [
|
|
1216
|
+
...importsAndDefinition,
|
|
1217
|
+
`export default commentsRealtime(comments, ${sessionOptions}, "notices")`,
|
|
1218
|
+
""
|
|
1219
|
+
].join("\n"))]);
|
|
1195
1220
|
return { definitions: [{
|
|
1196
1221
|
handler: file,
|
|
1197
1222
|
name: commentsRealtimeDefinition
|
|
1223
|
+
}, {
|
|
1224
|
+
handler: notices,
|
|
1225
|
+
name: commentsNoticeDefinition
|
|
1198
1226
|
}] };
|
|
1199
1227
|
}
|
|
1200
1228
|
},
|
|
@@ -1300,6 +1328,7 @@ function hubComments$1(options = {}) {
|
|
|
1300
1328
|
build,
|
|
1301
1329
|
base,
|
|
1302
1330
|
development,
|
|
1331
|
+
realtime,
|
|
1303
1332
|
send: !options.standalone && await readCommentsSend(definition)
|
|
1304
1333
|
};
|
|
1305
1334
|
await Promise.all([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vite-hub/comments",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Comments and in-place edits on live ViteHub sites, with presence and Content drafts.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"annotations",
|
|
@@ -106,10 +106,10 @@
|
|
|
106
106
|
"@valibot/to-json-schema": "^1.8.0",
|
|
107
107
|
"nostics": "1.4.0",
|
|
108
108
|
"valibot": "^1.5.0",
|
|
109
|
-
"@vite-hub/auth": "0.
|
|
110
|
-
"@vite-hub/forge": "0.
|
|
111
|
-
"@vite-hub/realtime": "0.
|
|
112
|
-
"@vite-hub/runtime": "0.
|
|
109
|
+
"@vite-hub/auth": "0.6.1",
|
|
110
|
+
"@vite-hub/forge": "0.6.1",
|
|
111
|
+
"@vite-hub/realtime": "0.6.1",
|
|
112
|
+
"@vite-hub/runtime": "0.6.1",
|
|
113
113
|
"birpc": "^4.2.0",
|
|
114
114
|
"confbox": "^0.3.2",
|
|
115
115
|
"h3": "^2.0.8"
|
|
@@ -128,12 +128,12 @@
|
|
|
128
128
|
"vitest": "5.1.0",
|
|
129
129
|
"vue": "3.5.46",
|
|
130
130
|
"@libsql/client": "^0.18.0",
|
|
131
|
-
"@vite-hub/database": "0.
|
|
131
|
+
"@vite-hub/database": "0.6.1",
|
|
132
132
|
"vite": "^8.3.8",
|
|
133
133
|
"drizzle-orm": "1.0.0-rc.6"
|
|
134
134
|
},
|
|
135
135
|
"peerDependencies": {
|
|
136
|
-
"@vite-hub/database": "0.
|
|
136
|
+
"@vite-hub/database": "0.6.1",
|
|
137
137
|
"nitro": "3.0.261102-rc || ^3.0.261103-rc",
|
|
138
138
|
"vite": ">=8.0.0",
|
|
139
139
|
"drizzle-orm": "1.0.0-rc.5 || 1.0.0-rc.6 || ^1.0.0"
|