@mittwald/flow-remote-react-components 0.2.0-alpha.21 → 0.2.0-alpha.23

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/Root.js CHANGED
@@ -8,7 +8,7 @@ const c = () => {
8
8
  return r(() => {
9
9
  e(!0);
10
10
  }, []), t;
11
- }, i = n.lazy(() => import("./RootClient-DXJn1jzG.js")), f = (t) => {
11
+ }, i = n.lazy(() => import("./RootClient-YHqvaGZF.js")), f = (t) => {
12
12
  const { children: e, ...o } = t;
13
13
  return c() ? /* @__PURE__ */ s(i, { ...o, children: e }) : null;
14
14
  };
@@ -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 f, i as v, j as w, k as x, l as S, m as L, n as y, o as B, p as F, q as P, r as R, s as k, t as I, u as M, D as A, v as H, w as G, F as N, x as D, y as j, z as O, E as _, G as z, H as E, I as U, J as V, 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 fa, ab as va, ac as wa, ad as xa, ae as Sa, af as La, ag as ya, ah as Ba, ai as Fa, aj as Pa, ak as Ra, al as ka, am as Ia, an as Ma, ao as Aa, ap as Ha, aq as Ga, ar as Na, as as Da, at as ja, au as Oa, av as _a, aw as za, ax as Ea, ay as Ua, az as Va, aA as qa, aB as Ja, aC as Ka, aD as Qa, aE as Wa } from "./TooltipTrigger-CeoRbw5b.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: f,
22
+ CheckboxButton: v,
23
+ CheckboxGroup: w,
24
+ CodeBlock: x,
25
+ ColumnLayout: S,
26
+ Content: L,
27
+ ContextMenu: y,
28
+ ContextMenuSection: B,
29
+ ContextMenuTrigger: F,
30
+ ContextualHelp: P,
31
+ ContextualHelpTrigger: R,
32
+ CopyButton: k,
33
+ CounterBadge: I,
34
+ CountryOptions: M,
35
+ DatePicker: A,
36
+ DateRangePicker: H,
37
+ Div: G,
38
+ FieldDescription: N,
39
+ FieldError: D,
40
+ FileCard: j,
41
+ FileCardList: O,
42
+ FileField: _,
43
+ Fragment: z,
44
+ Header: E,
45
+ HeaderNavigation: U,
46
+ Heading: V,
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
+ ListSummary: ra,
62
+ LoadingSpinner: ia,
63
+ Markdown: na,
64
+ MenuItem: la,
65
+ Message: ca,
66
+ Modal: da,
67
+ ModalTrigger: ma,
68
+ Navigation: ua,
69
+ NavigationGroup: ga,
70
+ Notification: pa,
71
+ NotificationProvider: Ca,
72
+ NumberField: Ta,
73
+ Option: ba,
74
+ Popover: ha,
75
+ PopoverTrigger: fa,
76
+ ProgressBar: va,
77
+ Radio: wa,
78
+ RadioButton: xa,
79
+ RadioGroup: Sa,
80
+ SearchField: La,
81
+ Section: ya,
82
+ Segment: Ba,
83
+ SegmentedControl: Fa,
84
+ Select: Pa,
85
+ Separator: Ra,
86
+ Skeleton: ka,
87
+ SkeletonText: Ia,
88
+ Slider: Ma,
89
+ Switch: Aa,
90
+ Tab: Ha,
91
+ TabTitle: Ga,
92
+ Table: Na,
93
+ TableBody: Da,
94
+ TableCell: ja,
95
+ TableColumn: Oa,
96
+ TableFooterRow: _a,
97
+ TableHeader: za,
98
+ TableRow: Ea,
99
+ Tabs: Ua,
100
+ Text: Va,
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 RootClient,
139
+ ie as default
140
+ };
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ export declare const Preview: FC;
3
+ export default Preview;
4
+ //# sourceMappingURL=Preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../src/components/Preview.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAYvC,eAAO,MAAM,OAAO,EAAE,EAIrB,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RootClient.d.ts","sourceRoot":"","sources":["../../../src/components/RootClient.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAMnD,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAYD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAoC1C,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"RootClient.d.ts","sourceRoot":"","sources":["../../../src/components/RootClient.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAOnD,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA6B1C,CAAC;AAEF,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-remote-react-components",
3
- "version": "0.2.0-alpha.21",
3
+ "version": "0.2.0-alpha.23",
4
4
  "type": "module",
