@konfigure/sdk 0.0.0-stage → 0.2.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/LICENSE +41 -0
- package/README.md +325 -2
- package/THIRD_PARTY_NOTICES.md +283 -0
- package/dist/chunk-MJ67XJWM.js +1 -0
- package/dist/chunk-OOVVLYAY.js +482 -0
- package/dist/chunk-XUSV3KOD.js +1 -0
- package/dist/configurator-6ISAZiAx.d.ts +468 -0
- package/dist/index.d.ts +97 -0
- package/dist/index.js +4 -0
- package/dist/src-GJ5RXX7G.js +3811 -0
- package/dist/view.d.ts +674 -0
- package/dist/view.js +801 -0
- package/package.json +46 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Konfigure SDK (@konfigure/sdk) Licence
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jagu s.r.o., registered office Tisem 22, 257 56 Tisem,
|
|
4
|
+
Czech Republic, company ID (IČO) 284 26 126. All rights reserved.
|
|
5
|
+
|
|
6
|
+
1. Licence. Jagu s.r.o. ("Jagu") grants you a non-exclusive,
|
|
7
|
+
non-transferable, revocable licence to install and use this package (the
|
|
8
|
+
"Software") solely to connect a website or application to a Konfigure
|
|
9
|
+
instance operated by Jagu or licensed from Jagu, for as long as you are
|
|
10
|
+
entitled to use that instance.
|
|
11
|
+
|
|
12
|
+
2. Restrictions. You may not:
|
|
13
|
+
a) copy, modify or redistribute the Software, in whole or in part, except
|
|
14
|
+
as needed to use it under section 1 (including bundling it into a
|
|
15
|
+
website or application that connects to such an instance);
|
|
16
|
+
b) use the Software or any part of it, in particular its 3D view and
|
|
17
|
+
rendering code, with anything other than a Konfigure instance operated
|
|
18
|
+
by or licensed from Jagu;
|
|
19
|
+
c) reverse engineer, decompile or disassemble the Software, except to the
|
|
20
|
+
extent applicable law expressly permits it notwithstanding this
|
|
21
|
+
limitation;
|
|
22
|
+
d) remove or alter any copyright, licence or proprietary notice in it.
|
|
23
|
+
|
|
24
|
+
3. Third-party software. The Software includes third-party components listed
|
|
25
|
+
in THIRD_PARTY_NOTICES.md. Each is provided under its own licence, which
|
|
26
|
+
applies to that component instead of this licence.
|
|
27
|
+
|
|
28
|
+
4. No warranty. The Software is provided "as is", without warranty of any
|
|
29
|
+
kind, express or implied, including the warranties of merchantability,
|
|
30
|
+
fitness for a particular purpose and non-infringement. To the extent
|
|
31
|
+
permitted by law, Jagu is not liable for any damages arising from the
|
|
32
|
+
Software or its use. Any warranty or support for a Konfigure instance is
|
|
33
|
+
governed by the agreement for that instance.
|
|
34
|
+
|
|
35
|
+
5. Termination. This licence ends automatically if you breach it or stop
|
|
36
|
+
being entitled to use a Konfigure instance. You must then stop using the
|
|
37
|
+
Software and delete it.
|
|
38
|
+
|
|
39
|
+
6. Governing law. This licence is governed by the laws of the Czech Republic.
|
|
40
|
+
|
|
41
|
+
Contact: team@konfigure.studio
|
package/README.md
CHANGED
|
@@ -1,3 +1,326 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @konfigure/sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Drive a Konfigure configurator from your own website: the catalogue comes from
|
|
4
|
+
the Konfigure instance, the UI is yours, the 3D is the product's own engine.
|
|
5
|
+
|
|
6
|
+
- `@konfigure/sdk` — headless, no three.js: `createKonfigureClient`, the
|
|
7
|
+
configurator (options, select, rules, summary, validate, events), save/share,
|
|
8
|
+
enquiries and leads.
|
|
9
|
+
- `@konfigure/sdk/view` — `mountView(element, configurator, options)`, the 3D
|
|
10
|
+
view; it redraws on every change. Browser only — import it lazily.
|
|
11
|
+
|
|
12
|
+
The state is the product's own `ConfigurationState` JSON, so a configuration
|
|
13
|
+
saved or enquired through the SDK opens in the dashboard, the share page and the
|
|
14
|
+
PDF like any other.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @konfigure/sdk three
|
|
20
|
+
npm install -D @types/three # for the /view entry's types
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`three` (0.181.x) is the only peer, and only the `/view` entry imports it. The
|
|
24
|
+
package is self-contained otherwise: no Vue, no Nuxt — it works in any bundler.
|
|
25
|
+
If your project ends up with two copies of three.js, dedupe it (in Vite:
|
|
26
|
+
`resolve: { dedupe: ['three'] }`).
|
|
27
|
+
|
|
28
|
+
## The instance
|
|
29
|
+
|
|
30
|
+
The website talks to its Konfigure instance over the instance's public API,
|
|
31
|
+
cross-origin, without cookies. The instance must list the website's origin in
|
|
32
|
+
its **embed allowed origins** (Dashboard → Settings → Embed, the same list the
|
|
33
|
+
iframe embed uses; picked up within about 30 s). Only the routes the SDK uses
|
|
34
|
+
are open to other origins: catalogue reads, asset files, and saving
|
|
35
|
+
configurations, enquiries and leads.
|
|
36
|
+
|
|
37
|
+
## Nuxt page
|
|
38
|
+
|
|
39
|
+
```vue
|
|
40
|
+
<script setup lang="ts">
|
|
41
|
+
import {
|
|
42
|
+
type AnyOption,
|
|
43
|
+
type Configurator,
|
|
44
|
+
type Group,
|
|
45
|
+
createKonfigureClient,
|
|
46
|
+
} from '@konfigure/sdk'
|
|
47
|
+
import type { KonfigureView } from '@konfigure/sdk/view'
|
|
48
|
+
|
|
49
|
+
const kfg = createKonfigureClient({ instance: 'https://your-instance.example', locale: 'cs' })
|
|
50
|
+
|
|
51
|
+
const host = useTemplateRef<HTMLDivElement>('host')
|
|
52
|
+
const groups = shallowRef<Group[]>([])
|
|
53
|
+
const options = shallowRef<Record<string, AnyOption[]>>({})
|
|
54
|
+
let cfg: Configurator | null = null
|
|
55
|
+
let view: KonfigureView | null = null
|
|
56
|
+
|
|
57
|
+
function refresh() {
|
|
58
|
+
groups.value = cfg!.groups()
|
|
59
|
+
options.value = Object.fromEntries(groups.value.map((g) => [g.key, cfg!.options(g.key)]))
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
onMounted(async () => {
|
|
63
|
+
cfg = await kfg.configurator({ productLine: 'my-window', module: 'WINDOW-2K' })
|
|
64
|
+
refresh()
|
|
65
|
+
cfg.on('change', refresh)
|
|
66
|
+
const { mountView } = await import('@konfigure/sdk/view') // client only
|
|
67
|
+
view = await mountView(host.value!, cfg, { camera: 'front' })
|
|
68
|
+
})
|
|
69
|
+
onBeforeUnmount(() => view?.dispose())
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<template>
|
|
73
|
+
<div ref="host" style="height: 70vh" />
|
|
74
|
+
<section v-for="group in groups" :key="group.key">
|
|
75
|
+
<h3>{{ group.label }}</h3>
|
|
76
|
+
<button
|
|
77
|
+
v-for="option in options[group.key]"
|
|
78
|
+
:key="option.id"
|
|
79
|
+
:disabled="option.disabled"
|
|
80
|
+
:aria-pressed="option.selected"
|
|
81
|
+
@click="cfg!.select(group.key, option.id)"
|
|
82
|
+
>
|
|
83
|
+
{{ option.name }}
|
|
84
|
+
</button>
|
|
85
|
+
</section>
|
|
86
|
+
</template>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## API
|
|
90
|
+
|
|
91
|
+
```ts
|
|
92
|
+
const kfg = createKonfigureClient({ instance, locale?: 'cs' | 'en' | 'de' | 'fr', fetch? })
|
|
93
|
+
await kfg.productLines() // [{ id, name, slug, description, image, scenePreset }]
|
|
94
|
+
await kfg.productLine('my-window') // by id, slug or name
|
|
95
|
+
const cfg = await kfg.configurator({ productLine, module?, state? }) // or { configuration: savedId }
|
|
96
|
+
await kfg.getConfiguration(savedId) // { id, name, state, shareUrl, viewUrl, … }
|
|
97
|
+
await kfg.submitLead({ data: { name, email, phone } })
|
|
98
|
+
|
|
99
|
+
cfg.groups() // [{ key, kind: 'module' | 'part' | 'surface', label, slots? }]
|
|
100
|
+
cfg.options(key) // [{ id, code, name, description, image, selected, disabled, reason, … }]
|
|
101
|
+
cfg.select(key, idCodeOrName) // → changed?; throws KonfigureError ('unknown_option', 'option_disabled', …)
|
|
102
|
+
cfg.selected(key)
|
|
103
|
+
cfg.summary() // [{ group, label, value, optionId }]
|
|
104
|
+
cfg.validate() // { valid, issues }
|
|
105
|
+
cfg.price() // null for now
|
|
106
|
+
cfg.sizeLimits() // { width: { min, max }, height: { min, max }, base? } in mm, or null (one size only)
|
|
107
|
+
cfg.setSize({ width, height }) // made to measure, mm → changed?; setSize(null) = the module's own size
|
|
108
|
+
cfg.size() // { width, height } or null
|
|
109
|
+
cfg.toJSON() / cfg.load(state) / cfg.reset(module?)
|
|
110
|
+
cfg.on('change', ({ state, changed }) => …) // returns an unsubscribe function
|
|
111
|
+
await cfg.save({ name? }) // { id, displayId, shareUrl, viewUrl }
|
|
112
|
+
await cfg.submitInquiry({ name?, email, phone?, company?, message?, extra? }) // { id, displayId }
|
|
113
|
+
|
|
114
|
+
const view = await mountView(element, cfg, {
|
|
115
|
+
camera?: 'front' | 'back' | 'threeQuarter' | 'left' | 'right' | 'top',
|
|
116
|
+
wall?: boolean, // `wall` presets (windows, doors): set into a wall — default true
|
|
117
|
+
floor?: boolean, // default: on, off for a `wall` preset with `wall: false`
|
|
118
|
+
dimensions?: boolean, // dimension lines from the start — default false
|
|
119
|
+
dimensionUnit?: 'mm' | 'cm', // default mm
|
|
120
|
+
ar?: { messages?, title?, uploadEndpoint?, prepareInBackground? },
|
|
121
|
+
scenePreset?, background?, colorMode?, interactive?, autoRotate?, dracoDecoderPath?, onError?,
|
|
122
|
+
})
|
|
123
|
+
view.setCamera('back'); view.capture(); await view.whenReady(); view.dispose()
|
|
124
|
+
|
|
125
|
+
view.openModes() // ['turn', 'tilt'], or [] for a fixed pane
|
|
126
|
+
await view.setOpen('turn' | 'tilt' | 'closed')
|
|
127
|
+
view.openState() // 'turn' | 'tilt' | 'closed'
|
|
128
|
+
view.setDimensions(true); view.dimensionsVisible()
|
|
129
|
+
await view.arSupport() // { supported, mode: 'webxr' | 'scene-viewer' | 'quick-look' | 'none', reason }
|
|
130
|
+
await view.prepareAR() // build the AR file now (optional, see below)
|
|
131
|
+
view.startAR() // from a click handler; → Promise<boolean>
|
|
132
|
+
await view.exportModel('glb' | 'usdz') // Blob, the file AR gets
|
|
133
|
+
view.on('openmodes' | 'open' | 'ar' | 'arfailure', listener) // returns an unsubscribe function
|
|
134
|
+
|
|
135
|
+
const studio = view.openStudio({ labels? }) // the photo studio, see below; view.studioOpen()
|
|
136
|
+
studio.preview(setup, angle, { transparent, shadow, width, height }) // ImageData | null
|
|
137
|
+
await studio.refine(setup, angle, { transparent, shadow, width, height, signal? }) // ImageData | null
|
|
138
|
+
await studio.capture({ setup, quality: 'fast' | 'best', transparent, shadow, width, height, angles, onProgress?, signal? }) // CapturedPhoto[]
|
|
139
|
+
studio.canPathTrace; studio.dispose()
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
`front` looks at the side the handle is on (the room); `back` at the other
|
|
143
|
+
(the street).
|
|
144
|
+
|
|
145
|
+
## Opening the window
|
|
146
|
+
|
|
147
|
+
The models carry their own opening animations (`open` = turn, otvíravé; `tilt`
|
|
148
|
+
= sklopné), played the way the configurator plays them. Every sash that opens
|
|
149
|
+
that way moves together (on a window with a fixed pane beside an opening one,
|
|
150
|
+
only the opening one). Asking for tilt while the window is
|
|
151
|
+
turned closes it first. The camera steps back if the open sash leaves the
|
|
152
|
+
picture.
|
|
153
|
+
|
|
154
|
+
- `openModes()` is what the drawn model supports. Show the buttons from it,
|
|
155
|
+
and update them on the `openmodes` event, which fires after a module change
|
|
156
|
+
(e.g. `[]` for a fixed pane).
|
|
157
|
+
- The open state **survives a rebuild**: change the stain or the glass with the
|
|
158
|
+
window open and it stays open. When the new model can't open that way
|
|
159
|
+
(a fixed pane), it is reset to `closed` and `open` fires with `closed`.
|
|
160
|
+
- `prefers-reduced-motion` jumps straight to the end.
|
|
161
|
+
|
|
162
|
+
## Dimension lines
|
|
163
|
+
|
|
164
|
+
The configurator's own dimension lines (the same geometry): width,
|
|
165
|
+
height and depth along the product, on the sides facing the camera, with the
|
|
166
|
+
camera stepping back to make room for them. They follow the open sash (an
|
|
167
|
+
open turn sash measures its reach as depth). Restyle with
|
|
168
|
+
`.kfg-dimension-line` (SVG `stroke`) and `.kfg-dimension-label`; the defaults
|
|
169
|
+
sit in `:where()` so any rule of the site's wins. The overlay is added to the
|
|
170
|
+
view's element, which becomes `position: relative` if it was static.
|
|
171
|
+
|
|
172
|
+
There is no human figure for scale in the configurator, so there is none here.
|
|
173
|
+
|
|
174
|
+
## Made to measure
|
|
175
|
+
|
|
176
|
+
`cfg.setSize({ width: 2800, height: 1100 })` orders the frame at that size in
|
|
177
|
+
millimetres; the view redraws the window at it. Not to be confused with
|
|
178
|
+
`view.setDimensions`, which only shows the dimension lines (they then read
|
|
179
|
+
2800 / 1100).
|
|
180
|
+
|
|
181
|
+
- **What stretches.** The model is not scaled. The engine finds the rigid
|
|
182
|
+
pieces along width and height — the profiles at each edge, the hinges, the
|
|
183
|
+
handle — and stretches only the runs between them: the bars and the glass
|
|
184
|
+
get longer, a profile keeps its cross-section, the glass keeps its inset, the
|
|
185
|
+
handle stays its size at the sash's mid-height on its stile, and the wood
|
|
186
|
+
grain keeps its density. Width grows from the centre, height from the sill.
|
|
187
|
+
Depth never changes. The tilt clip is retuned so a taller sash still leans in
|
|
188
|
+
the same few centimetres at the top.
|
|
189
|
+
- **Everything follows it.** The view, the dimension lines, `exportModel`
|
|
190
|
+
(GLB / USDZ) and so AR, the photo studio, `save()`/`shareUrl` (the size is
|
|
191
|
+
part of the saved state and its hash) and the share page, whose server
|
|
192
|
+
renders and parts list ("Rozměr na míru: 2800 × 1100 mm") draw the same size.
|
|
193
|
+
- **Limits** come from the instance per module, so the shape picks them
|
|
194
|
+
(`cfg.sizeLimits()`); they are set on the instance, not in the site. Outside
|
|
195
|
+
them `setSize` throws `size_out_of_range` with the
|
|
196
|
+
limits in `details`; a module without sizing throws `size_not_available`.
|
|
197
|
+
Values are rounded to whole millimetres.
|
|
198
|
+
- **Changing the shape keeps the size**, clamped to the new shape's limits;
|
|
199
|
+
a shape that comes in one size drops it. `select('module', …)` among the
|
|
200
|
+
sizes of one shape therefore only picks the shape once a size is set.
|
|
201
|
+
- **Price** (in the instance's offers and PDFs; `cfg.price()` is still null)
|
|
202
|
+
scales the module's price by area against the size that price is for
|
|
203
|
+
(`sizeLimits().base`). Without `base` the price doesn't change. Extras are
|
|
204
|
+
not scaled.
|
|
205
|
+
- **Not modelled:** a tall sash gets no third hinge, a wide one no mullion.
|
|
206
|
+
|
|
207
|
+
## AR
|
|
208
|
+
|
|
209
|
+
The configurator's AR flow: on Android, WebXR in Chrome, and
|
|
210
|
+
Scene Viewer where WebXR is missing; on iOS, AR Quick Look. The model is the
|
|
211
|
+
drawn one with its finishes and its open state, **at real size** (metres; a
|
|
212
|
+
1200 × 1500 window is 1.2 × 1.5 m). It is placed on the floor at its mounting
|
|
213
|
+
height, so the window floats at its parapet height in the room.
|
|
214
|
+
|
|
215
|
+
What the site does:
|
|
216
|
+
|
|
217
|
+
```ts
|
|
218
|
+
const ar = await view.arSupport()
|
|
219
|
+
showArButton.value = ar.supported // false on desktop: show a QR code to the page instead
|
|
220
|
+
view.on('arfailure', ({ message }) => toast(message))
|
|
221
|
+
|
|
222
|
+
// In the click handler itself — no await before it:
|
|
223
|
+
function onArClick() {
|
|
224
|
+
void view.startAR()
|
|
225
|
+
}
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
- **Call `startAR()` synchronously in the click handler.** iOS and Android
|
|
229
|
+
only open AR from a user gesture; an `await` before it uses the gesture up.
|
|
230
|
+
WebXR starts inside the tap. Quick Look and Scene Viewer need a file, which
|
|
231
|
+
the view builds in the background about a second after each change, so a tap
|
|
232
|
+
normally finds it ready.
|
|
233
|
+
- **To be sure, `await view.prepareAR()` before enabling the button** (or
|
|
234
|
+
after a change, while showing a spinner). Without it, a tap that comes
|
|
235
|
+
before the file is ready builds it first: Quick Look usually still opens, but
|
|
236
|
+
Android may refuse the navigation.
|
|
237
|
+
- **Scene Viewer** uploads the GLB to the instance (`POST
|
|
238
|
+
/api/ar/upload-model`, on the site's allowed origins) and Google's app
|
|
239
|
+
fetches it from there, so the instance must be on public HTTPS.
|
|
240
|
+
- Every message is English by default; pass translations as
|
|
241
|
+
`ar: { messages: { quickLook, sceneViewer, sceneViewerClosed, webxr, scanHint, placedHint, close } }`
|
|
242
|
+
(the last three are the WebXR overlay's hint and close button).
|
|
243
|
+
`arfailure` hands the message ready to show.
|
|
244
|
+
- `exportModel('glb' | 'usdz')` gives the same file as a `Blob`, e.g. for a
|
|
245
|
+
download.
|
|
246
|
+
|
|
247
|
+
## Photo studio
|
|
248
|
+
|
|
249
|
+
The configurator's product photos: the engine behind its product photo
|
|
250
|
+
dialog, without the dialog. The site draws its own and drives the engine:
|
|
251
|
+
|
|
252
|
+
```ts
|
|
253
|
+
import {
|
|
254
|
+
PHOTO_ANGLES, // ['front', 'isometric', 'left', 'right', 'back', 'top']
|
|
255
|
+
PHOTO_SETUPS, // by id: configurator, catalogue, daylight, dramatic, dark
|
|
256
|
+
PHOTO_SETUP_IDS,
|
|
257
|
+
clonePhotoSetup, // a setup to adjust (exposure, lights, backdrop) without touching the preset
|
|
258
|
+
type PhotoStudio,
|
|
259
|
+
} from '@konfigure/sdk/view'
|
|
260
|
+
|
|
261
|
+
const studio = view.openStudio({ labels: { front: 'Zepředu', back: 'Zezadu', left: 'Zleva', right: 'Zprava', top: 'Shora', isometric: 'Izometrie' } })
|
|
262
|
+
const setup = clonePhotoSetup(PHOTO_SETUPS.catalogue)
|
|
263
|
+
|
|
264
|
+
// While the visitor adjusts: instant raster preview, then the real look
|
|
265
|
+
const quick = studio.preview(setup, 'isometric', { transparent: false, shadow: true, width: 600, height: 400 })
|
|
266
|
+
const controller = new AbortController()
|
|
267
|
+
const look = await studio.refine(setup, 'isometric', { …same, signal: controller.signal })
|
|
268
|
+
|
|
269
|
+
// The photos (PNG data URLs, named and labelled)
|
|
270
|
+
const photos = await studio.capture({
|
|
271
|
+
setup, quality: 'best', transparent: false, shadow: true, width: 2400, height: 1600,
|
|
272
|
+
angles: PHOTO_ANGLES, onProgress: ({ index, count, label, fraction }) => …, signal,
|
|
273
|
+
})
|
|
274
|
+
studio.dispose() // the view comes back as it was
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
- **It photographs what is on screen**: the model, its finishes and its open
|
|
278
|
+
state (a window being opened stops where it was headed). The camera is the
|
|
279
|
+
studio's own, framed per angle; the view's camera doesn't matter.
|
|
280
|
+
- **The `configurator` setup** (`live`) photographs the view's own look —
|
|
281
|
+
its background, wall and floor as the view shows them. The others put the
|
|
282
|
+
product alone in a lit studio sweep. `refine` returns `null` for
|
|
283
|
+
`configurator` (it is already what its photo will be).
|
|
284
|
+
- **`quality`**: `fast` is rasterised (milliseconds); `best` is path traced
|
|
285
|
+
and falls back to `fast` where the device can't path trace
|
|
286
|
+
(`studio.canPathTrace`, e.g. a software renderer). Measured on an M4 Max
|
|
287
|
+
(a two-sash window, open, `catalogue`): `best` 2400 × 1600 about 2.2 s a photo
|
|
288
|
+
(13 s for all six), 4800 × 3200 about 6 s (37 s for six); `fast` under
|
|
289
|
+
0.2 s at either size; `refine` 0.3–3.5 s (the first one loads the
|
|
290
|
+
tracer). A phone or a laptop's integrated GPU takes several times longer —
|
|
291
|
+
show `onProgress`.
|
|
292
|
+
- **While a studio is open** the view stops drawing and taking input: the
|
|
293
|
+
scene is the studio's. Hide the view behind the dialog. Configurator
|
|
294
|
+
changes made meanwhile are drawn when it closes; `setOpen` throws
|
|
295
|
+
`KonfigureError('studio_open')`; `startAR()`/`prepareAR()` resolve `false`;
|
|
296
|
+
`setDimensions` is remembered and applied on close.
|
|
297
|
+
- **One at a time.** A second `openStudio()` throws
|
|
298
|
+
`KonfigureError('studio_open')`; a studio used after `dispose()` throws
|
|
299
|
+
`studio_closed`. `dispose()` aborts a `refine` or `capture` still running
|
|
300
|
+
(it rejects with an `AbortError`) and gives the view back exactly as it was:
|
|
301
|
+
camera, open state, wall and floor, background, dimension lines, AR.
|
|
302
|
+
- **Labels** name the six angles on the photos (`CapturedPhoto.label`);
|
|
303
|
+
English by default (`DEFAULT_PHOTO_LABELS`).
|
|
304
|
+
- **Nothing to install**: the path tracer (three-gpu-pathtracer, three-mesh-bvh)
|
|
305
|
+
is bundled, in a chunk loaded on the first `best` photo or `refine`.
|
|
306
|
+
|
|
307
|
+
Every error the SDK throws on purpose is a `KonfigureError` with a stable
|
|
308
|
+
`code`; a `network` error from a browser usually means the website's origin is
|
|
309
|
+
not on the instance's allowed origins.
|
|
310
|
+
|
|
311
|
+
## Limits
|
|
312
|
+
|
|
313
|
+
- One module per configuration: modular lines (adding modules at connection
|
|
314
|
+
slots) are not exposed yet.
|
|
315
|
+
- No prices: `price()` returns `null` until the instance prices a state
|
|
316
|
+
server-side.
|
|
317
|
+
- The view paints the wall in its preset colour, not the instance's wall
|
|
318
|
+
settings, and frames the product itself (no saved camera).
|
|
319
|
+
- AR places the window on the floor (at its parapet height), not on a wall.
|
|
320
|
+
|
|
321
|
+
## Licence
|
|
322
|
+
|
|
323
|
+
Proprietary. © Jagu s.r.o. The package may be used only to connect a website or
|
|
324
|
+
app to a Konfigure instance operated by or licensed from Jagu s.r.o.; see
|
|
325
|
+
[LICENSE](./LICENSE). It bundles third-party software under its own licences,
|
|
326
|
+
listed in [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md).
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
`@konfigure/sdk` is proprietary software of Jagu s.r.o. (see `LICENSE`). Its
|
|
4
|
+
`dist` files include the third-party software listed below, which is provided
|
|
5
|
+
under its own licence. Those licences apply to that software only, not to the
|
|
6
|
+
rest of the package. three.js, the package's peer dependency, is not included.
|
|
7
|
+
|
|
8
|
+
## three-gpu-pathtracer 0.0.24
|
|
9
|
+
|
|
10
|
+
https://github.com/gkjohnson/three-gpu-pathtracer
|
|
11
|
+
|
|
12
|
+
The path tracer behind the photo studio's `best` quality.
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
MIT License
|
|
16
|
+
|
|
17
|
+
Copyright (c) 2021 Garrett Johnson
|
|
18
|
+
|
|
19
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
20
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
21
|
+
in the Software without restriction, including without limitation the rights
|
|
22
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
23
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
24
|
+
furnished to do so, subject to the following conditions:
|
|
25
|
+
|
|
26
|
+
The above copyright notice and this permission notice shall be included in all
|
|
27
|
+
copies or substantial portions of the Software.
|
|
28
|
+
|
|
29
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
30
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
31
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
32
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
33
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
34
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
|
+
SOFTWARE.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## glslSmartDeNoise (inside three-gpu-pathtracer)
|
|
39
|
+
|
|
40
|
+
https://github.com/BrutPitt/glslSmartDeNoise
|
|
41
|
+
|
|
42
|
+
The denoising shader three-gpu-pathtracer includes.
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
BSD 2-Clause License
|
|
46
|
+
|
|
47
|
+
Copyright (c) 2018-2019 Michele Morrone
|
|
48
|
+
All rights reserved.
|
|
49
|
+
|
|
50
|
+
Redistribution and use in source and binary forms, with or without
|
|
51
|
+
modification, are permitted provided that the following conditions are met:
|
|
52
|
+
|
|
53
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
54
|
+
list of conditions and the following disclaimer.
|
|
55
|
+
|
|
56
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
57
|
+
this list of conditions and the following disclaimer in the documentation
|
|
58
|
+
and/or other materials provided with the distribution.
|
|
59
|
+
|
|
60
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
61
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
62
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
63
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
64
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
65
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
66
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
67
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
68
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
69
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## three-mesh-bvh 0.9.7
|
|
73
|
+
|
|
74
|
+
https://github.com/gkjohnson/three-mesh-bvh
|
|
75
|
+
|
|
76
|
+
Bounding volume hierarchies for picking, collisions and baked lighting.
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
MIT License
|
|
80
|
+
|
|
81
|
+
Copyright (c) 2018 Garrett Johnson
|
|
82
|
+
|
|
83
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
84
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
85
|
+
in the Software without restriction, including without limitation the rights
|
|
86
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
87
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
88
|
+
furnished to do so, subject to the following conditions:
|
|
89
|
+
|
|
90
|
+
The above copyright notice and this permission notice shall be included in all
|
|
91
|
+
copies or substantial portions of the Software.
|
|
92
|
+
|
|
93
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
94
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
95
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
96
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
97
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
98
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
99
|
+
SOFTWARE.
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## nanoid 5.1.6
|
|
103
|
+
|
|
104
|
+
https://github.com/ai/nanoid
|
|
105
|
+
|
|
106
|
+
Identifiers.
|
|
107
|
+
|
|
108
|
+
```text
|
|
109
|
+
The MIT License (MIT)
|
|
110
|
+
|
|
111
|
+
Copyright 2017 Andrey Sitnik <andrey@sitnik.ru>
|
|
112
|
+
|
|
113
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
114
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
115
|
+
the Software without restriction, including without limitation the rights to
|
|
116
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
117
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
118
|
+
subject to the following conditions:
|
|
119
|
+
|
|
120
|
+
The above copyright notice and this permission notice shall be included in all
|
|
121
|
+
copies or substantial portions of the Software.
|
|
122
|
+
|
|
123
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
124
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
125
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
126
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
127
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
128
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## stable-hash-x 0.2.0
|
|
132
|
+
|
|
133
|
+
https://github.com/un-ts/stable-hash-x
|
|
134
|
+
|
|
135
|
+
Stable hashing of configuration state. A fork of stable-hash by Shu Ding (MIT).
|
|
136
|
+
|
|
137
|
+
```text
|
|
138
|
+
MIT License
|
|
139
|
+
|
|
140
|
+
Copyright (c) 2025-present UnTS
|
|
141
|
+
|
|
142
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
143
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
144
|
+
in the Software without restriction, including without limitation the rights
|
|
145
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
146
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
147
|
+
furnished to do so, subject to the following conditions:
|
|
148
|
+
|
|
149
|
+
The above copyright notice and this permission notice shall be included in all
|
|
150
|
+
copies or substantial portions of the Software.
|
|
151
|
+
|
|
152
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
153
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
154
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
155
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
156
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
157
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
158
|
+
SOFTWARE.
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## evlog 1.1.0
|
|
162
|
+
|
|
163
|
+
https://github.com/HugoRCD/evlog
|
|
164
|
+
|
|
165
|
+
Client-side logging. The package declares the MIT licence and ships no licence file; the standard MIT text follows.
|
|
166
|
+
|
|
167
|
+
```text
|
|
168
|
+
MIT License
|
|
169
|
+
|
|
170
|
+
Copyright (c) HugoRCD
|
|
171
|
+
|
|
172
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
173
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
174
|
+
in the Software without restriction, including without limitation the rights
|
|
175
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
176
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
177
|
+
furnished to do so, subject to the following conditions:
|
|
178
|
+
|
|
179
|
+
The above copyright notice and this permission notice shall be included in all
|
|
180
|
+
copies or substantial portions of the Software.
|
|
181
|
+
|
|
182
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
183
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
184
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
185
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
186
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
187
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
188
|
+
SOFTWARE.
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## `<model-viewer>` (Google)
|
|
192
|
+
|
|
193
|
+
https://github.com/google/model-viewer
|
|
194
|
+
|
|
195
|
+
The neutral room environment (scene and data) and the AR platform detection are adapted from Google's `<model-viewer>`, Copyright 2019–2021 Google LLC, licensed under the Apache License, Version 2.0. Jagu s.r.o. modified them; the files keep their original notices in the bundle.
|
|
196
|
+
|
|
197
|
+
```text
|
|
198
|
+
Apache License
|
|
199
|
+
|
|
200
|
+
Version 2.0, January 2004
|
|
201
|
+
|
|
202
|
+
http://www.apache.org/licenses/
|
|
203
|
+
|
|
204
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
205
|
+
|
|
206
|
+
1. Definitions.
|
|
207
|
+
|
|
208
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
209
|
+
|
|
210
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
211
|
+
|
|
212
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
213
|
+
|
|
214
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
215
|
+
|
|
216
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
217
|
+
|
|
218
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
219
|
+
|
|
220
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
221
|
+
|
|
222
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
223
|
+
|
|
224
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
225
|
+
|
|
226
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
227
|
+
|
|
228
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
229
|
+
|
|
230
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
231
|
+
|
|
232
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
233
|
+
|
|
234
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
235
|
+
|
|
236
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
237
|
+
|
|
238
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
239
|
+
|
|
240
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
241
|
+
|
|
242
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
243
|
+
|
|
244
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
245
|
+
|
|
246
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
247
|
+
|
|
248
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
249
|
+
|
|
250
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
251
|
+
|
|
252
|
+
END OF TERMS AND CONDITIONS
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## three.js
|
|
256
|
+
|
|
257
|
+
https://github.com/mrdoob/three.js
|
|
258
|
+
|
|
259
|
+
three.js is a peer dependency and is not bundled. The photo studio's tone curve is adapted from three.js's `NeutralToneMapping` shader.
|
|
260
|
+
|
|
261
|
+
```text
|
|
262
|
+
The MIT License
|
|
263
|
+
|
|
264
|
+
Copyright © 2010-2025 three.js authors
|
|
265
|
+
|
|
266
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
267
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
268
|
+
in the Software without restriction, including without limitation the rights
|
|
269
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
270
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
271
|
+
furnished to do so, subject to the following conditions:
|
|
272
|
+
|
|
273
|
+
The above copyright notice and this permission notice shall be included in
|
|
274
|
+
all copies or substantial portions of the Software.
|
|
275
|
+
|
|
276
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
277
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
278
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
279
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
280
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
281
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
282
|
+
THE SOFTWARE.
|
|
283
|
+
```
|