@liveblocks/core 2.9.2-emails1 → 2.9.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/dist/index.d.mts +1 -38
- package/dist/index.d.ts +1 -38
- package/dist/index.js +2 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "2.9.2
|
|
9
|
+
var PKG_VERSION = "2.9.2";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -7730,22 +7730,6 @@ async function stringifyCommentBody(body, options) {
|
|
|
7730
7730
|
return blocks.join(separator);
|
|
7731
7731
|
}
|
|
7732
7732
|
|
|
7733
|
-
// src/comments/comment-url.ts
|
|
7734
|
-
var PLACEHOLDER_BASE_URL = "https://localhost:9999";
|
|
7735
|
-
var ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
|
|
7736
|
-
function generateCommentUrl({
|
|
7737
|
-
roomUrl,
|
|
7738
|
-
commentId
|
|
7739
|
-
}) {
|
|
7740
|
-
const isAbsolute = ABSOLUTE_URL_REGEX.test(roomUrl);
|
|
7741
|
-
const urlObject = new URL(
|
|
7742
|
-
roomUrl,
|
|
7743
|
-
isAbsolute ? void 0 : PLACEHOLDER_BASE_URL
|
|
7744
|
-
);
|
|
7745
|
-
urlObject.hash = `#${commentId}`;
|
|
7746
|
-
return isAbsolute ? urlObject.href : urlObject.href.replace(PLACEHOLDER_BASE_URL, "");
|
|
7747
|
-
}
|
|
7748
|
-
|
|
7749
7733
|
// src/crdts/utils.ts
|
|
7750
7734
|
function toPlainLson(lson) {
|
|
7751
7735
|
if (lson instanceof LiveObject) {
|
|
@@ -8203,7 +8187,6 @@ export {
|
|
|
8203
8187
|
LiveObject,
|
|
8204
8188
|
NotificationsApiError,
|
|
8205
8189
|
OpCode,
|
|
8206
|
-
Promise_withResolvers,
|
|
8207
8190
|
ServerMsgCode,
|
|
8208
8191
|
StopRetrying2 as StopRetrying,
|
|
8209
8192
|
WebsocketCloseCodes,
|
|
@@ -8231,14 +8214,8 @@ export {
|
|
|
8231
8214
|
detectDupes,
|
|
8232
8215
|
errorIf,
|
|
8233
8216
|
freeze,
|
|
8234
|
-
generateCommentUrl,
|
|
8235
8217
|
getMentionedIdsFromCommentBody,
|
|
8236
|
-
html,
|
|
8237
|
-
htmlSafe,
|
|
8238
8218
|
isChildCrdt,
|
|
8239
|
-
isCommentBodyLink,
|
|
8240
|
-
isCommentBodyMention,
|
|
8241
|
-
isCommentBodyText,
|
|
8242
8219
|
isJsonArray,
|
|
8243
8220
|
isJsonObject,
|
|
8244
8221
|
isJsonScalar,
|
|
@@ -8258,12 +8235,10 @@ export {
|
|
|
8258
8235
|
objectToQuery,
|
|
8259
8236
|
patchLiveObjectKey,
|
|
8260
8237
|
raise,
|
|
8261
|
-
resolveUsersInCommentBody,
|
|
8262
8238
|
shallow,
|
|
8263
8239
|
stringify,
|
|
8264
8240
|
stringifyCommentBody,
|
|
8265
8241
|
throwUsageError,
|
|
8266
|
-
toAbsoluteUrl,
|
|
8267
8242
|
toPlainLson,
|
|
8268
8243
|
tryParseJson,
|
|
8269
8244
|
url,
|