@digipair/engine 0.0.10 → 0.0.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.
package/index.esm.js
CHANGED
@@ -12457,10 +12457,10 @@ const executePins = async (settingsOrigin, context = {}, options = {
|
|
12457
12457
|
const version = options.libraries[settings.library] || 'latest';
|
12458
12458
|
const library = _config.LIBRARIES[settings.library] || await import(`${_config.BASE_URL}/${settings.library}@${version}/index.js`);
|
12459
12459
|
const pins = library == null ? void 0 : library[settings.element];
|
12460
|
-
|
12461
|
-
|
12462
|
-
|
12463
|
-
|
12460
|
+
if (!pins) {
|
12461
|
+
throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
|
12462
|
+
}
|
12463
|
+
return await pins(settings.properties, settings.pins, context);
|
12464
12464
|
};
|
12465
12465
|
const generateElementFromPins = async (pinsSettings, context, options = {
|
12466
12466
|
libraries: {}
|
package/package.json
CHANGED
@@ -1,14 +0,0 @@
|
|
1
|
-
import { PinsSettings } from './pins-settings.interface';
|
2
|
-
export interface Experience {
|
3
|
-
_id?: string;
|
4
|
-
name: string;
|
5
|
-
version: number;
|
6
|
-
variables: {
|
7
|
-
[key: string]: any;
|
8
|
-
};
|
9
|
-
libraries: {
|
10
|
-
[key: string]: string;
|
11
|
-
};
|
12
|
-
scenes: PinsSettings[];
|
13
|
-
environment?: PinsSettings;
|
14
|
-
}
|