@lumerahq/ui 0.5.2 → 0.5.3

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
- import { p as parentApiRequest, B as BridgeError } from "./automations-DU4weMpK.js";
1
+ import { p as parentApiRequest, B as BridgeError } from "./automations-DyftlW4p.js";
2
2
  const API_PREFIX = "/api";
3
3
  const buildUrl = (path) => {
4
4
  const normalized = path.startsWith("/") ? path : `/${path}`;
@@ -13,6 +13,10 @@ class BridgeError extends Error {
13
13
  const pendingRequests = /* @__PURE__ */ new Map();
14
14
  const initListeners = /* @__PURE__ */ new Set();
15
15
  let listenerAttached = false;
16
+ let storedHostPayload;
17
+ function getAppProjectExternalId() {
18
+ return storedHostPayload?.app?.projectExternalId;
19
+ }
16
20
  const log = (...args) => {
17
21
  };
18
22
  const generateId = () => {
@@ -52,6 +56,7 @@ const handleMessage = (event) => {
52
56
  }
53
57
  const { type, payload } = event.data ?? {};
54
58
  if (type === "init") {
59
+ storedHostPayload = payload;
55
60
  initListeners.forEach((listener) => listener(payload));
56
61
  return;
57
62
  }
@@ -104,7 +109,7 @@ const parentApiRequest = async (request2) => {
104
109
  id,
105
110
  method: request2.method,
106
111
  url: request2.url,
107
- headers: request2.headers,
112
+ headers: { "X-Lumera-Client": "lumera-custom-app", ...request2.headers },
108
113
  body: request2.body,
109
114
  isBase64: request2.isBase64
110
115
  }
@@ -179,6 +184,10 @@ async function resolveAutomationId(automationId) {
179
184
  if (automationId.includes(":")) {
180
185
  return getAutomationByExternalId(automationId);
181
186
  }
187
+ const projectExternalId = getAppProjectExternalId();
188
+ if (projectExternalId) {
189
+ return getAutomationByExternalId(`${projectExternalId}:${automationId}`);
190
+ }
182
191
  return automationId;
183
192
  }
184
193
  async function createRun(options) {
@@ -338,6 +347,7 @@ async function listRunsByExternalId(params) {
338
347
  });
339
348
  }
340
349
  export {
350
+ pollRun as A,
341
351
  BridgeError as B,
342
352
  EXPECTED_PARENT_ORIGIN as E,
343
353
  postReadyMessage as a,
@@ -346,24 +356,24 @@ export {
346
356
  cancelRun as d,
347
357
  clearAutomationCache as e,
348
358
  createAutomationRun as f,
349
- createRun as g,
350
- ensureAutomationRun as h,
359
+ getAppProjectExternalId as g,
360
+ createRun as h,
351
361
  isEmbedded as i,
352
- ensureRun as j,
353
- getAutomationByExternalId as k,
354
- getAutomationRun as l,
355
- getAutomationRunFileDownloadUrl as m,
356
- getRun as n,
362
+ ensureAutomationRun as j,
363
+ ensureRun as k,
364
+ getAutomationByExternalId as l,
365
+ getAutomationRun as m,
366
+ getAutomationRunFileDownloadUrl as n,
357
367
  onInitMessage as o,
358
368
  parentApiRequest as p,
359
- getRunFiles as q,
360
- getRunFileUrl as r,
361
- isActiveStatus as s,
362
- isTerminalStatus as t,
363
- listAutomationRunFiles as u,
364
- listRuns as v,
365
- listRunsByAgent as w,
366
- listRunsByExternalId as x,
367
- pollAutomationRun as y,
368
- pollRun as z
369
+ getRun as q,
370
+ getRunFiles as r,
371
+ getRunFileUrl as s,
372
+ isActiveStatus as t,
373
+ isTerminalStatus as u,
374
+ listAutomationRunFiles as v,
375
+ listRuns as w,
376
+ listRunsByAgent as x,
377
+ listRunsByExternalId as y,
378
+ pollAutomationRun as z
369
379
  };
@@ -1,4 +1,4 @@
1
- import { A, a, d, e, f, B, h, C, j, k, l, m, n, o, Q, D, b, c, p, q, r, s, t, u, v, w, T, F, I, L, P, R, S, x, y, z, E, G, H, J, K, M, N, O, U, W, X, Y, Z, $, a0, a1, a2, a3, g, i, V, _ } from "../tooltip-BMqvkb5u.js";
1
+ import { A, a, d, e, f, B, h, C, j, k, l, m, n, o, Q, D, b, c, p, q, r, s, t, u, v, w, T, F, I, L, P, R, S, x, y, z, E, G, H, J, K, M, N, O, U, W, X, Y, Z, $, a0, a1, a2, a3, g, i, V, _ } from "../tooltip-CUAsXGVI.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-DuIu8eMY.js";
2
- import { u as u2 } from "../use-automation-run-CbhXCKvM.js";
1
+ import { u, a, b, c, d, e } from "../use-sql-table-hQjcbpJ_.js";
2
+ import { u as u2 } from "../use-automation-run-CdOYDvAW.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, e, f, B, h, C, j, k, l, m, n, o, Q, D, b, c, p, q, r, s, t, u, v, w, T, F, I, L, P, R, S, x, y, z, E, G, H, J, K, M, N, O, U, W, X, Y, Z, $, a0, a1, a2, a3, g, i, V, _ } from "./tooltip-BMqvkb5u.js";
2
- import { u as u2, a as a4, b as b2, c as c2, d as d2, e as e2 } from "./use-sql-table-DuIu8eMY.js";
3
- import { u as u3 } from "./use-automation-run-CbhXCKvM.js";
4
- import { B as B2, E as E2, b as b3, c as c3, d as d3, e as e3, f as f2, g as g2, h as h2, j as j2, k as k2, l as l2, m as m2, n as n2, r as r2, q as q2, s as s2, i as i2, t as t2, u as u4, v as v2, w as w2, x as x2, o as o2, p as p2, y as y2, z as z2, a as a5 } from "./automations-DU4weMpK.js";
5
- import { g as g3, a as a6, p as p3, b as b4, c as c4, d as d4, e as e4, f as f3, h as h3, i as i3, j as j3, k as k3, l as l3, s as s3, u as u5 } from "./api-BNY_eNKa.js";
1
+ import { A, a, d, e, f, B, h, C, j, k, l, m, n, o, Q, D, b, c, p, q, r, s, t, u, v, w, T, F, I, L, P, R, S, x, y, z, E, G, H, J, K, M, N, O, U, W, X, Y, Z, $, a0, a1, a2, a3, g, i, V, _ } from "./tooltip-CUAsXGVI.js";
2
+ import { u as u2, a as a4, b as b2, c as c2, d as d2, e as e2 } from "./use-sql-table-hQjcbpJ_.js";
3
+ import { u as u3 } from "./use-automation-run-CdOYDvAW.js";
4
+ import { B as B2, E as E2, b as b3, c as c3, d as d3, e as e3, f as f2, h as h2, j as j2, k as k2, g as g2, l as l2, m as m2, n as n2, q as q2, s as s2, r as r2, t as t2, i as i2, u as u4, v as v2, w as w2, x as x2, y as y2, o as o2, p as p2, z as z2, A as A2, a as a5 } from "./automations-DyftlW4p.js";
5
+ import { g as g3, a as a6, p as p3, b as b4, c as c4, d as d4, e as e4, f as f3, h as h3, i as i3, j as j3, k as k3, l as l3, s as s3, u as u5 } from "./api-DQ27NWG9.js";
6
6
  import { o as o3, f as f4, a as a7, b as b5, c as c5, d as d5, e as e5, g as g4, h as h4, i as i4, j as j4, k as k4, l as l4, m as m3, n as n3, s as s4 } from "./formatters-Baj7FkeG.js";
7
7
  import { q as q3 } from "./query-client-DdOWay4_.js";
8
8
  export {
@@ -70,9 +70,9 @@ export {
70
70
  e3 as clearAutomationCache,
71
71
  o3 as cn,
72
72
  f2 as createAutomationRun,
73
- g2 as createRun,
74
- h2 as ensureAutomationRun,
75
- j2 as ensureRun,
73
+ h2 as createRun,
74
+ j2 as ensureAutomationRun,
75
+ k2 as ensureRun,
76
76
  f4 as formatBoolean,
77
77
  a7 as formatCellValue,
78
78
  b5 as formatCurrency,
@@ -87,21 +87,22 @@ export {
87
87
  l4 as formatRelation,
88
88
  m3 as formatSelect,
89
89
  n3 as formatText,
90
- k2 as getAutomationByExternalId,
91
- l2 as getAutomationRun,
92
- m2 as getAutomationRunFileDownloadUrl,
90
+ g2 as getAppProjectExternalId,
91
+ l2 as getAutomationByExternalId,
92
+ m2 as getAutomationRun,
93
+ n2 as getAutomationRunFileDownloadUrl,
93
94
  g3 as getDownloadUrl,
94
- n2 as getRun,
95
- r2 as getRunFileUrl,
96
- q2 as getRunFiles,
95
+ q2 as getRun,
96
+ s2 as getRunFileUrl,
97
+ r2 as getRunFiles,
97
98
  a6 as getUploadUrl,
98
- s2 as isActiveStatus,
99
+ t2 as isActiveStatus,
99
100
  i2 as isEmbedded,
100
- t2 as isTerminalStatus,
101
- u4 as listAutomationRunFiles,
102
- v2 as listRuns,
103
- w2 as listRunsByAgent,
104
- x2 as listRunsByExternalId,
101
+ u4 as isTerminalStatus,
102
+ v2 as listAutomationRunFiles,
103
+ w2 as listRuns,
104
+ x2 as listRunsByAgent,
105
+ y2 as listRunsByExternalId,
105
106
  o2 as onInitMessage,
106
107
  p2 as parentApiRequest,
107
108
  p3 as pbBulkDelete,
@@ -115,8 +116,8 @@ export {
115
116
  j3 as pbUpdate,
116
117
  k3 as pbUpdateRecord,
117
118
  l3 as pbUpsert,
118
- y2 as pollAutomationRun,
119
- z2 as pollRun,
119
+ z2 as pollAutomationRun,
120
+ A2 as pollRun,
120
121
  a5 as postReadyMessage,
121
122
  q3 as queryClient,
122
123
  s3 as sendEmail,
@@ -1 +1 @@
1
- {"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/lib/automations.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH,4BAA4B;AAC5B,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAQxH;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,gBAAgB,KAAG,OAA6C,CAAC;AAE1G;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,gBAAgB,KAAG,OAA2C,CAAC;AAEtG,4BAA4B;AAC5B,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,qBAAqB;AACrB,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;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gBAAU,CAAC;AAEzC,0CAA0C;AAC1C,eAAO,MAAM,sBAAsB,oBAAc,CAAC;AAElD,4CAA4C;AAC5C,eAAO,MAAM,+BAA+B,sBAAgB,CAAC;AAE7D,gEAAgE;AAChE,wBAAsB,eAAe,CAAC,MAAM,EAAE;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAM3B;AAED,8DAA8D;AAC9D,wBAAsB,oBAAoB,CAAC,MAAM,EAAE;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAM3B"}
@@ -30,6 +30,10 @@ export type HostPayload = {
30
30
  email: string;
31
31
  role?: string;
32
32
  };
33
+ app?: {
34
+ externalId?: string;
35
+ projectExternalId?: string;
36
+ };
33
37
  message?: string;
34
38
  session?: {
35
39
  token?: string;
@@ -75,6 +79,11 @@ export declare class BridgeError extends Error {
75
79
  readonly response?: BridgeResponse;
76
80
  constructor(message: string, status?: number, response?: BridgeResponse);
77
81
  }
82
+ /**
83
+ * Get the app context from the host init payload.
84
+ * Returns the project external ID (package.json name) if available.
85
+ */
86
+ export declare function getAppProjectExternalId(): string | undefined;
78
87
  /**
79
88
  * Check if the app is running embedded in an iframe.
80
89
  *
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/lib/bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAYH;;;GAGG;AACH,eAAO,MAAM,sBAAsB,KAC+E,CAAC;AAMnH;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,CAAC,EAAE,MAA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rF,CAAC"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module @lumerahq/ui/lib
5
5
  */
6
- export { BridgeError, type BridgeRequest, type BridgeResponse, EXPECTED_PARENT_ORIGIN, type HostPayload, isEmbedded, onInitMessage, parentApiRequest, postReadyMessage, } from './bridge';
6
+ export { BridgeError, type BridgeRequest, type BridgeResponse, EXPECTED_PARENT_ORIGIN, getAppProjectExternalId, type HostPayload, isEmbedded, onInitMessage, parentApiRequest, postReadyMessage, } from './bridge';
7
7
  export { type EmailSendRequest, type EmailSendResult, type FileDescriptor, getDownloadUrl, getUploadUrl, type PbBulkResult, type PbListOptions, type PbListResponse, type PbRecord, type PbSqlRequest, type PbSqlResponse, pbBulkDelete, pbBulkUpdate, pbCreate, pbDelete, pbGet, pbList, pbSearch, pbSql, pbUpdate, pbUpdateRecord, pbUpsert, sendEmail, type UploadOptions, type UploadUrlResponse, uploadFile, } from './api';
8
8
  export { type Automation, type AutomationRun, type AutomationRunFile, type AutomationStatus, automationStatuses, type CreateRunOptions, cancelAutomationRun, cancelRun, clearAutomationCache, createAutomationRun, createRun, ensureAutomationRun, ensureRun, getAutomationByExternalId, getAutomationRun, getAutomationRunFileDownloadUrl, getRun, getRunFiles, getRunFileUrl, isActiveStatus, isTerminalStatus, type LegacyCreateRunOptions, type ListRunsOptions, listAutomationRunFiles, listRuns, listRunsByAgent, listRunsByExternalId, type PollOptions, pollAutomationRun, pollRun, } from './automations';
9
9
  export { type ColumnType, type FileDescriptor as FormatterFileDescriptor, type FormatOptions, formatBoolean, formatCellValue, formatCurrency, formatDate, formatDateTime, formatEditor, formatFile, formatFileSize, formatJson, formatNumber, formatPercent, formatRelation, formatSelect, formatText, stripHtml, } from './formatters';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAEL,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,cAAc,EAEnB,sB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,EACpB,KAAK,WAAW,EAChB,iBAAiB,EACjB,OAAO,GACR,MAAM,eAAe,CAAC;AAMvB,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,IAAI,uBAAuB,EAC9C,KAAK,aAAa,EAClB,aAAa,EACb,eAAe,EACf,cAAc,EACd,UAAU,EACV,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,aAAa,EACb,cAAc,EACd,YAAY,EACZ,UAAU,EACV,SAAS,GACV,MAAM,cAAc,CAAC;AAMtB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAM7C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC"}
package/dist/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { B, E, b, c, d, e, f, g, h, j, k, l, m, n, r, q, s, i, t, u, v, w, x, o, p, y, z, a } from "../automations-DU4weMpK.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-BNY_eNKa.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-DyftlW4p.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-DQ27NWG9.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 {
@@ -11,9 +11,9 @@ export {
11
11
  e as clearAutomationCache,
12
12
  o2 as cn,
13
13
  f as createAutomationRun,
14
- g as createRun,
15
- h as ensureAutomationRun,
16
- j as ensureRun,
14
+ h as createRun,
15
+ j as ensureAutomationRun,
16
+ k as ensureRun,
17
17
  f3 as formatBoolean,
18
18
  a3 as formatCellValue,
19
19
  b3 as formatCurrency,
@@ -28,21 +28,22 @@ export {
28
28
  l3 as formatRelation,
29
29
  m2 as formatSelect,
30
30
  n2 as formatText,
31
- k as getAutomationByExternalId,
32
- l as getAutomationRun,
33
- m as getAutomationRunFileDownloadUrl,
31
+ g as getAppProjectExternalId,
32
+ l as getAutomationByExternalId,
33
+ m as getAutomationRun,
34
+ n as getAutomationRunFileDownloadUrl,
34
35
  g2 as getDownloadUrl,
35
- n as getRun,
36
- r as getRunFileUrl,
37
- q as getRunFiles,
36
+ q as getRun,
37
+ s as getRunFileUrl,
38
+ r as getRunFiles,
38
39
  a2 as getUploadUrl,
39
- s as isActiveStatus,
40
+ t as isActiveStatus,
40
41
  i as isEmbedded,
41
- t as isTerminalStatus,
42
- u as listAutomationRunFiles,
43
- v as listRuns,
44
- w as listRunsByAgent,
45
- x as listRunsByExternalId,
42
+ u as isTerminalStatus,
43
+ v as listAutomationRunFiles,
44
+ w as listRuns,
45
+ x as listRunsByAgent,
46
+ y as listRunsByExternalId,
46
47
  o as onInitMessage,
47
48
  p as parentApiRequest,
48
49
  p2 as pbBulkDelete,
@@ -56,8 +57,8 @@ export {
56
57
  j2 as pbUpdate,
57
58
  k2 as pbUpdateRecord,
58
59
  l2 as pbUpsert,
59
- y as pollAutomationRun,
60
- z as pollRun,
60
+ z as pollAutomationRun,
61
+ A as pollRun,
61
62
  a as postReadyMessage,
62
63
  q2 as queryClient,
63
64
  s2 as sendEmail,
@@ -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, m as getAutomationRunFileDownloadUrl, u as listAutomationRunFiles } from "./automations-DU4weMpK.js";
4
+ import { b as automationStatuses, n as getAutomationRunFileDownloadUrl, v as listAutomationRunFiles } from "./automations-DyftlW4p.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-CbhXCKvM.js";
6
+ import { u as useAutomationRun } from "./use-automation-run-CdOYDvAW.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,6 +1,6 @@
1
1
  import { useQueryClient, useMutation, useQuery } from "@tanstack/react-query";
2
2
  import { useState, useRef, useEffect, useCallback } from "react";
3
- import { h as ensureAutomationRun, f as createAutomationRun, c as cancelAutomationRun, b as automationStatuses, l as getAutomationRun } from "./automations-DU4weMpK.js";
3
+ import { j as ensureAutomationRun, f as createAutomationRun, c as cancelAutomationRun, b as automationStatuses, m as getAutomationRun } from "./automations-DyftlW4p.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 { w as listRunsByAgent, b as automationStatuses, f as createAutomationRun, o as onInitMessage } from "./automations-DU4weMpK.js";
4
- import { u as uploadFile, i as pbSql, k as pbUpdateRecord } from "./api-BNY_eNKa.js";
3
+ import { x as listRunsByAgent, b as automationStatuses, f as createAutomationRun, o as onInitMessage } from "./automations-DyftlW4p.js";
4
+ import { u as uploadFile, i as pbSql, k as pbUpdateRecord } from "./api-DQ27NWG9.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.5.2",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "*.css"