create-middag-ui 0.7.0 → 0.7.2
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/README.md +8 -4
- package/lib/scaffold.js +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,11 @@ Bootstrap a [MIDDAG React UI](https://github.com/middag-io/middag-react) layer i
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
+
# Community (no auth needed)
|
|
8
9
|
npx create-middag-ui
|
|
10
|
+
|
|
11
|
+
# PRO (source maps, mock SPA, full exports)
|
|
12
|
+
npx @middag-io/create-middag-ui
|
|
9
13
|
```
|
|
10
14
|
|
|
11
15
|
Or specify a custom directory:
|
|
@@ -51,15 +55,15 @@ ui/
|
|
|
51
55
|
tailwind.css # Tailwind CSS import
|
|
52
56
|
```
|
|
53
57
|
|
|
54
|
-
##
|
|
58
|
+
## Community vs PRO
|
|
55
59
|
|
|
56
|
-
`@middag-io/react` is available
|
|
60
|
+
`@middag-io/react` is available in two editions:
|
|
57
61
|
|
|
58
|
-
###
|
|
62
|
+
### Community (default, no auth)
|
|
59
63
|
|
|
60
64
|
Choose "No" when asked about GitHub access. Dependencies install from the public npm registry with zero configuration.
|
|
61
65
|
|
|
62
|
-
###
|
|
66
|
+
### PRO (source maps, mock SPA, full exports)
|
|
63
67
|
|
|
64
68
|
Choose "Yes" when asked about GitHub access. The wizard will:
|
|
65
69
|
|
package/lib/scaffold.js
CHANGED
|
@@ -827,7 +827,7 @@ createRoot(document.getElementById("root")!).render(
|
|
|
827
827
|
writeFile(
|
|
828
828
|
appPath,
|
|
829
829
|
`import { useState, useEffect } from "react";
|
|
830
|
-
import { ContractPage } from "@middag-io/react";
|
|
830
|
+
import { ContractPage, I18nProvider } from "@middag-io/react";
|
|
831
831
|
import type { PageContract } from "@middag-io/react";
|
|
832
832
|
import { dashboardContract } from "./pages/dashboard";
|
|
833
833
|
import { connectorsContract } from "./pages/connectors";
|
|
@@ -864,7 +864,11 @@ export function App() {
|
|
|
864
864
|
// Expose contract for usePage() mock adapter
|
|
865
865
|
(window as any).__MIDDAG_MOCK_CONTRACT__ = contract;
|
|
866
866
|
|
|
867
|
-
return
|
|
867
|
+
return (
|
|
868
|
+
<I18nProvider>
|
|
869
|
+
<ContractPage contract={contract} />
|
|
870
|
+
</I18nProvider>
|
|
871
|
+
);
|
|
868
872
|
}
|
|
869
873
|
`,
|
|
870
874
|
"src/app.tsx",
|