@juo/orion-core 0.18.0 → 0.19.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.
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  import { signal, effect, createBlockInstance } from "@juo/orion-core";
8
8
  import { d, j as withWrapper, t as subscribeContext, T as ThemeStateContext, E, v as n } from "./theme-state-D4n_2n_h.js";
9
- import "./juo-workflow-rDW9uQPy.js";
9
+ import "./juo-workflow-BAC3Lblr.js";
10
10
  class Block extends HTMLElement {
11
11
  constructor() {
12
12
  super();
@@ -96,7 +96,7 @@ class ExtensionRoot extends HTMLElement {
96
96
  this.style.display = "flex";
97
97
  this.style.flexDirection = "column";
98
98
  this.style.gap = "16px";
99
- this.style.width = "fit-content";
99
+ this.style.maxWidth = "100%";
100
100
  this.style.justifySelf = "center";
101
101
  this.unsubscribeThemeContext = subscribeContext(
102
102
  this,
package/dist/core.js CHANGED
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  import { c as createContext, d, w, E, u } from "./theme-state-D4n_2n_h.js";
8
8
  import { B, n, C, D, S, T, a, b, e, f, k, l, g, h, i, m, p, o, q, r, s, t, v, j } from "./theme-state-D4n_2n_h.js";
9
- import { T as T2, W, c, b as b2, a as a2, g as g2, h as h2 } from "./juo-workflow-rDW9uQPy.js";
9
+ import { T as T2, W, c, b as b2, a as a2, g as g2, h as h2 } from "./juo-workflow-BAC3Lblr.js";
10
10
  function createState() {
11
11
  const discountCode = d(null);
12
12
  const products = d([]);
package/dist/editor.js CHANGED
@@ -304,8 +304,9 @@ const styles = `
304
304
  background-color: white;
305
305
  border: 1px solid #B5B5B5;
306
306
  border-radius: 8px;
307
- width: fit-content;
308
307
  justify-self: center;
308
+ max-width: 100%;
309
+ box-sizing: border-box;
309
310
  }
310
311
 
311
312
  .block-wrapper:hover,
@@ -190,7 +190,8 @@ function createWorkflowService(deps) {
190
190
  runVersion: data.runVersion,
191
191
  currentStepId: data.pendingInteraction.stepId,
192
192
  currentInteraction: data.pendingInteraction,
193
- invalidatedResources: mergedInvalidated
193
+ invalidatedResources: mergedInvalidated,
194
+ outcome: null
194
195
  });
195
196
  } else if (data.status === "completed") {
196
197
  updateState({
@@ -415,7 +416,26 @@ function createWorkflowService(deps) {
415
416
  const isTerminal = status === "completed" || status === "error";
416
417
  if (runId && !isTerminal) {
417
418
  try {
418
- await api.cancel(runId);
419
+ const data = await api.cancel(runId);
420
+ if (data.outcome) {
421
+ updateState({
422
+ status: "completed",
423
+ flowType: null,
424
+ workflowId: null,
425
+ workflowVersion: null,
426
+ runId: null,
427
+ runVersion: null,
428
+ currentStepId: null,
429
+ currentInteraction: null,
430
+ error: null,
431
+ result: null,
432
+ flowParams: null,
433
+ invalidatedResources: data.invalidatedResources ?? [],
434
+ outcome: data.outcome || null,
435
+ dryRun: null
436
+ });
437
+ return;
438
+ }
419
439
  } catch {
420
440
  }
421
441
  }
@@ -5,9 +5,9 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { p as injectContext, E, x as ContextRoot } from "./theme-state-D4n_2n_h.js";
8
- import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-raAaUEVu.js";
8
+ import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-Cd9xPgd2.js";
9
9
  import { a as createEditorBridge, b as createFocusInlineTextMessage, d as createUpdateBlockTranslationMessage } from "./bridge-SZyjoSJS.js";
10
- import { T as TranslationContext } from "./juo-workflow-rDW9uQPy.js";
10
+ import { T as TranslationContext } from "./juo-workflow-BAC3Lblr.js";
11
11
  const _InlineText = class _InlineText extends HTMLElement {
12
12
  constructor() {
13
13
  super();
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { p as injectContext, E, x as ContextRoot } from "./theme-state-D4n_2n_h.js";
8
- import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-raAaUEVu.js";
9
- import { T as TranslationContext } from "./juo-workflow-rDW9uQPy.js";
8
+ import { E as ExtensionRoot, B as Block } from "./ExtensionRoot-Cd9xPgd2.js";
9
+ import { T as TranslationContext } from "./juo-workflow-BAC3Lblr.js";
10
10
  class InlineText extends HTMLElement {
11
11
  constructor() {
12
12
  super(...arguments);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@juo/orion-core",
3
3
  "private": false,
4
- "version": "0.18.0",
4
+ "version": "0.19.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"