@ktjs/vite-plugin-ktjsx 0.2.1 → 0.2.3

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
@@ -2,7 +2,7 @@
2
2
  "name": "@ktjs/vite-plugin-ktjsx",
3
3
  "description": "Vite plugin that applies KT.js JSX transforms.",
4
4
  "description_zh": "用于应用 KT.js JSX 转换的 Vite 插件。",
5
- "version": "0.2.1",
5
+ "version": "0.2.3",
6
6
  "type": "module",
7
7
  "main": "dist/index.mjs",
8
8
  "module": "dist/index.mjs",
@@ -1,4 +0,0 @@
1
- import type { NodePath } from '@babel/core';
2
- import * as t from '@babel/types';
3
- export declare function transformConditionalChains(path: NodePath<t.JSXElement>): void;
4
- //# sourceMappingURL=if-else.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"if-else.d.ts","sourceRoot":"","sources":["../../../../transformer/src/if-else.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAiFlC,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,QA8DtE"}
@@ -1,4 +0,0 @@
1
- export { default, transformerKTjsx } from './plugin.js';
2
- export type { KTjsxTransformOptions } from './transform.js';
3
- export { transformWithKTjsx } from './transform.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../transformer/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,5 +0,0 @@
1
- import { type NodePath } from '@babel/core';
2
- import * as t from '@babel/types';
3
- export declare function validateDirectiveCombinations(path: NodePath<t.JSXElement>): void;
4
- export declare function transformKFor(path: NodePath<t.JSXElement>): boolean;
5
- //# sourceMappingURL=k-for.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"k-for.d.ts","sourceRoot":"","sources":["../../../../transformer/src/k-for.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAWlC,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,QAkBzE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,OAAO,CAqCnE"}
@@ -1,4 +0,0 @@
1
- import type { PluginObj } from '@babel/core';
2
- export declare function transformerKTjsx(): PluginObj;
3
- export default transformerKTjsx;
4
- //# sourceMappingURL=plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../transformer/src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C,wBAAgB,gBAAgB,IAAI,SAAS,CAgB5C;AAED,eAAe,gBAAgB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { NodePath } from '@babel/core';
2
- import * as t from '@babel/types';
3
- export declare function addFlagToSvgMathMLElement(path: NodePath<t.JSXElement>): void;
4
- //# sourceMappingURL=svg-mathml-flag.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"svg-mathml-flag.d.ts","sourceRoot":"","sources":["../../../../transformer/src/svg-mathml-flag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,QAiFrE"}
@@ -1,8 +0,0 @@
1
- import { type TransformOptions } from '@babel/core';
2
- type ReservedTransformOptions = 'ast' | 'babelrc' | 'configFile' | 'parserOpts' | 'plugins' | 'sourceMaps';
3
- export type KTjsxTransformOptions = Omit<TransformOptions, ReservedTransformOptions> & {
4
- parserPlugins?: NonNullable<TransformOptions['parserOpts']>['plugins'];
5
- };
6
- export declare function transformWithKTjsx(code: string, options?: KTjsxTransformOptions): Promise<import("@babel/core").BabelFileResult>;
7
- export {};
8
- //# sourceMappingURL=transform.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../transformer/src/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKpE,KAAK,wBAAwB,GACzB,KAAK,GACL,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,YAAY,CAAC;AAEjB,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,GAAG;IACrF,aAAa,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;CACxE,CAAC;AAEF,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,kDAezF"}
@@ -1,10 +0,0 @@
1
- import type { Plugin } from 'vite';
2
- type Filter = RegExp | ((id: string) => boolean);
3
- export interface ViteKTjsxOptions {
4
- include?: Filter;
5
- exclude?: Filter;
6
- babelConfig?: Record<string, unknown>;
7
- }
8
- export declare function viteKTjsx(options?: ViteKTjsxOptions): Plugin;
9
- export default viteKTjsx;
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAGnC,KAAK,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC;AAsCD,wBAAgB,SAAS,CAAC,OAAO,GAAE,gBAAqB,GAAG,MAAM,CA0BhE;AAED,eAAe,SAAS,CAAC"}