@roomle/web-sdk 5.2.0-alpha.7 → 5.2.0-alpha.9
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/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{api-B3oINf2T.mjs → api-BESWNKGU.mjs} +10 -10
- package/lib/{api-B3oINf2T.mjs.map → api-BESWNKGU.mjs.map} +1 -1
- package/lib/asset-loader.worker-CE4O0JU-.mjs.map +1 -1
- package/lib/budgeteer.sw-yR2xApHT.mjs.map +1 -1
- package/lib/configurator-DksQO8bz.mjs +2 -0
- package/lib/{configurator-Bav9s7xV.mjs → configurator-lYzmK0Qp.mjs} +3 -3
- package/lib/{configurator-Bav9s7xV.mjs.map → configurator-lYzmK0Qp.mjs.map} +1 -1
- package/lib/{glb-viewer-BQnK34mh.mjs → glb-viewer-VYVfbQN8.mjs} +3 -3
- package/lib/{glb-viewer-BQnK34mh.mjs.map → glb-viewer-VYVfbQN8.mjs.map} +1 -1
- package/lib/glb-viewer-wn8DMhFv.mjs +2 -0
- package/lib/{homag-intelligence-Cni8daMZ.mjs → homag-intelligence-D_Pw-YCG.mjs} +3 -3
- package/lib/{homag-intelligence-Cni8daMZ.mjs.map → homag-intelligence-D_Pw-YCG.mjs.map} +1 -1
- package/lib/{material-viewer-COJkt92n.mjs → material-viewer-DeLQwvg5.mjs} +3 -3
- package/lib/{material-viewer-COJkt92n.mjs.map → material-viewer-DeLQwvg5.mjs.map} +1 -1
- package/lib/{packages-D7_SxZSb.mjs → packages-DCI_1Sdp.mjs} +5 -5
- package/lib/{packages-D7_SxZSb.mjs.map → packages-DCI_1Sdp.mjs.map} +1 -1
- package/lib/{planner-CSUr6Psy.mjs → planner-CQlnhaJ4.mjs} +3 -3
- package/lib/{planner-CSUr6Psy.mjs.map → planner-CQlnhaJ4.mjs.map} +1 -1
- package/lib/planner-tkKFy4GN.mjs +2 -0
- package/lib/roomle-headless.d.ts +39 -9
- package/lib/roomle-headless.js +9 -9
- package/lib/{roomle-sdk-BbPFaMEs.mjs → roomle-sdk-CWL55lWB.mjs} +2383 -2219
- package/lib/roomle-sdk-CWL55lWB.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +39 -9
- package/lib/roomle-sdk.js +7 -7
- package/lib/{script-loader-XspfvObG.mjs → script-loader-C6XVqA2M.mjs} +2 -2
- package/lib/{script-loader-XspfvObG.mjs.map → script-loader-C6XVqA2M.mjs.map} +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{tools-core-DDPV5mG2.mjs → tools-core-Cn7-Y2Tw.mjs} +3 -3
- package/lib/{tools-core-DDPV5mG2.mjs.map → tools-core-Cn7-Y2Tw.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/configurator-6hztf0Nj.mjs +0 -2
- package/lib/glb-viewer-4BUo6z8D.mjs +0 -2
- package/lib/planner-CwWcSacU.mjs +0 -2
- package/lib/roomle-sdk-BbPFaMEs.mjs.map +0 -1
package/lib/roomle-sdk.d.ts
CHANGED
|
@@ -3491,7 +3491,8 @@ export declare interface ExternalObjectAPI {
|
|
|
3491
3491
|
* the "shapes" property, the layout type "posGroups" evaluates the "posGroups" property.
|
|
3492
3492
|
* For the layout type "posGroups" a group whose id matches a group already loaded in the plan
|
|
3493
3493
|
* completely replaces that group; root modules keep their ids when they already exist in the
|
|
3494
|
-
* replaced group, all other ids are regenerated.
|
|
3494
|
+
* replaced group, all other ids are regenerated. A root module the replace adds takes the
|
|
3495
|
+
* implicitRelevant input attributes of a root module it is docked to; its own attributes override them.
|
|
3495
3496
|
* @param layoutType The article layout type. "nobila" and "posGroups" are supported.
|
|
3496
3497
|
* @param options Options for loading the external object group.
|
|
3497
3498
|
*/
|
|
@@ -3545,6 +3546,12 @@ export declare interface ExternalObjectAPI {
|
|
|
3545
3546
|
* @param subArticleId The ID of the sub article to be selected.
|
|
3546
3547
|
*/
|
|
3547
3548
|
selectExternalObjectSubArticle(subArticleId: string): void;
|
|
3549
|
+
/**
|
|
3550
|
+
* "deleteExternalObjectSubArticle" deletes a placed sub article from its pos group.
|
|
3551
|
+
* @param posGroupId The ID of the pos group.
|
|
3552
|
+
* @param subArticleId The ID of the sub article to be deleted.
|
|
3553
|
+
*/
|
|
3554
|
+
deleteExternalObjectSubArticle(posGroupId: string, subArticleId: string): Promise<void>;
|
|
3548
3555
|
/**
|
|
3549
3556
|
* "renderImagesOfExternalObjectGroups" renders images of groups of modules.
|
|
3550
3557
|
* @param groupJson The group JSON as string or object.
|
|
@@ -3607,12 +3614,13 @@ export declare interface ExternalObjectAPI {
|
|
|
3607
3614
|
/**
|
|
3608
3615
|
* "externalObjectGroupOperation" changes the groups in the plan by command. The payload refers to
|
|
3609
3616
|
* groups, root modules and articles by the ids of "getExternalObjectPlanContext":
|
|
3610
|
-
* - "change-module-attribute" { rootModuleId, moduleId?, attributeId, value } sets an attribute
|
|
3617
|
+
* - "change-module-attribute" { rootModuleId, moduleId?, attributeId, value } without moduleId sets an attribute on the root module and on each of its sub modules that carry it; with moduleId it sets the attribute on that one sub module only
|
|
3611
3618
|
* - "change-group-attribute" { groupId, attributeId, value } sets an attribute on every module of the group that has it
|
|
3619
|
+
* - "change-attributes" { groupId, attributes: [{ attributeId, value, rootModuleIds? }] } sets several attribute values in one calculation, one load and one undo step: an entry with rootModuleIds on those root modules and their sub modules that carry it, without them on every module of the group that has it; the entries no module they name carries are skipped and named in skippedAttributes
|
|
3612
3620
|
* - "delete-group" { groupId } removes the group from the plan
|
|
3613
3621
|
* - "delete-root-module" { rootModuleId } removes a root module; the rest of the group splits where it is no longer docked together
|
|
3614
|
-
* - "merge-article-into-group" { groupId, articleId, attributes?, dockTo: { rootId, ownDockingVector, dockingVector, mode?, offset? } } docks a new root module of the article to a free docking vector of a root module of the group
|
|
3615
|
-
* - "exchange-root-module" { groupId, rootModuleId, articleId } replaces a root module with an article of one root module, keeping its docking
|
|
3622
|
+
* - "merge-article-into-group" { groupId, articleId, attributes?, dockTo: { rootId, ownDockingVector, dockingVector, mode?, offset? } } docks a new root module of the article to a free docking vector of a root module of the group; the new root module takes the implicitRelevant input attributes of that root module, and attributes override them
|
|
3623
|
+
* - "exchange-root-module" { groupId, rootModuleId, articleId } replaces a root module with an article of one root module, keeping its docking and the implicitRelevant input attributes of the replaced root module
|
|
3616
3624
|
* - "merge-groups" { targetGroupId, groupIds } merges the groups into the target group where they stand, like the merge action of the planner; no docking is added
|
|
3617
3625
|
* The promise resolves once the planner has loaded the result, with the affected groups in the shape of the plan context,
|
|
3618
3626
|
* and rejects with the reason when the payload is invalid or the operation cannot be performed.
|
|
@@ -4476,14 +4484,15 @@ export declare const HI_CONTEXT_ACTION: {
|
|
|
4476
4484
|
* Group operations change the groups of the plan context by command: a
|
|
4477
4485
|
* command names the operation, its payload refers to the groups, root modules
|
|
4478
4486
|
* and articles by the ids the plan context shows. `runGroupOperation`
|
|
4479
|
-
* validates the payload, performs the operation with the
|
|
4480
|
-
*
|
|
4481
|
-
*
|
|
4487
|
+
* validates the payload, performs the operation with the HI tools behind
|
|
4488
|
+
* `HiGroupOperations` and returns the affected groups in the plan-context
|
|
4489
|
+
* shape. A new command is one entry in `HI_GROUP_OPERATION`, one
|
|
4482
4490
|
* payload type and one handler.
|
|
4483
4491
|
*/
|
|
4484
4492
|
export declare const HI_GROUP_OPERATION: {
|
|
4485
4493
|
readonly CHANGE_MODULE_ATTRIBUTE: "change-module-attribute";
|
|
4486
4494
|
readonly CHANGE_GROUP_ATTRIBUTE: "change-group-attribute";
|
|
4495
|
+
readonly CHANGE_ATTRIBUTES: "change-attributes";
|
|
4487
4496
|
readonly DELETE_GROUP: "delete-group";
|
|
4488
4497
|
readonly DELETE_ROOT_MODULE: "delete-root-module";
|
|
4489
4498
|
readonly MERGE_ARTICLE_INTO_GROUP: "merge-article-into-group";
|
|
@@ -4536,6 +4545,17 @@ export declare interface HiArticlePick {
|
|
|
4536
4545
|
attributes?: HiPlanRootAttribute[];
|
|
4537
4546
|
}
|
|
4538
4547
|
|
|
4548
|
+
/**
|
|
4549
|
+
* An attribute value of `change-attributes`: set on the named root modules
|
|
4550
|
+
* and their sub modules that carry the attribute, or without `rootModuleIds`
|
|
4551
|
+
* on every module of the group that carries it.
|
|
4552
|
+
*/
|
|
4553
|
+
export declare interface HiAttributeChange {
|
|
4554
|
+
attributeId: string;
|
|
4555
|
+
value: HiAttributeValue;
|
|
4556
|
+
rootModuleIds?: string[];
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4539
4559
|
export declare type HiAttributeOptionsResult = CheckDropDownResult | CheckDropDownEntry[] | undefined;
|
|
4540
4560
|
|
|
4541
4561
|
export declare type HiAttributeValue = string | boolean;
|
|
@@ -4671,6 +4691,11 @@ export declare interface HiGroupOperationPayloads {
|
|
|
4671
4691
|
attributeId: string;
|
|
4672
4692
|
value: HiAttributeValue;
|
|
4673
4693
|
};
|
|
4694
|
+
/** Several attribute values in one calculation, one load and one undo step. */
|
|
4695
|
+
'change-attributes': {
|
|
4696
|
+
groupId: string;
|
|
4697
|
+
attributes: HiAttributeChange[];
|
|
4698
|
+
};
|
|
4674
4699
|
'delete-group': {
|
|
4675
4700
|
groupId: string;
|
|
4676
4701
|
};
|
|
@@ -4714,6 +4739,7 @@ export declare interface HiGroupOperationResult {
|
|
|
4714
4739
|
changedModuleIds?: string[];
|
|
4715
4740
|
corrections?: string[];
|
|
4716
4741
|
gapClosed?: boolean;
|
|
4742
|
+
skippedAttributes?: Array<Omit<HiAttributeChange, 'value'>>;
|
|
4717
4743
|
}
|
|
4718
4744
|
|
|
4719
4745
|
export declare type HiLoadObjectReason = (typeof HI_LOAD_OBJECT_REASON)[keyof typeof HI_LOAD_OBJECT_REASON];
|
|
@@ -4879,6 +4905,7 @@ export declare interface HiPlanMasterData {
|
|
|
4879
4905
|
libraryId: string;
|
|
4880
4906
|
modules: HiPlanMasterDataModule[];
|
|
4881
4907
|
attributes: HiPlanAttribute[];
|
|
4908
|
+
groupSettings: string[];
|
|
4882
4909
|
}
|
|
4883
4910
|
|
|
4884
4911
|
export declare interface HiPlanMasterDataModule {
|
|
@@ -4903,7 +4930,7 @@ export declare interface HiPlanObstacles {
|
|
|
4903
4930
|
|
|
4904
4931
|
/**
|
|
4905
4932
|
* The plan context is the data an AI agent needs to understand and author a
|
|
4906
|
-
* planning session. `
|
|
4933
|
+
* planning session. `createPlanContext` assembles it and every
|
|
4907
4934
|
* section leaves this file in the agent-ready shape: compacted, and in one
|
|
4908
4935
|
* coordinate system - 3D, right-handed, Y up, the coordinate system of
|
|
4909
4936
|
* `PosGroup`.
|
|
@@ -7461,6 +7488,7 @@ export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
7461
7488
|
addListener(listener: KernelAccessCallbackI): void;
|
|
7462
7489
|
removeListener(listener: KernelAccessCallbackI): void;
|
|
7463
7490
|
private _homagIntelligence;
|
|
7491
|
+
private _externalObjectPlanChanges;
|
|
7464
7492
|
private _arrangementCorrectionEnabled;
|
|
7465
7493
|
get arrangementCorrectionEnabled(): boolean;
|
|
7466
7494
|
get kernelContainer(): any;
|
|
@@ -7552,7 +7580,8 @@ export declare class PlannerKernelAccess extends ConfiguratorKernelAccess {
|
|
|
7552
7580
|
protected _externalObjectConfigurationDeleted(groupId: string): void;
|
|
7553
7581
|
protected _externalObjectComponentDeleted(remainingGroupOrGroups: ExternalObjectGroup | ExternalObjectGroup[], deletedRootModuleId: string): void;
|
|
7554
7582
|
_externalObjectConfigurationDuplicated(duplicatedGroup: ExternalObjectGroup): void;
|
|
7555
|
-
|
|
7583
|
+
loadExternalObjectGroups(load: () => PlanObject[]): Promise<PlanObject[]>;
|
|
7584
|
+
_externalObjectPlanChanged(movedGroup: ExternalObjectGroup, objectPositionChanged: boolean): Promise<void | undefined>;
|
|
7556
7585
|
_externalObjectConfigurationsMerged(mergedGroup: ExternalObjectGroup, idsOfGroupsMerged: string | string[], targetRootModuleId: string, mergedWithDragging: boolean): Promise<void>;
|
|
7557
7586
|
_externalObjectComponentSplitOff(splitGroups: ExternalObjectGroup[]): void;
|
|
7558
7587
|
planSnapshotCreated(planSnapshot: RapiPlanSnapshotPostData): void;
|
|
@@ -11239,6 +11268,7 @@ export declare class RoomlePlanner<P extends readonly PluginName[] = readonly []
|
|
|
11239
11268
|
}>;
|
|
11240
11269
|
getExternalObjectValidSubArticles(posGroupId?: string): PosArticle[];
|
|
11241
11270
|
selectExternalObjectSubArticle(subArticleId: string): void;
|
|
11271
|
+
deleteExternalObjectSubArticle(posGroupId: string, subArticleId: string): Promise<void>;
|
|
11242
11272
|
_mergeExternalObjects(groupIds: string[]): Promise<void>;
|
|
11243
11273
|
removeExternalObject(groupOrRootModuleId: string): Promise<void>;
|
|
11244
11274
|
selectExternalObject(groupOrRootModuleId: string, subModuleId: string | null, contextAction: HiContextAction): Promise<void>;
|
package/lib/roomle-sdk.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./packages-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./packages-DCI_1Sdp.mjs";
|
|
2
2
|
import { i as a, t as o } from "./kernel-BWfRHWkW.mjs";
|
|
3
3
|
import { Tt as s, xt as c } from "./threejs-utils-Dy-rm1a9.mjs";
|
|
4
4
|
import { D as l, g as u } from "./common-utils-CNGLvAo_.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { t as F } from "./configurator-
|
|
7
|
-
import { t as I } from "./planner-
|
|
8
|
-
import { n as L, t as R } from "./glb-viewer-
|
|
9
|
-
import { t as z } from "./api-
|
|
10
|
-
export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, F as Configurator, T as FloorPlanElementViewModel, R as GlbViewer,
|
|
5
|
+
import { B as d, F as f, G as p, J as m, K as h, M as g, N as _, P as v, S as y, Y as b, b as x, dt as S, ft as C, ht as w, j as T, k as E, lt as D, q as O, t as k, u as A, ut as j, x as M, y as N, z as P } from "./roomle-sdk-CWL55lWB.mjs";
|
|
6
|
+
import { t as F } from "./configurator-lYzmK0Qp.mjs";
|
|
7
|
+
import { t as I } from "./planner-CQlnhaJ4.mjs";
|
|
8
|
+
import { n as L, t as R } from "./glb-viewer-VYVfbQN8.mjs";
|
|
9
|
+
import { t as z } from "./api-BESWNKGU.mjs";
|
|
10
|
+
export { o as CONFIGURATION_TYPE, c as CORE_EDGE_TYPE, s as CORE_OBJECT_CATEGORY, a as CORE_PERMISSION_TO_DELETE, F as Configurator, T as FloorPlanElementViewModel, R as GlbViewer, d as HI_CONTEXT_ACTION, P as HI_GROUP_OPERATION, y as MeasurementLinePlanElementViewModel, N as PLAN_ELEMENT_CHANGE_TYPES, f as PlanElementViewModel, v as PlanObjectViewModel, I as Planner, D as RapiAccess, j as RapiInvalidIdError, S as RapiOfflineError, z as RoomDesignerApi, E as RoomleConfigurator, L as RoomleGLBViewer, w as RoomleLightSource, A as RoomlePlanner, k as RoomleSdk, _ as StaticPlanObjectViewModel, g as WallPlanElementViewModel, p as createExtObj, b as createExtObjId, u as download, C as getCatalogIdFromConfigurationHash, h as isExtObjId, O as isExternalObject, x as isFirefox, i as isIdAComponent, n as isIdAConfigurationString, r as isIdAPlan, t as isIdAnItem, e as isPlanSnapshotId, M as isSafari, l as md5Hash, m as removeExtObjIdPrefix };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./decorate-CjaqqbUP.mjs";
|
|
2
|
-
import { W as r, at as i } from "./roomle-sdk-
|
|
2
|
+
import { W as r, at as i } from "./roomle-sdk-CWL55lWB.mjs";
|
|
3
3
|
//#region ../../node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm?no-inline?url
|
|
4
4
|
var a = "" + new URL("ConfiguratorKernel.wasm", import.meta.url).href, o = "" + new URL("ConfiguratorKernel.js", import.meta.url).href, s = "" + new URL("RoomleCore.wasm", import.meta.url).href, c = "" + new URL("RoomleCore.js", import.meta.url).href, l = "" + new URL("RoomleToolsCore.wasm", import.meta.url).href, u = "" + new URL("RoomleToolsCore.js", import.meta.url).href, d = {
|
|
5
5
|
configurator: {
|
|
@@ -83,4 +83,4 @@ n([t, e("design:type", Object)], _.prototype, "_singlePromiseFactory", void 0);
|
|
|
83
83
|
//#endregion
|
|
84
84
|
export { p as n, _ as t };
|
|
85
85
|
|
|
86
|
-
//# sourceMappingURL=script-loader-
|
|
86
|
+
//# sourceMappingURL=script-loader-C6XVqA2M.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script-loader-XspfvObG.mjs","names":[],"sources":["../../../../node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm?no-inline?url","../../../../node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js?no-inline?url","../../../../node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm?no-inline?url","../../../../node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js?no-inline?url","../../../../node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm?no-inline?url","../../../../node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.js?no-inline?url","../../packages/common-core/src/static-files/roomle-core.ts","../../packages/common-core/src/script-loader.ts"],"sourcesContent":["export default \"__VITE_ASSET__Msg57USEadASvSStYSdmzA__\"","export default \"__VITE_ASSET__$oUiuAXR7gZMKRQU56HW2w__\"","export default \"__VITE_ASSET__epdbhdyBUyD3hvxx0_dcTg__\"","export default \"__VITE_ASSET__6kssa3xCT2YlMpIbbRNP$Q__\"","export default \"__VITE_ASSET__aLISaAY6NSiJFT$6GdtrfA__\"","export default \"__VITE_ASSET__DUq8YoikZLXEejpNZ1KQvg__\"","// @ts-ignore -- Uses vite to reference files as URLs.\nimport CONFIGURATOR_WASM_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm?no-inline?url';\n// @ts-ignore -- Uses vite to reference files as URLs.\nimport CONFIGURATOR_LOADER_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/ConfiguratorKernel.js?no-inline?url';\n// @ts-ignore -- Uses vite to reference files as URLs.\nimport PLANNER_WASM_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/RoomleCore.wasm?no-inline?url';\n// @ts-ignore -- Uses vite to reference files as URLs.\nimport PLANNER_LOADER_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/RoomleCore.js?no-inline?url';\n// @ts-ignore -- Uses vite to reference files as URLs.\nimport TOOLS_CORE_WASM_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm?no-inline?url';\n// @ts-ignore -- Uses vite to reference files as URLs.\nimport TOOLS_CORE_LOADER_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/RoomleToolsCore.js?no-inline?url';\n\nconst WASM_FILES: Record<string, { loader: string; wasm: string }> = {\n configurator: {\n loader: 'ConfiguratorKernel.js',\n wasm: 'ConfiguratorKernel.wasm',\n },\n planner: { loader: 'RoomleCore.js', wasm: 'RoomleCore.wasm' },\n tools: { loader: 'RoomleToolsCore.js', wasm: 'RoomleToolsCore.wasm' },\n};\n\n// The wasm paths returned by this function are specific to browsers (not headless):\nexport const getWasmPath = (type: 'configurator' | 'planner' | 'tools') => {\n if (type === 'planner') {\n return {\n wasm: PLANNER_WASM_MODERN_FILE_NAME,\n loader: PLANNER_LOADER_MODERN_FILE_NAME,\n };\n }\n if (type === 'tools') {\n return {\n wasm: TOOLS_CORE_WASM_MODERN_FILE_NAME,\n loader: TOOLS_CORE_LOADER_MODERN_FILE_NAME,\n };\n }\n return {\n wasm: CONFIGURATOR_WASM_MODERN_FILE_NAME,\n loader: CONFIGURATOR_LOADER_MODERN_FILE_NAME,\n };\n};\n\n// Resolve WASM module paths for headless (Node.js/Bun) mode.\n// Strategies (tried in order):\n// 1. import.meta.resolve('roomle-core-hsc/...') — works when running from\n// source in the monorepo where roomle-core-hsc is in node_modules, and\n// the module resolver can walk up to it from the current file's location.\n// 2. Files directly in the same directory as this bundle — works when the SDK\n// is consumed as a built package (dist/lib/), where vite-plugin-static-copy\n// places ConfiguratorKernel.wasm etc. alongside the bundle chunks.\n// 3. Legacy static/ subdirectory — kept as a final fallback for older dist\n// layouts where vite-plugin-static-copy targeted dist/lib/static/.\nexport const getHeadlessWasmPath = (\n type: 'configurator' | 'planner' | 'tools',\n): { loader: string; wasm: string } => {\n const entry = WASM_FILES[type];\n const moduleSpecifiers = {\n loader: `roomle-core-hsc/wasm_modern/${entry.loader}`,\n wasm: `roomle-core-hsc/wasm_modern/${entry.wasm}`,\n };\n\n const toPath = (url: string) =>\n url.startsWith('file://') ? url.slice(7) : url;\n\n // Strategy 1: resolve from node_modules (source / monorepo).\n // May fail when the consuming project's module resolver cannot reach\n // roomle-core-hsc (e.g. when web-sdk is installed via a file: reference\n // and symlink resolution stops before reaching the monorepo node_modules).\n try {\n return {\n loader: toPath(import.meta.resolve(moduleSpecifiers.loader)),\n wasm: toPath(import.meta.resolve(moduleSpecifiers.wasm)),\n };\n } catch {\n // roomle-core-hsc not reachable — fall through to bundle-relative lookup\n }\n\n // Strategy 2: files copied directly alongside the bundle (current dist layout).\n // vite-plugin-static-copy places ConfiguratorKernel.wasm / RoomleCore.wasm\n // etc. in dist/lib/ next to the JS chunks. import.meta.url of any chunk in\n // that directory has bundleDir = dist/lib/, so the files are found directly.\n const bundleDir = toPath(import.meta.url).replace(/\\/[^/]+$/, '');\n return {\n loader: `${bundleDir}/${entry.loader}`,\n wasm: `${bundleDir}/${entry.wasm}`,\n };\n};\n\nexport {\n CONFIGURATOR_WASM_MODERN_FILE_NAME,\n CONFIGURATOR_LOADER_MODERN_FILE_NAME,\n PLANNER_WASM_MODERN_FILE_NAME,\n PLANNER_LOADER_MODERN_FILE_NAME,\n TOOLS_CORE_WASM_MODERN_FILE_NAME,\n TOOLS_CORE_LOADER_MODERN_FILE_NAME,\n};\n","import Benchmark from './utils/benchmark';\nimport inject from './di/inject';\nimport type SinglePromiseFactory from './utils/single-promise-factory';\nimport { PROMISE_CATEGORY } from './utils/single-promise-factory';\nimport type { Context } from './di/context';\nimport { getWasmPath } from './static-files/roomle-core';\n\nlet _scriptCache: { [key: string]: boolean } = {};\nlet _idCache: { [key: string]: boolean } = {};\n\nfunction attachScript(\n url: string,\n options: { id: string },\n resolve: (value?: any) => void,\n reject: (error?: any) => void,\n) {\n if (_scriptCache[url]) {\n return resolve();\n }\n if (options.id && _idCache[options.id]) {\n return reject(\n new Error('There is already a script with ID \"' + options.id + '\"'),\n );\n }\n\n const mark = Benchmark.start('load_' + options.id.replace(/-/g, '_'));\n const element = document.createElement('script');\n element.async = false;\n element.src = url;\n element.id = options.id;\n element.onload = () => {\n _scriptCache[url] = true;\n _idCache[options.id] = true;\n Benchmark.end(mark);\n Object.defineProperty(resolve, 'name', { value: 'resolve-' + options.id });\n resolve();\n };\n element.onerror = (error) => {\n reject(error);\n };\n document.body.appendChild(element);\n}\n\nexport interface ScriptData {\n name: string;\n id: string;\n}\n\nexport default class ScriptLoader implements Context {\n public _creator_: string;\n\n @inject\n private _singlePromiseFactory: SinglePromiseFactory;\n\n constructor(creator: string) {\n this._creator_ = creator;\n }\n\n public fetch(url: string, options: { id: string }) {\n return this._singlePromiseFactory.create(\n PROMISE_CATEGORY.FETCH_SCRIPT,\n url,\n (resolve, reject) => {\n attachScript(url, options, resolve, reject);\n },\n );\n }\n\n public loadScripts(scripts: ScriptData[]) {\n const promises: any = [];\n scripts.forEach((script: any) => {\n let scriptLoadPromise = this.fetch(script.name, { id: script.id });\n promises.push(scriptLoadPromise);\n });\n return Promise.all(promises);\n }\n\n public resolveKernelPaths(type: 'configurator' | 'planner' | 'tools'): {\n wasm: string;\n loader: string;\n } {\n return getWasmPath(type);\n }\n\n public cleanUp() {\n for (let key in _idCache) {\n /* istanbul ignore else */\n if (_idCache.hasOwnProperty(key)) {\n const script = document.getElementById(key);\n if (script) {\n script.parentElement?.removeChild(script);\n }\n }\n }\n _scriptCache = {};\n _idCache = {};\n }\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5],"mappings":";;;AAAA,IAAA,IAAe,KAAA,IAAA,IAAA,2BAAA,OAAA,KAAA,IAAA,CAAA,MCAf,IAAe,KAAA,IAAA,IAAA,yBAAA,OAAA,KAAA,IAAA,CAAA,MCAf,IAAe,KAAA,IAAA,IAAA,mBAAA,OAAA,KAAA,IAAA,CAAA,MCAf,IAAe,KAAA,IAAA,IAAA,iBAAA,OAAA,KAAA,IAAA,CAAA,MCAf,IAAe,KAAA,IAAA,IAAA,wBAAA,OAAA,KAAA,IAAA,CAAA,MCAf,IAAe,KAAA,IAAA,IAAA,sBAAA,OAAA,KAAA,IAAA,CAAA,MCaT,IAA+D;CACnE,cAAc;EACZ,QAAQ;EACR,MAAM;EACP;CACD,SAAS;EAAE,QAAQ;EAAiB,MAAM;EAAmB;CAC7D,OAAO;EAAE,QAAQ;EAAsB,MAAM;;CAC9C,EAGY,KAAe,MACtB,MAAS,YACJ;CACL,MAAM;CACN,QAAQ;CACT,GAEC,MAAS,UACJ;CACL,MAAM;CACN,QAAQ;CACT,GAEI;CACL,MAAM;CACN,QAAQ;CACT,EAaU,KACX,MACqC;CACrC,IAAM,IAAQ,EAAW,IACnB,IAAmB;EACvB,QAAQ,+BAA+B,EAAM;EAC7C,MAAM,+BAA+B,EAAM;EAC5C,EAEK,KAAU,MACd,EAAI,WAAW,UAAU,GAAG,EAAI,MAAM,EAAE,GAAG;AAM7C,KAAI;AACF,SAAO;GACL,QAAQ,EAAO,OAAO,KAAK,QAAQ,EAAiB,OAAO,CAAC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ClE,KAAS,KAAK,EAAkB;IAChC,EACK,QAAQ,IAAI,EAAS;;CAG9B,mBAA0B,GAGxB;AACA,SAAO,EAAY,EAAK;;CAG1B,UAAiB;AACf,OAAK,IAAI,KAAO;;AAEd,MAAI,EAAS,eAAe,EAAI,EAAE;GAChC,IAAM,IAAS,SAAS,eAAe,EAAI;AAC3C,GAAI,KACF,EAAO,eAAe,YAAY,EAAO;;AAK/C,EADA,IAAe,EAAE,EACjB,IAAW,EAAE;;;GA5Cd,GAAA,EAAA,eAAA,OAAA,CAAA,EAAA,EAAA,WAAA,yBAAA,KAAA,EAAA"}
|
|
1
|
+
{"version":3,"file":"script-loader-C6XVqA2M.mjs","names":[],"sources":["../../../../node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm?no-inline?url","../../../../node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js?no-inline?url","../../../../node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm?no-inline?url","../../../../node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js?no-inline?url","../../../../node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm?no-inline?url","../../../../node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.js?no-inline?url","../../packages/common-core/src/static-files/roomle-core.ts","../../packages/common-core/src/script-loader.ts"],"sourcesContent":["export default \"__VITE_ASSET__U2YZxvNlcnuoWcGKwa9Wsw__\"","export default \"__VITE_ASSET__epdbhdyBUyD3hvxx0_dcTg__\"","export default \"__VITE_ASSET___ewJD0zO9$SsiDvawfmAUw__\"","export default \"__VITE_ASSET__dJ$ULFcuzX43djbIEsCZPw__\"","export default \"__VITE_ASSET__cLZLOsSELI_GmwKcVOKKRw__\"","export default \"__VITE_ASSET__$oUiuAXR7gZMKRQU56HW2w__\"","// @ts-ignore -- Uses vite to reference files as URLs.\nimport CONFIGURATOR_WASM_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm?no-inline?url';\n// @ts-ignore -- Uses vite to reference files as URLs.\nimport CONFIGURATOR_LOADER_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/ConfiguratorKernel.js?no-inline?url';\n// @ts-ignore -- Uses vite to reference files as URLs.\nimport PLANNER_WASM_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/RoomleCore.wasm?no-inline?url';\n// @ts-ignore -- Uses vite to reference files as URLs.\nimport PLANNER_LOADER_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/RoomleCore.js?no-inline?url';\n// @ts-ignore -- Uses vite to reference files as URLs.\nimport TOOLS_CORE_WASM_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm?no-inline?url';\n// @ts-ignore -- Uses vite to reference files as URLs.\nimport TOOLS_CORE_LOADER_MODERN_FILE_NAME from 'roomle-core-hsc/wasm_modern/RoomleToolsCore.js?no-inline?url';\n\nconst WASM_FILES: Record<string, { loader: string; wasm: string }> = {\n configurator: {\n loader: 'ConfiguratorKernel.js',\n wasm: 'ConfiguratorKernel.wasm',\n },\n planner: { loader: 'RoomleCore.js', wasm: 'RoomleCore.wasm' },\n tools: { loader: 'RoomleToolsCore.js', wasm: 'RoomleToolsCore.wasm' },\n};\n\n// The wasm paths returned by this function are specific to browsers (not headless):\nexport const getWasmPath = (type: 'configurator' | 'planner' | 'tools') => {\n if (type === 'planner') {\n return {\n wasm: PLANNER_WASM_MODERN_FILE_NAME,\n loader: PLANNER_LOADER_MODERN_FILE_NAME,\n };\n }\n if (type === 'tools') {\n return {\n wasm: TOOLS_CORE_WASM_MODERN_FILE_NAME,\n loader: TOOLS_CORE_LOADER_MODERN_FILE_NAME,\n };\n }\n return {\n wasm: CONFIGURATOR_WASM_MODERN_FILE_NAME,\n loader: CONFIGURATOR_LOADER_MODERN_FILE_NAME,\n };\n};\n\n// Resolve WASM module paths for headless (Node.js/Bun) mode.\n// Strategies (tried in order):\n// 1. import.meta.resolve('roomle-core-hsc/...') — works when running from\n// source in the monorepo where roomle-core-hsc is in node_modules, and\n// the module resolver can walk up to it from the current file's location.\n// 2. Files directly in the same directory as this bundle — works when the SDK\n// is consumed as a built package (dist/lib/), where vite-plugin-static-copy\n// places ConfiguratorKernel.wasm etc. alongside the bundle chunks.\n// 3. Legacy static/ subdirectory — kept as a final fallback for older dist\n// layouts where vite-plugin-static-copy targeted dist/lib/static/.\nexport const getHeadlessWasmPath = (\n type: 'configurator' | 'planner' | 'tools',\n): { loader: string; wasm: string } => {\n const entry = WASM_FILES[type];\n const moduleSpecifiers = {\n loader: `roomle-core-hsc/wasm_modern/${entry.loader}`,\n wasm: `roomle-core-hsc/wasm_modern/${entry.wasm}`,\n };\n\n const toPath = (url: string) =>\n url.startsWith('file://') ? url.slice(7) : url;\n\n // Strategy 1: resolve from node_modules (source / monorepo).\n // May fail when the consuming project's module resolver cannot reach\n // roomle-core-hsc (e.g. when web-sdk is installed via a file: reference\n // and symlink resolution stops before reaching the monorepo node_modules).\n try {\n return {\n loader: toPath(import.meta.resolve(moduleSpecifiers.loader)),\n wasm: toPath(import.meta.resolve(moduleSpecifiers.wasm)),\n };\n } catch {\n // roomle-core-hsc not reachable — fall through to bundle-relative lookup\n }\n\n // Strategy 2: files copied directly alongside the bundle (current dist layout).\n // vite-plugin-static-copy places ConfiguratorKernel.wasm / RoomleCore.wasm\n // etc. in dist/lib/ next to the JS chunks. import.meta.url of any chunk in\n // that directory has bundleDir = dist/lib/, so the files are found directly.\n const bundleDir = toPath(import.meta.url).replace(/\\/[^/]+$/, '');\n return {\n loader: `${bundleDir}/${entry.loader}`,\n wasm: `${bundleDir}/${entry.wasm}`,\n };\n};\n\nexport {\n CONFIGURATOR_WASM_MODERN_FILE_NAME,\n CONFIGURATOR_LOADER_MODERN_FILE_NAME,\n PLANNER_WASM_MODERN_FILE_NAME,\n PLANNER_LOADER_MODERN_FILE_NAME,\n TOOLS_CORE_WASM_MODERN_FILE_NAME,\n TOOLS_CORE_LOADER_MODERN_FILE_NAME,\n};\n","import Benchmark from './utils/benchmark';\nimport inject from './di/inject';\nimport type SinglePromiseFactory from './utils/single-promise-factory';\nimport { PROMISE_CATEGORY } from './utils/single-promise-factory';\nimport type { Context } from './di/context';\nimport { getWasmPath } from './static-files/roomle-core';\n\nlet _scriptCache: { [key: string]: boolean } = {};\nlet _idCache: { [key: string]: boolean } = {};\n\nfunction attachScript(\n url: string,\n options: { id: string },\n resolve: (value?: any) => void,\n reject: (error?: any) => void,\n) {\n if (_scriptCache[url]) {\n return resolve();\n }\n if (options.id && _idCache[options.id]) {\n return reject(\n new Error('There is already a script with ID \"' + options.id + '\"'),\n );\n }\n\n const mark = Benchmark.start('load_' + options.id.replace(/-/g, '_'));\n const element = document.createElement('script');\n element.async = false;\n element.src = url;\n element.id = options.id;\n element.onload = () => {\n _scriptCache[url] = true;\n _idCache[options.id] = true;\n Benchmark.end(mark);\n Object.defineProperty(resolve, 'name', { value: 'resolve-' + options.id });\n resolve();\n };\n element.onerror = (error) => {\n reject(error);\n };\n document.body.appendChild(element);\n}\n\nexport interface ScriptData {\n name: string;\n id: string;\n}\n\nexport default class ScriptLoader implements Context {\n public _creator_: string;\n\n @inject\n private _singlePromiseFactory: SinglePromiseFactory;\n\n constructor(creator: string) {\n this._creator_ = creator;\n }\n\n public fetch(url: string, options: { id: string }) {\n return this._singlePromiseFactory.create(\n PROMISE_CATEGORY.FETCH_SCRIPT,\n url,\n (resolve, reject) => {\n attachScript(url, options, resolve, reject);\n },\n );\n }\n\n public loadScripts(scripts: ScriptData[]) {\n const promises: any = [];\n scripts.forEach((script: any) => {\n let scriptLoadPromise = this.fetch(script.name, { id: script.id });\n promises.push(scriptLoadPromise);\n });\n return Promise.all(promises);\n }\n\n public resolveKernelPaths(type: 'configurator' | 'planner' | 'tools'): {\n wasm: string;\n loader: string;\n } {\n return getWasmPath(type);\n }\n\n public cleanUp() {\n for (let key in _idCache) {\n /* istanbul ignore else */\n if (_idCache.hasOwnProperty(key)) {\n const script = document.getElementById(key);\n if (script) {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EAAI;AAC3C,GAAI,KACF,EAAO,eAAe,YAAY,EAAO;;AAK/C,EADA,IAAe,EAAE,EACjB,IAAW,EAAE;;;GA5Cd,GAAA,EAAA,eAAA,OAAA,CAAA,EAAA,EAAA,WAAA,yBAAA,KAAA,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "roomle-core-hsc", "version": "3.1.0-alpha.
|
|
1
|
+
{"name": "roomle-core-hsc", "version": "3.1.0-alpha.8" }
|
package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm
CHANGED
|
Binary file
|
|
Binary file
|
package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm
CHANGED
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as e, U as t, ct as n, n as r } from "./roomle-sdk-
|
|
2
|
-
import { t as i } from "./script-loader-
|
|
1
|
+
import { H as e, U as t, ct as n, n as r } from "./roomle-sdk-CWL55lWB.mjs";
|
|
2
|
+
import { t as i } from "./script-loader-C6XVqA2M.mjs";
|
|
3
3
|
//#region packages/tools-core/src/utils/injectables.ts
|
|
4
4
|
var a = [new n("script-loader", i)], o = class extends t {
|
|
5
5
|
setupGlobals() {}
|
|
@@ -27,4 +27,4 @@ var a = [new n("script-loader", i)], o = class extends t {
|
|
|
27
27
|
//#endregion
|
|
28
28
|
export { o as ToolsCore };
|
|
29
29
|
|
|
30
|
-
//# sourceMappingURL=tools-core-
|
|
30
|
+
//# sourceMappingURL=tools-core-Cn7-Y2Tw.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools-core-
|
|
1
|
+
{"version":3,"file":"tools-core-Cn7-Y2Tw.mjs","names":[],"sources":["../../packages/tools-core/src/utils/injectables.ts","../../packages/tools-core/src/tools-core.ts"],"sourcesContent":["import ScriptLoader from '../../../common-core/src/script-loader';\nimport { DependencyInjectionAssignment } from '../../../common-core/src/di/container';\n\nexport const INJECTABLES: DependencyInjectionAssignment[] = [\n new DependencyInjectionAssignment('script-loader', ScriptLoader),\n];\n","import './utils/global-definitions';\n\nimport { Main, BASE_CONTEXT } from '../../common-core/src/main';\nimport type Logger from '../../common-core/src/logger';\nimport RoomleDependencyInjection from '../../common-core/src/di/roomle-dependency-injection';\nimport type RoomleToolsCore from './roomle-tools-core';\nimport type ScriptLoader from '../../common-core/src/script-loader';\nimport { INJECTABLES } from './utils/injectables';\n\nexport class ToolsCore extends Main {\n private _tools: RoomleToolsCore | undefined;\n\n protected setupGlobals(): void {\n //globals are initialized in bootFinished()\n }\n\n protected setupDependencies(): void {\n RoomleDependencyInjection.setup(INJECTABLES);\n this.lookup<Logger>('logger', this._context);\n }\n\n protected cleanUpGlobals(): void {\n this._tools = undefined;\n if (window.RoomleToolsCore) {\n delete window.RoomleToolsCore;\n }\n }\n\n protected cleanUpDependencies(): void {\n const scriptLoader = this.lookup<ScriptLoader>('script-loader');\n if (scriptLoader) {\n scriptLoader.cleanUp();\n }\n }\n\n protected async bootFinished(): Promise<void> {\n this._tools = this.lookup<RoomleToolsCore>(\n 'roomle-tools-core',\n this._context,\n );\n\n if (!window.RoomleToolsCore) {\n window.RoomleToolsCore = this._tools;\n }\n }\n\n public getApi(): RoomleToolsCore {\n if (this._tools === undefined) {\n throw new Error('ToolsCore not initialized. Call boot() first.');\n }\n return this._tools;\n }\n\n protected getContextName(): string {\n return BASE_CONTEXT.TOOLS_CORE;\n }\n}\n"],"mappings":";;;AAGA,IAAa,IAA+C,CAC1D,IAAI,EAA8B,iBAAiB,EAAa,CACjE,ECIY,IAAb,cAA+B,EAAK;CAGlC,eAA+B;CAI/B,oBAAoC;AAElC,EADA,EAA0B,MAAM,EAAY,EAC5C,KAAK,OAAe,UAAU,KAAK,SAAS;;CAG9C,iBAAiC;AAE/B,EADA,KAAK,SAAS,KAAA,GACV,OAAO,mBACT,OAAO,OAAO;;CAIlB,sBAAsC;EACpC,IAAM,IAAe,KAAK,OAAqB,gBAAgB;AAC/D,EAAI,KACF,EAAa,SAAS;;CAI1B,MAAgB,eAA8B;AAM5C,EALA,KAAK,SAAS,KAAK,OACjB,qBACA,KAAK,SACN,EAEI,OAAO,oBACV,OAAO,kBAAkB,KAAK;;CAIlC,SAAiC;AAC/B,MAAI,KAAK,WAAW,KAAA,EAClB,OAAU,MAAM,gDAAgD;AAElE,SAAO,KAAK;;CAGd,iBAAmC;AACjC,SAAO,EAAa"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomle/web-sdk",
|
|
3
|
-
"version": "5.2.0-alpha.
|
|
3
|
+
"version": "5.2.0-alpha.9",
|
|
4
4
|
"description": "Roomle Web SDK",
|
|
5
5
|
"author": "Roomle Development",
|
|
6
|
-
"main": "./lib/roomle-sdk-
|
|
6
|
+
"main": "./lib/roomle-sdk-CWL55lWB.mjs",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"release": "node ../scripts/run-semantic-release.mjs"
|
|
9
9
|
},
|
package/lib/planner-CwWcSacU.mjs
DELETED