@seatlayer/js 0.105.1 → 0.106.0
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/{channelsMode-BS7exzUF.d.cts → channelsMode-DV9D-48T.d.cts} +90 -6
- package/dist/{channelsMode-BS7exzUF.d.ts → channelsMode-DV9D-48T.d.ts} +90 -6
- package/dist/channelsMode-W5KNSQSJ.js +1 -0
- package/dist/{chunk-K6JOQ4VE.js → chunk-CNLSM36T.js} +99 -98
- package/dist/chunk-HHV7F37Y.js +29 -0
- package/dist/chunk-T57HSGPG.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/manager.cjs +347 -314
- package/dist/manager.d.cts +2 -2
- package/dist/manager.d.ts +2 -2
- package/dist/manager.js +89 -201
- package/dist/managerExtras-K2UGS5TD.js +546 -0
- package/package.json +2 -2
- package/dist/channelsMode-GTGKGXZ3.js +0 -1
- package/dist/chunk-LLQUHT5Q.js +0 -1
- package/dist/chunk-QB6PA3C6.js +0 -1
- package/dist/managerExtras-BP2MLTS5.js +0 -430
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatlayer/js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.0",
|
|
4
4
|
"description": "SeatLayer's official JavaScript seating chart and seat map SDK — live availability, seat selection, temporary holds, and a typed API for any web ticketing app.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"typescript"
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@seatlayer/core": "0.
|
|
71
|
+
"@seatlayer/core": "0.106.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"tsup": "^8.5.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Q as a,R as b,S as c}from"./chunk-K6JOQ4VE.js";import"./chunk-QB6PA3C6.js";import"./chunk-UBFNMA7U.js";import"./chunk-OSZ7DOEH.js";export{b as CHANNELS_CSS,c as ChannelsMode,a as bucketRowsHtml};
|
package/dist/chunk-LLQUHT5Q.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var m;function c(t){if(m=void 0,!!t)try{new Intl.DateTimeFormat(void 0,{timeZone:t}),m=t}catch{}}var s=new Map;function a(t,r,o){let e=r;if(e.hour==="2-digit"){let i=String(o??""),n=s.get(i);if(n===void 0){let u=new Intl.DateTimeFormat(o,{hour:"numeric"}).resolvedOptions().hourCycle;s.set(i,n=u==="h12"||u==="h11")}n&&(e={...e,hour:"numeric"})}return new Date(t).toLocaleString(o,m?{...e,timeZone:m}:e)}function d(t){let r={};for(let n of new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",hourCycle:"h23",minute:"numeric",...m?{timeZone:m}:{}}).formatToParts(t))r[n.type]=n.value;let o=Number(r.year),e=Number(r.month),i=Number(r.day);return{year:o,month:e,date:i,minute:Number(r.minute),day:Math.round(Date.UTC(o,e-1,i)/864e5)}}function h(t){let r=t.map(n=>{let u=n.lastIndexOf(" ");return u>0?[n.slice(0,u),n.slice(u+1)]:["",n]}),o=n=>n.length>1?`${n.slice(0,-1).join(", ")} and ${n[n.length-1]}`:n[0]??"",e=r[0]?.[0]??"";if(t.length<=6&&e&&r.every(([n])=>n===e))return`${e} ${o(r.map(([,n])=>n))}`;let i=t.slice(0,3);return t.length>3?`${i.join(", ")} and ${t.length-3} more`:o(i)}function f(t){return`Ask an admin${t?.trim()?` of ${t.trim()}`:""}`}export{c as a,a as b,d as c,h as d,f as e};
|
package/dist/chunk-QB6PA3C6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a}from"./chunk-UBFNMA7U.js";import{formatMoney as s}from"@seatlayer/core";function u(e){return e?e.mode:"open"}function c(e,t,n){switch(e){case"open":return null;case"hidden":return{mode:"hidden",labels:t};case"closed":return{mode:"closed",labels:t};case"timed":return{mode:"timed",revealAt:n?.revealAt??Date.now()+36e5,labels:t};case"threshold":return{mode:"threshold",thresholdPct:n?.thresholdPct??80,labels:t}}}function d(e){if(typeof e=="string"){let t=document.querySelector(e);if(!t)throw new Error(`seatmanager: container "${e}" not found`);return t}if(!(e instanceof HTMLElement))throw new Error("seatmanager: container must be a CSS selector or an HTMLElement");return e}function m(e){if(!e.startsWith("mse_"))throw new Error("seatmanager: token must be a short-lived event-scoped mse_ grant minted by your backend; tenant secret keys are unsupported in browsers")}function f(e){return e==="blocked"?"not_for_sale":e}var g={free:"#6e7bff",booked:"#9ca3af",held:"#f4b740",blocked:"#475569"};function p(e,t){let n=e??{},r=t?a[t]:null,o=t==="light";return{"--slm-bg":n.background??r?.background??"#0e1017","--slm-surface":r?.surface??"#181b24","--slm-text":r?.text??"#eef1f7","--slm-muted":r?.muted??"#8b93a7","--slm-line":r?.line??"rgba(255,255,255,.09)","--slm-tint":o?"rgba(23,32,51,.05)":"rgba(255,255,255,.035)","--slm-tint-strong":o?"rgba(23,32,51,.09)":"rgba(255,255,255,.07)","--slm-accent":n.accent??(o?"#4654c8":"#6e7bff"),"--slm-accent-ink":n.accentInk??"#ffffff","--slm-font":"-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif","--slm-radius":"14px"}}function b(e){return e?a[e].map:null}function h(e,t){let n=Math.max(0,Math.round((t-e)/1e3));if(n<5)return"just now";if(n<60)return`${n}s ago`;let r=Math.round(n/60);return r<60?`${r}m ago`:`${Math.round(r/60)}h ago`}function S(e,t){return s(e,t,{maximumFractionDigits:0,fallback:(n,r)=>`${r} ${Math.round(n).toLocaleString()}`})}function y(e){return String(e??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}export{u as a,c as b,d as c,m as d,f as e,g as f,p as g,b as h,h as i,S as j,y as k};
|