@note3/utils 0.1.9 → 0.1.11

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,2 +1,2 @@
1
- import{v as i,x as s}from"./chunk-CCK7EZVX.min.js";function A(t){return typeof t=="string"?t:JSON.stringify(t)}function u(t,n,p,e){let o=A(t),r=e??i({content:o,parentID:n,after:p,ts:s()},7);return{en:r,applogs:[{en:r,at:"block/content",vl:o}]}}function I(t,n,p,e){let o=e??i({blockID:t,childOf:n,after:p,ts:s()},7);return{en:o,applogs:[{en:o,at:"relation/block",vl:t},{en:o,at:"relation/childOf",vl:n},{en:o,at:"relation/after",vl:p}]}}function g(t,n,p){let e=[],{en:o,applogs:r}=u(t.content,n,p);if(e.push(...r),n){let{applogs:a}=I(o,n,p??null);e.push(...a)}let l=null;if(t.children)for(let a of t.children){let c=g(a,o,l);e.push(...c.applogs),l=c.blockID}return{blockID:o,applogs:e}}function ct(t,n){let p=[],e=[],o=null;for(let r of t){let l=g(r,n,o);p.push(...l.applogs),e.push(l.blockID),o=l.blockID}return{rootIDs:e,applogs:p}}function At(t){return g(t)}export{u as a,I as b,g as c,ct as d,At as e};
2
- //# sourceMappingURL=chunk-R36GXTBD.min.js.map
1
+ import{v as i,x as s}from"./chunk-QRRYERNI.min.js";function A(t){return typeof t=="string"?t:JSON.stringify(t)}function u(t,n,p,e){let o=A(t),r=e??i({content:o,parentID:n,after:p,ts:s()},7);return{en:r,applogs:[{en:r,at:"block/content",vl:o}]}}function I(t,n,p,e){let o=e??i({blockID:t,childOf:n,after:p,ts:s()},7);return{en:o,applogs:[{en:o,at:"relation/block",vl:t},{en:o,at:"relation/childOf",vl:n},{en:o,at:"relation/after",vl:p}]}}function g(t,n,p){let e=[],{en:o,applogs:r}=u(t.content,n,p);if(e.push(...r),n){let{applogs:a}=I(o,n,p??null);e.push(...a)}let l=null;if(t.children)for(let a of t.children){let c=g(a,o,l);e.push(...c.applogs),l=c.blockID}return{blockID:o,applogs:e}}function ct(t,n){let p=[],e=[],o=null;for(let r of t){let l=g(r,n,o);p.push(...l.applogs),e.push(l.blockID),o=l.blockID}return{rootIDs:e,applogs:p}}function At(t){return g(t)}export{u as a,I as b,g as c,ct as d,At as e};
2
+ //# sourceMappingURL=chunk-RPZE6B5G.min.js.map
package/dist/index.min.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as Q,b as R,c as S,d as T,e as U}from"./chunk-R36GXTBD.min.js";import"./chunk-KHOUPFOL.min.js";import{a as V,b as W,c as X,d as Y,e as Z,f as _,g as $,h as oo,i as ro,j as eo,k as fo,l as mo,m as po,n as to}from"./chunk-4ARVEMAY.min.js";import{a as o,b as r}from"./chunk-HDX2X7FU.min.js";import"./chunk-CCK7EZVX.min.js";import{a as e,b as f,c as m,d as p,e as t}from"./chunk-O72M27NE.min.js";import"./chunk-5TTMWYXD.min.js";import{a as x}from"./chunk-IFY2JCCQ.min.js";import{a as J,b as K,c as L,d as M,e as N,f as O,g as P}from"./chunk-XL6QVLYO.min.js";import{a as I}from"./chunk-KY36PVHK.min.js";import{a as w,b as y,c as z,d as A,e as B,f as C,g as D,h as E,i as F,j as G,k as H}from"./chunk-LDNVHZO7.min.js";import{a,b,c,d,e as g,f as h,g as i,h as j,i as k,j as l,k as n,l as q,m as s,n as u,o as v}from"./chunk-POX3PUJK.min.js";import"./chunk-MXMMU6NF.min.js";export{$ as CANONICAL_NOTE3_ORIGINS,k as RE_ANY_TAG_ONLY,v as RE_ANY_TAG_WITHCONTEXT,j as RE_AT_TAG_ONLY,u as RE_AT_TAG_WITHCONTEXT,h as RE_HASH_TAG_ONLY,q as RE_HASH_TAG_WITHCONTEXT,i as RE_PLUS_TAG_ONLY,s as RE_PLUS_TAG_WITHCONTEXT,g as RE_TAG_BODY,c as RE_TAG_BODY_CHAR,d as RE_TAG_BODY_REQUIRED_CHAR,n as RE_TAG_CONTEXT_POST,l as RE_TAG_CONTEXT_PRE,x as SetMap,b as TAG_MIN_LENGTH,a as TIPTAP_EMPTY,m as asyncIterableToArray,p as blobToAsyncIterable,r as collectSubtreeApplogs,H as contentVlToPlaintext,Q as createBlockApplogs,R as createRelationApplogs,S as createSingleNodeApplogs,U as createSingleTree,T as createTreeApplogs,Z as deleteHashFragment,G as getAllTagsInText,J as getChildIDs,L as getChildRelations,N as getContent,O as getContentText,W as getHashFragment,oo as getKnownNote3Origins,K as getParentIDs,M as getParentRelations,P as getRootIDs,_ as hasHashFragment,X as hashFragmentsToString,e as lazyVal,fo as makeNote3Url,o as mapAndRecurseKids,I as orderRelations,y as parseBlockContentValue,V as parseHashFragments,D as plainContentMatchAnyTag,C as plainContentMatchAtTag,A as plainContentMatchHashTag,B as plainContentMatchPlusTag,E as plainContentMatchTagGeneric,w as plaintextStringToTiptap,f as racePromises,F as rawContentMatchTag,t as recurseWithLoopProtection,po as replaceSearchParamsInUrl,to as replaceUriParts,mo as searchParamsFromHash,Y as setHashFragment,z as tiptapToPlaintext,eo as tryParseNote3URL,ro as tryParseURL};
1
+ import{a as Q,b as R,c as S,d as T,e as U}from"./chunk-RPZE6B5G.min.js";import"./chunk-KHOUPFOL.min.js";import{a as V,b as W,c as X,d as Y,e as Z,f as _,g as $,h as oo,i as ro,j as eo,k as fo,l as mo,m as po,n as to}from"./chunk-4ARVEMAY.min.js";import{a as o,b as r}from"./chunk-IP5E7S4I.min.js";import"./chunk-QRRYERNI.min.js";import{a as e,b as f,c as m,d as p,e as t}from"./chunk-O72M27NE.min.js";import"./chunk-5TTMWYXD.min.js";import{a as x}from"./chunk-IFY2JCCQ.min.js";import{a as J,b as K,c as L,d as M,e as N,f as O,g as P}from"./chunk-XL6QVLYO.min.js";import{a as I}from"./chunk-KY36PVHK.min.js";import{a as w,b as y,c as z,d as A,e as B,f as C,g as D,h as E,i as F,j as G,k as H}from"./chunk-LDNVHZO7.min.js";import{a,b,c,d,e as g,f as h,g as i,h as j,i as k,j as l,k as n,l as q,m as s,n as u,o as v}from"./chunk-POX3PUJK.min.js";import"./chunk-MXMMU6NF.min.js";export{$ as CANONICAL_NOTE3_ORIGINS,k as RE_ANY_TAG_ONLY,v as RE_ANY_TAG_WITHCONTEXT,j as RE_AT_TAG_ONLY,u as RE_AT_TAG_WITHCONTEXT,h as RE_HASH_TAG_ONLY,q as RE_HASH_TAG_WITHCONTEXT,i as RE_PLUS_TAG_ONLY,s as RE_PLUS_TAG_WITHCONTEXT,g as RE_TAG_BODY,c as RE_TAG_BODY_CHAR,d as RE_TAG_BODY_REQUIRED_CHAR,n as RE_TAG_CONTEXT_POST,l as RE_TAG_CONTEXT_PRE,x as SetMap,b as TAG_MIN_LENGTH,a as TIPTAP_EMPTY,m as asyncIterableToArray,p as blobToAsyncIterable,r as collectSubtreeApplogs,H as contentVlToPlaintext,Q as createBlockApplogs,R as createRelationApplogs,S as createSingleNodeApplogs,U as createSingleTree,T as createTreeApplogs,Z as deleteHashFragment,G as getAllTagsInText,J as getChildIDs,L as getChildRelations,N as getContent,O as getContentText,W as getHashFragment,oo as getKnownNote3Origins,K as getParentIDs,M as getParentRelations,P as getRootIDs,_ as hasHashFragment,X as hashFragmentsToString,e as lazyVal,fo as makeNote3Url,o as mapAndRecurseKids,I as orderRelations,y as parseBlockContentValue,V as parseHashFragments,D as plainContentMatchAnyTag,C as plainContentMatchAtTag,A as plainContentMatchHashTag,B as plainContentMatchPlusTag,E as plainContentMatchTagGeneric,w as plaintextStringToTiptap,f as racePromises,F as rawContentMatchTag,t as recurseWithLoopProtection,po as replaceSearchParamsInUrl,to as replaceUriParts,mo as searchParamsFromHash,Y as setHashFragment,z as tiptapToPlaintext,eo as tryParseNote3URL,ro as tryParseURL};
2
2
  //# sourceMappingURL=index.min.js.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e}from"./chunk-R36GXTBD.min.js";import"./chunk-CCK7EZVX.min.js";import"./chunk-MXMMU6NF.min.js";export{a as createBlockApplogs,b as createRelationApplogs,c as createSingleNodeApplogs,e as createSingleTree,d as createTreeApplogs};
1
+ import{a,b,c,d,e}from"./chunk-RPZE6B5G.min.js";import"./chunk-QRRYERNI.min.js";import"./chunk-MXMMU6NF.min.js";export{a as createBlockApplogs,b as createRelationApplogs,c as createSingleNodeApplogs,e as createSingleTree,d as createTreeApplogs};
2
2
  //# sourceMappingURL=tree-builder.min.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@note3/utils",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./dist/index.min.js",
@@ -31,7 +31,7 @@
31
31
  "comlink": "^4.4.2",
32
32
  "core-js": "^3.45.1",
33
33
  "vite-plugin-comlink": "^5.3.0",
34
- "@wovin/core": "^0.1.9"
34
+ "@wovin/core": "^0.1.11"
35
35
  },
36
36
  "devDependencies": {
37
37
  "concurrently": "^8.2.2",