@lumerahq/ui 0.6.0 → 0.6.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.
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import React__default, { forwardRef, createElement, useState, useLayoutEffect, useCallback } from "react";
4
- import { b as automationStatuses, n as getAutomationRunFileDownloadUrl, v as listAutomationRunFiles } from "./automations-CNgQ5MSR.js";
4
+ import { b as automationStatuses, n as getAutomationRunFileDownloadUrl, v as listAutomationRunFiles } from "./automations-Cooyxu8b.js";
5
5
  import { p as clsx, o as cn, a as formatCellValue } from "./formatters-Baj7FkeG.js";
6
- import { u as useAutomationRun } from "./use-automation-run-BRbDkOJ2.js";
6
+ import { u as useAutomationRun } from "./use-automation-run-BViXpbNQ.js";
7
7
  import * as ReactDOM from "react-dom";
8
8
  const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
9
9
  const toCamelCase = (string) => string.replace(
@@ -1,4 +1,4 @@
1
- import { p as parentApiRequest, B as BridgeError } from "./automations-CNgQ5MSR.js";
1
+ import { p as parentApiRequest, B as BridgeError } from "./automations-Cooyxu8b.js";
2
2
  const API_PREFIX = "/api";
3
3
  const buildUrl = (path) => {
4
4
  const normalized = path.startsWith("/") ? path : `/${path}`;
@@ -44,7 +44,7 @@ const isAllowedOrigin = (origin) => {
44
44
  return false;
45
45
  };
46
46
  const PLAYGROUND_FLAG = "__playground__";
47
- const isPlaygroundMode = () => typeof window !== "undefined" && isEmbedded() && window.name.includes(PLAYGROUND_FLAG);
47
+ const isPlaygroundMode = () => typeof window !== "undefined" && window.self !== window.top && window.name.includes(PLAYGROUND_FLAG);
48
48
  if (typeof window !== "undefined" && isPlaygroundMode()) {
49
49
  window.__playgroundNative = true;
50
50
  }
@@ -1,4 +1,4 @@
1
- import { A, a, D, b, c, R } from "../RecordSheet-BpCHkWER.js";
1
+ import { A, a, D, b, c, R } from "../RecordSheet-_f7coZvu.js";
2
2
  export {
3
3
  A as AutomationRunList,
4
4
  a as AutomationRunner,
@@ -1,5 +1,5 @@
1
- import { u, a, b, c, d, e } from "../use-sql-table-ScNnE-jh.js";
2
- import { u as u2 } from "../use-automation-run-BRbDkOJ2.js";
1
+ import { u, a, b, c, d, e } from "../use-sql-table-DTWXek_R.js";
2
+ import { u as u2 } from "../use-automation-run-BViXpbNQ.js";
3
3
  export {
4
4
  u as useAutomationAgent,
5
5
  u2 as useAutomationRun,
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { A, a, D, b, c, R } from "./RecordSheet-BpCHkWER.js";
2
- import { u, a as a2, b as b2, c as c2, d, e } from "./use-sql-table-ScNnE-jh.js";
3
- import { u as u2 } from "./use-automation-run-BRbDkOJ2.js";
4
- import { B, E, b as b3, c as c3, d as d2, e as e2, f, h, j, k, g, l, m, n, q, s, r, t, i, u as u3, v, w, x, y, o, p, z, A as A2, a as a3 } from "./automations-CNgQ5MSR.js";
5
- import { g as g2, a as a4, p as p2, b as b4, c as c4, d as d3, e as e3, f as f2, h as h2, i as i2, j as j2, k as k2, l as l2, s as s2, u as u4 } from "./api-C2z38WwO.js";
1
+ import { A, a, D, b, c, R } from "./RecordSheet-_f7coZvu.js";
2
+ import { u, a as a2, b as b2, c as c2, d, e } from "./use-sql-table-DTWXek_R.js";
3
+ import { u as u2 } from "./use-automation-run-BViXpbNQ.js";
4
+ import { B, E, b as b3, c as c3, d as d2, e as e2, f, h, j, k, g, l, m, n, q, s, r, t, i, u as u3, v, w, x, y, o, p, z, A as A2, a as a3 } from "./automations-Cooyxu8b.js";
5
+ import { g as g2, a as a4, p as p2, b as b4, c as c4, d as d3, e as e3, f as f2, h as h2, i as i2, j as j2, k as k2, l as l2, s as s2, u as u4 } from "./api-B2V4ej-2.js";
6
6
  import { o as o2, f as f3, a as a5, b as b5, c as c5, d as d4, e as e4, g as g3, h as h3, i as i3, j as j3, k as k3, l as l3, m as m2, n as n2, s as s3 } from "./formatters-Baj7FkeG.js";
7
7
  import { q as q2 } from "./query-client-DdOWay4_.js";
8
8
  export {
package/dist/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { B, E, b, c, d, e, f, h, j, k, g, l, m, n, q, s, r, t, i, u, v, w, x, y, o, p, z, A, a } from "../automations-CNgQ5MSR.js";
2
- import { g as g2, a as a2, p as p2, b as b2, c as c2, d as d2, e as e2, f as f2, h as h2, i as i2, j as j2, k as k2, l as l2, s as s2, u as u2 } from "../api-C2z38WwO.js";
1
+ import { B, E, b, c, d, e, f, h, j, k, g, l, m, n, q, s, r, t, i, u, v, w, x, y, o, p, z, A, a } from "../automations-Cooyxu8b.js";
2
+ import { g as g2, a as a2, p as p2, b as b2, c as c2, d as d2, e as e2, f as f2, h as h2, i as i2, j as j2, k as k2, l as l2, s as s2, u as u2 } from "../api-B2V4ej-2.js";
3
3
  import { o as o2, f as f3, a as a3, b as b3, c as c3, d as d3, e as e3, g as g3, h as h3, i as i3, j as j3, k as k3, l as l3, m as m2, n as n2, s as s3 } from "../formatters-Baj7FkeG.js";
4
4
  import { q as q2 } from "../query-client-DdOWay4_.js";
5
5
  export {
@@ -1,6 +1,6 @@
1
1
  import { useQueryClient, useMutation, useQuery } from "@tanstack/react-query";
2
2
  import { useState, useRef, useEffect, useCallback } from "react";
3
- import { j as ensureAutomationRun, f as createAutomationRun, c as cancelAutomationRun, b as automationStatuses, m as getAutomationRun } from "./automations-CNgQ5MSR.js";
3
+ import { j as ensureAutomationRun, f as createAutomationRun, c as cancelAutomationRun, b as automationStatuses, m as getAutomationRun } from "./automations-Cooyxu8b.js";
4
4
  function useAutomationRun(options) {
5
5
  const {
6
6
  agentId,
@@ -1,7 +1,7 @@
1
1
  import { useQueryClient, useQuery, useMutation } from "@tanstack/react-query";
2
2
  import { useState, useCallback, useEffect, useMemo } from "react";
3
- import { x as listRunsByAgent, b as automationStatuses, f as createAutomationRun, o as onInitMessage } from "./automations-CNgQ5MSR.js";
4
- import { u as uploadFile, i as pbSql, k as pbUpdateRecord } from "./api-C2z38WwO.js";
3
+ import { x as listRunsByAgent, b as automationStatuses, f as createAutomationRun, o as onInitMessage } from "./automations-Cooyxu8b.js";
4
+ import { u as uploadFile, i as pbSql, k as pbUpdateRecord } from "./api-B2V4ej-2.js";
5
5
  function useAutomationAgent({
6
6
  agentId,
7
7
  limit = 5,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumerahq/ui",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "*.css"