@stacksjs/types 0.75.592 → 0.75.597
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 +20 -0
- package/dist/library.d.ts +27 -3
- package/dist/library.js +1 -0
- package/dist/payments.d.ts +1 -0
- package/package.json +19 -7
package/README.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
This package contains the Stacks TypeScript types.
|
|
4
4
|
|
|
5
|
+
## Library configuration
|
|
6
|
+
|
|
7
|
+
The library entrypoint provides configuration types for functions, components,
|
|
8
|
+
web components and their native release lifecycle:
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
import type { LibraryConfig } from '@stacksjs/types/library'
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
repository: 'example/widgets',
|
|
15
|
+
releaseable: true,
|
|
16
|
+
release: { publisher: 'bun', distTag: 'alpha' },
|
|
17
|
+
packages: [{ name: '@example/widgets', kind: 'functions', registry: 'npm' }],
|
|
18
|
+
} satisfies LibraryConfig
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Its declarations depend only on the library configuration types and component
|
|
22
|
+
tag metadata. The same public subpath includes an executable empty module for
|
|
23
|
+
tools that resolve configuration entrypoints at runtime.
|
|
24
|
+
|
|
5
25
|
## ☘️ Features
|
|
6
26
|
|
|
7
27
|
wip
|
package/dist/library.d.ts
CHANGED
|
@@ -15,14 +15,37 @@ export declare interface LibraryOptions {
|
|
|
15
15
|
author: string
|
|
16
16
|
contributors: string[]
|
|
17
17
|
releaseable: boolean
|
|
18
|
+
release?: LibraryReleaseOptions
|
|
18
19
|
defaultLanguage: LanguageCode
|
|
19
20
|
webComponents: LibraryBuildOptions
|
|
20
21
|
functions: LibraryBuildOptions
|
|
21
22
|
packages: LibraryPackageOptions[]
|
|
22
23
|
}
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
/** Configuration shared by normal Buddy release and its CI/resume phases. */
|
|
25
|
+
export declare interface LibraryReleaseOptions {
|
|
26
|
+
publisher?: 'bun' | 'npm' | 'pantry'
|
|
27
|
+
distTag?: string
|
|
28
|
+
checks?: string[]
|
|
29
|
+
sourceCi?: {
|
|
30
|
+
workflow: string
|
|
31
|
+
branch: string
|
|
32
|
+
requiredJobs: string[]
|
|
33
|
+
timeoutMinutes?: number
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/** Public browser assets emitted alongside a native web-component package. */
|
|
37
|
+
export declare interface LibraryHostedOptions {
|
|
38
|
+
outputDir: string
|
|
39
|
+
base: string
|
|
40
|
+
entry: string
|
|
41
|
+
styles?: string[]
|
|
42
|
+
loader?: {
|
|
43
|
+
source: string
|
|
44
|
+
exports?: string[]
|
|
45
|
+
define?: Record<string, string>
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/** One releasable package built out of `resources/`. */
|
|
26
49
|
export declare interface LibraryPackageOptions {
|
|
27
50
|
name: string
|
|
28
51
|
kind?: LibraryPackageKind
|
|
@@ -46,6 +69,7 @@ export declare interface LibraryPackageOptions {
|
|
|
46
69
|
runtime?: 'standalone' | 'stx'
|
|
47
70
|
dependencies?: Record<string, string>
|
|
48
71
|
peerDependencies?: Record<string, string>
|
|
72
|
+
hosted?: LibraryHostedOptions
|
|
49
73
|
}
|
|
50
74
|
/**
|
|
51
75
|
* The list of available options to build your library.
|
package/dist/library.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
package/dist/payments.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type Stripe from 'stripe';
|
|
|
3
3
|
// Configuration Types
|
|
4
4
|
// =============================================================================
|
|
5
5
|
export declare interface PaymentOptions {
|
|
6
|
+
checkoutReturnOrigins?: string[]
|
|
6
7
|
driver: 'stripe' | 'adyen' | 'paddle' | 'lemonsqueezy' | (string & {})
|
|
7
8
|
stripe: StripeConfig
|
|
8
9
|
adyen?: AdyenConfig
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.75.
|
|
4
|
+
"version": "0.75.597",
|
|
5
5
|
"description": "The Stacks framework types.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -48,6 +48,12 @@
|
|
|
48
48
|
"bun": "./dist/*.js",
|
|
49
49
|
"import": "./dist/*.js",
|
|
50
50
|
"default": "./dist/*.js"
|
|
51
|
+
},
|
|
52
|
+
"./library": {
|
|
53
|
+
"types": "./dist/library.d.ts",
|
|
54
|
+
"bun": "./dist/library.js",
|
|
55
|
+
"import": "./dist/library.js",
|
|
56
|
+
"default": "./dist/library.js"
|
|
51
57
|
}
|
|
52
58
|
},
|
|
53
59
|
"module": "dist/index.js",
|
|
@@ -64,16 +70,16 @@
|
|
|
64
70
|
"dependencies": {
|
|
65
71
|
"@stacksjs/bunpress": "^0.2.15",
|
|
66
72
|
"@stacksjs/clapp": "^0.2.17",
|
|
67
|
-
"@stacksjs/events": "0.75.
|
|
68
|
-
"@stacksjs/strings": "0.75.
|
|
69
|
-
"@stacksjs/stx": "^0.2.
|
|
73
|
+
"@stacksjs/events": "0.75.597",
|
|
74
|
+
"@stacksjs/strings": "0.75.597",
|
|
75
|
+
"@stacksjs/stx": "^0.2.889",
|
|
70
76
|
"@stacksjs/ts-validation": "^0.5.7",
|
|
71
77
|
"bun-query-builder": "^0.6.0",
|
|
72
78
|
"meilisearch": "^0.62.0",
|
|
73
79
|
"stripe": "23.0.0"
|
|
74
80
|
},
|
|
75
81
|
"devDependencies": {
|
|
76
|
-
"@stacksjs/validation": "0.75.
|
|
82
|
+
"@stacksjs/validation": "0.75.597",
|
|
77
83
|
"better-dx": "^0.2.39"
|
|
78
84
|
},
|
|
79
85
|
"sideEffects": false,
|
|
@@ -95,11 +101,17 @@
|
|
|
95
101
|
"bun": "./dist/*",
|
|
96
102
|
"import": "./dist/*",
|
|
97
103
|
"default": "./dist/*"
|
|
104
|
+
},
|
|
105
|
+
"./library": {
|
|
106
|
+
"types": "./dist/library.d.ts",
|
|
107
|
+
"bun": "./dist/library.js",
|
|
108
|
+
"import": "./dist/library.js",
|
|
109
|
+
"default": "./dist/library.js"
|
|
98
110
|
}
|
|
99
111
|
}
|
|
100
112
|
},
|
|
101
113
|
"peerDependencies": {
|
|
102
|
-
"@stacksjs/actions": "0.75.
|
|
103
|
-
"@stacksjs/scheduler": "0.75.
|
|
114
|
+
"@stacksjs/actions": "0.75.597",
|
|
115
|
+
"@stacksjs/scheduler": "0.75.597"
|
|
104
116
|
}
|
|
105
117
|
}
|