@slashid/jump-page 0.0.7-beta.0 → 0.0.7-beta.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.
Files changed (41) hide show
  1. package/cli.js +16 -19
  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/index.html +7 -0
  8. package/package.json +9 -1
  9. package/.turbo/turbo-build.log +0 -32
  10. package/.vscode/extensions.json +0 -4
  11. package/.vscode/launch.json +0 -11
  12. package/CHANGELOG.md +0 -37
  13. package/src/components/README.md +0 -3
  14. package/src/components/app/app.component.tsx +0 -83
  15. package/src/components/app/app.context.tsx +0 -41
  16. package/src/components/app/app.css.ts +0 -15
  17. package/src/components/app/index.ts +0 -1
  18. package/src/components/card/card.component.tsx +0 -42
  19. package/src/components/card/card.css.ts +0 -40
  20. package/src/components/card/index.ts +0 -1
  21. package/src/components/flow/flow.component.tsx +0 -99
  22. package/src/components/flow/flow.css.ts +0 -20
  23. package/src/components/flow/flow.domain.ts +0 -18
  24. package/src/components/flow/flow.error.tsx +0 -32
  25. package/src/components/flow/flow.initial.tsx +0 -14
  26. package/src/components/flow/flow.loader.tsx +0 -9
  27. package/src/components/flow/flow.progress.tsx +0 -119
  28. package/src/components/flow/flow.recover.tsx +0 -121
  29. package/src/components/flow/flow.success.tsx +0 -40
  30. package/src/components/flow/flow.types.ts +0 -48
  31. package/src/components/flow/index.ts +0 -3
  32. package/src/components/text/index.ts +0 -1
  33. package/src/components/text/text.component.tsx +0 -8
  34. package/src/components/text/use-i18n.ts +0 -13
  35. package/src/config.ts +0 -13
  36. package/src/domain/i18n.ts +0 -115
  37. package/src/env.d.ts +0 -1
  38. package/src/layouts/README.md +0 -3
  39. package/src/layouts/page.astro +0 -33
  40. package/src/pages/index.astro +0 -8
  41. /package/{public → dist}/favicon.png +0 -0
package/cli.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { program } from "commander";
4
- import { exec } from "child_process";
5
4
  import { createRequire } from "node:module";
5
+ import { preview } from "astro";
6
6
 
7
7
  const require = createRequire(import.meta.url);
8
8
 
@@ -16,33 +16,30 @@ program
16
16
  program
17
17
  .command("serve")
18
18
  .description("Start the development server")
19
- .option("-p, --port <number>", "Port to use for the development server", 4321)
19
+ .option(
20
+ "-p, --port <number>",
21
+ "Port to use for the development server",
22
+ (value) => {
23
+ return parseInt(value);
24
+ },
25
+ 4321
26
+ )
20
27
  .option(
21
28
  "-a, --api-url <char>",
22
29
  "SlashID API URL",
23
- "https://api.sandbox.slashid.com"
30
+ "https://slashid.local"
24
31
  )
25
32
  .option(
26
33
  "-s, --sdk-url <char>",
27
34
  "SlashID SDK URL",
28
- "https://cdn.sandbox.slashid.com/sdk.html"
35
+ "https://jump.slashid.local"
29
36
  )
30
- .action((options) => {
31
- const command = `PUBLIC_SID_SDK_URL=${options.sdkUrl} PUBLIC_SID_API_URL=${options.apiUrl} npm run dev`;
32
-
33
- // Set the required env variables and execute the "dev" script defined in package.json
34
- const childProcess = exec(command);
35
-
36
- childProcess.stdout.pipe(process.stdout);
37
- childProcess.stderr.pipe(process.stderr);
38
-
39
- childProcess.on("error", (error) => {
40
- console.error(`Error: ${error.message}`);
41
- });
37
+ .action(async (options) => {
38
+ process.env.PUBLIC_SID_SDK_URL = options.sdkUrl;
39
+ process.env.PUBLIC_SID_API_URL = options.apiUrl;
42
40
 
43
- childProcess.on("close", (code) => {
44
- console.log(`Child process exited with code ${code}`);
45
- });
41
+ // TODO this will build with the default values, not the ones passed in
42
+ await preview({ server: { port: options.port } });
46
43
  });
47
44
 
48
45
  // Parse the command line arguments