@seatlayer/js 0.14.0 → 0.15.1
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/README.md +6 -2
- package/dist/index.cjs +328 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -3
- package/dist/index.d.ts +60 -3
- package/dist/index.js +328 -51
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -103,10 +103,14 @@ Give the container a height, for example `min-height: 760px`. Keep the default
|
|
|
103
103
|
|
|
104
104
|
`new SeatingChart(options)` — options: `container` (selector or element, required),
|
|
105
105
|
`event` (key, required), `apiBase?`, `maxSelection?` (default 10), `onSelectionChange?`,
|
|
106
|
-
`onHold?`, `onError?`.
|
|
106
|
+
`onHold?`, `onHoldRestored?`, `onError?`.
|
|
107
107
|
|
|
108
108
|
Methods: `render()`, `getSelection()`, `hold()`, `bestAvailable(qty, categoryKey?)`,
|
|
109
|
-
`release()`, `destroy()`.
|
|
109
|
+
`resumeHold(holdId)`, `getCurrentHold()`, `releaseLabels(labels)`, `release()`, `destroy()`.
|
|
110
|
+
|
|
111
|
+
The full `SeatPicker` automatically restores an active hold after same-tab
|
|
112
|
+
checkout navigation and lets the buyer remove individual held tickets. Set
|
|
113
|
+
`restoreHold: false` and pass `initialHoldId` when your host owns persistence.
|
|
110
114
|
|
|
111
115
|
The browser **holds**; your **server books** with a secret key. See the
|
|
112
116
|
[integration guide](https://docs.seatlayer.io/getting-started/how-it-works/).
|