@mittwald/flow-remote-react-components 0.2.0-alpha.20 → 0.2.0-alpha.21
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 +10 -10
- package/dist/RootClient-DXJn1jzG.js +142 -0
- package/dist/types/components/Root.d.ts +3 -3
- package/dist/types/components/Root.d.ts.map +1 -1
- package/dist/types/components/RootClient.d.ts +4 -2
- package/dist/types/components/RootClient.d.ts.map +1 -1
- package/package.json +10 -5
- package/dist/RootClient-Cn4U9BTn.js +0 -119
package/dist/Root.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
"use client";
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
const [t, e] =
|
|
8
|
-
return
|
|
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
|
-
},
|
|
12
|
-
const { children: e } = t;
|
|
13
|
-
return
|
|
11
|
+
}, i = n.lazy(() => import("./RootClient-DXJn1jzG.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
|
-
|
|
17
|
-
|
|
16
|
+
f as Root,
|
|
17
|
+
f as default
|
|
18
18
|
};
|
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC
|
|
2
|
-
|
|
3
|
-
export declare const Root: FC<
|
|
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,
|
|
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
|
-
|
|
3
|
-
|
|
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,
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-remote-react-components",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.21",
|
|
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.
|
|
48
|
-
"@mittwald/flow-remote-core": "0.2.0-alpha.
|
|
49
|
-
"@mittwald/flow-remote-elements": "0.2.0-alpha.
|
|
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",
|
|
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
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": "
|
|
83
|
+
"gitHead": "6883bb5090a908326463ab02be3ab0eafad12331"
|
|
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
|
-
};
|