@kbach/react 0.5.30 → 0.5.31

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.
@@ -1,7 +1,6 @@
1
1
  import { Plugin } from 'vite';
2
2
  import { F as FrameworkConfig } from './types-CV5vXnSH.mjs';
3
3
 
4
- declare const VIRTUAL_ID = "virtual:kbach/styles.css";
5
4
  declare function kbach(userConfig?: FrameworkConfig): Plugin;
6
5
 
7
- export { VIRTUAL_ID, kbach };
6
+ export { kbach };
@@ -1,7 +1,6 @@
1
1
  import { Plugin } from 'vite';
2
2
  import { F as FrameworkConfig } from './types-CV5vXnSH.js';
3
3
 
4
- declare const VIRTUAL_ID = "virtual:kbach/styles.css";
5
4
  declare function kbach(userConfig?: FrameworkConfig): Plugin;
6
5
 
7
- export { VIRTUAL_ID, kbach };
6
+ export { kbach };
@@ -20,7 +20,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/vite-plugin.ts
21
21
  var vite_plugin_exports = {};
22
22
  __export(vite_plugin_exports, {
23
- VIRTUAL_ID: () => VIRTUAL_ID,
24
23
  kbach: () => kbach
25
24
  });
26
25
  module.exports = __toCommonJS(vite_plugin_exports);
@@ -3348,8 +3347,6 @@ var customVariants = new Proxy(
3348
3347
  );
3349
3348
 
3350
3349
  // src/vite-plugin.ts
3351
- var VIRTUAL_ID = "virtual:kbach/styles.css";
3352
- var RESOLVED_ID = "\0virtual:kbach/styles.css";
3353
3350
  var KBACH_START = "/* kbach:start */";
3354
3351
  var KBACH_END = "/* kbach:end */";
3355
3352
  var GROUPS = [
@@ -3536,17 +3533,6 @@ function kbach(userConfig) {
3536
3533
  mainCSSFile = findMainCSSFile(root);
3537
3534
  if (mainCSSFile) writeKbachToFile(mainCSSFile, getFormattedCSS());
3538
3535
  },
3539
- transform(code, id) {
3540
- const filePath = id.split("?")[0];
3541
- if (/\.(tsx?|jsx?)$/.test(filePath) && !id.includes("node_modules"))
3542
- fileTokens.set(filePath, extractTokensFromCode(code));
3543
- },
3544
- resolveId(id) {
3545
- if (id === VIRTUAL_ID) return RESOLVED_ID;
3546
- },
3547
- load(id) {
3548
- if (id === RESOLVED_ID) return getFormattedCSS();
3549
- },
3550
3536
  handleHotUpdate({ file }) {
3551
3537
  if (file.includes("node_modules") || !/\.(tsx?|jsx?)$/.test(file)) return;
3552
3538
  try {
@@ -3559,6 +3545,5 @@ function kbach(userConfig) {
3559
3545
  }
3560
3546
  // Annotate the CommonJS export names for ESM import in node:
3561
3547
  0 && (module.exports = {
3562
- VIRTUAL_ID,
3563
3548
  kbach
3564
3549
  });
@@ -6,8 +6,6 @@ import {
6
6
  // src/vite-plugin.ts
7
7
  import { readFileSync, writeFileSync, existsSync, readdirSync, statSync } from "fs";
8
8
  import { join } from "path";
9
- var VIRTUAL_ID = "virtual:kbach/styles.css";
10
- var RESOLVED_ID = "\0virtual:kbach/styles.css";
11
9
  var KBACH_START = "/* kbach:start */";
12
10
  var KBACH_END = "/* kbach:end */";
13
11
  var GROUPS = [
@@ -194,17 +192,6 @@ function kbach(userConfig) {
194
192
  mainCSSFile = findMainCSSFile(root);
195
193
  if (mainCSSFile) writeKbachToFile(mainCSSFile, getFormattedCSS());
196
194
  },
197
- transform(code, id) {
198
- const filePath = id.split("?")[0];
199
- if (/\.(tsx?|jsx?)$/.test(filePath) && !id.includes("node_modules"))
200
- fileTokens.set(filePath, extractTokensFromCode(code));
201
- },
202
- resolveId(id) {
203
- if (id === VIRTUAL_ID) return RESOLVED_ID;
204
- },
205
- load(id) {
206
- if (id === RESOLVED_ID) return getFormattedCSS();
207
- },
208
195
  handleHotUpdate({ file }) {
209
196
  if (file.includes("node_modules") || !/\.(tsx?|jsx?)$/.test(file)) return;
210
197
  try {
@@ -216,6 +203,5 @@ function kbach(userConfig) {
216
203
  };
217
204
  }
218
205
  export {
219
- VIRTUAL_ID,
220
206
  kbach
221
207
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbach/react",
3
- "version": "0.5.30",
3
+ "version": "0.5.31",
4
4
  "description": "React / React Native components and hooks for the Kbach framework",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./dist/index.js",