create-disposabl-app 0.14.11 → 0.14.12

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/disposabl.js CHANGED
@@ -5,7 +5,7 @@ import { lock } from "proper-lockfile";
5
5
  // ../cli/package.json
6
6
  var package_default = {
7
7
  name: "@disposabl/cli",
8
- version: "0.14.11",
8
+ version: "0.14.12",
9
9
  type: "module",
10
10
  description: "Command-line access to your Disposabl app",
11
11
  license: "MIT",
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
8
8
  import { Command, CommanderError } from "commander";
9
9
  import * as p2 from "@clack/prompts";
10
10
  // package.json
11
- var version = "0.14.11";
11
+ var version = "0.14.12";
12
12
 
13
13
  // ../disposabl-kit/platforms.ts
14
14
  var platforms = [
@@ -31,11 +31,20 @@ export function HomeScreen() {
31
31
  options={{
32
32
  title: "Your app",
33
33
  headerRight: () => (
34
- <GlassIconButton
35
- label="Settings"
36
- icon={{ ios: "slider.horizontal.3", android: "tune" }}
37
- onPress={() => router.push("/settings")}
38
- />
34
+ <View style={{ flexDirection: "row", gap: 8 }}>
35
+ {docs && (
36
+ <GlassIconButton
37
+ label="Docs"
38
+ icon={{ ios: "book", android: "menu_book" }}
39
+ onPress={() => void openGuide("getting-started")}
40
+ />
41
+ )}
42
+ <GlassIconButton
43
+ label="Settings"
44
+ icon={{ ios: "slider.horizontal.3", android: "tune" }}
45
+ onPress={() => router.push("/settings")}
46
+ />
47
+ </View>
39
48
  ),
40
49
  }}
41
50
  />
@@ -1,6 +1,7 @@
1
1
  import { openMobile } from "../helpers/mobile";
2
2
  import { test } from "@e2e-dev/mobile";
3
3
  import { expect } from "e2e";
4
+ import { docsEnabled } from "../../disposabl-kit/features";
4
5
 
5
6
  test(
6
7
  "mobile home renders",
@@ -8,5 +9,8 @@ test(
8
9
  async ({ app, screen, device }) => {
9
10
  await openMobile({ app, device, screen });
10
11
  await expect(screen.getByText("Your app starts here.")).toBeVisible();
12
+ const docs = screen.getByRole("button", "Docs", { exact: true });
13
+ if (docsEnabled) await expect(docs).toBeVisible();
14
+ else await expect(docs).not.toBeVisible();
11
15
  },
12
16
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-disposabl-app",
3
- "version": "0.14.11",
3
+ "version": "0.14.12",
4
4
  "description": "Create a Disposabl app",
5
5
  "type": "module",
6
6
  "license": "MIT",