@mittwald/flow-remote-react-components 0.2.0-alpha.24 → 0.2.0-alpha.26

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.
Files changed (31) hide show
  1. package/dist/RemoteRoot.js +18 -0
  2. package/dist/RemoteRootClient-gF082tDB.js +140 -0
  3. package/dist/{TooltipTrigger-DHDtUXue.js → TooltipTrigger-By3lrawI.js} +257 -243
  4. package/dist/index.js +93 -89
  5. package/dist/types/auto-generated/ContextMenuContent.d.ts +4 -0
  6. package/dist/types/auto-generated/ContextMenuContent.d.ts.map +1 -0
  7. package/dist/types/auto-generated/ListItemViewContent.d.ts +4 -0
  8. package/dist/types/auto-generated/ListItemViewContent.d.ts.map +1 -0
  9. package/dist/types/auto-generated/MenuTrigger.d.ts +4 -0
  10. package/dist/types/auto-generated/MenuTrigger.d.ts.map +1 -0
  11. package/dist/types/auto-generated/index.d.ts +3 -2
  12. package/dist/types/auto-generated/index.d.ts.map +1 -1
  13. package/dist/types/components/List.d.ts +1 -1
  14. package/dist/types/components/List.d.ts.map +1 -1
  15. package/dist/types/components/RemoteRoot.d.ts +5 -0
  16. package/dist/types/components/RemoteRoot.d.ts.map +1 -0
  17. package/dist/types/components/RemoteRootClient.d.ts +7 -0
  18. package/dist/types/components/RemoteRootClient.d.ts.map +1 -0
  19. package/dist/types/components/index.d.ts +2 -1
  20. package/dist/types/components/index.d.ts.map +1 -1
  21. package/package.json +9 -9
  22. package/dist/Root.js +0 -18
  23. package/dist/RootClient-CrUg60ey.js +0 -139
  24. package/dist/types/auto-generated/ContextMenu.d.ts +0 -4
  25. package/dist/types/auto-generated/ContextMenu.d.ts.map +0 -1
  26. package/dist/types/auto-generated/ContextMenuTrigger.d.ts +0 -4
  27. package/dist/types/auto-generated/ContextMenuTrigger.d.ts.map +0 -1
  28. package/dist/types/components/Root.d.ts +0 -5
  29. package/dist/types/components/Root.d.ts.map +0 -1
  30. package/dist/types/components/RootClient.d.ts +0 -7
  31. package/dist/types/components/RootClient.d.ts.map +0 -1
