@parhelia/core 0.1.12781 → 0.1.12782

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.
@@ -1,4 +1,4 @@
1
1
  export function selectComponents(componentIds) {
2
- window.top?.window.postMessage({ componentIds, type: "componentsSelected" }, window.location.origin);
2
+ window.top?.window.postMessage({ componentIds, type: "componentsSelected" }, "*");
3
3
  }
4
4
  //# sourceMappingURL=api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/client-components/api.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,gBAAgB,CAAC,YAAsB;IACrD,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,CAC5B,EAAE,YAAY,EAAE,IAAI,EAAE,oBAAoB,EAAE,EAC5C,MAAM,CAAC,QAAQ,CAAC,MAAM,CACvB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/client-components/api.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,gBAAgB,CAAC,YAAsB;IACrD,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,WAAW,CAC5B,EAAE,YAAY,EAAE,IAAI,EAAE,oBAAoB,EAAE,EAC5C,GAAG,CACJ,CAAC;AACJ,CAAC"}
@@ -15,7 +15,7 @@ import { getAiTextEditPrompts, getEditorSettings } from "../services/systemServi
15
15
  import { loadAiProfiles } from "../services/aiService";
16
16
  import { localStorageService } from "../services/localStorageService";
17
17
  // Default Profile ID for the Inline Text Editor profile
18
- const DEFAULT_INLINE_TEXT_EDITOR_PROFILE_ID = "d7e8f9a0-b1c2-4d3e-a5f6-789012345678";
18
+ const DEFAULT_INLINE_TEXT_EDITOR_PROFILE_ID = "8e53c90c-2eac-476b-b03d-d0c2cfbbcd8a";
19
19
  const AI_TEXT_EDIT_MODELS_STORAGE_KEY = "aiTextEdit.selectedModelIds";
20
20
  /** Normalize profile ID to a stable key (lowercase, no braces) so storage works regardless of API casing. */
21
21
  function normalizeProfileIdForStorage(profileId) {
@@ -1278,10 +1278,7 @@ export function EditorShell({ configuration, className, item: loadItemDescriptor
1278
1278
  }
1279
1279
  };
1280
1280
  const handleMessage = (event) => {
1281
- if (event.origin !== window.location.origin)
1282
- return;
1283
- if (event.data.type === "componentsSelected" &&
1284
- Array.isArray(event.data.componentIds)) {
1281
+ if (event.data.type === "componentsSelected") {
1285
1282
  setSelection(event.data.componentIds);
1286
1283
  }
1287
1284
  };