@agimon-ai/po-style-system-tooling 0.2.14-alpha.16 → 0.2.14-alpha.18

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/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_stdio = require("./stdio--lIlsKky.cjs");
2
+ const require_stdio = require("./stdio-5yyEsoGF.cjs");
3
3
  let node_fs = require("node:fs");
4
4
  let node_path = require("node:path");
5
5
  node_path = require_stdio.__toESM(node_path, 1);
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as resolveStyleSystemThemePath, B as STYLE_SYSTEM_TYPES, F as TailwindCSSClassesService, 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, z as log } from "./stdio-8Fm4ayU4.mjs";
2
+ import { A as resolveStyleSystemThemePath, B as STYLE_SYSTEM_TYPES, F as TailwindCSSClassesService, 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, z as log } from "./stdio-BNjaUWFO.mjs";
3
3
  import { promises } from "node:fs";
4
4
  import path, { join } from "node:path";
5
5
  import { z } from "zod";
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_stdio = require("./stdio--lIlsKky.cjs");
2
+ const require_stdio = require("./stdio-5yyEsoGF.cjs");
3
3
  let node_fs = require("node:fs");
4
4
  let node_path = require("node:path");
5
5
  node_path = require_stdio.__toESM(node_path, 1);
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as resolveStyleSystemThemePath, B as STYLE_SYSTEM_TYPES, C as launchBrowserWithFallback, D as resetStyleSystemConfigCache, E as hasStyleSystemProjectConfig, F as TailwindCSSClassesService, I as BaseCSSClassesService, L as TemplatesManagerService, M as StoriesIndexService, N as CSSClassesServiceFactory, O as resolveAppDesignSystemConfig, P as DEFAULT_STYLE_SYSTEM_CONFIG, R as isContained, S as BaseBundlerService, T as getSharedComponentTags, _ as createDefaultBundlerService, b as ViteReactNativeBundlerService, 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 ViteReactBundlerService, y as getBundlerServiceFromConfig } from "./stdio-8Fm4ayU4.mjs";
1
+ import { A as resolveStyleSystemThemePath, B as STYLE_SYSTEM_TYPES, C as launchBrowserWithFallback, D as resetStyleSystemConfigCache, E as hasStyleSystemProjectConfig, F as TailwindCSSClassesService, I as BaseCSSClassesService, L as TemplatesManagerService, M as StoriesIndexService, N as CSSClassesServiceFactory, O as resolveAppDesignSystemConfig, P as DEFAULT_STYLE_SYSTEM_CONFIG, R as isContained, S as BaseBundlerService, T as getSharedComponentTags, _ as createDefaultBundlerService, b as ViteReactNativeBundlerService, 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 ViteReactBundlerService, y as getBundlerServiceFromConfig } from "./stdio-BNjaUWFO.mjs";
2
2
  import { promises } from "node:fs";
3
3
  import path from "node:path";
4
4
  import { createHash, randomUUID } from "node:crypto";
@@ -1683,7 +1683,7 @@ async function takeScreenshot(options) {
1683
1683
  });
1684
1684
  const page = await context.newPage();
1685
1685
  const runtimeErrors = [];
1686
- page.on("pageerror", (error) => runtimeErrors.push(error.stack ?? error.message));
1686
+ page.on("pageerror", (error) => runtimeErrors.push(error.stack || error.message || String(error)));
1687
1687
  await page.goto(url, { waitUntil: "load" });
