@spillway-cms/blocks 0.1.24 → 0.1.25

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.
Files changed (55) hide show
  1. package/dist/collection.d.ts +32 -1
  2. package/dist/collection.js +40 -5
  3. package/dist/collection.js.map +1 -1
  4. package/dist/config.d.ts +15 -1
  5. package/dist/config.js +23 -3
  6. package/dist/config.js.map +1 -1
  7. package/dist/countdown.d.ts +34 -0
  8. package/dist/countdown.js +81 -0
  9. package/dist/countdown.js.map +1 -0
  10. package/dist/css.js +17 -0
  11. package/dist/css.js.map +1 -1
  12. package/dist/documents.d.ts +52 -0
  13. package/dist/documents.js +146 -0
  14. package/dist/documents.js.map +1 -0
  15. package/dist/examples.js +74 -0
  16. package/dist/examples.js.map +1 -1
  17. package/dist/form.d.ts +11 -3
  18. package/dist/form.js +27 -11
  19. package/dist/form.js.map +1 -1
  20. package/dist/glossary.d.ts +56 -0
  21. package/dist/glossary.js +117 -0
  22. package/dist/glossary.js.map +1 -0
  23. package/dist/hours.d.ts +44 -0
  24. package/dist/hours.js +163 -0
  25. package/dist/hours.js.map +1 -0
  26. package/dist/index.d.ts +16 -0
  27. package/dist/index.js +9 -0
  28. package/dist/index.js.map +1 -1
  29. package/dist/language-switcher.d.ts +38 -0
  30. package/dist/language-switcher.js +60 -0
  31. package/dist/language-switcher.js.map +1 -0
  32. package/dist/listing-script.d.ts +13 -0
  33. package/dist/listing-script.js +44 -0
  34. package/dist/listing-script.js.map +1 -0
  35. package/dist/location-map.d.ts +60 -0
  36. package/dist/location-map.js +215 -0
  37. package/dist/location-map.js.map +1 -0
  38. package/dist/meta.js +37 -2
  39. package/dist/meta.js.map +1 -1
  40. package/dist/motion.js +1 -1
  41. package/dist/progress.d.ts +46 -0
  42. package/dist/progress.js +106 -0
  43. package/dist/progress.js.map +1 -0
  44. package/dist/registry-package.js +1 -1
  45. package/dist/registry-package.js.map +1 -1
  46. package/dist/registry-types.d.ts +5 -0
  47. package/dist/registry-types.js.map +1 -1
  48. package/dist/styles.css +193 -1
  49. package/dist/utility-script.d.ts +20 -0
  50. package/dist/utility-script.js +90 -0
  51. package/dist/utility-script.js.map +1 -0
  52. package/dist/utility-shared.d.ts +18 -0
  53. package/dist/utility-shared.js +32 -0
  54. package/dist/utility-shared.js.map +1 -0
  55. package/package.json +2 -2
