@agimon-ai/po-style-system-tooling 0.2.14-alpha.178 → 0.2.14-alpha.179

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.
@@ -1235,7 +1235,7 @@ const EXPO_VECTOR_ICONS_GLYPHMAP_DIR = "build/vendor/react-native-vector-icons/g
1235
1235
  const EXPO_VECTOR_ICONS_FONT_DIR = "build/vendor/react-native-vector-icons/Fonts";
1236
1236
  const GLYPHMAP_EXTENSION = ".json";
1237
1237
  const FONT_EXTENSION = ".ttf";
1238
- const EXPO_MODULES_CORE_TYPE_DECLARATIONS = /expo-modules-core\/(?:src|build)\/ts-declarations\//u;
1238
+ const NATIVE_ONLY_MODULE_PATTERNS = [/expo-modules-core\/(?:src|build)\/ts-declarations\//u, /react-native-svg\/(?:lib\/module|src)\/fabric\/NativeSvg\w+Module\.[jt]s$/u];
1239
1239
  const EXPO_TYPE_DECLARATION_STUB_PLUGIN_NAME = "vite-stub-expo-type-declarations";
1240
1240
  const EMPTY_MODULE_CODE = "export {};";
1241
1241
  const SVG_COMPONENT_PLUGIN_NAME = "vite-react-native-svg-component";
@@ -1317,16 +1317,17 @@ function getExpoVectorIconsVirtualModuleId(source, families) {
1317
1317
  return `${EXPO_VECTOR_ICONS_RESOLVED_MODULE_PREFIX}/${iconFamily}`;
1318
1318
  }
1319
1319
  /**
1320
- * Expo ships pure type declarations as `.ts` files that use value-import syntax.
1321
- * They carry no runtime code, so the bundler stubs them instead of failing on
1322
- * their missing exports.
1320
+ * Expo ships pure type declarations as `.ts` files that use value-import syntax, and
1321
+ * react-native-svg ships native-only TurboModule specs. Neither runs on web, so the
1322
+ * bundler stubs them instead of failing on their missing exports.
1323
1323
  */
1324
1324
  function createExpoTypeDeclarationStubPlugin() {
1325
1325
  return {
1326
1326
  name: EXPO_TYPE_DECLARATION_STUB_PLUGIN_NAME,
1327
1327
  enforce: VITE_PLUGIN_ENFORCE_PRE,
1328
1328
  load(id) {
1329
- return EXPO_MODULES_CORE_TYPE_DECLARATIONS.test(toViteImportPath(id)) ? EMPTY_MODULE_CODE : null;
1329
+ const importPath = toViteImportPath(id);
1330
+ return NATIVE_ONLY_MODULE_PATTERNS.some((pattern) => pattern.test(importPath)) ? EMPTY_MODULE_CODE : null;
1330
1331
  }
1331
1332
  };
1332
1333
  }
@@ -1261,7 +1261,7 @@ const EXPO_VECTOR_ICONS_GLYPHMAP_DIR = "build/vendor/react-native-vector-icons/g
1261
1261
  const EXPO_VECTOR_ICONS_FONT_DIR = "build/vendor/react-native-vector-icons/Fonts";
1262
1262
  const GLYPHMAP_EXTENSION = ".json";
1263
1263
  const FONT_EXTENSION = ".ttf";
1264
- const EXPO_MODULES_CORE_TYPE_DECLARATIONS = /expo-modules-core\/(?:src|build)\/ts-declarations\//u;
1264
+ const NATIVE_ONLY_MODULE_PATTERNS = [/expo-modules-core\/(?:src|build)\/ts-declarations\//u, /react-native-svg\/(?:lib\/module|src)\/fabric\/NativeSvg\w+Module\.[jt]s$/u];
1265
1265
  const EXPO_TYPE_DECLARATION_STUB_PLUGIN_NAME = "vite-stub-expo-type-declarations";
1266
1266
  const EMPTY_MODULE_CODE = "export {};";
1267
1267
  const SVG_COMPONENT_PLUGIN_NAME = "vite-react-native-svg-component";
@@ -1343,16 +1343,17 @@ function getExpoVectorIconsVirtualModuleId(source, families) {
1343
1343
  return `${EXPO_VECTOR_ICONS_RESOLVED_MODULE_PREFIX}/${iconFamily}`;
1344
1344
  }
1345
1345
  /**
1346
- * Expo ships pure type declarations as `.ts` files that use value-import syntax.
1347
- * They carry no runtime code, so the bundler stubs them instead of failing on
1348
- * their missing exports.
1346
+ * Expo ships pure type declarations as `.ts` files that use value-import syntax, and
1347
+ * react-native-svg ships native-only TurboModule specs. Neither runs on web, so the
1348
+ * bundler stubs them instead of failing on their missing exports.
1349
1349
  */
1350
1350
  function createExpoTypeDeclarationStubPlugin() {
1351
1351
  return {
1352
1352
  name: EXPO_TYPE_DECLARATION_STUB_PLUGIN_NAME,
1353
1353
  enforce: VITE_PLUGIN_ENFORCE_PRE,
1354
1354
  load(id) {
1355
- return EXPO_MODULES_CORE_TYPE_DECLARATIONS.test(toViteImportPath(id)) ? EMPTY_MODULE_CODE : null;
1355
+ const importPath = toViteImportPath(id);
1356
+ return NATIVE_ONLY_MODULE_PATTERNS.some((pattern) => pattern.test(importPath)) ? EMPTY_MODULE_CODE : null;
1356
1357
  }
1357
1358
  };
1358
1359
  }
package/dist/cli.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- const require_childProtocol = require("./childProtocol-BXL1CuMz.cjs");
3
- const require_stdio = require("./stdio-Ds8NlmdA.cjs");
2
+ const require_childProtocol = require("./childProtocol-umK4nISF.cjs");
3
+ const require_stdio = require("./stdio-CZ-M2DSg.cjs");
4
4
  let node_fs = require("node:fs");
5
5
  let node_path = require("node:path");
6
6
  node_path = require_childProtocol.__toESM(node_path, 1);
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { A as resolveStyleSystemThemePath, F as TailwindCSSClassesService, L as STYLE_SYSTEM_TYPES, P as DEFAULT_STYLE_SYSTEM_CONFIG, a as STYLE_SYSTEM_CLI_NAME, i as createServer$1, o as STYLE_SYSTEM_VERSION, r as generateRestrictedClassesConfig, s as createContainer, t as StdioTransportHandler, w as getAppDesignSystemConfig, y as getBundlerServiceFromConfig } from "./stdio-B9oBSmT4.mjs";
3
- import { u as log } from "./childProtocol-Bcf1WDjO.mjs";
2
+ import { A as resolveStyleSystemThemePath, F as TailwindCSSClassesService, L as STYLE_SYSTEM_TYPES, P as DEFAULT_STYLE_SYSTEM_CONFIG, a as STYLE_SYSTEM_CLI_NAME, i as createServer$1, o as STYLE_SYSTEM_VERSION, r as generateRestrictedClassesConfig, s as createContainer, t as StdioTransportHandler, w as getAppDesignSystemConfig, y as getBundlerServiceFromConfig } from "./stdio-NJoBAUrD.mjs";
3
+ import { u as log } from "./childProtocol-DbQ8MTZo.mjs";
4
4
  import { promises } from "node:fs";
5
5
  import path, { join } from "node:path";
6
6
  import { z } from "zod";
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_childProtocol = require("./childProtocol-BXL1CuMz.cjs");
3
- const require_stdio = require("./stdio-Ds8NlmdA.cjs");
2
+ const require_childProtocol = require("./childProtocol-umK4nISF.cjs");
3
+ const require_stdio = require("./stdio-CZ-M2DSg.cjs");
4
4
  let node_fs = require("node:fs");
5
5
  let node_path = require("node:path");
6
6
  node_path = require_childProtocol.__toESM(node_path, 1);
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { A as resolveStyleSystemThemePath, C as withRenderSlot, D as resetStyleSystemConfigCache, E as hasStyleSystemProjectConfig, F as TailwindCSSClassesService, I as BaseCSSClassesService, L as STYLE_SYSTEM_TYPES, M as StoriesIndexService, N as CSSClassesServiceFactory, O as resolveAppDesignSystemConfig, P as DEFAULT_STYLE_SYSTEM_CONFIG, S as launchBrowserWithFallback, T as getSharedComponentTags, _ as createDefaultBundlerService, b as ChildBundlerService, c as createStyleSystemModule, d as GetComponentVisualTool, f as GetCSSClassesTool, g as ThemeService, h as ComponentRendererService, i as createServer, j as MAX_STYLE_SYSTEM_VIEWPORT_DIMENSION, k as StyleSystemConfigLoader, l as ListAppComponentsTool, m as GetUiComponentService, n as extractCustomTokenNames, p as ListThemesTool, r as generateRestrictedClassesConfig, s as createContainer, t as StdioTransportHandler, u as ListSharedComponentsTool, v as getBundlerService, w as getAppDesignSystemConfig, x as createBundlerChildLauncher, y as getBundlerServiceFromConfig } from "./stdio-B9oBSmT4.mjs";
2
- import { a as ViteReactBundlerService, c as isContained, i as ViteReactNativeBundlerService, o as BaseBundlerService, s as TemplatesManagerService, u as log } from "./childProtocol-Bcf1WDjO.mjs";
1
+ import { A as resolveStyleSystemThemePath, C as withRenderSlot, D as resetStyleSystemConfigCache, E as hasStyleSystemProjectConfig, F as TailwindCSSClassesService, I as BaseCSSClassesService, L as STYLE_SYSTEM_TYPES, M as StoriesIndexService, N as CSSClassesServiceFactory, O as resolveAppDesignSystemConfig, P as DEFAULT_STYLE_SYSTEM_CONFIG, S as launchBrowserWithFallback, T as getSharedComponentTags, _ as createDefaultBundlerService, b as ChildBundlerService, c as createStyleSystemModule, d as GetComponentVisualTool, f as GetCSSClassesTool, g as ThemeService, h as ComponentRendererService, i as createServer, j as MAX_STYLE_SYSTEM_VIEWPORT_DIMENSION, k as StyleSystemConfigLoader, l as ListAppComponentsTool, m as GetUiComponentService, n as extractCustomTokenNames, p as ListThemesTool, r as generateRestrictedClassesConfig, s as createContainer, t as StdioTransportHandler, u as ListSharedComponentsTool, v as getBundlerService, w as getAppDesignSystemConfig, x as createBundlerChildLauncher, y as getBundlerServiceFromConfig } from "./stdio-NJoBAUrD.mjs";
2
+ import { a as ViteReactBundlerService, c as isContained, i as ViteReactNativeBundlerService, o as BaseBundlerService, s as TemplatesManagerService, u as log } from "./childProtocol-DbQ8MTZo.mjs";
3
3
  import { promises } from "node:fs";
4
4
  import path from "node:path";
5
5
  import { createHash, randomUUID } from "node:crypto";
@@ -1,4 +1,4 @@
1
- const require_childProtocol = require("./childProtocol-BXL1CuMz.cjs");
1
+ const require_childProtocol = require("./childProtocol-umK4nISF.cjs");
2
2
  let inversify = require("inversify");
3
3
  let node_fs = require("node:fs");
4
4
  let node_path = require("node:path");
@@ -3538,7 +3538,7 @@ function createContainer(options) {
3538
3538
  }
3539
3539
  //#endregion
3540
3540
  //#region package.json
3541
- var version = "0.2.14-alpha.178";
3541
+ var version = "0.2.14-alpha.179";
3542
3542
  //#endregion
3543
3543
  //#region src/metadata.ts
3544
3544
  const STYLE_SYSTEM_CLI_NAME = "style-system";
@@ -1,4 +1,4 @@
1
- import { c as isContained, l as createLog, o as BaseBundlerService, r as childResultSchemas, s as TemplatesManagerService, t as childReplySchema, u as log } from "./childProtocol-Bcf1WDjO.mjs";
1
+ import { c as isContained, l as createLog, o as BaseBundlerService, r as childResultSchemas, s as TemplatesManagerService, t as childReplySchema, u as log } from "./childProtocol-DbQ8MTZo.mjs";
2
2
  import { Container, ContainerModule, inject, injectable, optional } from "inversify";
3
3
  import { promises } from "node:fs";
4
4
  import path from "node:path";
@@ -3534,7 +3534,7 @@ function createContainer(options) {
3534
3534
  }
3535
3535
  //#endregion
3536
3536
  //#region package.json
3537
- var version = "0.2.14-alpha.178";
3537
+ var version = "0.2.14-alpha.179";
3538
3538
  //#endregion
3539
3539
  //#region src/metadata.ts
3540
3540
  const STYLE_SYSTEM_CLI_NAME = "style-system";
@@ -1,4 +1,4 @@
1
- const require_childProtocol = require("./childProtocol-BXL1CuMz.cjs");
1
+ const require_childProtocol = require("./childProtocol-umK4nISF.cjs");
2
2
  //#region src/vite-child.ts
3
3
  let bundler;
4
4
  let closing = false;
@@ -1,4 +1,4 @@
1
- import { a as ViteReactBundlerService, i as ViteReactNativeBundlerService, n as childRequestSchema } from "./childProtocol-Bcf1WDjO.mjs";
1
+ import { a as ViteReactBundlerService, i as ViteReactNativeBundlerService, n as childRequestSchema } from "./childProtocol-DbQ8MTZo.mjs";
2
2
  //#region src/vite-child.ts
3
3
  let bundler;
4
4
  let closing = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-style-system-tooling",
3
- "version": "0.2.14-alpha.178",
3
+ "version": "0.2.14-alpha.179",
4
4
  "description": "MCP server for exploring themes, Tailwind CSS classes, and UI components from Storybook with standalone component rendering capabilities",
5
5
  "keywords": [
6
6
  "design-system",