@resistdesign/voltra 0.0.0-alpha.0 → 3.0.0-alpha.1

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
@@ -1,24 +1,10 @@
1
1
  # Voltra
2
2
 
3
- ![Voltra Logo Inverse 2025.svg](https://docs.voltra.app/images/Voltra%20Logo%20Inverse%202025.svg "Voltra")
4
-
5
- <style>
6
-
7
- .nav-button {
8
- background: linear-gradient(145deg, #b285c9, #5e3a76); color: white; border: none; border-radius: 50px; padding:
9
- 15px 30px; font-size: 18px; font-weight: bold; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0
10
- 8px 15px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; cursor: pointer; text-decoration: none; display: inline-block;"
11
- onmouseover="this.style.background='linear-gradient(145deg, #a374b9, #4d2d61)'; this.style.boxShadow='0 6px 8px rgba(0,
12
- 0, 0, 0.2), 0 12px 20px rgba(0, 0, 0, 0.2)'; this.style.transform='translateY(-2px)';" onmouseout="
13
- this.style.background='linear-gradient(145deg, #b285c9, #5e3a76)'; this.style.boxShadow='0 4px 6px rgba(0, 0, 0, 0.1), 0
14
- 8px 15px rgba(0, 0, 0, 0.1)'; this.style.transform='translateY(0)';
15
- }
16
-
17
- </style>
3
+ ![Voltra Logo 2025.svg](https://docs.voltra.app/images/Voltra%20Logo%202025.svg "Voltra")
18
4
 
19
5
  ------------
20
6
 
21
- <a class="nav-button" href="https://docs.voltra.app">See The Demos</a>
7
+ [See The Demos](https://docs.voltra.app)
22
8
 
23
9
  ## Usage
24
10
 
@@ -40,7 +26,7 @@ features like chainable stacks and comprehensive parameter support. Its intuitiv
40
26
  databases, storage, authentication, and functions through easy-to-use packs. Furthermore, Voltra enhances development
41
27
  workflows with advanced state management, and a smart, lightweight routing system for React
42
28
  front-end apps.</td>
43
- <td><img src="https://docs.voltra.app/images/Voltra%20Robot%20Coming%20Together.png" style="width: 200em;" /></td>
29
+ <td><img src="https://docs.voltra.app/images/Voltra%20Incarnate.png" style="width: 400em;" /></td>
44
30
  </tr>
45
31
  </tbody>
46
32
  </table>
@@ -82,5 +68,5 @@ When the GitHub Release is marked as a prerelease, the npm publish step uses the
82
68
  `next` dist-tag instead of `latest`. Consumers can install prereleases with:
83
69
 
84
70
  ```bash
85
- npm install @resistdesign/voltra@next
71
+ yarn add @resistdesign/voltra@next
86
72
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resistdesign/voltra",
3
- "version": "0.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.1",
4
4
  "description": "With our powers combined!",
5
5
  "homepage": "https://voltra.app",
6
6
  "repository": "git@github.com:resistdesign/voltra.git",
@@ -23,11 +23,11 @@
23
23
  "doc:dev": "typedoc --watch",
24
24
  "doc-to-site": "cp -r ./docs site-dist/app/",
25
25
  "prep-dist": "cp package.json dist/ && cp README.md dist/ && cp .npmignore dist/",
26
- "site:build:app": "parcel build site/app/index.html --dist-dir site-dist --target app && yarn finalize-site",
27
- "site:build:api": "parcel build site/api/index.ts --target api --dist-dir site-dist --no-source-maps --no-optimize --no-scope-hoist",
26
+ "site:build:app": "astro build && yarn finalize-site",
27
+ "site:build:api": "node ./site/build-api.mjs",
28
28
  "site:build:iac": "ts-node ./site/iac/index.ts",
29
- "start": "parcel site/app/index.html --host docs-local.demo.voltra.app --dist-dir site-dist/app --https",
30
- "finalize-site": "yarn doc && yarn doc-to-site && cp CNAME site-dist/app/ && cp -r ./images site-dist/app/",
29
+ "start": "astro dev --host docs-local.demo.voltra.app --https",
30
+ "finalize-site": "yarn doc && yarn doc-to-site && cp CNAME site-dist/app/",
31
31
  "iac:types:gen": "ts-node ./src/iac/types/generate.ts"
32
32
  },
33
33
  "dependencies": {
@@ -35,6 +35,7 @@
35
35
  "@aws-sdk/client-s3": "^3.490.0",
36
36
  "@aws-sdk/s3-request-presigner": "^3.490.0",
37
37
  "@aws-sdk/util-dynamodb": "^3.490.0",
38
+ "@fontsource/montserrat-subrayada": "^5.2.5",
38
39
  "@picocss/pico": "^2.1.1",
39
40
  "ace-builds": "^1.32.3",
40
41
  "fast-glob": "^3.3.3",
@@ -49,55 +50,23 @@
49
50
  "yaml": "^2.3.4"
50
51
  },
51
52
  "devDependencies": {
52
- "@parcel/packager-raw-url": "2.13.3",
53
- "@parcel/packager-ts": "2.13.3",
54
- "@parcel/transformer-inline-string": "2.13.3",
55
- "@parcel/transformer-typescript-types": "2.11.0",
56
- "@parcel/transformer-webmanifest": "2.13.3",
53
+ "@astrojs/react": "^4.3.1",
57
54
  "@types/cfn-response": "^1.0.8",
58
55
  "@types/node": "^20.11.6",
59
56
  "@types/react-dom": "^18.3.0",
60
57
  "@types/styled-components": "^5.1.34",
58
+ "@vitejs/plugin-basic-ssl": "^2.1.0",
59
+ "astro": "^5.13.5",
61
60
  "aws-lambda": "^1.0.7",
62
61
  "aws-sdk": "^2.1545.0",
63
62
  "buffer": "^5.5.0||^6.0.0",
64
63
  "cfn-response": "^1.0.1",
65
- "parcel": "^2.13.3",
64
+ "esbuild": "^0.25.9",
66
65
  "prettier": "^3.6.2",
67
66
  "process": "^0.11.10",
68
67
  "svgo": "^3",
69
68
  "ts-morph": "^24.0.0",
70
69
  "typedoc": "^0.25.8",
71
70
  "typedoc-material-theme": "^1.0.2"
72
- },
73
- "targets": {
74
- "app": {
75
- "context": "browser",
76
- "engines": {
77
- "browsers": [
78
- "last 2 version",
79
- "not dead",
80
- "> 0.2%"
81
- ]
82
- },
83
- "includeNodeModules": true,
84
- "outputFormat": "commonjs",
85
- "isLibrary": false,
86
- "scopeHoist": false
87
- },
88
- "api": {
89
- "context": "node",
90
- "engines": {
91
- "node": ">=20"
92
- },
93
- "outputFormat": "commonjs",
94
- "includeNodeModules": true,
95
- "isLibrary": false,
96
- "scopeHoist": false
97
- }
98
- },
99
- "@parcel/transformer-js": {
100
- "inlineFS": true,
101
- "inlineEnvironment": true
102
71
  }
103
72
  }
@@ -141,11 +141,11 @@ exports.addUserManagement = (0, utils_1.createResourcePack)(({ id, authRoleName,
141
141
  : {};
142
142
  return {
143
143
  Resources: {
144
- [`${id}UserPool`]: {
144
+ [id]: {
145
145
  Type: "AWS::Cognito::UserPool",
146
146
  Properties: {
147
147
  UserPoolName: {
148
- "Fn::Sub": [`$\{AWS::StackName\}${id}UserPool`, {}],
148
+ "Fn::Sub": [`$\{AWS::StackName\}${id}`, {}],
149
149
  },
150
150
  AccountRecoverySetting: {
151
151
  RecoveryMechanisms: [
@@ -207,7 +207,7 @@ exports.addUserManagement = (0, utils_1.createResourcePack)(({ id, authRoleName,
207
207
  },
208
208
  }
209
209
  : undefined,
210
- [`${id}UserPoolDomainRecord`]: {
210
+ [`${id}DomainRecord`]: {
211
211
  Type: "AWS::Route53::RecordSet",
212
212
  DeletionPolicy: "Delete",
213
213
  Properties: {
@@ -224,12 +224,12 @@ exports.addUserManagement = (0, utils_1.createResourcePack)(({ id, authRoleName,
224
224
  AliasTarget: {
225
225
  HostedZoneId: "Z2FDTNDATAQYW2",
226
226
  DNSName: {
227
- "Fn::GetAtt": [`${id}UserPoolDomain`, "CloudFrontDistribution"],
227
+ "Fn::GetAtt": [`${id}Domain`, "CloudFrontDistribution"],
228
228
  },
229
229
  },
230
230
  },
231
231
  },
232
- [`${id}UserPoolDomain`]: {
232
+ [`${id}Domain`]: {
233
233
  Type: "AWS::Cognito::UserPoolDomain",
234
234
  DependsOn: !!baseDomainRecordAliasTargetDNSName
235
235
  ? `${id}BaseDomainRecord`
@@ -244,21 +244,21 @@ exports.addUserManagement = (0, utils_1.createResourcePack)(({ id, authRoleName,
244
244
  ],
245
245
  },
246
246
  UserPoolId: {
247
- Ref: `${id}UserPool`,
247
+ Ref: id,
248
248
  },
249
249
  CustomDomainConfig: {
250
250
  CertificateArn: sslCertificateArn,
251
251
  },
252
252
  },
253
253
  },
254
- [`${id}UserPoolClient`]: {
254
+ [`${id}Client`]: {
255
255
  Type: "AWS::Cognito::UserPoolClient",
256
256
  Properties: {
257
257
  ClientName: {
258
- "Fn::Sub": [`$\{AWS::StackName\}${id}UserPoolClient`, {}],
258
+ "Fn::Sub": [`$\{AWS::StackName\}${id}Client`, {}],
259
259
  },
260
260
  UserPoolId: {
261
- Ref: `${id}UserPool`,
261
+ Ref: id,
262
262
  },
263
263
  AllowedOAuthFlowsUserPoolClient: true,
264
264
  AllowedOAuthFlows: ["code", "implicit"],
@@ -286,10 +286,10 @@ exports.addUserManagement = (0, utils_1.createResourcePack)(({ id, authRoleName,
286
286
  CognitoIdentityProviders: [
287
287
  {
288
288
  ClientId: {
289
- Ref: `${id}UserPoolClient`,
289
+ Ref: `${id}Client`,
290
290
  },
291
291
  ProviderName: {
292
- "Fn::GetAtt": [`${id}UserPool`, "ProviderName"],
292
+ "Fn::GetAtt": [id, "ProviderName"],
293
293
  },
294
294
  ServerSideTokenCheck: true,
295
295
  },
@@ -38,7 +38,7 @@ exports.addAuth = (0, utils_1.createResourcePack)(({ userManagementId, authRoleN
38
38
  Properties: {
39
39
  GroupName: userManagementAdminGroupName,
40
40
  UserPoolId: {
41
- Ref: `${userManagementId}UserPool`,
41
+ Ref: userManagementId,
42
42
  },
43
43
  Description: "Application admin group.",
44
44
  },