@sendbird/actionbook-core 0.10.5 → 0.10.6

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.js CHANGED
@@ -287,7 +287,7 @@ function comparePaths(a, b) {
287
287
 
288
288
  // src/schema/schema.ts
289
289
  var MAX_VALIDATION_DEPTH = 128;
290
- var ALLOWED_URL_PROTOCOLS = /^(https?:|mailto:|tel:|#|\/)/i;
290
+ var ALLOWED_URL_PROTOCOLS = /^(https?:|mailto:|tel:|#|\/|www\.)/i;
291
291
  function validateMark(mark, path) {
292
292
  const errors = [];
293
293
  switch (mark.type) {
@@ -2169,7 +2169,7 @@ function jumpPointToMarkdown() {
2169
2169
 
2170
2170
  // src/markdown/mdastAdapter.ts
2171
2171
  var MAX_DEPTH2 = 128;
2172
- var ALLOWED_URL_PROTOCOLS2 = /^(https?:|mailto:|tel:|#|\/)/i;
2172
+ var ALLOWED_URL_PROTOCOLS2 = /^(https?:|mailto:|tel:|#|\/|www\.)/i;
2173
2173
  function sanitizeUrl(url) {
2174
2174
  if (ALLOWED_URL_PROTOCOLS2.test(url)) return url;
2175
2175
  return "";
@@ -2999,7 +2999,7 @@ function serializeToJSON(doc2) {
2999
2999
 
3000
3000
  // src/compat/prosemirror.ts
3001
3001
  var MAX_DEPTH5 = 128;
3002
- var ALLOWED_URL_PROTOCOLS3 = /^(https?:|mailto:|tel:|#|\/)/i;
3002
+ var ALLOWED_URL_PROTOCOLS3 = /^(https?:|mailto:|tel:|#|\/|www\.)/i;
3003
3003
  var LIST_TYPES = /* @__PURE__ */ new Set(["bulletList", "orderedList"]);
3004
3004
  function isLooseList(items) {
3005
3005
  return items.some((li) => {