@plyaz/types 1.2.1 → 1.3.0

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.
@@ -2,7 +2,6 @@
2
2
  * Feature Flags Domain Types
3
3
  *
4
4
  * Core type definitions for the feature flags domain.
5
- * These types will be moved to @plyaz/types when the package structure is finalized.
6
5
  *
7
6
  * @fileoverview Feature flags domain type definitions
8
7
  * @version 1.0.0
@@ -196,13 +195,15 @@ export interface FeatureFlagContextValue<FeatureFlagKey extends string> {
196
195
  /**
197
196
  * Props for the React FeatureFlagProvider component.
198
197
  */
199
- export interface FeatureFlagProviderProps<FeatureFlagKey extends string> {
198
+ export interface FeatureFlagProviderProps<FeatureFlagKey extends string, FeatureFlags extends Record<FeatureFlagKey, FeatureFlagValue>> {
200
199
  /** Provider configuration */
201
200
  config: FeatureFlagConfig<FeatureFlagKey>;
202
201
  /** Default context for flag evaluation */
203
202
  defaultContext?: FeatureFlagContext;
204
203
  /** Children components */
205
204
  children: React.ReactNode;
205
+ /** Predefined feature flags and their values */
206
+ features: FeatureFlags;
206
207
  /** Callback when provider is ready */
207
208
  onReady?: (provider: FeatureFlagProvider<FeatureFlagKey>) => void;
208
209
  /** Callback when an error occurs */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared TypeScript types and schema utilities for validation and parsing in the @playz ecosystem.",
@@ -43,6 +43,8 @@
43
43
  "@types/react-dom": "^19.1.6",
44
44
  "@typescript-eslint/eslint-plugin": "^8.15.0",
45
45
  "@typescript-eslint/parser": "^8.15.0",
46
+ "@testing-library/react": "^16.3.0",
47
+ "@testing-library/user-event": "^14.6.1",
46
48
  "@vitest/coverage-v8": "^3.1.3",
47
49
  "eslint": "^9.29.0",
48
50
  "eslint-config-next": "^15.3.3",