@aws-amplify/ui-svelte 0.0.0-next-7fd6f03-20220105212214 → 0.0.0-next-5fb24a8-20220106211328

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/package.json CHANGED
@@ -1,57 +1,63 @@
1
1
  {
2
- "name": "@aws-amplify/ui-svelte",
3
- "version": "0.0.0-next-7fd6f03-20220105212214",
4
- "type": "module",
5
- "main": "dist/index.js",
6
- "svelte": "index.js",
7
- "exports": {
8
- ".": {
9
- "import": "./dist/index.js"
10
- },
11
- "./styles.css": "./dist/styles.css"
12
- },
13
- "browser": {
14
- "./styles.css": "./dist/styles.css"
15
- },
16
- "scripts": {
17
- "dev": "svelte-kit dev",
18
- "build": "svelte-kit build",
19
- "postbuild": "svelte-kit package",
20
- "package": "svelte-kit package",
21
- "preview": "svelte-kit preview",
22
- "check": "svelte-check --tsconfig ./tsconfig.json",
23
- "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
24
- "lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
25
- "format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
26
- },
27
- "devDependencies": {
28
- "@sveltejs/adapter-auto": "next",
29
- "@sveltejs/adapter-node": "^1.0.0-next.56",
30
- "@sveltejs/adapter-static": "^1.0.0-next.23",
31
- "@sveltejs/kit": "next",
32
- "@typescript-eslint/eslint-plugin": "^4.31.1",
33
- "@typescript-eslint/parser": "^4.31.1",
34
- "eslint": "^7.32.0",
35
- "eslint-config-prettier": "^8.3.0",
36
- "eslint-plugin-svelte3": "^3.2.1",
37
- "prettier": "^2.4.1",
38
- "prettier-plugin-svelte": "^2.4.0",
39
- "svelte": "^3.44.0",
40
- "svelte-check": "^2.2.6",
41
- "svelte-preprocess": "^4.9.4",
42
- "svelte2tsx": "^0.4.12",
43
- "tslib": "^2.3.1",
44
- "typescript": "^4.4.3"
45
- },
46
- "peerDependencies": {
47
- "aws-amplify": "^4.2.2"
48
- },
49
- "dependencies": {
50
- "@aws-amplify/ui": "^0.0.0-next-7fd6f03-20220105212214",
51
- "@rollup/plugin-replace": "^3.0.0",
52
- "nanoid": "^3.1.30",
53
- "qrcode": "^1.5.0",
54
- "svelte2tsx": "^0.4.12",
55
- "xstate": "^4.26.1"
56
- }
2
+ "name": "@aws-amplify/ui-svelte",
3
+ "version": "0.0.0-next-5fb24a8-20220106211328",
4
+ "type": "module",
5
+ "main": "dist/index.js",
6
+ "svelte": "dist/index.js",
7
+ "exports": {
8
+ "./package.json": "./package.json",
9
+ ".": {
10
+ "import": "./dist/index.js"
11
+ },
12
+ "./styles.css": "./dist/styles.css"
13
+ },
14
+ "browser": {
15
+ "./styles.css": "./dist/styles.css"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "LICENSE"
20
+ ],
21
+ "scripts": {
22
+ "dev": "svelte-kit dev",
23
+ "build": "svelte-kit build",
24
+ "postbuild": "svelte-kit package && shx cp ../ui/dist/styles.css dist/styles.css",
25
+ "package": "svelte-kit package",
26
+ "preview": "svelte-kit preview",
27
+ "check": "svelte-check --tsconfig ./tsconfig.json",
28
+ "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
29
+ "lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
30
+ "format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
31
+ },
32
+ "devDependencies": {
33
+ "@sveltejs/adapter-auto": "next",
34
+ "@sveltejs/adapter-node": "^1.0.0-next.56",
35
+ "@sveltejs/adapter-static": "^1.0.0-next.23",
36
+ "@sveltejs/kit": "next",
37
+ "@typescript-eslint/eslint-plugin": "^4.31.1",
38
+ "@typescript-eslint/parser": "^4.31.1",
39
+ "eslint": "^7.32.0",
40
+ "eslint-config-prettier": "^8.3.0",
41
+ "eslint-plugin-svelte3": "^3.2.1",
42
+ "prettier": "^2.4.1",
43
+ "prettier-plugin-svelte": "^2.4.0",
44
+ "shx": "^0.3.3",
45
+ "svelte": "^3.44.0",
46
+ "svelte-check": "^2.2.6",
47
+ "svelte-preprocess": "^4.9.4",
48
+ "svelte2tsx": "^0.4.12",
49
+ "tslib": "^2.3.1",
50
+ "typescript": "^4.4.3"
51
+ },
52
+ "peerDependencies": {
53
+ "aws-amplify": "^4.2.2"
54
+ },
55
+ "dependencies": {
56
+ "@aws-amplify/ui": "^0.0.0-next-5fb24a8-20220106211328",
57
+ "@rollup/plugin-replace": "^3.0.0",
58
+ "nanoid": "^3.1.30",
59
+ "qrcode": "^1.5.0",
60
+ "svelte2tsx": "^0.4.12",
61
+ "xstate": "^4.26.1"
62
+ }
57
63
  }