@@ -0,0 +1,18 @@
1
+ "use client"
2
+ /* */
3
+ "use client";
4
+ import { jsx as o } from "react/jsx-runtime";
5
+ import n, { useState as u, useEffect as r, Suspense as c } from "react";
6
+ const i = () => {
7
+ const [t, e] = u(!1);
8
+ return r(() => {
9
+ e(!0);
10
+ }, []), t;
11
+ }, l = n.lazy(() => import("./RemoteRootClient-gF082tDB.js")), f = (t) => {
12
+ const { children: e, ...s } = t;
13
+ return i() ? /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(l, { ...s, children: e }) }) : null;
14
+ };
15
+ export {
16
+ f as RemoteRoot,
17
+ f as default
18
+ };
@@ -0,0 +1,140 @@
1
+ "use client"
2
+ /* */
3
+ "use client";
4
+ import { jsx as e } from "react/jsx-runtime";
5
+ import i from "react";
6
+ import { connectHostIframeRef as n } from "@mittwald/flow-remote-core";
7
+ import { ViewComponentContextProvider as l } from "@mittwald/flow-react-components/internal";
8
+ import { A as c, a as d, b as m, c as u, d as g, e as p, f as C, B as T, g as b, h, C as w, i as f, j as v, k as x, l as S, m as L, n as y, o as B, p as F, q as R, r as I, s as k, t as P, D as A, u as M, v as H, w as D, F as G, x as N, y as O, z as j, E as V, G as _, H as z, I as E, J as U, K as q, L as J, M as K, N as Q, O as W, P as X, Q as Y, R as Z, S as $, T as aa, U as ea, V as sa, W as ta, X as oa, Y as ra, Z as ia, _ as na, $ as la, a0 as ca, a1 as da, a2 as ma, a3 as ua, a4 as ga, a5 as pa, a6 as Ca, a7 as Ta, a8 as ba, a9 as ha, aa as wa, ab as fa, ac as va, ad as xa, ae as Sa, af as La, ag as ya, ah as Ba, ai as Fa, aj as Ra, ak as Ia, al as ka, am as Pa, an as Aa, ao as Ma, ap as Ha, aq as Da, ar as Ga, as as Na, at as Oa, au as ja, av as Va, aw as _a, ax as za, ay as Ea, az as Ua, aA as qa, aB as Ja, aC as Ka, aD as Qa, aE as Wa } from "./TooltipTrigger-By3lrawI.js";
9
+ const Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
+ __proto__: null,
11
+ Accordion: c,
12
+ ActionGroup: d,
13
+ Alert: m,
14
+ AlertBadge: u,
15
+ AlertIcon: g,
16
+ Align: p,
17
+ Avatar: C,
18
+ Badge: T,
19
+ Breadcrumb: b,
20
+ Button: h,
21
+ Checkbox: w,
22
+ CheckboxButton: f,
23
+ CheckboxGroup: v,
24
+ CodeBlock: x,
25
+ ColumnLayout: S,
26
+ Content: L,
27
+ ContextMenuContent: y,
28
+ ContextMenuSection: B,
29
+ ContextualHelp: F,
30
+ ContextualHelpTrigger: R,
31
+ CopyButton: I,
32
+ CounterBadge: k,
33
+ CountryOptions: P,
34
+ DatePicker: A,
35
+ DateRangePicker: M,
36
+ DialogTrigger: H,
37
+ Div: D,
38
+ FieldDescription: G,
39
+ FieldError: N,
40
+ FileCard: O,
41
+ FileCardList: j,
42
+ FileField: V,
43
+ Fragment: _,
44
+ Header: z,
45
+ HeaderNavigation: E,
46
+ Heading: U,
47
+ Icon: q,
48
+ IllustratedMessage: J,
49
+ Image: K,
50
+ Initials: Q,
51
+ InlineCode: W,
52
+ ItemsGridList: X,
53
+ ItemsGridListItem: Y,
54
+ Label: Z,
55
+ LabeledValue: $,
56
+ LayoutCard: aa,
57
+ LightBox: ea,
58
+ LightBoxTrigger: sa,
59
+ Link: ta,
60
+ ListEmptyView: oa,
61
+ ListItemViewContent: ra,
62
+ ListSummary: ia,
63
+ LoadingSpinner: na,
64
+ Markdown: la,
65
+ MenuItem: ca,
66
+ MenuTrigger: da,
67
+ Message: ma,
68
+ Navigation: ua,
69
+ NavigationGroup: ga,
70
+ Notification: pa,
71
+ NotificationProvider: Ca,
72
+ NumberField: Ta,
73
+ Option: ba,
74
+ OverlayContent: ha,
75
+ PopoverContent: wa,
76
+ ProgressBar: fa,
77
+ Radio: va,
78
+ RadioButton: xa,
79
+ RadioGroup: Sa,
80
+ SearchField: La,
81
+ Section: ya,
82
+ Segment: Ba,
83
+ SegmentedControl: Fa,
84
+ Select: Ra,
85
+ Separator: Ia,
86
+ Skeleton: ka,
87
+ SkeletonText: Pa,
88
+ Slider: Aa,
89
+ Switch: Ma,
90
+ Tab: Ha,
91
+ TabTitle: Da,
92
+ Table: Ga,
93
+ TableBody: Na,
94
+ TableCell: Oa,
95
+ TableColumn: ja,
96
+ TableFooterRow: Va,
97
+ TableHeader: _a,
98
+ TableRow: za,
99
+ Tabs: Ea,
100
+ Text: Ua,
101
+ TextArea: qa,
102
+ TextField: Ja,
103
+ TimeField: Ka,
104
+ Tooltip: Qa,
105
+ TooltipTrigger: Wa
106
+ }, Symbol.toStringTag, { value: "Module" })), Ya = () => null, Za = i.lazy(async () => {
107
+ try {
108
+ return await import("@mittwald/flow-remote-react-renderer/RemoteRenderer");
109
+ } catch {
110
+ return { default: Ya };
111
+ }
112
+ }), $a = () => {
113
+ const a = new URL(document.location.href);
114
+ return a.searchParams.set("preview", ""), /* @__PURE__ */ e(Za, { src: a.toString() });
115
+ }, ie = (a) => {
116
+ const { children: s, showPreview: t = !1 } = a, o = new URLSearchParams(document.location.search).has("preview"), r = /* @__PURE__ */ e(
117
+ "div",
118
+ {
119
+ ref: n,
120
+ style: {
121
+ height: 0,
122
+ width: 0,
123
+ left: -9999,
124
+ position: "absolute"
125
+ },
126
+ children: /* @__PURE__ */ e(
127
+ l,
128
+ {
129
+ components: Xa,
130
+ children: s
131
+ }
132
+ )
133
+ }
134
+ );
135
+ return o || !t ? r : /* @__PURE__ */ e($a, {});
136
+ };
137
+ export {
138
+ ie as RemoteRootClient,
139
+ ie as default
140
+ };