@pandacss/studio 0.0.0-dev-20230702221056 → 0.0.0-dev-20230703100720
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/studio",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230703100720",
|
|
4
4
|
"description": "The automated token documentation for Panda CSS",
|
|
5
5
|
"main": "dist/studio.js",
|
|
6
6
|
"module": "dist/studio.mjs",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"src",
|
|
15
15
|
"public",
|
|
16
16
|
"styled-system",
|
|
17
|
-
"*.ts"
|
|
17
|
+
"*.ts",
|
|
18
|
+
"*.mjs"
|
|
18
19
|
],
|
|
19
20
|
"keywords": [
|
|
20
21
|
"panda",
|
|
@@ -32,19 +33,19 @@
|
|
|
32
33
|
"react": "18.2.0",
|
|
33
34
|
"react-dom": "18.2.0",
|
|
34
35
|
"vite": "4.3.9",
|
|
35
|
-
"@pandacss/types": "0.0.0-dev-
|
|
36
|
-
"@pandacss/config": "0.0.0-dev-
|
|
37
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
38
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
39
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
40
|
-
"@pandacss/node": "0.0.0-dev-
|
|
36
|
+
"@pandacss/types": "0.0.0-dev-20230703100720",
|
|
37
|
+
"@pandacss/config": "0.0.0-dev-20230703100720",
|
|
38
|
+
"@pandacss/shared": "0.0.0-dev-20230703100720",
|
|
39
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230703100720",
|
|
40
|
+
"@pandacss/logger": "0.0.0-dev-20230703100720",
|
|
41
|
+
"@pandacss/node": "0.0.0-dev-20230703100720"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@types/react": "18.2.14",
|
|
44
45
|
"@types/react-dom": "18.2.6",
|
|
45
46
|
"@vitejs/plugin-react": "4.0.1",
|
|
46
47
|
"execa": "7.1.1",
|
|
47
|
-
"@pandacss/dev": "0.0.0-dev-
|
|
48
|
+
"@pandacss/dev": "0.0.0-dev-20230703100720"
|
|
48
49
|
},
|
|
49
50
|
"scripts": {
|
|
50
51
|
"codegen": "panda",
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { analyzeTokens, findConfig, loadConfigAndCreateContext, writeAnalyzeJSON } from '@pandacss/node'
|
|
2
|
-
import type { AstroIntegration } from 'astro'
|
|
3
2
|
import { stringify } from 'javascript-stringify'
|
|
4
|
-
import type { Plugin as VitePlugin } from 'vite'
|
|
5
3
|
|
|
6
4
|
import { dirname, resolve } from 'path'
|
|
7
5
|
import { fileURLToPath } from 'url'
|
|
@@ -13,8 +11,11 @@ const _dirname = dirname(fileURLToPath(import.meta.url))
|
|
|
13
11
|
const analysisDataFilepath = 'src/lib/analysis.json'
|
|
14
12
|
const jsonPath = resolve(_dirname, analysisDataFilepath)
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @returns import('vite').VitePlugin
|
|
16
|
+
*/
|
|
17
|
+
function vitePlugin() {
|
|
18
|
+
let config
|
|
18
19
|
|
|
19
20
|
return {
|
|
20
21
|
name: 'vite:panda',
|
|
@@ -50,7 +51,10 @@ function vitePlugin(): VitePlugin {
|
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
/**
|
|
55
|
+
* @returns import('astro').AstroIntegration
|
|
56
|
+
*/
|
|
57
|
+
const virtualPanda = () => ({
|
|
54
58
|
name: 'virtual:panda',
|
|
55
59
|
hooks: {
|
|
56
60
|
'astro:config:setup': ({ updateConfig, addWatchFile }) => {
|