@startsimpli/funnels 0.4.8 → 0.4.11

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startsimpli/funnels",
3
- "version": "0.4.8",
3
+ "version": "0.4.11",
4
4
  "description": "Brutally generic filtering pipeline package for any Simpli product",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -63,38 +63,36 @@
63
63
  "zustand": "^4.0.0 || ^5.0.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@chromatic-com/storybook": "^5.0.1",
67
- "@storybook/addon-a11y": "^10.2.8",
68
- "@storybook/addon-docs": "^10.2.8",
69
- "@storybook/addon-essentials": "^8.6.14",
70
- "@storybook/addon-interactions": "^8.6.14",
71
- "@storybook/addon-links": "^10.2.8",
72
- "@storybook/addon-onboarding": "^10.2.8",
73
- "@storybook/addon-vitest": "^10.2.8",
74
- "@storybook/react-vite": "^10.2.8",
66
+ "@chromatic-com/storybook": "^5.1.2",
67
+ "@storybook/addon-a11y": "^10.3.5",
68
+ "@storybook/addon-docs": "^10.3.5",
69
+ "@storybook/addon-links": "^10.3.5",
70
+ "@storybook/addon-onboarding": "^10.3.5",
71
+ "@storybook/addon-vitest": "^10.3.5",
72
+ "@storybook/react-vite": "^10.3.5",
75
73
  "@testing-library/jest-dom": "^6.9.1",
76
74
  "@testing-library/react": "^16.3.2",
77
75
  "@testing-library/user-event": "^14.6.1",
78
- "@types/node": "^20.0.0",
76
+ "@types/node": "^20.19.39",
79
77
  "@types/react": "^19.2.14",
80
78
  "@types/react-dom": "^19.2.3",
81
- "@vitejs/plugin-react": "^5.1.4",
82
- "@vitest/browser": "^2.0.0",
83
- "@vitest/coverage-v8": "^2.0.0",
84
- "jsdom": "^28.0.0",
85
- "playwright": "^1.58.2",
86
- "react": "^19.2.4",
87
- "react-dom": "^19.2.4",
88
- "storybook": "^10.2.8",
79
+ "@vitejs/plugin-react": "^5.2.0",
80
+ "@vitest/browser": "^4.1.5",
81
+ "@vitest/coverage-v8": "^4.1.5",
82
+ "jsdom": "^29.0.2",
83
+ "playwright": "^1.59.1",
84
+ "react": "^19.2.5",
85
+ "react-dom": "^19.2.5",
86
+ "storybook": "^10.3.5",
89
87
  "tsup": "^8.5.1",
90
- "typescript": "^5.9.3",
91
- "vitest": "^2.0.0",
92
- "zustand": "^5.0.11"
88
+ "typescript": "^6.0.3",
89
+ "vitest": "^4.1.5",
90
+ "zustand": "^5.0.12"
93
91
  },
94
92
  "dependencies": {
95
- "@dnd-kit/core": "^6.1.0",
93
+ "@dnd-kit/core": "^6.3.1",
96
94
  "@dnd-kit/sortable": "^8.0.0",
97
95
  "@dnd-kit/utilities": "^3.2.2",
98
- "@xyflow/react": "^12.10.0"
96
+ "@xyflow/react": "^12.10.2"
99
97
  }
100
98
  }
@@ -5,7 +5,7 @@
5
5
  * Shows all states and variations of FunnelCard component.
6
6
  */
7
7
 
8
- import type { Meta, StoryObj } from '@storybook/react';
8
+ import type { Meta, StoryObj } from '@storybook/react-vite';
9
9
  import { FunnelCard } from './FunnelCard';
10
10
  import { Funnel, FunnelRun } from '../../types';
11
11
 
@@ -2,7 +2,7 @@
2
2
  * FunnelPreview Storybook stories
3
3
  */
4
4
 
5
- import type { Meta, StoryObj } from '@storybook/react';
5
+ import type { Meta, StoryObj } from '@storybook/react-vite';
6
6
  import { FunnelPreview } from './FunnelPreview';
7
7
  import { sampleInvestors, investorFunnelExample, sampleRecipes, recipeFunnelExample, sampleLeads, leadFunnelExample } from '../../stories/demo-data';
8
8
 
@@ -59,33 +59,10 @@ export interface ExecutionResult<T = any> {
59
59
  errors?: string[];
60
60
  }
61
61
 
62
- // ============================================================================
63
- // BEAD: fund-your-startup-a0b8 - Funnel engine evaluateRule is a non-functional stub
64
- // evaluateRule always returns error='Evaluator not implemented yet' — funnels cannot match anything
65
- // resolveField should import from /packages/funnels/src/core/field-resolver.ts
66
- // ============================================================================
67
-
68
- function evaluateRule<T>(_entity: T, _rule: FilterRule): RuleResult {
69
- throw new Error('Not implemented - BEAD: fund-your-startup-a0b8. evaluateRule must import from rule evaluator.');
70
- // return {
71
- // fieldPath: _rule.fieldPath,
72
- // operator: _rule.operator,
73
- // value: _rule.value,
74
- // actualValue: undefined,
75
- // matched: false,
76
- // error: 'Evaluator not implemented yet',
77
- // };
78
- }
62
+ import { evaluateRuleWithResult } from './evaluator';
79
63
 
80
- function resolveField<T>(_entity: T, _fieldPath: string): any {
81
- throw new Error('Not implemented - BEAD: fund-your-startup-a0b8. resolveField must import from field-resolver.ts.');
82
- // const keys = _fieldPath.split('.');
83
- // let value: any = _entity;
84
- // for (const key of keys) {
85
- // if (value === null || value === undefined) return undefined;
86
- // value = value[key];
87
- // }
88
- // return value;
64
+ function evaluateRule<T>(entity: T, rule: FilterRule): RuleResult {
65
+ return evaluateRuleWithResult(entity, rule);
89
66
  }
90
67
 
91
68
  // ============================================================================
package/src/css.d.ts ADDED
@@ -0,0 +1 @@
1
+ declare module '*.css';