@pandacss/config 1.4.1 → 1.4.2
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/dist/{chunk-U3UHISDU.mjs → chunk-LZJ2CL2G.mjs} +15 -0
- package/dist/diff-config.js +15 -0
- package/dist/diff-config.mjs +1 -1
- package/dist/index.js +15 -0
- package/dist/index.mjs +1 -1
- package/package.json +7 -6
|
@@ -94,6 +94,15 @@ var artifactMatchers = Object.entries(artifactConfigDeps).map(([key, paths]) =>
|
|
|
94
94
|
|
|
95
95
|
// src/diff-config.ts
|
|
96
96
|
var runIfFn = (fn) => typeof fn === "function" ? fn() : fn;
|
|
97
|
+
var hasRecipeStateTransition = (prevConfig, nextConfig) => {
|
|
98
|
+
const prevRecipes = prevConfig.theme?.recipes ?? {};
|
|
99
|
+
const prevSlotRecipes = prevConfig.theme?.slotRecipes ?? {};
|
|
100
|
+
const prevHasRecipes = Object.keys(prevRecipes).length > 0 || Object.keys(prevSlotRecipes).length > 0;
|
|
101
|
+
const nextRecipes = nextConfig.theme?.recipes ?? {};
|
|
102
|
+
const nextSlotRecipes = nextConfig.theme?.slotRecipes ?? {};
|
|
103
|
+
const nextHasRecipes = Object.keys(nextRecipes).length > 0 || Object.keys(nextSlotRecipes).length > 0;
|
|
104
|
+
return prevHasRecipes !== nextHasRecipes;
|
|
105
|
+
};
|
|
97
106
|
function diffConfigs(config, prevConfig) {
|
|
98
107
|
const affected = {
|
|
99
108
|
artifacts: /* @__PURE__ */ new Set(),
|
|
@@ -126,6 +135,12 @@ function diffConfigs(config, prevConfig) {
|
|
|
126
135
|
affected.artifacts.add(id);
|
|
127
136
|
});
|
|
128
137
|
});
|
|
138
|
+
if (affected.artifacts.has("recipes") || affected.artifacts.has("recipes-index")) {
|
|
139
|
+
const nextConfig = runIfFn(config);
|
|
140
|
+
if (hasRecipeStateTransition(prevConfig, nextConfig)) {
|
|
141
|
+
affected.artifacts.add("create-recipe");
|
|
142
|
+
}
|
|
143
|
+
}
|
|
129
144
|
return affected;
|
|
130
145
|
}
|
|
131
146
|
|
package/dist/diff-config.js
CHANGED
|
@@ -128,6 +128,15 @@ var artifactMatchers = Object.entries(artifactConfigDeps).map(([key, paths]) =>
|
|
|
128
128
|
|
|
129
129
|
// src/diff-config.ts
|
|
130
130
|
var runIfFn = (fn) => typeof fn === "function" ? fn() : fn;
|
|
131
|
+
var hasRecipeStateTransition = (prevConfig, nextConfig) => {
|
|
132
|
+
const prevRecipes = prevConfig.theme?.recipes ?? {};
|
|
133
|
+
const prevSlotRecipes = prevConfig.theme?.slotRecipes ?? {};
|
|
134
|
+
const prevHasRecipes = Object.keys(prevRecipes).length > 0 || Object.keys(prevSlotRecipes).length > 0;
|
|
135
|
+
const nextRecipes = nextConfig.theme?.recipes ?? {};
|
|
136
|
+
const nextSlotRecipes = nextConfig.theme?.slotRecipes ?? {};
|
|
137
|
+
const nextHasRecipes = Object.keys(nextRecipes).length > 0 || Object.keys(nextSlotRecipes).length > 0;
|
|
138
|
+
return prevHasRecipes !== nextHasRecipes;
|
|
139
|
+
};
|
|
131
140
|
function diffConfigs(config, prevConfig) {
|
|
132
141
|
const affected = {
|
|
133
142
|
artifacts: /* @__PURE__ */ new Set(),
|
|
@@ -160,6 +169,12 @@ function diffConfigs(config, prevConfig) {
|
|
|
160
169
|
affected.artifacts.add(id);
|
|
161
170
|
});
|
|
162
171
|
});
|
|
172
|
+
if (affected.artifacts.has("recipes") || affected.artifacts.has("recipes-index")) {
|
|
173
|
+
const nextConfig = runIfFn(config);
|
|
174
|
+
if (hasRecipeStateTransition(prevConfig, nextConfig)) {
|
|
175
|
+
affected.artifacts.add("create-recipe");
|
|
176
|
+
}
|
|
177
|
+
}
|
|
163
178
|
return affected;
|
|
164
179
|
}
|
|
165
180
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/diff-config.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -205,6 +205,15 @@ var artifactMatchers = Object.entries(artifactConfigDeps).map(([key, paths]) =>
|
|
|
205
205
|
|
|
206
206
|
// src/diff-config.ts
|
|
207
207
|
var runIfFn = (fn) => typeof fn === "function" ? fn() : fn;
|
|
208
|
+
var hasRecipeStateTransition = (prevConfig, nextConfig) => {
|
|
209
|
+
const prevRecipes = prevConfig.theme?.recipes ?? {};
|
|
210
|
+
const prevSlotRecipes = prevConfig.theme?.slotRecipes ?? {};
|
|
211
|
+
const prevHasRecipes = Object.keys(prevRecipes).length > 0 || Object.keys(prevSlotRecipes).length > 0;
|
|
212
|
+
const nextRecipes = nextConfig.theme?.recipes ?? {};
|
|
213
|
+
const nextSlotRecipes = nextConfig.theme?.slotRecipes ?? {};
|
|
214
|
+
const nextHasRecipes = Object.keys(nextRecipes).length > 0 || Object.keys(nextSlotRecipes).length > 0;
|
|
215
|
+
return prevHasRecipes !== nextHasRecipes;
|
|
216
|
+
};
|
|
208
217
|
function diffConfigs(config, prevConfig) {
|
|
209
218
|
const affected = {
|
|
210
219
|
artifacts: /* @__PURE__ */ new Set(),
|
|
@@ -237,6 +246,12 @@ function diffConfigs(config, prevConfig) {
|
|
|
237
246
|
affected.artifacts.add(id);
|
|
238
247
|
});
|
|
239
248
|
});
|
|
249
|
+
if (affected.artifacts.has("recipes") || affected.artifacts.has("recipes-index")) {
|
|
250
|
+
const nextConfig = runIfFn(config);
|
|
251
|
+
if (hasRecipeStateTransition(prevConfig, nextConfig)) {
|
|
252
|
+
affected.artifacts.add("create-recipe");
|
|
253
|
+
}
|
|
254
|
+
}
|
|
240
255
|
return affected;
|
|
241
256
|
}
|
|
242
257
|
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/config",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Find and load panda config",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"author": "Segun Adebayo <joseshegs@gmail.com>",
|
|
9
|
+
"license": "MIT",
|
|
9
10
|
"sideEffects": false,
|
|
10
11
|
"homepage": "https://panda-css.com",
|
|
11
12
|
"repository": {
|
|
@@ -73,11 +74,11 @@
|
|
|
73
74
|
"merge-anything": "5.1.7",
|
|
74
75
|
"microdiff": "1.3.2",
|
|
75
76
|
"typescript": "5.8.3",
|
|
76
|
-
"@pandacss/logger": "1.4.
|
|
77
|
-
"@pandacss/preset-base": "1.4.
|
|
78
|
-
"@pandacss/preset-panda": "1.4.
|
|
79
|
-
"@pandacss/shared": "1.4.
|
|
80
|
-
"@pandacss/types": "1.4.
|
|
77
|
+
"@pandacss/logger": "1.4.2",
|
|
78
|
+
"@pandacss/preset-base": "1.4.2",
|
|
79
|
+
"@pandacss/preset-panda": "1.4.2",
|
|
80
|
+
"@pandacss/shared": "1.4.2",
|
|
81
|
+
"@pandacss/types": "1.4.2"
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
83
84
|
"pkg-types": "2.2.0"
|