@orchestrator-ui/orchestrator-ui-components 5.8.0 → 5.8.1

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.js CHANGED
@@ -241,7 +241,7 @@ var require_xlink = __commonJS({
241
241
  xLinkType: null
242
242
  }
243
243
  });
244
- function xlinkTransform(_2, prop2) {
244
+ function xlinkTransform(_5, prop2) {
245
245
  return "xlink:" + prop2.slice(5).toLowerCase();
246
246
  }
247
247
  }
@@ -261,7 +261,7 @@ var require_xml = __commonJS({
261
261
  xmlSpace: null
262
262
  }
263
263
  });
264
- function xmlTransform(_2, prop2) {
264
+ function xmlTransform(_5, prop2) {
265
265
  return "xml:" + prop2.slice(3).toLowerCase();
266
266
  }
267
267
  }
@@ -373,7 +373,7 @@ var require_aria = __commonJS({
373
373
  role: null
374
374
  }
375
375
  });
376
- function ariaTransform(_2, prop2) {
376
+ function ariaTransform(_5, prop2) {
377
377
  return prop2 === "role" ? prop2 : "aria-" + prop2.slice(4).toLowerCase();
378
378
  }
379
379
  }
@@ -3835,7 +3835,7 @@ var require_prism_core = __commonJS({
3835
3835
  var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
3836
3836
  var uniqueId = 0;
3837
3837
  var plainTextGrammar = {};
3838
- var _2 = {
3838
+ var _5 = {
3839
3839
  /**
3840
3840
  * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
3841
3841
  * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
@@ -3944,9 +3944,9 @@ var require_prism_core = __commonJS({
3944
3944
  visited = visited || {};
3945
3945
  var clone;
3946
3946
  var id;
3947
- switch (_2.util.type(o)) {
3947
+ switch (_5.util.type(o)) {
3948
3948
  case "Object":
3949
- id = _2.util.objId(o);
3949
+ id = _5.util.objId(o);
3950
3950
  if (visited[id]) {
3951
3951
  return visited[id];
3952
3952
  }
@@ -3963,7 +3963,7 @@ var require_prism_core = __commonJS({
3963
3963
  clone
3964
3964
  );
3965
3965
  case "Array":
3966
- id = _2.util.objId(o);
3966
+ id = _5.util.objId(o);
3967
3967
  if (visited[id]) {
3968
3968
  return visited[id];
3969
3969
  }
@@ -4121,7 +4121,7 @@ var require_prism_core = __commonJS({
4121
4121
  * });
4122
4122
  */
4123
4123
  extend: function(id, redef) {
4124
- var lang2 = _2.util.clone(_2.languages[id]);
4124
+ var lang2 = _5.util.clone(_5.languages[id]);
4125
4125
  for (var key in redef) {
4126
4126
  lang2[key] = redef[key];
4127
4127
  }
@@ -4204,7 +4204,7 @@ var require_prism_core = __commonJS({
4204
4204
  */
4205
4205
  insertBefore: function(inside, before, insert2, root) {
4206
4206
  root = root || /** @type {any} */
4207
- _2.languages;
4207
+ _5.languages;
4208
4208
  var grammar = root[inside];
4209
4209
  var ret = {};
4210
4210
  for (var token in grammar) {
@@ -4223,7 +4223,7 @@ var require_prism_core = __commonJS({
4223
4223
  }
4224
4224
  var old = root[inside];
4225
4225
  root[inside] = ret;
4226
- _2.languages.DFS(_2.languages, function(key, value) {
4226
+ _5.languages.DFS(_5.languages, function(key, value) {
4227
4227
  if (value === old && key != inside) {
4228
4228
  this[key] = ret;
4229
4229
  }
@@ -4233,12 +4233,12 @@ var require_prism_core = __commonJS({
4233
4233
  // Traverse a language definition with Depth First Search
4234
4234
  DFS: function DFS(o, callback, type, visited) {
4235
4235
  visited = visited || {};
4236
- var objId = _2.util.objId;
4236
+ var objId = _5.util.objId;
4237
4237
  for (var i in o) {
4238
4238
  if (o.hasOwnProperty(i)) {
4239
4239
  callback.call(o, i, o[i], type || i);
4240
4240
  var property = o[i];
4241
- var propertyType = _2.util.type(property);
4241
+ var propertyType = _5.util.type(property);
4242
4242
  if (propertyType === "Object" && !visited[objId(property)]) {
4243
4243
  visited[objId(property)] = true;
4244
4244
  DFS(property, callback, null, visited);
@@ -4264,7 +4264,7 @@ var require_prism_core = __commonJS({
4264
4264
  * @public
4265
4265
  */
4266
4266
  highlightAll: function(async, callback) {
4267
- _2.highlightAllUnder(document, async, callback);
4267
+ _5.highlightAllUnder(document, async, callback);
4268
4268
  },
4269
4269
  /**
4270
4270
  * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
@@ -4287,11 +4287,11 @@ var require_prism_core = __commonJS({
4287
4287
  container,
4288
4288
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
4289
4289
  };
4290
- _2.hooks.run("before-highlightall", env);
4290
+ _5.hooks.run("before-highlightall", env);
4291
4291
  env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
4292
- _2.hooks.run("before-all-elements-highlight", env);
4292
+ _5.hooks.run("before-all-elements-highlight", env);
4293
4293
  for (var i = 0, element; element = env.elements[i++]; ) {
4294
- _2.highlightElement(element, async === true, env.callback);
4294
+ _5.highlightElement(element, async === true, env.callback);
4295
4295
  }
4296
4296
  },
4297
4297
  /**
@@ -4323,12 +4323,12 @@ var require_prism_core = __commonJS({
4323
4323
  * @public
4324
4324
  */
4325
4325
  highlightElement: function(element, async, callback) {
4326
- var language = _2.util.getLanguage(element);
4327
- var grammar = _2.languages[language];
4328
- _2.util.setLanguage(element, language);
4326
+ var language = _5.util.getLanguage(element);
4327
+ var grammar = _5.languages[language];
4328
+ _5.util.setLanguage(element, language);
4329
4329
  var parent = element.parentElement;
4330
4330
  if (parent && parent.nodeName.toLowerCase() === "pre") {
4331
- _2.util.setLanguage(parent, language);
4331
+ _5.util.setLanguage(parent, language);
4332
4332
  }
4333
4333
  var code = element.textContent;
4334
4334
  var env = {
@@ -4339,29 +4339,29 @@ var require_prism_core = __commonJS({
4339
4339
  };
4340
4340
  function insertHighlightedCode(highlightedCode) {
4341
4341
  env.highlightedCode = highlightedCode;
4342
- _2.hooks.run("before-insert", env);
4342
+ _5.hooks.run("before-insert", env);
4343
4343
  env.element.innerHTML = env.highlightedCode;
4344
- _2.hooks.run("after-highlight", env);
4345
- _2.hooks.run("complete", env);
4344
+ _5.hooks.run("after-highlight", env);
4345
+ _5.hooks.run("complete", env);
4346
4346
  callback && callback.call(env.element);
4347
4347
  }
4348
- _2.hooks.run("before-sanity-check", env);
4348
+ _5.hooks.run("before-sanity-check", env);
4349
4349
  parent = env.element.parentElement;
4350
4350
  if (parent && parent.nodeName.toLowerCase() === "pre" && !parent.hasAttribute("tabindex")) {
4351
4351
  parent.setAttribute("tabindex", "0");
4352
4352
  }
4353
4353
  if (!env.code) {
4354
- _2.hooks.run("complete", env);
4354
+ _5.hooks.run("complete", env);
4355
4355
  callback && callback.call(env.element);
4356
4356
  return;
4357
4357
  }
4358
- _2.hooks.run("before-highlight", env);
4358
+ _5.hooks.run("before-highlight", env);
4359
4359
  if (!env.grammar) {
4360
- insertHighlightedCode(_2.util.encode(env.code));
4360
+ insertHighlightedCode(_5.util.encode(env.code));
4361
4361
  return;
4362
4362
  }
4363
4363
  if (async && _self2.Worker) {
4364
- var worker = new Worker(_2.filename);
4364
+ var worker = new Worker(_5.filename);
4365
4365
  worker.onmessage = function(evt) {
4366
4366
  insertHighlightedCode(evt.data);
4367
4367
  };
@@ -4371,7 +4371,7 @@ var require_prism_core = __commonJS({
4371
4371
  immediateClose: true
4372
4372
  }));
4373
4373
  } else {
4374
- insertHighlightedCode(_2.highlight(env.code, env.grammar, env.language));
4374
+ insertHighlightedCode(_5.highlight(env.code, env.grammar, env.language));
4375
4375
  }
4376
4376
  },
4377
4377
  /**
@@ -4400,13 +4400,13 @@ var require_prism_core = __commonJS({
4400
4400
  grammar,
4401
4401
  language
4402
4402
  };
4403
- _2.hooks.run("before-tokenize", env);
4403
+ _5.hooks.run("before-tokenize", env);
4404
4404
  if (!env.grammar) {
4405
4405
  throw new Error('The language "' + env.language + '" has no grammar.');
4406
4406
  }
4407
- env.tokens = _2.tokenize(env.code, env.grammar);
4408
- _2.hooks.run("after-tokenize", env);
4409
- return Token.stringify(_2.util.encode(env.tokens), env.language);
4407
+ env.tokens = _5.tokenize(env.code, env.grammar);
4408
+ _5.hooks.run("after-tokenize", env);
4409
+ return Token.stringify(_5.util.encode(env.tokens), env.language);
4410
4410
  },
4411
4411
  /**
4412
4412
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -4465,7 +4465,7 @@ var require_prism_core = __commonJS({
4465
4465
  * @public
4466
4466
  */
4467
4467
  add: function(name, callback) {
4468
- var hooks = _2.hooks.all;
4468
+ var hooks = _5.hooks.all;
4469
4469
  hooks[name] = hooks[name] || [];
4470
4470
  hooks[name].push(callback);
4471
4471
  },
@@ -4479,7 +4479,7 @@ var require_prism_core = __commonJS({
4479
4479
  * @public
4480
4480
  */
4481
4481
  run: function(name, env) {
4482
- var callbacks = _2.hooks.all[name];
4482
+ var callbacks = _5.hooks.all[name];
4483
4483
  if (!callbacks || !callbacks.length) {
4484
4484
  return;
4485
4485
  }
@@ -4490,7 +4490,7 @@ var require_prism_core = __commonJS({
4490
4490
  },
4491
4491
  Token
4492
4492
  };
4493
- _self2.Prism = _2;
4493
+ _self2.Prism = _5;
4494
4494
  function Token(type, content, alias, matchedStr) {
4495
4495
  this.type = type;
4496
4496
  this.content = content;
@@ -4524,7 +4524,7 @@ var require_prism_core = __commonJS({
4524
4524
  env.classes.push(aliases);
4525
4525
  }
4526
4526
  }
4527
- _2.hooks.run("wrap", env);
4527
+ _5.hooks.run("wrap", env);
4528
4528
  var attributes = "";
4529
4529
  for (var name in env.attributes) {
4530
4530
  attributes += " " + name + '="' + (env.attributes[name] || "").replace(/"/g, """) + '"';
@@ -4620,7 +4620,7 @@ var require_prism_core = __commonJS({
4620
4620
  pos += before.length;
4621
4621
  }
4622
4622
  removeRange(tokenList, removeFrom, removeCount);
4623
- var wrapped = new Token(token, inside ? _2.tokenize(matchStr, inside) : matchStr, alias, matchStr);
4623
+ var wrapped = new Token(token, inside ? _5.tokenize(matchStr, inside) : matchStr, alias, matchStr);
4624
4624
  currentNode = addAfter(tokenList, removeFrom, wrapped);
4625
4625
  if (after) {
4626
4626
  addAfter(tokenList, currentNode, after);
@@ -4675,35 +4675,35 @@ var require_prism_core = __commonJS({
4675
4675
  }
4676
4676
  if (!_self2.document) {
4677
4677
  if (!_self2.addEventListener) {
4678
- return _2;
4678
+ return _5;
4679
4679
  }
4680
- if (!_2.disableWorkerMessageHandler) {
4680
+ if (!_5.disableWorkerMessageHandler) {
4681
4681
  _self2.addEventListener("message", function(evt) {
4682
4682
  var message = JSON.parse(evt.data);
4683
4683
  var lang2 = message.language;
4684
4684
  var code = message.code;
4685
4685
  var immediateClose = message.immediateClose;
4686
- _self2.postMessage(_2.highlight(code, _2.languages[lang2], lang2));
4686
+ _self2.postMessage(_5.highlight(code, _5.languages[lang2], lang2));
4687
4687
  if (immediateClose) {
4688
4688
  _self2.close();
4689
4689
  }
4690
4690
  }, false);
4691
4691
  }
4692
- return _2;
4692
+ return _5;
4693
4693
  }
4694
- var script = _2.util.currentScript();
4694
+ var script = _5.util.currentScript();
4695
4695
  if (script) {
4696
- _2.filename = script.src;
4696
+ _5.filename = script.src;
4697
4697
  if (script.hasAttribute("data-manual")) {
4698
- _2.manual = true;
4698
+ _5.manual = true;
4699
4699
  }
4700
4700
  }
4701
4701
  function highlightAutomaticallyCallback() {
4702
- if (!_2.manual) {
4703
- _2.highlightAll();
4702
+ if (!_5.manual) {
4703
+ _5.highlightAll();
4704
4704
  }
4705
4705
  }
4706
- if (!_2.manual) {
4706
+ if (!_5.manual) {
4707
4707
  var readyState = document.readyState;
4708
4708
  if (readyState === "loading" || readyState === "interactive" && script && script.defer) {
4709
4709
  document.addEventListener("DOMContentLoaded", highlightAutomaticallyCallback);
@@ -4715,7 +4715,7 @@ var require_prism_core = __commonJS({
4715
4715
  }
4716
4716
  }
4717
4717
  }
4718
- return _2;
4718
+ return _5;
4719
4719
  }(_self);
4720
4720
  if (typeof module !== "undefined" && module.exports) {
4721
4721
  module.exports = Prism;
@@ -26801,7 +26801,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
26801
26801
  })(PolicyResource || {});
26802
26802
 
26803
26803
  // src/configuration/version.ts
26804
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.8.0";
26804
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.8.1";
26805
26805
 
26806
26806
  // src/types/types.ts
26807
26807
  var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
@@ -28698,7 +28698,7 @@ function createImmutableStateInvariantMiddleware(options = {}) {
28698
28698
  return JSON.stringify(obj, getSerialize2(serializer, decycler), indent);
28699
28699
  }, getSerialize2 = function(serializer, decycler) {
28700
28700
  let stack = [], keys = [];
28701
- if (!decycler) decycler = function(_2, value) {
28701
+ if (!decycler) decycler = function(_5, value) {
28702
28702
  if (stack[0] === value) return "[Circular ~]";
28703
28703
  return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
28704
28704
  };
@@ -29338,7 +29338,7 @@ var createAsyncThunk = /* @__PURE__ */ (() => {
29338
29338
  message: "Aborted due to condition callback returning false."
29339
29339
  };
29340
29340
  }
29341
- const abortedPromise = new Promise((_2, reject) => {
29341
+ const abortedPromise = new Promise((_5, reject) => {
29342
29342
  abortHandler = () => {
29343
29343
  reject({
29344
29344
  name: "AbortError",
@@ -31845,7 +31845,7 @@ var buildCacheLifecycleHandler = ({
31845
31845
  });
31846
31846
  lifecycleMap[queryCacheKey] = lifecycle;
31847
31847
  const selector = api.endpoints[endpointName].select(isAnyQueryDefinition(endpointDefinition) ? originalArgs : queryCacheKey);
31848
- const extra = mwApi.dispatch((_2, __, extra2) => extra2);
31848
+ const extra = mwApi.dispatch((_5, __, extra2) => extra2);
31849
31849
  const lifecycleApi = {
31850
31850
  ...mwApi,
31851
31851
  getCacheEntry: () => selector(mwApi.getState()),
@@ -32098,7 +32098,7 @@ var buildQueryLifecycleHandler = ({
32098
32098
  });
32099
32099
  lifecycleMap[requestId] = lifecycle;
32100
32100
  const selector = api.endpoints[endpointName].select(isAnyQueryDefinition(endpointDefinition) ? originalArgs : requestId);
32101
- const extra = mwApi.dispatch((_2, __, extra2) => extra2);
32101
+ const extra = mwApi.dispatch((_5, __, extra2) => extra2);
32102
32102
  const lifecycleApi = {
32103
32103
  ...mwApi,
32104
32104
  getCacheEntry: () => selector(mwApi.getState()),
@@ -32710,8 +32710,8 @@ function buildHooks({
32710
32710
  createSelector2([
32711
32711
  // @ts-ignore
32712
32712
  select(stableArg),
32713
- (_2, lastResult) => lastResult,
32714
- (_2) => stableArg
32713
+ (_5, lastResult) => lastResult,
32714
+ (_5) => stableArg
32715
32715
  ], preSelector, {
32716
32716
  memoizeOptions: {
32717
32717
  resultEqualityCheck: shallowEqual2
@@ -34082,7 +34082,7 @@ var workflowsApi = orchestratorApi.injectEndpoints({
34082
34082
  document: workflowsDescription,
34083
34083
  variables
34084
34084
  }),
34085
- transformResponse: (response, _2, variables) => {
34085
+ transformResponse: (response, _5, variables) => {
34086
34086
  const workflows = response.workflows.page || [];
34087
34087
  const workflow = workflows.find(
34088
34088
  ({ name: name2 }) => name2 === variables.workflowName
@@ -34866,7 +34866,7 @@ var streamMessagesApi = orchestratorApi.injectEndpoints({
34866
34866
  queryFn: () => {
34867
34867
  return { data: true };
34868
34868
  },
34869
- async onCacheEntryAdded(_2, {
34869
+ async onCacheEntryAdded(_5, {
34870
34870
  cacheDataLoaded,
34871
34871
  cacheEntryRemoved,
34872
34872
  dispatch,
@@ -38239,7 +38239,7 @@ var WfoStartButtonComboBox = ({
38239
38239
  css: selectableStyle,
38240
38240
  searchable: true,
38241
38241
  options,
38242
- onChange: (_2, __, changedOption) => onOptionChange(changedOption),
38242
+ onChange: (_5, __, changedOption) => onOptionChange(changedOption),
38243
38243
  height: 200,
38244
38244
  children: (list, search) => /* @__PURE__ */ jsxs41(Fragment3, { children: [
38245
38245
  search,
@@ -41228,11 +41228,11 @@ var WfoDragHandler = ({
41228
41228
  const onStart = () => {
41229
41229
  setIsDragging(false);
41230
41230
  };
41231
- const onDrag = (_2, data) => {
41231
+ const onDrag = (_5, data) => {
41232
41232
  setIsDragging(true);
41233
41233
  setPosition({ x: data.x, y: data.y });
41234
41234
  };
41235
- const onStop = (_2, data) => {
41235
+ const onStop = (_5, data) => {
41236
41236
  if (headerRowRef.current && isDragging) {
41237
41237
  const newWidth = startWidth + data.x;
41238
41238
  onUpdateColumWidth(
@@ -43136,7 +43136,7 @@ var WfoButtonComboBox = ({
43136
43136
  css: selectableStyle,
43137
43137
  options: optionsState,
43138
43138
  searchable: true,
43139
- onChange: (options2, _2, changedOption) => {
43139
+ onChange: (options2, _5, changedOption) => {
43140
43140
  onOptionChange(changedOption);
43141
43141
  setOptionsState(options2);
43142
43142
  },
@@ -47794,7 +47794,7 @@ function Summary({
47794
47794
  return null;
47795
47795
  }
47796
47796
  const { headers, labels, columns } = data;
47797
- const extraColumnsData = columns.filter((_2, index) => index !== 0);
47797
+ const extraColumnsData = columns.filter((_5, index) => index !== 0);
47798
47798
  const rows = columns[0].map((row, index) => /* @__PURE__ */ jsxs98("tr", { children: [
47799
47799
  labels && /* @__PURE__ */ jsx181("td", { className: `label`, children: labels[index] }),
47800
47800
  /* @__PURE__ */ jsx181("td", { className: `value`, children: typeof row === "string" && row.includes("<!doctype html>") ? /* @__PURE__ */ jsx181(
@@ -47804,7 +47804,7 @@ function Summary({
47804
47804
  dangerouslySetInnerHTML: { __html: row }
47805
47805
  }
47806
47806
  ) : row }),
47807
- extraColumnsData && extraColumnsData.map((_2, idx) => /* @__PURE__ */ jsx181("td", { className: `value`, children: extraColumnsData[idx][index] }, idx))
47807
+ extraColumnsData && extraColumnsData.map((_5, idx) => /* @__PURE__ */ jsx181("td", { className: `value`, children: extraColumnsData[idx][index] }, idx))
47808
47808
  ] }, index));
47809
47809
  const tableHeader = !headers || headers.length === 0 ? null : /* @__PURE__ */ jsxs98("tr", { children: [
47810
47810
  labels && /* @__PURE__ */ jsx181("th", {}),
@@ -50358,7 +50358,7 @@ var WfoProcessDetailPage = ({
50358
50358
  };
50359
50359
 
50360
50360
  // src/pages/processes/WfoStartProcessPage.tsx
50361
- import { useCallback as useCallback9, useEffect as useEffect34, useMemo as useMemo7, useState as useState50 } from "react";
50361
+ import { useCallback as useCallback9, useEffect as useEffect34, useMemo as useMemo7, useState as useState51 } from "react";
50362
50362
  import { useTranslations as useTranslations69 } from "next-intl";
50363
50363
  import { useRouter as useRouter10 } from "next/router";
50364
50364
  import {
@@ -50371,6 +50371,7 @@ import {
50371
50371
 
50372
50372
  // src/components/WfoPydanticForm/WfoPydanticForm.tsx
50373
50373
  import { useCallback as useCallback6, useMemo as useMemo4 } from "react";
50374
+ import _4 from "lodash";
50374
50375
  import { useMessages, useTranslations as useTranslations62 } from "next-intl";
50375
50376
  import { useRouter as useRouter9 } from "next/router";
50376
50377
  import {
@@ -50556,6 +50557,8 @@ var WfoTextArea = ({
50556
50557
  };
50557
50558
 
50558
50559
  // src/components/WfoPydanticForm/fields/WfoText.tsx
50560
+ import _2 from "lodash";
50561
+ import { getFormFieldIdWithPath } from "pydantic-forms";
50559
50562
  import { EuiFieldText as EuiFieldText4 } from "@elastic/eui";
50560
50563
  import { jsx as jsx208 } from "@emotion/react/jsx-runtime";
50561
50564
  var WfoText = ({
@@ -50567,6 +50570,8 @@ var WfoText = ({
50567
50570
  const { formFieldBaseStyle } = useWithOrchestratorTheme(
50568
50571
  getFormFieldsBaseStyle
50569
50572
  );
50573
+ const fieldName = getFormFieldIdWithPath(pydanticFormField.id);
50574
+ const fieldValue = _2.isObject(value) && _2.has(value, fieldName) ? _2.get(value, fieldName) : value;
50570
50575
  return /* @__PURE__ */ jsx208(
50571
50576
  EuiFieldText4,
50572
50577
  {
@@ -50574,7 +50579,7 @@ var WfoText = ({
50574
50579
  css: formFieldBaseStyle,
50575
50580
  disabled,
50576
50581
  onChange: (event) => onChange(event.target.value),
50577
- value: value ?? "",
50582
+ value: fieldValue,
50578
50583
  fullWidth: true
50579
50584
  }
50580
50585
  );
@@ -50647,7 +50652,7 @@ var WfoSummary = ({ pydanticFormField }) => {
50647
50652
  const headers = summaryData?.headers;
50648
50653
  const labels = summaryData?.labels;
50649
50654
  const columns = summaryData?.columns || [];
50650
- const extraColumnsData = columns.filter((_2, index) => index !== 0);
50655
+ const extraColumnsData = columns.filter((_5, index) => index !== 0);
50651
50656
  const rows = columns[0].map((row, index) => /* @__PURE__ */ jsxs111("tr", { children: [
50652
50657
  labels && /* @__PURE__ */ jsx212("td", { className: `label`, children: getNestedSummaryLabel(labels, index) }),
50653
50658
  /* @__PURE__ */ jsx212("td", { className: `value`, children: typeof row === "string" && row.includes("<!doctype html>") ? /* @__PURE__ */ jsx212(
@@ -50657,7 +50662,7 @@ var WfoSummary = ({ pydanticFormField }) => {
50657
50662
  dangerouslySetInnerHTML: { __html: row }
50658
50663
  }
50659
50664
  ) : row }),
50660
- extraColumnsData && extraColumnsData.map((_2, idx) => /* @__PURE__ */ jsx212("td", { className: `value`, children: extraColumnsData[idx][index].toString() }, idx))
50665
+ extraColumnsData && extraColumnsData.map((_5, idx) => /* @__PURE__ */ jsx212("td", { className: `value`, children: extraColumnsData[idx][index].toString() }, idx))
50661
50666
  ] }, index));
50662
50667
  const tableHeader = !headers || headers.length === 0 ? null : /* @__PURE__ */ jsxs111("tr", { children: [
50663
50668
  labels && /* @__PURE__ */ jsx212("th", {}),
@@ -51492,7 +51497,7 @@ var WfoRadio = ({
51492
51497
  value,
51493
51498
  disabled
51494
51499
  }) => {
51495
- const radioOptions = pydanticFormField.options.map((option) => ({
51500
+ const radioOptions = pydanticFormField.options?.map((option) => ({
51496
51501
  id: option.value,
51497
51502
  label: option.label
51498
51503
  }));
@@ -51500,7 +51505,7 @@ var WfoRadio = ({
51500
51505
  EuiRadioGroup,
51501
51506
  {
51502
51507
  "data-testid": pydanticFormField.id,
51503
- options: radioOptions,
51508
+ options: radioOptions || [],
51504
51509
  idSelected: value,
51505
51510
  onChange: (id) => onChange(id),
51506
51511
  name: pydanticFormField.id,
@@ -51510,6 +51515,8 @@ var WfoRadio = ({
51510
51515
  };
51511
51516
 
51512
51517
  // src/components/WfoPydanticForm/fields/WfoInteger.tsx
51518
+ import _3 from "lodash";
51519
+ import { getFormFieldIdWithPath as getFormFieldIdWithPath2 } from "pydantic-forms";
51513
51520
  import { EuiFieldNumber as EuiFieldNumber2 } from "@elastic/eui";
51514
51521
  import { css as css38 } from "@emotion/react";
51515
51522
  import { jsx as jsx216 } from "@emotion/react/jsx-runtime";
@@ -51534,6 +51541,8 @@ var WfoInteger = ({
51534
51541
  const { formFieldBaseStyle } = useWithOrchestratorTheme(
51535
51542
  getFormFieldsBaseStyle2
51536
51543
  );
51544
+ const fieldName = getFormFieldIdWithPath2(pydanticFormField.id);
51545
+ const fieldValue = _3.isObject(value) && _3.has(value, fieldName) ? _3.get(value, fieldName) : value;
51537
51546
  return /* @__PURE__ */ jsx216(
51538
51547
  EuiFieldNumber2,
51539
51548
  {
@@ -51541,14 +51550,14 @@ var WfoInteger = ({
51541
51550
  css: formFieldBaseStyle,
51542
51551
  name: pydanticFormField.id,
51543
51552
  onChange: (event) => onChange(parseInt(event.target.value)),
51544
- value,
51553
+ value: fieldValue,
51545
51554
  disabled
51546
51555
  }
51547
51556
  );
51548
51557
  };
51549
51558
 
51550
51559
  // src/components/WfoPydanticForm/fields/WfoReactSelect/WfoReactSelect.tsx
51551
- import React67, { useEffect as useEffect30 } from "react";
51560
+ import { useEffect as useEffect30, useState as useState44 } from "react";
51552
51561
  import ReactSelect5, { components } from "react-select";
51553
51562
  import { EuiButtonIcon as EuiButtonIcon12 } from "@elastic/eui";
51554
51563
 
@@ -51624,16 +51633,18 @@ var WfoReactSelect = ({
51624
51633
  hasError = false,
51625
51634
  refetch
51626
51635
  }) => {
51627
- useEffect30(() => {
51628
- const selectedValue2 = options.find(
51629
- (option) => option.value === value
51630
- );
51631
- setSelectedValue(selectedValue2 || null);
51632
- }, [options, value]);
51633
51636
  const initialValue = options.find(
51634
51637
  (option) => option.value === value
51635
51638
  );
51636
- const [selectedValue, setSelectedValue] = React67.useState(initialValue || null);
51639
+ const [selectedValue, setSelectedValue] = useState44(initialValue || null);
51640
+ useEffect30(() => {
51641
+ const preSelectedValue = options.find(
51642
+ (option) => option.value === value
51643
+ );
51644
+ if (preSelectedValue !== selectedValue) {
51645
+ setSelectedValue(preSelectedValue || null);
51646
+ }
51647
+ }, [options, selectedValue, value]);
51637
51648
  const {
51638
51649
  reactSelectInnerComponentStyles,
51639
51650
  containerStyle,
@@ -51673,7 +51684,7 @@ var WfoReactSelect = ({
51673
51684
  onChange: (option) => {
51674
51685
  if (option === null) {
51675
51686
  setSelectedValue(null);
51676
- onChange(void 0);
51687
+ onChange(null);
51677
51688
  } else {
51678
51689
  const selectedValue2 = option?.value;
51679
51690
  setSelectedValue(option);
@@ -51704,14 +51715,14 @@ var WfoDropdown = ({
51704
51715
  pydanticFormField,
51705
51716
  value
51706
51717
  }) => {
51707
- const dropDownOptions = pydanticFormField.options.map((option) => ({
51718
+ const dropDownOptions = pydanticFormField.options?.map((option) => ({
51708
51719
  value: option.value,
51709
51720
  label: option.label
51710
51721
  }));
51711
51722
  return /* @__PURE__ */ jsx218(
51712
51723
  WfoReactSelect,
51713
51724
  {
51714
- options: dropDownOptions,
51725
+ options: dropDownOptions || [],
51715
51726
  onChange,
51716
51727
  id: pydanticFormField.id,
51717
51728
  value
@@ -51720,7 +51731,7 @@ var WfoDropdown = ({
51720
51731
  };
51721
51732
 
51722
51733
  // src/components/WfoPydanticForm/fields/WfoMultiCheckboxField.tsx
51723
- import { useEffect as useEffect31, useState as useState44 } from "react";
51734
+ import { useEffect as useEffect31, useState as useState45 } from "react";
51724
51735
  import { EuiCheckboxGroup } from "@elastic/eui";
51725
51736
  import { jsx as jsx219 } from "@emotion/react/jsx-runtime";
51726
51737
  var WfoMultiCheckboxField = ({
@@ -51741,9 +51752,9 @@ var WfoMultiCheckboxField = ({
51741
51752
  };
51742
51753
  setCheckboxIdToSelectedMap(getInitialMap());
51743
51754
  }, [value]);
51744
- const [checkboxIdToSelectedMap, setCheckboxIdToSelectedMap] = useState44({});
51755
+ const [checkboxIdToSelectedMap, setCheckboxIdToSelectedMap] = useState45({});
51745
51756
  const { options, id } = pydanticFormField;
51746
- const checkboxes = options.map((option, index) => ({
51757
+ const checkboxes = options?.map((option, index) => ({
51747
51758
  label: option.label,
51748
51759
  id: option.value,
51749
51760
  "data-test-id": `${id}-${index}`
@@ -51764,7 +51775,7 @@ var WfoMultiCheckboxField = ({
51764
51775
  return /* @__PURE__ */ jsx219(
51765
51776
  EuiCheckboxGroup,
51766
51777
  {
51767
- options: checkboxes,
51778
+ options: checkboxes || [],
51768
51779
  idToSelectedMap: checkboxIdToSelectedMap,
51769
51780
  onChange: (id2) => handleCheckboxChange(id2),
51770
51781
  "data-testid": id
@@ -51877,7 +51888,7 @@ var useWfoPydanticFormConfig = () => {
51877
51888
  isControlledElement: true
51878
51889
  },
51879
51890
  matcher(field) {
51880
- return field.type === PydanticFormFieldType.STRING && Array.isArray(field.options) && field.options.length > 0;
51891
+ return field.type === PydanticFormFieldType.STRING && _4.isArray(field.options) && field.options.length > 0;
51881
51892
  }
51882
51893
  },
51883
51894
  {
@@ -51898,7 +51909,7 @@ var useWfoPydanticFormConfig = () => {
51898
51909
  isControlledElement: true
51899
51910
  },
51900
51911
  matcher(field) {
51901
- return field.type === PydanticFormFieldType.ARRAY && field.options?.length > 0 && field.options?.length <= 5;
51912
+ return field.type === PydanticFormFieldType.ARRAY && _4.isArray(field.options) && field.options?.length > 0 && field.options?.length <= 5;
51902
51913
  },
51903
51914
  validator: zodValidationPresets.multiSelect
51904
51915
  },
@@ -52046,7 +52057,7 @@ var WfoPydanticForm = ({
52046
52057
  };
52047
52058
 
52048
52059
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
52049
- import React72, { useState as useState46 } from "react";
52060
+ import React72, { useState as useState47 } from "react";
52050
52061
  import { useTranslations as useTranslations64 } from "next-intl";
52051
52062
  import {
52052
52063
  EuiButton as EuiButton13,
@@ -52057,7 +52068,7 @@ import {
52057
52068
  } from "@elastic/eui";
52058
52069
 
52059
52070
  // src/components/WfoWorkflowSteps/WfoStep/WfoStepFormOld.tsx
52060
- import { useState as useState45 } from "react";
52071
+ import { useState as useState46 } from "react";
52061
52072
  import { EuiFlexItem as EuiFlexItem25 } from "@elastic/eui";
52062
52073
  import { jsx as jsx221 } from "@emotion/react/jsx-runtime";
52063
52074
  var WfoStepFormOld = ({
@@ -52066,8 +52077,8 @@ var WfoStepFormOld = ({
52066
52077
  processId,
52067
52078
  userPermissions
52068
52079
  }) => {
52069
- const [isProcessing, setIsProcessing] = useState45(false);
52070
- const [hasError, setHasError] = useState45(false);
52080
+ const [isProcessing, setIsProcessing] = useState46(false);
52081
+ const [hasError, setHasError] = useState46(false);
52071
52082
  const { theme } = useOrchestratorTheme();
52072
52083
  const [resumeProcess] = useResumeProcessMutation();
52073
52084
  const submitForm = (processInput) => {
@@ -52457,7 +52468,7 @@ var WfoStep = React72.forwardRef(
52457
52468
  userPermissions
52458
52469
  }, ref) => {
52459
52470
  const { isExpanded, step, userInputForm } = stepListItem;
52460
- const [tableView, setTableView] = useState46(false);
52471
+ const [tableView, setTableView] = useState47(false);
52461
52472
  const { theme } = useOrchestratorTheme();
52462
52473
  const {
52463
52474
  stepEmailContainerStyle,
@@ -52697,12 +52708,12 @@ var WfoStepList = React73.forwardRef(
52697
52708
  WfoStepList.displayName = "WfoStepList";
52698
52709
 
52699
52710
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
52700
- import React75, { useEffect as useEffect33, useState as useState48 } from "react";
52711
+ import React75, { useEffect as useEffect33, useState as useState49 } from "react";
52701
52712
  import { useTranslations as useTranslations67 } from "next-intl";
52702
52713
 
52703
52714
  // src/components/WfoDiff/WfoDiff.tsx
52704
52715
  var refractor = __toESM(require_refractor(), 1);
52705
- import { useCallback as useCallback8, useEffect as useEffect32, useMemo as useMemo6, useState as useState47 } from "react";
52716
+ import { useCallback as useCallback8, useEffect as useEffect32, useMemo as useMemo6, useState as useState48 } from "react";
52706
52717
  import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
52707
52718
  import "react-diff-view/style/index.css";
52708
52719
  import { useTranslations as useTranslations65 } from "next-intl";
@@ -52759,10 +52770,10 @@ var SMALL_CONTEXT = 3;
52759
52770
  var FULL_CONTEXT = 1e6;
52760
52771
  var WfoDiff = ({ oldText, newText, syntax }) => {
52761
52772
  const t = useTranslations65("processes.delta");
52762
- const [showSplit, setShowSplit] = useState47(true);
52763
- const [showFull, setShowFull] = useState47(false);
52773
+ const [showSplit, setShowSplit] = useState48(true);
52774
+ const [showFull, setShowFull] = useState48(false);
52764
52775
  const { diffStyle } = useWithOrchestratorTheme(getWfoDiffStyles);
52765
- const [{ type, hunks }, setDiff] = useState47({
52776
+ const [{ type, hunks }, setDiff] = useState48({
52766
52777
  type: "modify",
52767
52778
  hunks: []
52768
52779
  });
@@ -52895,16 +52906,16 @@ var WfoWorkflowStepList = React75.forwardRef(
52895
52906
  userInputForm,
52896
52907
  userPermissions
52897
52908
  }, reference) => {
52898
- const [showHiddenKeys, setShowHiddenKeys] = useState48(false);
52899
- const [showRaw, setShowRaw] = useState48(false);
52900
- const [showDelta, setShowDelta] = useState48(false);
52901
- const [showTraceback, setShowTraceback] = useState48(false);
52909
+ const [showHiddenKeys, setShowHiddenKeys] = useState49(false);
52910
+ const [showRaw, setShowRaw] = useState49(false);
52911
+ const [showDelta, setShowDelta] = useState49(false);
52912
+ const [showTraceback, setShowTraceback] = useState49(false);
52902
52913
  const t = useTranslations67("processes.steps");
52903
52914
  const initialStepListItems = steps.map((step) => ({
52904
52915
  step,
52905
52916
  isExpanded: false
52906
52917
  }));
52907
- const [stepListItems, setStepListItems] = useState48(initialStepListItems);
52918
+ const [stepListItems, setStepListItems] = useState49(initialStepListItems);
52908
52919
  const persistStepListItemState = (previousStepListItems, updatedSteps, userInputForm2) => {
52909
52920
  const reversedSteps = [...updatedSteps].reverse();
52910
52921
  const lastStepWithSuspendStatusStepId = reversedSteps.find(
@@ -53000,7 +53011,7 @@ var WfoWorkflowStepList = React75.forwardRef(
53000
53011
  WfoWorkflowStepList.displayName = "WfoWorkflowStepList";
53001
53012
 
53002
53013
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoStepListHeader.tsx
53003
- import { useState as useState49 } from "react";
53014
+ import { useState as useState50 } from "react";
53004
53015
  import { useTranslations as useTranslations68 } from "next-intl";
53005
53016
  import {
53006
53017
  EuiButton as EuiButton14,
@@ -53063,7 +53074,7 @@ var WfoStepListHeader = ({
53063
53074
  stepListContentBoldTextStyle,
53064
53075
  stepListOptionsContainerStyle
53065
53076
  } = useWithOrchestratorTheme(getWorkflowStepsStyles);
53066
- const [isViewOptionOpen, setIsViewOptionOpen] = useState49(false);
53077
+ const [isViewOptionOpen, setIsViewOptionOpen] = useState50(false);
53067
53078
  const onViewOptionClick = () => setIsViewOptionOpen((isViewOptionOpen2) => !isViewOptionOpen2);
53068
53079
  const closeViewOption = () => setIsViewOptionOpen(false);
53069
53080
  const viewOptionButton = /* @__PURE__ */ jsx231(
@@ -53183,9 +53194,9 @@ var WfoStartProcessPage = ({
53183
53194
  }) => {
53184
53195
  const t = useTranslations69("processes.steps");
53185
53196
  const router = useRouter10();
53186
- const [hasError, setHasError] = useState50(false);
53197
+ const [hasError, setHasError] = useState51(false);
53187
53198
  const { theme } = useOrchestratorTheme();
53188
- const [form, setForm] = useState50({});
53199
+ const [form, setForm] = useState51({});
53189
53200
  const { productId, subscriptionId } = router.query;
53190
53201
  const {
53191
53202
  data: subscriptionDetail,
@@ -53603,14 +53614,14 @@ var WfoSubscriptionDetailPage = () => {
53603
53614
  };
53604
53615
 
53605
53616
  // src/pages/subscriptions/WfoSubscriptionsListPage.tsx
53606
- import { useEffect as useEffect35, useState as useState51 } from "react";
53617
+ import { useEffect as useEffect35, useState as useState52 } from "react";
53607
53618
  import { useTranslations as useTranslations74 } from "next-intl";
53608
53619
  import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
53609
53620
  import { EuiSpacer as EuiSpacer23 } from "@elastic/eui";
53610
53621
  import { Fragment as Fragment58, jsx as jsx238, jsxs as jsxs127 } from "@emotion/react/jsx-runtime";
53611
53622
  var WfoSubscriptionsListPage = () => {
53612
53623
  const t = useTranslations74("subscriptions.detail");
53613
- const [tableDefaults, setTableDefaults] = useState51();
53624
+ const [tableDefaults, setTableDefaults] = useState52();
53614
53625
  const getStoredTableConfig = useStoredTableConfig(
53615
53626
  SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
53616
53627
  );
@@ -53675,7 +53686,7 @@ var WfoSubscriptionsListPage = () => {
53675
53686
  };
53676
53687
 
53677
53688
  // src/pages/tasks/WfoTasksListPage.tsx
53678
- import { useContext as useContext11, useEffect as useEffect36, useState as useState52 } from "react";
53689
+ import { useContext as useContext11, useEffect as useEffect36, useState as useState53 } from "react";
53679
53690
  import { useTranslations as useTranslations75 } from "next-intl";
53680
53691
  import Link11 from "next/link";
53681
53692
  import { useRouter as useRouter12 } from "next/router";
@@ -53753,7 +53764,7 @@ var WfoTasksListPage = () => {
53753
53764
  "activeTab",
53754
53765
  withDefault5(StringParam5, "ACTIVE" /* ACTIVE */)
53755
53766
  );
53756
- const [tableDefaults, setTableDefaults] = useState52();
53767
+ const [tableDefaults, setTableDefaults] = useState53();
53757
53768
  const selectedTasksListTab = getTasksListTabTypeFromString(activeTab);
53758
53769
  const localStorageKey = selectedTasksListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_TASKS_LIST_TABLE_LOCAL_STORAGE_KEY;
53759
53770
  const getStoredTableConfig = useStoredTableConfig(localStorageKey);
@@ -53862,7 +53873,7 @@ var WfoTasksListPage = () => {
53862
53873
  };
53863
53874
 
53864
53875
  // src/pages/workflows/WfoWorkflowsListPage.tsx
53865
- import { useEffect as useEffect37, useState as useState53 } from "react";
53876
+ import { useEffect as useEffect37, useState as useState54 } from "react";
53866
53877
  import { useTranslations as useTranslations76 } from "next-intl";
53867
53878
  import { useRouter as useRouter13 } from "next/router";
53868
53879
  import { StringParam as StringParam6, useQueryParam as useQueryParam5, withDefault as withDefault6 } from "use-query-params";
@@ -53939,7 +53950,7 @@ var WfoWorkflowsListPage = () => {
53939
53950
  "activeTab",
53940
53951
  withDefault6(StringParam6, "ACTIVE" /* ACTIVE */)
53941
53952
  );
53942
- const [tableDefaults, setTableDefaults] = useState53();
53953
+ const [tableDefaults, setTableDefaults] = useState54();
53943
53954
  const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
53944
53955
  const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
53945
53956
  const getStoredTableConfig = useStoredTableConfig(localStorageKey);
@@ -54325,7 +54336,7 @@ var WfoJsonCodeBlock = ({
54325
54336
  };
54326
54337
 
54327
54338
  // src/components/WfoSettings/WfoFlushSettings.tsx
54328
- import { useState as useState54 } from "react";
54339
+ import { useState as useState55 } from "react";
54329
54340
  import { useTranslations as useTranslations78 } from "next-intl";
54330
54341
  import {
54331
54342
  EuiButton as EuiButton17,
@@ -54367,7 +54378,7 @@ var WfoFlushSettings = () => {
54367
54378
  );
54368
54379
  const [clearCache] = useClearCacheMutation();
54369
54380
  const t = useTranslations78("settings.page");
54370
- const [selectedOptions, setSelected] = useState54(
54381
+ const [selectedOptions, setSelected] = useState55(
54371
54382
  []
54372
54383
  );
54373
54384
  const { showToastMessage } = useShowToastMessage();
@@ -55653,7 +55664,7 @@ var WfoTitleWithWebsocketBadge = ({
55653
55664
  };
55654
55665
 
55655
55666
  // src/components/WfoRadioDropdown/WfoRadioDropdown.tsx
55656
- import { useState as useState55 } from "react";
55667
+ import { useState as useState56 } from "react";
55657
55668
  import {
55658
55669
  EuiButtonEmpty as EuiButtonEmpty5,
55659
55670
  EuiFlexGroup as EuiFlexGroup32,
@@ -55666,7 +55677,7 @@ var WfoRadioDropdown = ({
55666
55677
  onUpdateOption,
55667
55678
  selectedOption
55668
55679
  }) => {
55669
- const [isOpen, setIsOpen] = useState55(false);
55680
+ const [isOpen, setIsOpen] = useState56(false);
55670
55681
  const handleClose = () => {
55671
55682
  if (isOpen) {
55672
55683
  setIsOpen(false);