@slashid/jump-page 0.0.7-beta.1 → 0.0.7-beta.3

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.
Files changed (37) hide show
  1. package/cli.js +17 -10
  2. package/dist/_astro/app.f7d04798.js +39 -0
  3. package/dist/_astro/client.a5ffbec0.js +24 -0
  4. package/dist/_astro/index.03be2d59.js +9 -0
  5. package/dist/_astro/index.2dd0ad08.css +1 -0
  6. package/dist/_astro/index.cc62d81f.css +1 -0
  7. package/dist/favicon.png +0 -0
  8. package/dist/index.html +7 -0
  9. package/package.json +2 -2
  10. package/src/components/README.md +0 -3
  11. package/src/components/app/app.component.tsx +0 -83
  12. package/src/components/app/app.context.tsx +0 -41
  13. package/src/components/app/app.css.ts +0 -15
  14. package/src/components/app/index.ts +0 -1
  15. package/src/components/card/card.component.tsx +0 -42
  16. package/src/components/card/card.css.ts +0 -40
  17. package/src/components/card/index.ts +0 -1
  18. package/src/components/flow/flow.component.tsx +0 -99
  19. package/src/components/flow/flow.css.ts +0 -20
  20. package/src/components/flow/flow.domain.ts +0 -18
  21. package/src/components/flow/flow.error.tsx +0 -32
  22. package/src/components/flow/flow.initial.tsx +0 -14
  23. package/src/components/flow/flow.loader.tsx +0 -9
  24. package/src/components/flow/flow.progress.tsx +0 -119
  25. package/src/components/flow/flow.recover.tsx +0 -121
  26. package/src/components/flow/flow.success.tsx +0 -40
  27. package/src/components/flow/flow.types.ts +0 -48
  28. package/src/components/flow/index.ts +0 -3
  29. package/src/components/text/index.ts +0 -1
  30. package/src/components/text/text.component.tsx +0 -8
  31. package/src/components/text/use-i18n.ts +0 -13
  32. package/src/config.ts +0 -7
  33. package/src/domain/i18n.ts +0 -115
  34. package/src/env.d.ts +0 -1
  35. package/src/layouts/README.md +0 -3
  36. package/src/layouts/page.astro +0 -33
  37. package/src/pages/index.astro +0 -8
package/cli.js CHANGED
@@ -1,8 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { program } from "commander";
4
3
  import { createRequire } from "node:module";
5
- import { build, preview } from "astro";
4
+ import path from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+
7
+ import { program } from "commander";
8
+ import { preview } from "astro";
9
+
10
+ const __filename = fileURLToPath(import.meta.url);
11
+ const __dirname = path.dirname(__filename);
6
12
 
7
13
  const require = createRequire(import.meta.url);
8
14
 
@@ -24,22 +30,23 @@ program
24
30
  },
25
31
  4321
26
32
  )
27
- .option(
28
- "-a, --api-url <char>",
29
- "SlashID API URL",
30
- "https://api.sandbox.slashid.com"
31
- )
33
+ .option("-a, --api-url <char>", "SlashID API URL", "https://slashid.local")
32
34
  .option(
33
35
  "-s, --sdk-url <char>",
34
36
  "SlashID SDK URL",
35
- "https://cdn.sandbox.slashid.com/sdk.html"
37
+ "https://jump.slashid.local"
36
38
  )
37
39
  .action(async (options) => {
38
40
  process.env.PUBLIC_SID_SDK_URL = options.sdkUrl;
39
41
  process.env.PUBLIC_SID_API_URL = options.apiUrl;
40
42
 
41
- await build({});
42
- await preview({ server: { port: options.port } });
43
+ console.log("outdir", path.resolve(__dirname, "dist"));
44
+
45
+ // TODO this will build with the default values, not the ones passed in
46
+ await preview({
47
+ server: { port: options.port },
48
+ outDir: path.resolve(__dirname, "dist"),
49
+ });
43
50
  });
44
51
 
45
52
  // Parse the command line arguments