5
5
  "description": "React components that can be used in a remote environment",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -44,14 +44,14 @@
44
44
  "test:compile": "run tsc --noEmit"
45
45
  },
46
46
  "dependencies": {
47
- "@mittwald/flow-react-components": "0.2.0-alpha.21",
48
- "@mittwald/flow-remote-core": "0.2.0-alpha.21",
49
- "@mittwald/flow-remote-elements": "0.2.0-alpha.21",
47
+ "@mittwald/flow-react-components": "0.2.0-alpha.23",
48
+ "@mittwald/flow-remote-core": "0.2.0-alpha.23",
49
+ "@mittwald/flow-remote-elements": "0.2.0-alpha.23",
50
50
  "@remote-dom/react": "^1.2.1",
51
51
  "@types/react": "^19.0.7"
52
52
  },
53
53
  "devDependencies": {
54
- "@mittwald/flow-remote-react-renderer": "0.2.0-alpha.21",
54
+ "@mittwald/flow-remote-react-renderer": "0.2.0-alpha.23",
55
55
  "@mittwald/typescript-config": "",
56
56
  "@types/node": "^22.10.7",
57
57
  "nx": "^20.3.2",
@@ -80,5 +80,5 @@
80
80
  "optional": true
81
81
  }
82
82
  },
83
- "gitHead": "6883bb5090a908326463ab02be3ab0eafad12331"
83
+ "gitHead": "97681ef628d2da05df905ef6a39a1ad2abe307a6"
84
84
  }
