@superblocksteam/library 2.0.40-next.3 → 2.0.40-next.5
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -12
- package/dist/index.js.map +1 -1
- package/dist/root-store-BY1bErZz.js +4 -0
- package/dist/{root-store-D7IuNpKE.js → root-store-D5kPt3bg.js} +6 -5
- package/dist/root-store-D5kPt3bg.js.map +1 -0
- package/package.json +2 -2
- package/dist/root-store-C8Wjgal-.js +0 -4
- package/dist/root-store-D7IuNpKE.js.map +0 -1
|
@@ -143,7 +143,7 @@ var DeployedParentBridge = class {
|
|
|
143
143
|
socketError(_message) {}
|
|
144
144
|
aiGenerate(_prompt) {}
|
|
145
145
|
addComponentToAiContext(_sourceId) {}
|
|
146
|
-
toggleComponentInAiContext(_sourceId, _instanceId) {}
|
|
146
|
+
toggleComponentInAiContext(_sourceId, _instanceId, _label) {}
|
|
147
147
|
setAiContextMode(_mode) {}
|
|
148
148
|
sendRuntimeError(_data) {}
|
|
149
149
|
sendClearRuntimeError(_id) {}
|
|
@@ -379,7 +379,7 @@ var SuperblocksEditorBridge = class SuperblocksEditorBridge {
|
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
|
-
toggleComponentInAiContext(sourceId, instanceId) {
|
|
382
|
+
toggleComponentInAiContext(sourceId, instanceId, label) {
|
|
383
383
|
const editStore = getEditStore();
|
|
384
384
|
if (editStore?.ai.isAlternateSourceIdTarget(sourceId, instanceId)) {
|
|
385
385
|
editStore.ai.toggleTargetedInstance(instanceId);
|
|
@@ -389,7 +389,8 @@ var SuperblocksEditorBridge = class SuperblocksEditorBridge {
|
|
|
389
389
|
type: "ai-updates",
|
|
390
390
|
payload: {
|
|
391
391
|
type: "toggle-component-in-context",
|
|
392
|
-
component: sourceId
|
|
392
|
+
component: sourceId,
|
|
393
|
+
label
|
|
393
394
|
}
|
|
394
395
|
});
|
|
395
396
|
}
|
|
@@ -992,7 +993,7 @@ var registry_default = EventRegistry;
|
|
|
992
993
|
|
|
993
994
|
//#endregion
|
|
994
995
|
//#region src/lib/triggers/run-event-handlers.ts
|
|
995
|
-
const getRootStore = () => import("./root-store-
|
|
996
|
+
const getRootStore = () => import("./root-store-BY1bErZz.js").then((module) => module.default);
|
|
996
997
|
const runEventHandlers = async ({ flow, name, scopeId, additionalContext }) => {
|
|
997
998
|
const context$1 = {
|
|
998
999
|
scopeId,
|
|
@@ -4553,4 +4554,4 @@ var root_store_default = new RootStore();
|
|
|
4553
4554
|
|
|
4554
4555
|
//#endregion
|
|
4555
4556
|
export { CLASS_NAMES, DEFAULT_ANONYMOUS_SOURCE_ID, DevTools, EventFlow, GLOBAL_SCOPE_ID, LazyFunction, NavigationEvent, Prop, PropsPanelCategory, RecordProp, Section, VALIDATORS, addNewPromise, colors, createInternalPropsList, createManagedPropsList, createPropertiesPanelDefinition, editorBridge, generateId, getEditStore, getName, iframeMessageHandler, isEditMode, isEmbeddedBySuperblocksFirstParty, isLocalLink, isName, isNameEqual, navigation, rejectById, resolveById, root_store_default, run_event_handlers_default, sendNotification, startEditorSync, system_error_default };
|
|
4556
|
-
//# sourceMappingURL=root-store-
|
|
4557
|
+
//# sourceMappingURL=root-store-D5kPt3bg.js.map
|