1688
1688
  if (await page.waitForSelector(`${STORY_ROOT_SELECTOR} > *, ${VITE_ERROR_OVERLAY_SELECTOR}`, {
1689
1689
  state: "attached",
@@ -2718,6 +2718,8 @@ const REACT_NATIVE_DEV_GLOBAL = "__DEV__";
2718
2718
  const REACT_NATIVE_DEV_VALUE = "false";
2719
2719
  const REACT_NATIVE_GLOBAL = "global";
2720
2720
  const REACT_NATIVE_GLOBAL_VALUE = "globalThis";
2721
+ const EXPO_OS_DEFINE = "process.env.EXPO_OS";
2722
+ const EXPO_OS_WEB_VALUE = JSON.stringify("web");
2721
2723
  const VITE_RESOLVE_EXTENSIONS = [
2722
2724
  ".web.tsx",
2723
2725
  ".web.ts",
@@ -2993,6 +2995,8 @@ var ViteReactNativeBundlerService = class ViteReactNativeBundlerService extends
2993
2995
  exclude: [
2994
2996
  "@react-native-segmented-control/segmented-control",
2995
2997
  SAFE_AREA_CONTEXT_PACKAGE,
2998
+ "expo-haptics",
2999
+ "expo-modules-core",
2996
3000
  "react-native-gesture-handler"
2997
3001
  ],
2998
3002
  include: ["react-native-gesture-handler > hoist-non-react-statics", "react-native-gesture-handler > invariant"]
@@ -3044,7 +3048,8 @@ const styleSystemSafeAreaMetrics = {
3044
3048
  getViteDefineConfig() {
3045
3049
  return {
3046
3050
  [REACT_NATIVE_DEV_GLOBAL]: REACT_NATIVE_DEV_VALUE,
3047
- [REACT_NATIVE_GLOBAL]: REACT_NATIVE_GLOBAL_VALUE
3051
+ [REACT_NATIVE_GLOBAL]: REACT_NATIVE_GLOBAL_VALUE,
3052
+ [EXPO_OS_DEFINE]: EXPO_OS_WEB_VALUE
3048
3053
  };
3049
3054
  }
3050
3055
  generatePreviewStyles() {
@@ -4746,7 +4751,7 @@ function createContainer(options) {
4746
4751
  }
4747
4752
  //#endregion
4748
4753
  //#region package.json
4749
- var version = "0.2.14-alpha.16";
4754
+ var version = "0.2.14-alpha.18";
4750
4755
  //#endregion
4751
4756
  //#region src/metadata.ts
4752
4757
  const STYLE_SYSTEM_CLI_NAME = "style-system";
@@ -1656,7 +1656,7 @@ async function takeScreenshot(options) {
1656
1656
  });
1657
1657
  const page = await context.newPage();
1658
1658
  const runtimeErrors = [];
1659
- page.on("pageerror", (error) => runtimeErrors.push(error.stack ?? error.message));
1659
+ page.on("pageerror", (error) => runtimeErrors.push(error.stack || error.message || String(error)));
1660
1660
  await page.goto(url, { waitUntil: "load" });
1661
1661
  if (await page.waitForSelector(`${STORY_ROOT_SELECTOR} > *, ${VITE_ERROR_OVERLAY_SELECTOR}`, {
1662
1662
  state: "attached",
@@ -2691,6 +2691,8 @@ const REACT_NATIVE_DEV_GLOBAL = "__DEV__";
2691
2691
  const REACT_NATIVE_DEV_VALUE = "false";
2692
2692
  const REACT_NATIVE_GLOBAL = "global";
2693
2693
  const REACT_NATIVE_GLOBAL_VALUE = "globalThis";
2694
+ const EXPO_OS_DEFINE = "process.env.EXPO_OS";
2695
+ const EXPO_OS_WEB_VALUE = JSON.stringify("web");
2694
2696
  const VITE_RESOLVE_EXTENSIONS = [
2695
2697
  ".web.tsx",
2696
2698
  ".web.ts",
@@ -2966,6 +2968,8 @@ var ViteReactNativeBundlerService = class ViteReactNativeBundlerService extends
2966
2968
  exclude: [
2967
2969
  "@react-native-segmented-control/segmented-control",
2968
2970
  SAFE_AREA_CONTEXT_PACKAGE,
2971
+ "expo-haptics",
2972
+ "expo-modules-core",
2969
2973
  "react-native-gesture-handler"
2970
2974
  ],
2971
2975
  include: ["react-native-gesture-handler > hoist-non-react-statics", "react-native-gesture-handler > invariant"]
@@ -3017,7 +3021,8 @@ const styleSystemSafeAreaMetrics = {
3017
3021
  getViteDefineConfig() {
3018
3022
  return {
3019
3023
  [REACT_NATIVE_DEV_GLOBAL]: REACT_NATIVE_DEV_VALUE,
3020
- [REACT_NATIVE_GLOBAL]: REACT_NATIVE_GLOBAL_VALUE
3024
+ [REACT_NATIVE_GLOBAL]: REACT_NATIVE_GLOBAL_VALUE,
3025
+ [EXPO_OS_DEFINE]: EXPO_OS_WEB_VALUE
3021
3026
  };
3022
3027
  }
3023
3028
  generatePreviewStyles() {
@@ -4719,7 +4724,7 @@ function createContainer(options) {
4719
4724
  }
4720
4725
  //#endregion
4721
4726
  //#region package.json
4722
- var version = "0.2.14-alpha.16";
4727
+ var version = "0.2.14-alpha.18";
4723
4728
  //#endregion
4724
4729
  //#region src/metadata.ts
4725
4730
  const STYLE_SYSTEM_CLI_NAME = "style-system";
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.16",
3
+ "version": "0.2.14-alpha.18",
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",