@liveblocks/core 2.10.1-react19rc → 2.10.3-emails1

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.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.10.1-react19rc";
9
+ var PKG_VERSION = "2.10.3-emails1";
10
10
  var PKG_FORMAT = "esm";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -7690,6 +7690,22 @@ async function stringifyCommentBody(body, options) {
7690
7690
  return blocks.join(separator);
7691
7691
  }
7692
7692
 
7693
+ // src/comments/comment-url.ts
7694
+ var PLACEHOLDER_BASE_URL = "https://localhost:9999";
7695
+ var ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
7696
+ function generateCommentUrl({
7697
+ roomUrl,
7698
+ commentId
7699
+ }) {
7700
+ const isAbsolute = ABSOLUTE_URL_REGEX.test(roomUrl);
7701
+ const urlObject = new URL(
7702
+ roomUrl,
7703
+ isAbsolute ? void 0 : PLACEHOLDER_BASE_URL
7704
+ );
7705
+ urlObject.hash = `#${commentId}`;
7706
+ return isAbsolute ? urlObject.href : urlObject.href.replace(PLACEHOLDER_BASE_URL, "");
7707
+ }
7708
+
7693
7709
  // src/crdts/utils.ts
7694
7710
  function toPlainLson(lson) {
7695
7711
  if (lson instanceof LiveObject) {
@@ -8277,6 +8293,7 @@ export {
8277
8293
  LiveObject,
8278
8294
  NotificationsApiError,
8279
8295
  OpCode,
8296
+ Promise_withResolvers,
8280
8297
  ServerMsgCode,
8281
8298
  SortedList,
8282
8299
  WebsocketCloseCodes,
@@ -8304,8 +8321,14 @@ export {
8304
8321
  detectDupes,
8305
8322
  errorIf,
8306
8323
  freeze,
8324
+ generateCommentUrl,
8307
8325
  getMentionedIdsFromCommentBody,
8326
+ html,
8327
+ htmlSafe,
8308
8328
  isChildCrdt,
8329
+ isCommentBodyLink,
8330
+ isCommentBodyMention,
8331
+ isCommentBodyText,
8309
8332
  isJsonArray,
8310
8333
  isJsonObject,
8311
8334
  isJsonScalar,
@@ -8325,10 +8348,12 @@ export {
8325
8348
  objectToQuery,
8326
8349
  patchLiveObjectKey,
8327
8350
  raise,
8351
+ resolveUsersInCommentBody,
8328
8352
  shallow,
8329
8353
  stringify,
8330
8354
  stringifyCommentBody,
8331
8355
  throwUsageError,
8356
+ toAbsoluteUrl,
8332
8357
  toPlainLson,
8333
8358
  tryParseJson,
8334
8359
  url,