@@ -1,142 +0,0 @@
1
- "use client"
2
- /* */
3
- "use client";
4
- import { jsxs as l, Fragment as d, jsx as a } from "react/jsx-runtime";
5
- import s from "react";
6
- import { connectHostIframeRef as c } from "@mittwald/flow-remote-core";
7
- import { ViewComponentContextProvider as m } from "@mittwald/flow-react-components/internal";
8
- import { A as g, a as u, b as p, c as C, d as T, e as b, f as h, B as x, g as f, h as v, C as S, i as w, j as L, k as y, l as F, m as B, n as R, o as I, p as P, q as k, r as M, s as A, t as H, u as G, D as N, v as j, w as z, F as D, x as O, y as _, z as E, E as U, G as V, H as q, I as $, J, K, L as Q, M as W, N as X, O as Y, P as Z, Q as aa, R as ea, S as sa, T as ta, U as oa, V as ra, W as ia, X as na, Y as la, Z as da, _ as ca, $ as ma, a0 as ga, a1 as ua, a2 as pa, a3 as Ca, a4 as Ta, a5 as ba, a6 as ha, a7 as xa, a8 as fa, a9 as va, aa as Sa, ab as wa, ac as La, ad as ya, ae as Fa, af as Ba, ag as Ra, ah as Ia, ai as Pa, aj as ka, ak as Ma, al as Aa, am as Ha, an as Ga, ao as Na, ap as ja, aq as za, ar as Da, as as Oa, at as _a, au as Ea, av as Ua, aw as Va, ax as qa, ay as $a, az as Ja, aA as Ka, aB as Qa, aC as Wa, aD as Xa, aE as Ya } from "./TooltipTrigger-CeoRbw5b.js";
9
- const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
- __proto__: null,
11
- Accordion: g,
12
- ActionGroup: u,
13
- Alert: p,
14
- AlertBadge: C,
15
- AlertIcon: T,
16
- Align: b,
17
- Avatar: h,
18
- Badge: x,
19
- Breadcrumb: f,
20
- Button: v,
21
- Checkbox: S,
22
- CheckboxButton: w,
23
- CheckboxGroup: L,
24
- CodeBlock: y,
25
- ColumnLayout: F,
26
- Content: B,
27
- ContextMenu: R,
28
- ContextMenuSection: I,
29
- ContextMenuTrigger: P,
30
- ContextualHelp: k,
31
- ContextualHelpTrigger: M,
32
- CopyButton: A,
33
- CounterBadge: H,
34
- CountryOptions: G,
35
- DatePicker: N,
36
- DateRangePicker: j,
37
- Div: z,
38
- FieldDescription: D,
39
- FieldError: O,
40
- FileCard: _,
41
- FileCardList: E,
42
- FileField: U,
43
- Fragment: V,
44
- Header: q,
45
- HeaderNavigation: $,
46
- Heading: J,
47
- Icon: K,
48
- IllustratedMessage: Q,
49
- Image: W,
50
- Initials: X,
51
- InlineCode: Y,
52
- ItemsGridList: Z,
53
- ItemsGridListItem: aa,
54
- Label: ea,
55
- LabeledValue: sa,
56
- LayoutCard: ta,
57
- LightBox: oa,
58
- LightBoxTrigger: ra,
59
- Link: ia,
60
- ListEmptyView: na,
61
- ListSummary: la,
62
- LoadingSpinner: da,
63
- Markdown: ca,
64
- MenuItem: ma,
65
- Message: ga,
66
- Modal: ua,
67
- ModalTrigger: pa,
68
- Navigation: Ca,
69
- NavigationGroup: Ta,
70
- Notification: ba,
71
- NotificationProvider: ha,
72
- NumberField: xa,
73
- Option: fa,
74
- Popover: va,
75
- PopoverTrigger: Sa,
76
- ProgressBar: wa,
77
- Radio: La,
78
- RadioButton: ya,
79
- RadioGroup: Fa,
80
- SearchField: Ba,
81
- Section: Ra,
82
- Segment: Ia,
83
- SegmentedControl: Pa,
84
- Select: ka,
85
- Separator: Ma,
86
- Skeleton: Aa,
87
- SkeletonText: Ha,
88
- Slider: Ga,
89
- Switch: Na,
90
- Tab: ja,
91
- TabTitle: za,
92
- Table: Da,
93
- TableBody: Oa,
94
- TableCell: _a,
95
- TableColumn: Ea,
96
- TableFooterRow: Ua,
97
- TableHeader: Va,
98
- TableRow: qa,
99
- Tabs: $a,
100
- Text: Ja,
101
- TextArea: Ka,
102
- TextField: Qa,
103
- TimeField: Wa,
104
- Tooltip: Xa,
105
- TooltipTrigger: Ya
106
- }, Symbol.toStringTag, { value: "Module" })), ae = s.lazy(
107
- () => import("@mittwald/flow-remote-react-renderer/RemoteRenderer")
108
- ), ee = s.lazy(
109
- () => import("@mittwald/flow-react-components/all.css").then(() => ({
110
- default: () => null
111
- }))
112
- ), le = (t) => {
113
- const { children: o, showPreview: r } = t, i = new URLSearchParams(document.location.search).has("preview"), e = new URL(document.location.href);
114
- e.searchParams.set("preview", "");
115
- const n = /* @__PURE__ */ a(
116
- "div",
117
- {
118
- ref: c,
119
- style: {
120
- height: 0,
121
- width: 0,
122
- left: -9999,
123
- position: "absolute"
124
- },
125
- children: /* @__PURE__ */ a(
126
- m,
127
- {
128
- components: Za,
129
- children: o
130
- }
131
- )
132
- }
133
- );
134
- return i || !r ? n : /* @__PURE__ */ l(d, { children: [
135
- /* @__PURE__ */ a(ee, {}),
136
- /* @__PURE__ */ a(ae, { src: e.toString() })
137
- ] });
138
- };
139
- export {
140
- le as RootClient,
141
- le as default
142
- };