@mittwald/flow-remote-react-components 0.2.0-alpha.20 → 0.2.0-alpha.22

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
@@ -1,18 +1,18 @@
1
1
  "use client"
2
2
  /* */
3
3
  "use client";
4
- import { jsx as o } from "react/jsx-runtime";
5
- import s, { useState as n, useEffect as u } from "react";
6
- const r = () => {
7
- const [t, e] = n(!1);
8
- return u(() => {
4
+ import { jsx as s } from "react/jsx-runtime";
5
+ import n, { useState as u, useEffect as r } from "react";
6
+ const c = () => {
7
+ const [t, e] = u(!1);
8
+ return r(() => {
9
9
  e(!0);
10
10
  }, []), t;
11
- }, c = s.lazy(() => import("./RootClient-Cn4U9BTn.js")), a = (t) => {
12
- const { children: e } = t;
13
- return r() ? /* @__PURE__ */ o(c, { children: e }) : null;
11
+ }, i = n.lazy(() => import("./RootClient-YHqvaGZF.js")), f = (t) => {
12
+ const { children: e, ...o } = t;
13
+ return c() ? /* @__PURE__ */ s(i, { ...o, children: e }) : null;
14
14
  };
15
15
  export {
16
- a as Root,
17
- a as default
16
+ f as Root,
17
+ f as default
18
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 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,5 +1,5 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- type Props = PropsWithChildren;
3
- export declare const Root: FC<Props>;
1
+ import { FC } from 'react';
2
+ import { RootClientProps } from './RootClient';
3
+ export declare const Root: FC<RootClientProps>;
4
4
  export default Root;
5
5
  //# sourceMappingURL=Root.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../../../src/components/Root.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAInD,KAAK,KAAK,GAAG,iBAAiB,CAAC;AAI/B,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAI1B,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../../../src/components/Root.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI/D,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,eAAe,CAIpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
- type Props = PropsWithChildren;
3
- export declare const RootClient: FC<Props>;
2
+ export interface RootClientProps extends PropsWithChildren {
3
+ showPreview?: boolean;
4
+ }
5
+ export declare const RootClient: FC<RootClientProps>;
4
6
  export default RootClient;
5
7
  //# sourceMappingURL=RootClient.d.ts.map
@@ -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,KAAK,KAAK,GAAG,iBAAiB,CAAC;AAE/B,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,KAAK,CAYhC,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.20",
3
+ "version": "0.2.0-alpha.22",
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,13 +44,14 @@
44
44
  "test:compile": "run tsc --noEmit"
45
45
  },
46
46
  "dependencies": {
47
- "@mittwald/flow-react-components": "0.2.0-alpha.20",
48
- "@mittwald/flow-remote-core": "0.2.0-alpha.20",
49
- "@mittwald/flow-remote-elements": "0.2.0-alpha.20",
47
+ "@mittwald/flow-react-components": "0.2.0-alpha.22",
48
+ "@mittwald/flow-remote-core": "0.2.0-alpha.22",
49
+ "@mittwald/flow-remote-elements": "0.2.0-alpha.22",
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.22",
54
55
  "@mittwald/typescript-config": "",
55
56
  "@types/node": "^22.10.7",
56
57
  "nx": "^20.3.2",
@@ -67,13 +68,17 @@
67
68
  "vite-plugin-externalize-deps": "^0.9.0"
68
69
  },
69
70
  "peerDependencies": {
71
+ "@mittwald/flow-remote-react-renderer": "*",
70
72
  "react": "19.0.0",
71
73
  "react-hook-form": "*"
72
74
  },
73
75
  "peerDependenciesMeta": {
76
+ "@mittwald/flow-remote-react-renderer": {
77
+ "optional": true
78
+ },
74
79
  "react-hook-form": {
75
80
  "optional": true
76
81
  }
77
82
  },
78
- "gitHead": "a51a4a784af8bf8d6e983075c954d6c5a33144be"
83
+ "gitHead": "d162392c63529a87b3c39bebabf4616c69c13ac4"
79
84
  }
@@ -1,119 +0,0 @@
1
- "use client"
2
- /* */
3
- "use client";
4
- import { jsx as a } from "react/jsx-runtime";
5
- import "react";
6
- import { connectHostIframeRef as o } from "@mittwald/flow-remote-core";
7
- import { ViewComponentContextProvider as t } from "@mittwald/flow-react-components/internal";
8
- import { A as i, a as r, b as n, c as l, d, e as g, f as c, B as u, g as m, h as p, C, i as T, j as b, k as x, l as S, m as B, n as f, o as v, p as L, q as F, r as k, s as I, t as h, u as y, D as M, v as A, w, F as P, x as R, y as H, z as G, E as N, G as D, H as j, I as O, J as _, K as E, L as V, M as z, N as q, O as J, P as K, Q, R as U, S as W, T as X, U as Y, V as Z, W as $, X as aa, Y as ea, Z as sa, _ as oa, $ as ta, a0 as ia, a1 as ra, a2 as na, a3 as la, a4 as da, a5 as ga, a6 as ca, a7 as ua, a8 as ma, a9 as pa, aa as Ca, ab as Ta, ac as ba, ad as xa, ae as Sa, af as Ba, ag as fa, ah as va, ai as La, aj as Fa, ak as ka, al as Ia, am as ha, an as ya, ao as Ma, ap as Aa, aq as wa, ar as Pa, as as Ra, at as Ha, au as Ga, av as Na, aw as Da, ax as ja, ay as Oa, az as _a, aA as Ea, aB as Va, aC as za, aD as qa, aE as Ja } from "./TooltipTrigger-CeoRbw5b.js";
9
- const Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
- __proto__: null,
11
- Accordion: i,
12
- ActionGroup: r,
13
- Alert: n,
14
- AlertBadge: l,
15
- AlertIcon: d,
16
- Align: g,
17
- Avatar: c,
18
- Badge: u,
19
- Breadcrumb: m,
20
- Button: p,
21
- Checkbox: C,
22
- CheckboxButton: T,
23
- CheckboxGroup: b,
24
- CodeBlock: x,
25
- ColumnLayout: S,
26
- Content: B,
27
- ContextMenu: f,
28
- ContextMenuSection: v,
29
- ContextMenuTrigger: L,
30
- ContextualHelp: F,
31
- ContextualHelpTrigger: k,
32
- CopyButton: I,
33
- CounterBadge: h,
34
- CountryOptions: y,
35
- DatePicker: M,
36
- DateRangePicker: A,
37
- Div: w,
38
- FieldDescription: P,
39
- FieldError: R,
40
- FileCard: H,
41
- FileCardList: G,
42
- FileField: N,
43
- Fragment: D,
44
- Header: j,
45
- HeaderNavigation: O,
46
- Heading: _,
47
- Icon: E,
48
- IllustratedMessage: V,
49
- Image: z,
50
- Initials: q,
51
- InlineCode: J,
52
- ItemsGridList: K,
53
- ItemsGridListItem: Q,
54
- Label: U,
55
- LabeledValue: W,
56
- LayoutCard: X,
57
- LightBox: Y,
58
- LightBoxTrigger: Z,
59
- Link: $,
60
- ListEmptyView: aa,
61
- ListSummary: ea,
62
- LoadingSpinner: sa,
63
- Markdown: oa,
64
- MenuItem: ta,
65
- Message: ia,
66
- Modal: ra,
67
- ModalTrigger: na,
68
- Navigation: la,
69
- NavigationGroup: da,
70
- Notification: ga,
71
- NotificationProvider: ca,
72
- NumberField: ua,
73
- Option: ma,
74
- Popover: pa,
75
- PopoverTrigger: Ca,
76
- ProgressBar: Ta,
77
- Radio: ba,
78
- RadioButton: xa,
79
- RadioGroup: Sa,
80
- SearchField: Ba,
81
- Section: fa,
82
- Segment: va,
83
- SegmentedControl: La,
84
- Select: Fa,
85
- Separator: ka,
86
- Skeleton: Ia,
87
- SkeletonText: ha,
88
- Slider: ya,
89
- Switch: Ma,
90
- Tab: Aa,
91
- TabTitle: wa,
92
- Table: Pa,
93
- TableBody: Ra,
94
- TableCell: Ha,
95
- TableColumn: Ga,
96
- TableFooterRow: Na,
97
- TableHeader: Da,
98
- TableRow: ja,
99
- Tabs: Oa,
100
- Text: _a,
101
- TextArea: Ea,
102
- TextField: Va,
103
- TimeField: za,
104
- Tooltip: qa,
105
- TooltipTrigger: Ja
106
- }, Symbol.toStringTag, { value: "Module" })), Za = (e) => {
107
- const { children: s } = e;
108
- return /* @__PURE__ */ a("div", { ref: o, children: /* @__PURE__ */ a(
109
- t,
110
- {
111
- components: Ka,
112
- children: s
113
- }
114
- ) });
115
- };
116
- export {
117
- Za as RootClient,
118
- Za as default
119
- };