@@ -0,0 +1,90 @@
1
+ /**
2
+ * The page script for the utility blocks (docs/dev/utility-blocks.md), inline with the page's nonce, once per page, only when the
3
+ * page has a Countdown or an Hours block, or a Document library or Glossary with search on. It:
4
+ *
5
+ * - ticks countdowns (`data-sw-countdown` holds the target instant): once a minute, or every second when the block shows seconds,
6
+ * the brand's motion is on (`data-sw-motion` on the root) and the visitor has not asked for reduced motion (the device's
7
+ * setting, the stored choice or `sw-reduce-motion` on the root); the Pause countdown button stops it; at the target the block
8
+ * shows its message or hides; the live region, when the block has one, speaks when it ends or at most once a minute;
9
+ * - refreshes the Hours status line and today's row every minute from `data-sw-hours-schedule`, in `data-tz`, with a copy of
10
+ * `hoursStatus` (packages/shared/src/hours.ts; the tests hold the two to the same answers);
11
+ * - filters a Document library or Glossary (`data-sw-filter`) as the visitor types or picks a type, hides empty groups, greys
12
+ * the glossary's letter links for them and says how many match in a polite status line once typing pauses.
13
+ *
14
+ * It runs once per document and picks up blocks added later (a Personalize island). Without it the blocks keep the server's HTML.
15
+ */
16
+ export const UTILITY_SCRIPT = `(function(){var d=document,h=d.documentElement;if(h.hasAttribute('data-sw-utility'))return;h.setAttribute('data-sw-utility','');
17
+ var K='sw-reduce-motion',mq=window.matchMedia?matchMedia('(prefers-reduced-motion: reduce)'):null,MS=60000,redraws=[],hours=[];
18
+ function stored(){try{return localStorage.getItem(K)}catch(e){return null}}
19
+ function reduced(){if(h.classList.contains('sw-reduce-motion'))return true;if(h.classList.contains('sw-motion-allowed'))return false;var s=stored();return s===null?!!(mq&&mq.matches):s==='1'}
20
+ function pad(n){return n<10?'0'+n:''+n}
21
+ function pl(n,one){return n+' '+one+(n===1?'':'s')}
22
+ function parts(t,now){var l=Math.max(0,Math.floor((t-now)/1000));return{d:Math.floor(l/86400),h:Math.floor(l%86400/3600),m:Math.floor(l%3600/60),s:l%60,end:t<=now}}
23
+ function sentence(p){var a=[];if(p.d)a.push(pl(p.d,'day'));if(p.d||p.h)a.push(pl(p.h,'hour'));a.push(pl(p.m,'minute'));return a.length>1?a.slice(0,-1).join(', ')+' and '+a[a.length-1]:a[0]}
24
+ function countdown(root){if(root._sw)return;root._sw=1;var t=+root.getAttribute('data-sw-countdown');if(!t)return;
25
+ var sec=root.hasAttribute('data-seconds'),body=root.querySelector('[data-sw-countdown-body]'),units=root.querySelector('.sw-countdown__units'),txt=root.querySelector('[data-sw-countdown-text]'),endEl=root.querySelector('[data-sw-countdown-ended]'),live=root.querySelector('[data-sw-countdown-live]'),mode=root.getAttribute('data-announce'),hide=root.getAttribute('data-ended')==='hide',btn=root.querySelector('[data-sw-countdown-pause]'),paused=false,timer=0,lastMin=null,started=Date.now()>=t;
26
+ function secondsOn(){return sec&&h.hasAttribute('data-sw-motion')&&!reduced()}
27
+ function unit(u,v,one,many){var el=root.querySelector('[data-unit="'+u+'"]');if(!el)return el;el.querySelector('.sw-countdown__value').textContent=u==='days'?String(v):pad(v);el.querySelector('.sw-countdown__name').textContent=v===1?one:many;return el}
28
+ function draw(){clearTimeout(timer);var now=Date.now(),p=parts(t,now),showS=secondsOn();
29
+ if(p.end){if(body)body.hidden=true;if(hide)root.hidden=true;else if(endEl)endEl.hidden=false;if(live&&!started&&!root._swSaid){root._swSaid=1;live.textContent=hide?'':(endEl?endEl.textContent:'')}return}
30
+ if(units)units.hidden=false;unit('days',p.d,'day','days');unit('hours',p.h,'hour','hours');unit('minutes',p.m,'minute','minutes');var su=unit('seconds',p.s,'second','seconds');if(su)su.hidden=!showS;if(btn)btn.hidden=!showS;
31
+ var m=Math.floor((t-now)/MS);if(m!==lastMin){if(txt)txt.textContent=sentence(p)+' left.';if(live&&mode==='minute'&&lastMin!==null)live.textContent=sentence(p)+' left.';lastMin=m}
32
+ if(paused)return;var left=t-now,wait=showS?left%1000:left%MS;timer=setTimeout(draw,wait+30)}
33
+ if(btn)btn.addEventListener('click',function(){paused=!paused;btn.setAttribute('aria-pressed',paused?'true':'false');btn.textContent=paused?'Resume countdown':'Pause countdown';if(paused)clearTimeout(timer);else draw()});
34
+ d.addEventListener('visibilitychange',function(){if(!d.hidden&&!paused)draw()});
35
+ redraws.push(function(){if(!paused)draw()});draw()}
36
+ var fc={};function fmt(tz){return fc[tz]||(fc[tz]=new Intl.DateTimeFormat('en-US',{timeZone:tz,hourCycle:'h23',year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit',second:'2-digit'}))}
37
+ function lf(ms,tz){var p={};fmt(tz).formatToParts(new Date(ms)).forEach(function(x){p[x.type]=x.value});return{y:+p.year,m:+p.month,d:+p.day,h:(+p.hour)%24,mi:+p.minute,s:+p.second}}
38
+ function asUtc(f){return Date.UTC(f.y,f.m-1,f.d,f.h,f.mi,f.s||0)}
39
+ function toUtc(f,tz){var a=asUtc(f),g=a-(asUtc(lf(a,tz))-a);return a-(asUtc(lf(g,tz))-g)}
40
+ function add(f,n){var x=new Date(Date.UTC(f.y,f.m-1,f.d+n));return{y:x.getUTCFullYear(),m:x.getUTCMonth()+1,d:x.getUTCDate()}}
41
+ function wd(f){return(new Date(Date.UTC(f.y,f.m-1,f.d)).getUTCDay()+6)%7}
42
+ function ymd(f){return f.y+'-'+pad(f.m)+'-'+pad(f.d)}
43
+ function mins(t){var m=/^([01]\\d|2[0-3]):([0-5]\\d)$/.exec((t||'').trim());return m?+m[1]*60+ +m[2]:null}
44
+ function rowOn(day,w){return day==='daily'||(day==='weekdays'&&w<5)||(day==='weekend'&&w>=5)||['MO','TU','WE','TH','FR','SA','SU'].indexOf(day)===w}
45
+ function exOn(ex,date){for(var i=0;i<ex.length;i++){var e=ex[i],end=e[1]&&e[1]>=e[0]?e[1]:e[0];if(date>=e[0]&&date<=end)return e}return null}
46
+ var WD=['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],MO=['January','February','March','April','May','June','July','August','September','October','November','December'];
47
+ function clock(n,ck){var hh=Math.floor(n/60)%24,mm=pad(n%60);return ck==='24'?pad(hh)+':'+mm:(hh%12===0?12:hh%12)+':'+mm+' '+(hh<12?'AM':'PM')}
48
+ function spansOn(s,f){var e=exOn(s.ex,ymd(f)),pairs=e?(e[3]?[]:[[e[4],e[5]]]):s.rows.filter(function(r){return rowOn(r[0],wd(f))}).map(function(r){return[r[1],r[2]]}),out=[];
49
+ pairs.forEach(function(p){var a=mins(p[0]),b=mins(p[1]);if(a===null||b===null)return;out.push([a,b<=a?b+1440:b])});return{spans:out.sort(function(x,y){return x[0]-y[0]}),ex:e}}
50
+ function status(s,now,tz,ck){var n0=lf(now,tz),today={y:n0.y,m:n0.m,d:n0.d},all=[],i,merged=[];
51
+ for(i=-1;i<=8;i++){var day=add(today,i);spansOn(s,day).spans.forEach(function(sp){function at(x){var dd=add(day,Math.floor(x/1440)),r=x%1440;return toUtc({y:dd.y,m:dd.m,d:dd.d,h:Math.floor(r/60),mi:r%60,s:0},tz)}all.push({a:at(sp[0]),b:at(sp[1])})})}
52
+ all.sort(function(x,y){return x.a-y.a});all.forEach(function(x){var l=merged[merged.length-1];if(l&&x.a<=l.b)l.b=Math.max(l.b,x.b);else merged.push({a:x.a,b:x.b})});
53
+ function when(ms){var f=lf(ms,tz),diff=Math.round((Date.UTC(f.y,f.m-1,f.d)-Date.UTC(today.y,today.m-1,today.d))/864e5),tm=clock(f.h*60+f.mi,ck);if(diff===0)return'at '+tm;if(diff===1)return'tomorrow at '+tm;var w=WD[wd(f)];return diff<7?w+' at '+tm:w+', '+MO[f.m-1]+' '+f.d+' at '+tm}
54
+ var cur=null,next=null;merged.forEach(function(x){if(!cur&&x.a<=now&&now<x.b)cur=x;if(!next&&x.a>now)next=x});var w0=wd(today);
55
+ if(cur&&cur.b-now>=7*864e5)return{open:true,text:'Open now, 24 hours',wd:w0};if(cur)return{open:true,text:'Open now, closes '+when(cur.b),wd:w0};
56
+ var te=spansOn(s,today).ex,closed=te&&te[3]&&(te[2]||'').trim()?'Closed today ('+te[2].trim()+')':'Closed';return{open:false,text:next?closed+', opens '+when(next.a):closed,wd:w0}}
57
+ function refreshHours(root){var tz=root.getAttribute('data-tz')||'UTC',ck=root.getAttribute('data-clock')||'12',now=Date.now();
58
+ [].forEach.call(root.querySelectorAll('[data-sw-hours-schedule]'),function(loc){var s;try{s=JSON.parse(loc.getAttribute('data-sw-hours-schedule'))}catch(e){return}var st;try{st=status(s,now,tz,ck)}catch(e){return}
59
+ var el=loc.querySelector('[data-sw-hours-status]');if(el){el.hidden=false;if(el.textContent!==st.text)el.textContent=st.text;el.classList.toggle('sw-hours__status--open',st.open);el.classList.toggle('sw-hours__status--closed',!st.open)}
60
+ [].forEach.call(loc.querySelectorAll('tr[data-weekday]'),function(tr){var on=+tr.getAttribute('data-weekday')===st.wd;tr.classList.toggle('sw-hours__today',on);if(on)tr.setAttribute('aria-current','date');else tr.removeAttribute('aria-current')})})}
61
+ function hoursBlock(root){if(root._sw)return;root._sw=1;hours.push(root);refreshHours(root)}
62
+ function tick(){hours.forEach(refreshHours);setTimeout(tick,MS-Date.now()%MS+50)}
63
+ function norm(s){s=String(s||'');return(s.normalize?s.normalize('NFKD').replace(/[\\u0300-\\u036f]/g,''):s).toLowerCase().replace(/\\s+/g,' ')}
64
+ function filter(root){if(root._sw)return;root._sw=1;var tools=root.querySelector('[data-sw-filter-tools]');if(!tools)return;tools.hidden=false;
65
+ var input=tools.querySelector('[data-sw-filter-input]'),type=tools.querySelector('[data-sw-filter-type]'),out=tools.querySelector('[data-sw-filter-status]'),empty=root.querySelector('[data-sw-filter-empty]'),items=[].slice.call(root.querySelectorAll('[data-sw-filter-item]')),groups=[].slice.call(root.querySelectorAll('[data-sw-filter-group]')),terms=root.getAttribute('data-sw-filter')==='terms',one=terms?'term':'document',many=terms?'terms':'documents',timer=0;
66
+ items.forEach(function(it){it._swText=norm(it.textContent)});
67
+ function apply(){var q=norm(input?input.value:'').trim(),tv=type?type.value:'',n=0;
68
+ items.forEach(function(it){var ok=(!q||it._swText.indexOf(q)>=0)&&(!tv||it.getAttribute('data-filter-type')===tv);it.hidden=!ok;if(ok)n++});
69
+ groups.forEach(function(g){var any=[].some.call(g.querySelectorAll('[data-sw-filter-item]'),function(it){return!it.hidden});g.hidden=!any;var id=g.getAttribute('data-sw-filter-group');if(!id)return;var a=root.querySelector('[data-sw-filter-letter="'+id+'"]');if(!a)return;
70
+ if(any){if(a._swHref)a.setAttribute('href',a._swHref);a.removeAttribute('aria-disabled')}else{a._swHref=a._swHref||a.getAttribute('href');a.removeAttribute('href');a.setAttribute('aria-disabled','true')}});
71
+ if(empty)empty.hidden=n>0;clearTimeout(timer);timer=setTimeout(function(){if(out)out.textContent=q||tv?(n?(n===items.length?'All ':'')+n+' '+(n===1?one:many)+(n===items.length?'':' of '+items.length):'No '+many+' match'):''},400)}
72
+ if(input)input.addEventListener('input',apply);if(type)type.addEventListener('change',apply);if(input&&input.value)apply()}
73
+ function init(scope){if(scope.matches){if(scope.matches('[data-sw-countdown]'))countdown(scope);if(scope.matches('[data-sw-hours]'))hoursBlock(scope);if(scope.matches('[data-sw-filter]'))filter(scope)}
74
+ [].forEach.call(scope.querySelectorAll('[data-sw-countdown]'),countdown);[].forEach.call(scope.querySelectorAll('[data-sw-hours]'),hoursBlock);[].forEach.call(scope.querySelectorAll('[data-sw-filter]'),filter)}
75
+ init(d);setTimeout(tick,MS-Date.now()%MS+50);
76
+ function motionChanged(){redraws.forEach(function(f){f()})}
77
+ if(mq){if(mq.addEventListener)mq.addEventListener('change',motionChanged);else if(mq.addListener)mq.addListener(motionChanged)}
78
+ window.addEventListener('storage',function(e){if(e.key===K)motionChanged()});
79
+ if('MutationObserver' in window){new MutationObserver(motionChanged).observe(h,{attributes:true,attributeFilter:['class','data-sw-motion']});
80
+ new MutationObserver(function(ms){ms.forEach(function(m){[].forEach.call(m.addedNodes,function(nd){if(nd.nodeType===1&&nd.querySelectorAll)init(nd)})})}).observe(d.body,{childList:true,subtree:true})}
81
+ })();`;
82
+ /** The blocks that can need UTILITY_SCRIPT; `needsUtilityScript` says whether one does. */
83
+ export const UTILITY_BLOCKS = ['Countdown', 'Hours', 'DocumentLibrary', 'Glossary'];
84
+ /** Whether a block needs UTILITY_SCRIPT: every Countdown and Hours block, a Document library or Glossary with search on. */
85
+ export function needsUtilityScript(type, props) {
86
+ if (type === 'Countdown' || type === 'Hours')
87
+ return true;
88
+ return (type === 'DocumentLibrary' || type === 'Glossary') && props?.search === true;
89
+ }
90
+ //# sourceMappingURL=utility-script.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utility-script.js","sourceRoot":"","sources":["../src/utility-script.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiExB,CAAC;AAEP,2FAA2F;AAC3F,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,UAAU,CAAU,CAAC;AAE7F,4HAA4H;AAC5H,MAAM,UAAU,kBAAkB,CAAC,IAAY,EAAE,KAA0C;IACzF,IAAI,IAAI,KAAK,WAAW,IAAI,IAAI,KAAK,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1D,OAAO,CAAC,IAAI,KAAK,iBAAiB,IAAI,IAAI,KAAK,UAAU,CAAC,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AACvF,CAAC"}
@@ -0,0 +1,18 @@
1
+ /** Small helpers shared by the utility blocks (Countdown, Hours, DocumentLibrary, Glossary, CampaignProgress). Server-safe. */
2
+ export declare const cx: (...c: (string | false | null | undefined)[]) => string;
3
+ /** JSON for an inline <script type="application/ld+json">: `<` escaped so the text cannot close the element. */
4
+ export declare const ldJson: (value: unknown) => string;
5
+ /** Text from a prop that is a string on the page and an inline editor (a React element) on the builder's canvas. */
6
+ export declare const textOf: (v: unknown) => string;
7
+ /** A short, stable id prefix for the ids inside one block: from Puck's block id, else a hash of what the block holds. */
8
+ export declare function keyFor(prefix: string, id: unknown, seed: string): string;
9
+ /** "Visiting campus" → "visiting-campus": a link name for an id and a URL hash (the widgets' rule). */
10
+ export declare function slugOf(text: string): string;
11
+ /** Whether a block is being drawn on the page builder's canvas. */
12
+ export declare const editing: (props: {
13
+ puck?: {
14
+ isEditing?: boolean;
15
+ };
16
+ }) => boolean;
17
+ /** A note shown only on the page builder's canvas (an ended countdown, a library with nothing to list). */
18
+ export declare const NOTE_CSS = ".sw-builder-note { margin: 0; padding: var(--sw-space-2); border: 1px dashed var(--sw-color-border); border-radius: var(--sw-radius); color: var(--sw-color-muted); font-size: 0.875rem; }";
@@ -0,0 +1,32 @@
1
+ /** Small helpers shared by the utility blocks (Countdown, Hours, DocumentLibrary, Glossary, CampaignProgress). Server-safe. */
2
+ export const cx = (...c) => c.filter(Boolean).join(' ');
3
+ /** JSON for an inline <script type="application/ld+json">: `<` escaped so the text cannot close the element. */
4
+ export const ldJson = (value) => JSON.stringify(value).replace(/</g, '\\u003c');
5
+ /** Text from a prop that is a string on the page and an inline editor (a React element) on the builder's canvas. */
6
+ export const textOf = (v) => (typeof v === 'string' ? v : '');
7
+ /** A short, stable id prefix for the ids inside one block: from Puck's block id, else a hash of what the block holds. */
8
+ export function keyFor(prefix, id, seed) {
9
+ const clean = typeof id === 'string' ? id.replace(/[^A-Za-z0-9_-]/g, '').slice(-16) : '';
10
+ if (clean)
11
+ return `sw-${prefix}-${clean}`;
12
+ let h = 5381;
13
+ for (let i = 0; i < seed.length; i++)
14
+ h = ((h << 5) + h + seed.charCodeAt(i)) | 0;
15
+ return `sw-${prefix}-${(h >>> 0).toString(36)}`;
16
+ }
17
+ /** "Visiting campus" → "visiting-campus": a link name for an id and a URL hash (the widgets' rule). */
18
+ export function slugOf(text) {
19
+ return text
20
+ .normalize('NFKD')
21
+ .replace(/[̀-ͯ]/g, '')
22
+ .toLowerCase()
23
+ .replace(/[^a-z0-9]+/g, '-')
24
+ .replace(/^-+|-+$/g, '')
25
+ .slice(0, 60)
26
+ .replace(/-+$/, '');
27
+ }
28
+ /** Whether a block is being drawn on the page builder's canvas. */
29
+ export const editing = (props) => props.puck?.isEditing === true;
30
+ /** A note shown only on the page builder's canvas (an ended countdown, a library with nothing to list). */
31
+ export const NOTE_CSS = `.sw-builder-note { margin: 0; padding: var(--sw-space-2); border: 1px dashed var(--sw-color-border); border-radius: var(--sw-radius); color: var(--sw-color-muted); font-size: 0.875rem; }`;
32
+ //# sourceMappingURL=utility-shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utility-shared.js","sourceRoot":"","sources":["../src/utility-shared.ts"],"names":[],"mappings":"AAAA,+HAA+H;AAE/H,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAwC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/F,gHAAgH;AAChH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAEzF,oHAAoH;AACpH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAU,EAAU,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAE/E,yHAAyH;AACzH,MAAM,UAAU,MAAM,CAAC,MAAc,EAAE,EAAW,EAAE,IAAY;IAC9D,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACzF,IAAI,KAAK;QAAE,OAAO,MAAM,MAAM,IAAI,KAAK,EAAE,CAAC;IAC1C,IAAI,CAAC,GAAG,IAAI,CAAC;IACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE;QAAE,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAClF,OAAO,MAAM,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;AAClD,CAAC;AAED,uGAAuG;AACvG,MAAM,UAAU,MAAM,CAAC,IAAY;IACjC,OAAO,IAAI;SACR,SAAS,CAAC,MAAM,CAAC;SACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;SACrB,WAAW,EAAE;SACb,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;SAC3B,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;SACvB,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;SACZ,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACxB,CAAC;AAED,mEAAmE;AACnE,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAyC,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;AAErG,2GAA2G;AAC3G,MAAM,CAAC,MAAM,QAAQ,GAAG,4LAA4L,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spillway-cms/blocks",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Core block library for Spillway CMS: Puck components that render on the server and in the editor",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,7 +31,7 @@
31
31
  "@puckeditor/core": "^0.24.0"
32
32
  },
33
33
  "dependencies": {
34
- "@spillway-cms/shared": "0.1.24"
34
+ "@spillway-cms/shared": "0.1.25"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@puckeditor/core": "^0.24.0",