@styleframe/plugin 2.4.0 → 3.0.0
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/CHANGELOG.md +27 -0
- package/dist/astro.d.ts +1 -1
- package/dist/astro.d.ts.map +1 -1
- package/dist/astro.js +2 -3
- package/dist/astro.js.map +1 -1
- package/dist/esbuild.d.ts +3 -3
- package/dist/esbuild.js +1 -2
- package/dist/esbuild.js.map +1 -1
- package/dist/farm.d.ts +1 -1
- package/dist/farm.js +1 -2
- package/dist/farm.js.map +1 -1
- package/dist/index-CXVebONK.d.ts +36 -0
- package/dist/index-CXVebONK.d.ts.map +1 -0
- package/dist/index.d.ts +2 -10
- package/dist/index.js +2 -3
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +3 -4
- package/dist/nuxt.js.map +1 -1
- package/dist/plugin-WmJKFcn_.js +595 -0
- package/dist/plugin-WmJKFcn_.js.map +1 -0
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +1 -2
- package/dist/rollup.js.map +1 -1
- package/dist/rspack.d.ts +1 -1
- package/dist/rspack.js +1 -2
- package/dist/rspack.js.map +1 -1
- package/dist/{vite-Cd6Z9GAd.js → vite-zWsCwvYT.js} +2 -2
- package/dist/vite-zWsCwvYT.js.map +1 -0
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +2 -3
- package/dist/{webpack-yNnIZ6Rq.js → webpack-De3KlGzm.js} +2 -2
- package/dist/webpack-De3KlGzm.js.map +1 -0
- package/dist/webpack.d.ts +3 -3
- package/dist/webpack.js +2 -3
- package/package.json +9 -5
- package/dist/constants-CnbAL4bY.js +0 -17
- package/dist/constants-CnbAL4bY.js.map +0 -1
- package/dist/constants.d.ts +0 -17
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/src-BfsicZRP.js +0 -160
- package/dist/src-BfsicZRP.js.map +0 -1
- package/dist/types-Clt7t35T.d.ts +0 -12
- package/dist/types-Clt7t35T.d.ts.map +0 -1
- package/dist/types.d.ts +0 -2
- package/dist/types.js +0 -1
- package/dist/vite-Cd6Z9GAd.js.map +0 -1
- package/dist/webpack-yNnIZ6Rq.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @styleframe/plugin
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#117](https://github.com/styleframe-dev/styleframe/pull/117) [`ffe6764`](https://github.com/styleframe-dev/styleframe/commit/ffe6764a2e6c84d5b3cfdf431bf11f17a3f3f118) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Introduce global Styleframe single-instance architecture. Extension files (`*.styleframe.ts`) now share the same instance created in `styleframe.config.ts` instead of creating independent instances. This is a breaking change that affects how styles are imported and composed across files.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`ffe6764`](https://github.com/styleframe-dev/styleframe/commit/ffe6764a2e6c84d5b3cfdf431bf11f17a3f3f118)]:
|
|
12
|
+
- @styleframe/transpiler@3.0.0
|
|
13
|
+
- @styleframe/loader@3.0.0
|
|
14
|
+
- @styleframe/scanner@3.0.0
|
|
15
|
+
|
|
16
|
+
## 2.4.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [#113](https://github.com/styleframe-dev/styleframe/pull/113) [`b73095f`](https://github.com/styleframe-dev/styleframe/commit/b73095f114ef41158ab552e2784500215393b294) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Improve color previews and HMR handling
|
|
21
|
+
- Fix caching configuration in loader to use fsCache and moduleCache options
|
|
22
|
+
- Add HMR refetch handling for .styleframe.css virtual imports
|
|
23
|
+
- Update SwatchCard styling with proper footer alignment and better contrast
|
|
24
|
+
|
|
25
|
+
- [#111](https://github.com/styleframe-dev/styleframe/pull/111) [`152d221`](https://github.com/styleframe-dev/styleframe/commit/152d221934ed3c86e76c31229a8925152081243c) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Fix HMR for virtual imports by normalizing file paths and adding fallback full-reload
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [[`b73095f`](https://github.com/styleframe-dev/styleframe/commit/b73095f114ef41158ab552e2784500215393b294)]:
|
|
28
|
+
- @styleframe/loader@2.4.1
|
|
29
|
+
|
|
3
30
|
## 2.4.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/dist/astro.d.ts
CHANGED
package/dist/astro.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astro.d.ts","names":[],"sources":["../src/astro.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"astro.d.ts","names":[],"sources":["../src/astro.ts"],"sourcesContent":[],"mappings":";;;cAAwC,oBAGf"}
|
package/dist/astro.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { src_default } from "./src-BfsicZRP.js";
|
|
1
|
+
import { plugin_default } from "./plugin-WmJKFcn_.js";
|
|
3
2
|
|
|
4
3
|
//#region src/astro.ts
|
|
5
4
|
var astro_default = (options) => ({
|
|
6
5
|
name: "unplugin-starter",
|
|
7
6
|
hooks: { "astro:config:setup": async (astro) => {
|
|
8
7
|
astro.config.vite.plugins ||= [];
|
|
9
|
-
astro.config.vite.plugins.push(
|
|
8
|
+
astro.config.vite.plugins.push(plugin_default.vite(options));
|
|
10
9
|
} }
|
|
11
10
|
});
|
|
12
11
|
|
package/dist/astro.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astro.js","names":["unplugin"],"sources":["../src/astro.ts"],"sourcesContent":["import type { Options } from \"./
|
|
1
|
+
{"version":3,"file":"astro.js","names":["unplugin"],"sources":["../src/astro.ts"],"sourcesContent":["import type { Options } from \"./plugin\";\nimport unplugin from \"./plugin\";\n\nexport default (options: Options): any => ({\n\tname: \"unplugin-starter\",\n\thooks: {\n\t\t\"astro:config:setup\": async (astro: any) => {\n\t\t\tastro.config.vite.plugins ||= [];\n\t\t\tastro.config.vite.plugins.push(unplugin.vite(options));\n\t\t},\n\t},\n});\n"],"mappings":";;;AAGA,qBAAgB,aAA2B;CAC1C,MAAM;CACN,OAAO,EACN,sBAAsB,OAAO,UAAe;AAC3C,QAAM,OAAO,KAAK,YAAY,EAAE;AAChC,QAAM,OAAO,KAAK,QAAQ,KAAKA,eAAS,KAAK,QAAQ,CAAC;IAEvD;CACD"}
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Options } from "./
|
|
2
|
-
import * as
|
|
1
|
+
import { Options } from "./index-CXVebONK.js";
|
|
2
|
+
import * as unplugin2 from "unplugin";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options?: Options | undefined) =>
|
|
5
|
+
declare const _default: (options?: Options | undefined) => unplugin2.EsbuildPlugin;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { _default as default };
|
|
8
8
|
//# sourceMappingURL=esbuild.d.ts.map
|
package/dist/esbuild.js
CHANGED
package/dist/esbuild.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild.js","names":[],"sources":["../src/esbuild.ts"],"sourcesContent":["import { createEsbuildPlugin } from \"unplugin\";\nimport { unpluginFactory } from \"
|
|
1
|
+
{"version":3,"file":"esbuild.js","names":[],"sources":["../src/esbuild.ts"],"sourcesContent":["import { createEsbuildPlugin } from \"unplugin\";\nimport { unpluginFactory } from \"./plugin\";\n\nexport default createEsbuildPlugin(unpluginFactory);\n"],"mappings":";;;;AAGA,sBAAe,oBAAoB,gBAAgB"}
|
package/dist/farm.d.ts
CHANGED
package/dist/farm.js
CHANGED
package/dist/farm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farm.js","names":[],"sources":["../src/farm.ts"],"sourcesContent":["// biome-ignore:lint/correctness/noUnusedImports\nimport type { CompilationContext, JsPlugin } from \"@farmfe/core\";\nimport { createFarmPlugin } from \"unplugin\";\nimport { unpluginFactory } from \"
|
|
1
|
+
{"version":3,"file":"farm.js","names":[],"sources":["../src/farm.ts"],"sourcesContent":["// biome-ignore:lint/correctness/noUnusedImports\nimport type { CompilationContext, JsPlugin } from \"@farmfe/core\";\nimport { createFarmPlugin } from \"unplugin\";\nimport { unpluginFactory } from \"./plugin\";\n\nexport default createFarmPlugin(unpluginFactory);\n"],"mappings":";;;;AAKA,mBAAe,iBAAiB,gBAAgB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as unplugin3 from "unplugin";
|
|
2
|
+
import { UnpluginFactory } from "unplugin";
|
|
3
|
+
import { TranspileOptions } from "@styleframe/transpiler";
|
|
4
|
+
|
|
5
|
+
//#region src/plugin/types.d.ts
|
|
6
|
+
interface Options {
|
|
7
|
+
/** Entry file for the global config (default: './styleframe.config.ts') */
|
|
8
|
+
entry?: string;
|
|
9
|
+
/** Suppress console output */
|
|
10
|
+
silent?: boolean;
|
|
11
|
+
/** Transpiler options */
|
|
12
|
+
transpiler?: TranspileOptions;
|
|
13
|
+
/** Glob patterns for *.styleframe.ts files (default: ['**\/*.styleframe.ts']) */
|
|
14
|
+
include?: string[];
|
|
15
|
+
/** Glob patterns to exclude (default: node_modules, dist, etc.) */
|
|
16
|
+
exclude?: string[];
|
|
17
|
+
/** File loading order strategy (default: 'alphabetical') */
|
|
18
|
+
loadOrder?: "alphabetical" | "depth-first";
|
|
19
|
+
/** Type declaration generation options */
|
|
20
|
+
dts?: {
|
|
21
|
+
/** Enable type declaration generation (default: true) */
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
/** Output directory for generated types (default: ".styleframe") */
|
|
24
|
+
outDir?: string;
|
|
25
|
+
};
|
|
26
|
+
/** Glob patterns for content files to scan for utility classes (Tailwind-style) */
|
|
27
|
+
content?: string[];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=types.d.ts.map
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/plugin/index.d.ts
|
|
32
|
+
declare const unpluginFactory: UnpluginFactory<Options | undefined>;
|
|
33
|
+
declare const unplugin: unplugin3.UnpluginInstance<Options | undefined, boolean>;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { type Options, unplugin, unpluginFactory };
|
|
36
|
+
//# sourceMappingURL=index-CXVebONK.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CXVebONK.d.ts","names":[],"sources":["../src/plugin/types.ts","../src/plugin/index.ts"],"sourcesContent":[],"mappings":";;;;;UAEiB,OAAA;;;;EAAA,MAAA,CAAA,EAAA,OAAO;;eAMV;;ECuCD,OAAA,CAAA,EAAA,MAAA,EA2ZZ;EAAA;SA3Z6C,CAAA,EAAA,MAAA,EAAA;;EAAD,SAAA,CAAA,EAAA,cAAA,GAAA,aAAA;EA6ZhC;EAA0D,GAAA,CAAA,EAAA;IAAlD;IAAA,OAAA,CAAA,EAAA,OAAA;IAAA;;;;;;;;;cA7ZR,iBAAiB,gBAAgB;cA6ZjC,UAAQ,SAAA,CAAA,iBAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import { Options } from "./
|
|
2
|
-
|
|
3
|
-
import { UnpluginFactory } from "unplugin";
|
|
4
|
-
|
|
5
|
-
//#region src/index.d.ts
|
|
6
|
-
declare const unpluginFactory: UnpluginFactory<Options | undefined>;
|
|
7
|
-
declare const unplugin: unplugin2.UnpluginInstance<Options | undefined, boolean>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { unplugin as default, unplugin, unpluginFactory };
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { Options, unplugin, unpluginFactory } from "./index-CXVebONK.js";
|
|
2
|
+
export { Options, unplugin as default, unplugin, unpluginFactory };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { src_default, unplugin, unpluginFactory } from "./src-BfsicZRP.js";
|
|
1
|
+
import { plugin_default, unplugin, unpluginFactory } from "./plugin-WmJKFcn_.js";
|
|
3
2
|
|
|
4
|
-
export {
|
|
3
|
+
export { plugin_default as default, unplugin, unpluginFactory };
|
package/dist/nuxt.d.ts
CHANGED
package/dist/nuxt.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import { webpack_default } from "./webpack-yNnIZ6Rq.js";
|
|
1
|
+
import "./plugin-WmJKFcn_.js";
|
|
2
|
+
import { vite_default } from "./vite-zWsCwvYT.js";
|
|
3
|
+
import { webpack_default } from "./webpack-De3KlGzm.js";
|
|
5
4
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
6
5
|
|
|
7
6
|
//#region src/nuxt.ts
|
package/dist/nuxt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nuxt.js","names":["vite","webpack"],"sources":["../src/nuxt.ts"],"sourcesContent":["import type { NuxtModule } from \"@nuxt/schema\";\nimport { addVitePlugin, addWebpackPlugin, defineNuxtModule } from \"@nuxt/kit\";\nimport type { Options } from \"./
|
|
1
|
+
{"version":3,"file":"nuxt.js","names":["vite","webpack"],"sources":["../src/nuxt.ts"],"sourcesContent":["import type { NuxtModule } from \"@nuxt/schema\";\nimport { addVitePlugin, addWebpackPlugin, defineNuxtModule } from \"@nuxt/kit\";\nimport type { Options } from \"./plugin\";\nimport vite from \"./vite\";\nimport webpack from \"./webpack\";\n\nexport interface ModuleOptions extends Options {}\n\nexport default defineNuxtModule<ModuleOptions>({\n\tmeta: {\n\t\tname: \"nuxt-unplugin-starter\",\n\t\tconfigKey: \"unpluginStarter\",\n\t},\n\tdefaults: {},\n\tsetup(options, _nuxt) {\n\t\taddVitePlugin(vite(options));\n\t\taddWebpackPlugin(webpack(options));\n\t},\n}) satisfies NuxtModule<ModuleOptions>;\n"],"mappings":";;;;;;AAQA,mBAAe,iBAAgC;CAC9C,MAAM;EACL,MAAM;EACN,WAAW;EACX;CACD,UAAU,EAAE;CACZ,MAAM,SAAS,OAAO;AACrB,gBAAcA,aAAK,QAAQ,CAAC;AAC5B,mBAAiBC,gBAAQ,QAAQ,CAAC;;CAEnC,CAAC"}
|