package/.eslintrc.cjs DELETED
@@ -1,20 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- parser: '@typescript-eslint/parser',
4
- extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
5
- plugins: ['svelte3', '@typescript-eslint'],
6
- ignorePatterns: ['*.cjs'],
7
- overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
8
- settings: {
9
- 'svelte3/typescript': () => require('typescript')
10
- },
11
- parserOptions: {
12
- sourceType: 'module',
13
- ecmaVersion: 2020
14
- },
15
- env: {
16
- browser: true,
17
- es2017: true,
18
- node: true
19
- }
20
- };
@@ -1,135 +0,0 @@
1
- @aws-amplify/ui-svelte:build: cache hit, replaying output f1245cbc36765cdf
2
- @aws-amplify/ui-svelte:build: warning package.json: No license field
3
- @aws-amplify/ui-svelte:build: $ svelte-kit build
4
- @aws-amplify/ui-svelte:build: vite v2.7.10 building for production...
5
- @aws-amplify/ui-svelte:build: transforming...
6
- @aws-amplify/ui-svelte:build:
7
- @aws-amplify/ui-svelte:build: warn - Tailwind is not purging unused styles because no template paths have been provided.
8
- @aws-amplify/ui-svelte:build: warn - If you have manually configured PurgeCSS outside of Tailwind or are deliberately not removing unused styles, set `purge: false` in your Tailwind config file to silence this warning.
9
- @aws-amplify/ui-svelte:build: warn - https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
10
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-amplify/core/node_modules/tslib/package.json.
11
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
12
- @aws-amplify/ui-svelte:build: (Use `node --trace-deprecation ...` to show where the warning was created)
13
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/tslib/package.json.
14
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
15
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/credential-provider-cognito-identity/node_modules/tslib/package.json.
16
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
17
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/util-create-request/node_modules/tslib/package.json.
18
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
19
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-content-length/node_modules/tslib/package.json.
20
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
21
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-host-header/node_modules/tslib/package.json.
22
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
23
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/querystring-builder/node_modules/tslib/package.json.
24
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
25
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/s3-request-presigner/node_modules/tslib/package.json.
26
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
27
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/config-resolver/node_modules/tslib/package.json.
28
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
29
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-logger/node_modules/tslib/package.json.
30
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
31
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-retry/node_modules/tslib/package.json.
32
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
33
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-signing/node_modules/tslib/package.json.
34
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
35
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-user-agent/node_modules/tslib/package.json.
36
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
37
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/smithy-client/node_modules/tslib/package.json.
38
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
39
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/package.json.
40
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
41
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/util-user-agent-browser/node_modules/tslib/package.json.
42
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
43
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-serde/node_modules/tslib/package.json.
44
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
45
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-expect-continue/node_modules/tslib/package.json.
46
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
47
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-ssec/node_modules/tslib/package.json.
48
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
49
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-location-constraint/node_modules/tslib/package.json.
50
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
51
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/protocol-http/node_modules/tslib/package.json.
52
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
53
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/eventstream-marshaller/node_modules/tslib/package.json.
54
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
55
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json.
56
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
57
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/fetch-http-handler/node_modules/tslib/package.json.
58
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
59
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/eventstream-serde-config-resolver/node_modules/tslib/package.json.
60
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
61
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/util-waiter/node_modules/tslib/package.json.
62
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
63
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-bucket-endpoint/node_modules/tslib/package.json.
64
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
65
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-sdk-s3/node_modules/tslib/package.json.
66
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
67
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/hash-blob-browser/node_modules/tslib/package.json.
68
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
69
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/md5-js/node_modules/tslib/package.json.
70
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
71
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-apply-body-checksum/node_modules/tslib/package.json.
72
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
73
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/middleware-stack/node_modules/tslib/package.json.
74
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
75
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/package.json.
76
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
77
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/package.json.
78
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
79
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-crypto/sha256-js/node_modules/tslib/package.json.
80
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
81
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/querystring-parser/node_modules/tslib/package.json.
82
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
83
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/eventstream-serde-browser/node_modules/tslib/package.json.
84
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
85
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/util-arn-parser/node_modules/tslib/package.json.
86
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
87
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/xml-builder/node_modules/tslib/package.json.
88
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
89
- @aws-amplify/ui-svelte:build: (node:2134) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/amplify-ui/amplify-ui/node_modules/@aws-sdk/eventstream-serde-universal/node_modules/tslib/package.json.
90
- @aws-amplify/ui-svelte:build: Update this package.json to use a subpath pattern like "./*".
91
- @aws-amplify/ui-svelte:build: ✓ 2081 modules transformed.
92
- @aws-amplify/ui-svelte:build: 9:21:17 PM [vite-plugin-svelte] The following packages did not export their `package.json` file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.
93
- @aws-amplify/ui-svelte:build: - @aws-amplify/ui
94
- @aws-amplify/ui-svelte:build: rendering chunks...
95
- @aws-amplify/ui-svelte:build: .svelte-kit/output/client/_app/manifest.json 1.27 KiB
96
- @aws-amplify/ui-svelte:build: .svelte-kit/output/client/_app/start-773fdc1b.js 19.60 KiB / gzip: 6.79 KiB
97
- @aws-amplify/ui-svelte:build: .svelte-kit/output/client/_app/layout.svelte-c4c530bc.js 0.53 KiB / gzip: 0.35 KiB
98
- @aws-amplify/ui-svelte:build: .svelte-kit/output/client/_app/error.svelte-45891722.js 1.56 KiB / gzip: 0.75 KiB
99
- @aws-amplify/ui-svelte:build: .svelte-kit/output/client/_app/assets/start-d5b4de3e.css 0.19 KiB / gzip: 0.16 KiB
100
- @aws-amplify/ui-svelte:build: .svelte-kit/output/client/_app/assets/pages/index.svelte-b6b4a4b3.css 125.87 KiB / gzip: 14.07 KiB
101
- @aws-amplify/ui-svelte:build: .svelte-kit/output/client/_app/pages/index.svelte-1763c7f6.js 120.16 KiB / gzip: 28.41 KiB
102
- @aws-amplify/ui-svelte:build: .svelte-kit/output/client/_app/chunks/vendor-bcc6beb8.js 462.18 KiB / gzip: 120.95 KiB
103
- @aws-amplify/ui-svelte:build: vite v2.7.10 building SSR bundle for production...
104
- @aws-amplify/ui-svelte:build: transforming...
105
- @aws-amplify/ui-svelte:build: 9:21:29 PM [vite-plugin-svelte] The following packages did not export their `package.json` file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.
106
- @aws-amplify/ui-svelte:build: - @aws-amplify/ui
107
- @aws-amplify/ui-svelte:build: ✓ 453 modules transformed.
108
- @aws-amplify/ui-svelte:build: rendering chunks...
109
- @aws-amplify/ui-svelte:build: .svelte-kit/output/server/manifest.json 0.99 KiB
110
- @aws-amplify/ui-svelte:build: .svelte-kit/output/server/app.js 46.82 KiB
111
- @aws-amplify/ui-svelte:build: .svelte-kit/output/server/entries/pages/layout.svelte.js 0.24 KiB
112
- @aws-amplify/ui-svelte:build: .svelte-kit/output/server/entries/pages/error.svelte.js 0.72 KiB
113
- @aws-amplify/ui-svelte:build: .svelte-kit/output/server/entries/pages/index.svelte.js 356.15 KiB
114
- @aws-amplify/ui-svelte:build: .svelte-kit/output/server/chunks/index-532f92af.js 5.67 KiB
115
- @aws-amplify/ui-svelte:build:
116
- @aws-amplify/ui-svelte:build: Run npm run preview to preview your production build locally.
117
- @aws-amplify/ui-svelte:build:
118
- @aws-amplify/ui-svelte:build: > Using @sveltejs/adapter-static
119
- @aws-amplify/ui-svelte:build: [ERROR] 21:31.936 AuthError -
120
- @aws-amplify/ui-svelte:build: Error: Amplify has not been configured correctly.
121
- @aws-amplify/ui-svelte:build: The configuration object is missing required auth properties.
122
- @aws-amplify/ui-svelte:build: This error is typically caused by one of the following scenarios:
123
- @aws-amplify/ui-svelte:build:
124
- @aws-amplify/ui-svelte:build: 1. Did you run `amplify push` after adding auth via `amplify add auth`?
125
- @aws-amplify/ui-svelte:build: See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information
126
- @aws-amplify/ui-svelte:build:
127
- @aws-amplify/ui-svelte:build: 2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.
128
- @aws-amplify/ui-svelte:build:
129
- @aws-amplify/ui-svelte:build: ✔ done
130
- @aws-amplify/ui-svelte:build: $ svelte-kit package
131
- @aws-amplify/ui-svelte:build: src/lib -> dist
132
- @aws-amplify/ui-svelte:build: Successfully built '@aws-amplify/ui-svelte' package. To publish it to npm:
133
- @aws-amplify/ui-svelte:build: cd dist
134
- @aws-amplify/ui-svelte:build: npm publish
135
- @aws-amplify/ui-svelte:build:
package/CHANGELOG.md DELETED
@@ -1,15 +0,0 @@
1
- # @aws-amplify/ui-svelte
2
-
3
- ## 0.0.0-next-7fd6f03-20220105212214
4
- ### Patch Changes
5
-
6
-
7
-
8
- - Version bump for all public packages
9
-
10
-
11
-
12
- - [#1073](https://github.com/aws-amplify/amplify-ui/pull/1073) [`c8114c55f`](https://github.com/aws-amplify/amplify-ui/commit/c8114c55f919f54c63cab01c44d9b189752d078b) Thanks [@ErikCH](https://github.com/ErikCH)! - Added SignIn for svelte
13
-
14
- - Updated dependencies []:
15
- - @aws-amplify/ui@0.0.0-next-7fd6f03-20220105212214
package/src/app.html DELETED
@@ -1,21 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="description" content="" />
6
- <link rel="icon" href="/favicon.png" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1" />
8
- %svelte.head%
9
- </head>
10
- <body>
11
- <div id="svelte">%svelte.body%</div>
12
- </body>
13
- </html>
14
- <script>
15
- const isBrowser = () => typeof window !== 'undefined';
16
- const isGlobal = () => typeof global !== 'undefined';
17
- var exports = {};
18
- if (!isGlobal() && isBrowser()) {
19
- var global = window;
20
- }
21
- </script>
package/src/global.d.ts DELETED
@@ -1 +0,0 @@
1
- /// <reference types="@sveltejs/kit" />
@@ -1,52 +0,0 @@
1
- <script lang="ts">
2
- import { onDestroy } from 'svelte';
3
- import { setupMachine, route, toSignIn } from '$lib/components/authStore';
4
- import SignIn from './SignIn.svelte';
5
- import AmplifyTabs from './primitives/AmplifyTabs.svelte';
6
-
7
- export let initialState = undefined;
8
- export let loginMechanisms = undefined;
9
- export let services = undefined;
10
- export let signUpAttributes = undefined;
11
- export let socialProviders = undefined;
12
-
13
- const _subscription = setupMachine(
14
- initialState,
15
- loginMechanisms,
16
- services,
17
- signUpAttributes,
18
- socialProviders
19
- );
20
-
21
- onDestroy(() => {
22
- if (_subscription) _subscription.unsubscribe();
23
- });
24
- </script>
25
-
26
- {#if $route !== 'authenticated'}
27
- <div data-amplify-authenticator>
28
- <div data-amplify-container>
29
- <!--Slot header goes here-->
30
- <div data-amplify-router>
31
- {#if $route === 'signIn' || $route === 'signUp'}
32
- <AmplifyTabs />
33
- {/if}
34
-
35
- {#if $route === 'signIn'}
36
- <SignIn />
37
- {/if}
38
- {#if $route === 'signUp'}
39
- <p>Sign Up</p>
40
- <button on:click={toSignIn}>To Sign In</button>
41
- {/if}
42
- {#if $route === 'resetPassword'}
43
- <p>reset password</p>
44
- <button on:click={toSignIn}>To Sign In</button>
45
- {/if}
46
- </div>
47
- </div>
48
- </div>
49
- {/if}
50
- {#if $route === 'authenticated'}
51
- <slot />
52
- {/if}
@@ -1,79 +0,0 @@
1
- <script lang="ts">
2
- import AmplifyFormField from './primitives/AmplifyFormField.svelte';
3
- import AmplifyError from './primitives/AmplifyError.svelte';
4
- import UserNameAlias from './UserNameAlias.svelte';
5
- import AmplifyButton from './primitives/AmplifyButton.svelte';
6
- import { translate } from '@aws-amplify/ui';
7
- import {
8
- updateForm,
9
- submitForm,
10
- isPending,
11
- error,
12
- toResetPassword,
13
- } from '$lib/components/authStore';
14
-
15
- const forgotPasswordText = translate('Forgot your password? ');
16
- const signInButtonText = translate('Sign in');
17
- const signingButtonText = translate('Signing in');
18
-
19
- function onInput(event: Event) {
20
- event.preventDefault();
21
- const { name, value } = <HTMLInputElement>event.target;
22
- updateForm({ name, value });
23
- }
24
-
25
- function onSubmit(event: Event): void {
26
- event.preventDefault();
27
- submitForm();
28
- }
29
- </script>
30
-
31
- <div data-amplify-container>
32
- <form
33
- data-amplify-form
34
- on:submit|preventDefault={onSubmit}
35
- on:input={onInput}
36
- >
37
- <fieldset
38
- class="amplify-flex"
39
- style="flex-direction: column"
40
- data-amplify-fieldset
41
- disabled={$isPending}
42
- >
43
- <UserNameAlias />
44
- <AmplifyFormField
45
- data-amplify-password
46
- name="password"
47
- type="password"
48
- autocomplete="current-password"
49
- />
50
- <AmplifyButton
51
- disabled={$isPending}
52
- variation="primary"
53
- fullWidth="true"
54
- type="submit"
55
- >
56
- {$isPending ? signingButtonText : signInButtonText}
57
- </AmplifyButton>
58
-
59
- {#if $error}
60
- <AmplifyError>
61
- {$error}
62
- </AmplifyError>
63
- {/if}
64
- </fieldset>
65
- </form>
66
-
67
- <div data-amplify-footer>
68
- <AmplifyButton
69
- amplify-button
70
- fontWeight="normal"
71
- data-size="small"
72
- variation="link"
73
- fullWidth="true"
74
- on:click={toResetPassword}
75
- >
76
- {forgotPasswordText}
77
- </AmplifyButton>
78
- </div>
79
- </div>
@@ -1,32 +0,0 @@
1
- <script lang="ts">
2
- import AmplifyFormField from './primitives/AmplifyFormField.svelte';
3
- import { onMount } from 'svelte';
4
- import { authState } from '$lib/components/authStore';
5
- import { getAliasInfoFromContext } from '@aws-amplify/ui';
6
- export let name: string = 'username';
7
- export let disabled: boolean = false;
8
- export let initialValue: string = '';
9
- export let required: boolean = true;
10
- let label: string;
11
- let type: string;
12
- let error: string;
13
- let placeholder: string;
14
-
15
- onMount(() => {
16
- const { label, type } = getAliasInfoFromContext($authState.context);
17
-
18
- placeholder = label;
19
- });
20
- </script>
21
-
22
- <AmplifyFormField
23
- data-amplify-usernamealias
24
- {name}
25
- {label}
26
- {type}
27
- {placeholder}
28
- {initialValue}
29
- {disabled}
30
- {required}
31
- autocomplete="username"
32
- />
@@ -1,138 +0,0 @@
1
- import {
2
- createAuthenticatorMachine,
3
- getServiceContextFacade,
4
- getSendEventAliases,
5
- translate,
6
- } from '@aws-amplify/ui';
7
- import { interpret } from 'xstate';
8
-
9
- import { writable, get } from 'svelte/store';
10
-
11
- let _facade = writable<ReturnType<typeof getServiceContextFacade>>(null);
12
- export const error = writable(null);
13
- export const route = writable(null);
14
- export const isPending = writable(null);
15
- export const hasValidationErrors = writable(null);
16
- export const user = writable(null);
17
- export const validationErrors = writable(null);
18
- export const codeDeliveryDetails = writable(null);
19
- const _sendEventAliases =
20
- writable<ReturnType<typeof getSendEventAliases>>(null);
21
- /** @deprecated For internal use only */
22
- export const authState = writable(null);
23
-
24
- export function setupMachine(
25
- initialState,
26
- loginMechanisms,
27
- services,
28
- signUpAttributes,
29
- socialProviders
30
- ) {
31
- const machine = createAuthenticatorMachine({
32
- initialState,
33
- loginMechanisms,
34
- services,
35
- signUpAttributes,
36
- socialProviders,
37
- });
38
-
39
- const authService = interpret(machine, {
40
- devTools: process.env.NODE_ENV === 'development',
41
- }).start();
42
-
43
- const subscription = authService.subscribe((state) => {
44
- authState.update(() => state);
45
- _facade.update(() => getServiceContextFacade(state));
46
- setError();
47
- setRoute();
48
- setHasValidationErrors();
49
- setCodeDeliveryDetails();
50
- setIsPending();
51
- setUser();
52
- setValidationErrors();
53
- });
54
-
55
- _sendEventAliases.set(getSendEventAliases(authService.send));
56
- const _authService = authService;
57
- return subscription;
58
- }
59
-
60
- /**
61
- * Context facades
62
- */
63
-
64
- function setError() {
65
- error.set(translate(get(_facade).error));
66
- }
67
-
68
- function setRoute() {
69
- route.set(get(_facade).route);
70
- }
71
-
72
- function setHasValidationErrors() {
73
- hasValidationErrors.set(get(_facade).hasValidationErrors);
74
- }
75
-
76
- function setIsPending() {
77
- isPending.set(get(_facade).isPending);
78
- }
79
-
80
- function setUser() {
81
- user.set(get(_facade).user);
82
- }
83
-
84
- function setValidationErrors() {
85
- validationErrors.set(get(_facade).validationErrors);
86
- }
87
-
88
- function setCodeDeliveryDetails() {
89
- codeDeliveryDetails.set(get(_facade).codeDeliveryDetails);
90
- }
91
-
92
- // /**
93
- // * Service facades
94
- // */
95
-
96
- export function updateForm(...args) {
97
- return get(_sendEventAliases).updateForm(...args);
98
- }
99
-
100
- export function updateBlur(...args) {
101
- return get(_sendEventAliases).updateBlur(...args);
102
- }
103
-
104
- export function resendCode(...args) {
105
- return get(_sendEventAliases).resendCode(...args);
106
- }
107
-
108
- export function signOut(...args) {
109
- return get(_sendEventAliases).signOut(...args);
110
- }
111
-
112
- export function submitForm(...args) {
113
- return get(_sendEventAliases).submitForm(...args);
114
- }
115
-
116
- // /**
117
- // * Transition facades
118
- // */
119
-
120
- export function toFederatedSignIn(...args) {
121
- return get(_sendEventAliases).toFederatedSignIn(...args);
122
- }
123
-
124
- export function toResetPassword(...args) {
125
- return get(_sendEventAliases).toResetPassword(...args);
126
- }
127
-
128
- export function toSignIn(...args) {
129
- return get(_sendEventAliases).toSignIn(...args);
130
- }
131
-
132
- export function toSignUp(...args) {
133
- return get(_sendEventAliases).toSignUp(...args);
134
- }
135
-
136
- export function skipVerification(...args) {
137
- return get(_sendEventAliases).skipVerification(...args);
138
- }