@slashid/jump-page 0.0.27-package.0 → 1.0.0

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 CHANGED
@@ -33,7 +33,11 @@ export function VerificationPage() {
33
33
 
34
34
  ## Configuration
35
35
 
36
- By default, the `Verification` component uses the `production` environment. Other environments can be used by passing the `environment` prop with the following values: `production`, `testing`, `sandbox`.
36
+ By default, the `Verification` component uses the `production` environment. You can switch to the `sandbox` environment by passing the corresponding value as the `environment` prop:
37
+
38
+ ```jsx
39
+ <Verification environment="sandbox" />
40
+ ```
37
41
 
38
42
  A custom environment can be used by specifying the API and SDK URLs:
39
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slashid/jump-page",
3
- "version": "0.0.27-package.0",
3
+ "version": "1.0.0",
4
4
  "homepage": "https://slashid.dev",
5
5
  "author": "SlashID",
6
6
  "license": "MIT",
@@ -23,12 +23,9 @@
23
23
  "./style.css": "./package/style.css"
24
24
  },
25
25
  "files": [
26
- "dist",
27
26
  "package",
28
27
  "package.json",
29
28
  "README.md",
30
- "cli.js",
31
- "astro.config.mjs",
32
29
  "tsconfig.json"
33
30
  ],
34
31
  "scripts": {
package/astro.config.mjs DELETED
@@ -1,30 +0,0 @@
1
- import { defineConfig } from "astro/config"
2
- import { loadEnv } from "vite"
3
- import react from "@astrojs/react"
4
- import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin"
5
- import { sentryVitePlugin } from "@sentry/vite-plugin"
6
-
7
- const { PUBLIC_SID_ENVIRONMENT, SENTRY_ORG, SENTRY_PROJECT } = loadEnv(process.env.NODE_ENV, process.cwd(), "")
8
- const uploadSourceMaps = PUBLIC_SID_ENVIRONMENT !== "local" && process.env.SENTRY_AUTH_TOKEN
9
-
10
- // https://astro.build/config
11
- export default defineConfig({
12
- integrations: [react()],
13
- vite: {
14
- build: {
15
- sourcemap: uploadSourceMaps,
16
- },
17
- plugins: [
18
- vanillaExtractPlugin(),
19
- sentryVitePlugin({
20
- disable: !uploadSourceMaps,
21
- org: SENTRY_ORG,
22
- project: SENTRY_PROJECT,
23
- authToken: process.env.SENTRY_AUTH_TOKEN,
24
- }),
25
- ],
26
- },
27
- build: {
28
- format: "file",
29
- },
30
- })