@fuf-stack/megapixels 0.8.0 → 0.9.1

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.
@@ -0,0 +1,343 @@
1
+ import { TVClassName } from "@fuf-stack/pixel-utils";
2
+ import { ReactNode } from "react";
3
+ import { vInfer } from "@fuf-stack/veto";
4
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
5
+ import * as tailwind_variants0 from "tailwind-variants";
6
+
7
+ //#region src/Filter/filters/checkboxes/schema.d.ts
8
+ /** configuration of the filter */
9
+ declare const config$1: any;
10
+ /** Type-safe Config that overrides label to support ReactNode or function */
11
+ type Config = Omit<vInfer<typeof config$1>, 'options'> & {
12
+ options: {
13
+ label: ReactNode | ((mode: 'form' | 'display') => ReactNode);
14
+ value: string;
15
+ }[];
16
+ };
17
+ //#endregion
18
+ //#region src/Filter/filters/types.d.ts
19
+ /**
20
+ * FilterDefinition
21
+ *
22
+ * Declarative description of a filter. A FilterDefinition is not used
23
+ * directly by the UI. Instead, it is passed to `createFilter` to produce a
24
+ * concrete, runtime `FilterInstance` for a specific usage (with name/icon and
25
+ * optional config overrides).
26
+ *
27
+ * @typeParam Config - The configuration object shape for this filter
28
+ * @typeParam Value - The runtime value type produced/consumed by this filter
29
+ */
30
+ interface FilterDefinition<Config$1, Value> {
31
+ components: {
32
+ /**
33
+ * Display component rendered inside the filter chip. Receives the current
34
+ * filter `value` and the merged `config`.
35
+ */
36
+ Display: (props: {
37
+ value: Value;
38
+ config: Config$1;
39
+ }) => ReactNode;
40
+ /**
41
+ * Form component rendered inside the modal. Receives the fully-qualified
42
+ * field name and the merged, validated `config`.
43
+ */
44
+ Form: (props: {
45
+ fieldName: string;
46
+ config: Config$1;
47
+ }) => ReactNode;
48
+ };
49
+ defaults: {
50
+ /** Baseline configuration for the filter; can be overridden per usage */
51
+ config: Config$1;
52
+ /** Initial form value seeded when a filter is added */
53
+ value: Value;
54
+ };
55
+ /**
56
+ * Validation factory returning an ex-validator schema for the value shape.
57
+ * Receives the (merged) `config` so the schema can depend on configuration.
58
+ */
59
+ validation: (config?: Config$1) => unknown;
60
+ }
61
+ /**
62
+ * FilterFactory
63
+ *
64
+ * A filter exports a factory that, given name/icon and optional config
65
+ * overrides, returns a concrete FilterInstance with merged config and a
66
+ * computed defaultValue.
67
+ *
68
+ * @typeParam Config - Configuration object shape for the filter
69
+ * @typeParam Value - Runtime value type for the filter
70
+ */
71
+ type FilterFactory<Config$1, Value> = (args: {
72
+ /** Per-usage configuration overrides merged with `defaults.config` */
73
+ config?: Partial<Config$1>;
74
+ /** Optional icon element shown in menus/labels */
75
+ icon?: ReactNode;
76
+ /** Logical field name under `filter.{name}` */
77
+ name: string;
78
+ }) => FilterInstance<Config$1, Value>;
79
+ /**
80
+ * FilterInstance
81
+ *
82
+ * Runtime instance created by merging a filter's defaults with usage
83
+ * overrides and attaching name/icon for UI.
84
+ *
85
+ * This is the only shape used by the rendering layer and context.
86
+ *
87
+ * @typeParam Config - Effective configuration object shape
88
+ * @typeParam Value - Effective value type for the filter
89
+ */
90
+ interface FilterInstance<Config$1, Value> {
91
+ /** UI components (Form/Display) provided by the filter */
92
+ components: FilterDefinition<Config$1, Value>['components'];
93
+ /** Merged configuration (`defaults.config` overlaid with per-usage overrides) */
94
+ config: Config$1;
95
+ /** Initial form value to seed when adding this filter */
96
+ defaultValue: Value;
97
+ /** Optional icon element used in menus/labels */
98
+ icon?: ReactNode;
99
+ /** Logical field name under `filter.{name}` */
100
+ name: string;
101
+ /** ex-validator schema factory for the value; typically closure over config */
102
+ validation: (config?: Config$1) => unknown;
103
+ }
104
+ /**
105
+ * FiltersConfiguration
106
+ *
107
+ * Top-level collection of instantiated filters used by the Filter component
108
+ * and FiltersContext. Each entry is a concrete FilterInstance (already created
109
+ * via a filter factory), carrying its merged config, default value, UI
110
+ * components, and validate function.
111
+ */
112
+ type FiltersConfiguration = FilterInstance<any, any>[];
113
+ /**
114
+ * FilterDisplayProps
115
+ *
116
+ * Props provided to a filter's Display component. Derived from an active
117
+ * FilterInstance at runtime.
118
+ *
119
+ * @typeParam Config - Effective configuration type for the instance
120
+ * @typeParam Value - Effective value type for the instance
121
+ */
122
+ interface FilterDisplayProps<Config$1, Value> {
123
+ /** Merged configuration for the filter instance */
124
+ config: Config$1;
125
+ /** Current (possibly partial) value for the filter instance */
126
+ value: Value;
127
+ }
128
+ /**
129
+ * FilterFormProps
130
+ *
131
+ * Props provided to a filter's Form component. The `fieldName` is the
132
+ * fully-qualified path in the host form, and the `config` is the instance's
133
+ * merged configuration.
134
+ *
135
+ * @typeParam Config - Effective configuration type for the instance
136
+ */
137
+ interface FilterFormProps<Config$1> {
138
+ /** Merged configuration for the filter instance */
139
+ config: Config$1;
140
+ /** Fully-qualified form field path (e.g., `filter.status`) */
141
+ fieldName: string;
142
+ }
143
+ //#endregion
144
+ //#region src/Filter/Subcomponents/SearchInput.d.ts
145
+ type SearchConfiguration = boolean | {
146
+ /** Placeholder shown in the search input */
147
+ placeholder?: string;
148
+ };
149
+ //#endregion
150
+ //#region src/Filter/Filter.d.ts
151
+ declare const filterVariants: tailwind_variants0.TVReturnType<{
152
+ [key: string]: {
153
+ [key: string]: tailwind_variants0.ClassValue | {
154
+ base?: tailwind_variants0.ClassValue;
155
+ addFilterMenuButton?: tailwind_variants0.ClassValue;
156
+ addFilterMenuItem?: tailwind_variants0.ClassValue;
157
+ activeFilterLabel?: tailwind_variants0.ClassValue;
158
+ filterModalBody?: tailwind_variants0.ClassValue;
159
+ filterModalHeader?: tailwind_variants0.ClassValue;
160
+ filterModalFooter?: tailwind_variants0.ClassValue;
161
+ form?: tailwind_variants0.ClassValue;
162
+ searchInput?: tailwind_variants0.ClassValue;
163
+ searchInputWrapper?: tailwind_variants0.ClassValue;
164
+ searchMotionDiv?: tailwind_variants0.ClassValue;
165
+ searchShowButton?: tailwind_variants0.ClassValue;
166
+ searchSubmitButton?: tailwind_variants0.ClassValue;
167
+ searchWrapper?: tailwind_variants0.ClassValue;
168
+ };
169
+ };
170
+ } | {
171
+ [x: string]: {
172
+ [x: string]: tailwind_variants0.ClassValue | {
173
+ base?: tailwind_variants0.ClassValue;
174
+ addFilterMenuButton?: tailwind_variants0.ClassValue;
175
+ addFilterMenuItem?: tailwind_variants0.ClassValue;
176
+ activeFilterLabel?: tailwind_variants0.ClassValue;
177
+ filterModalBody?: tailwind_variants0.ClassValue;
178
+ filterModalHeader?: tailwind_variants0.ClassValue;
179
+ filterModalFooter?: tailwind_variants0.ClassValue;
180
+ form?: tailwind_variants0.ClassValue;
181
+ searchInput?: tailwind_variants0.ClassValue;
182
+ searchInputWrapper?: tailwind_variants0.ClassValue;
183
+ searchMotionDiv?: tailwind_variants0.ClassValue;
184
+ searchShowButton?: tailwind_variants0.ClassValue;
185
+ searchSubmitButton?: tailwind_variants0.ClassValue;
186
+ searchWrapper?: tailwind_variants0.ClassValue;
187
+ };
188
+ };
189
+ } | {}, {
190
+ base: string;
191
+ addFilterMenuButton: string;
192
+ addFilterMenuItem: string;
193
+ activeFilterLabel: string;
194
+ filterModalBody: string;
195
+ filterModalHeader: string;
196
+ filterModalFooter: string;
197
+ form: string;
198
+ searchInput: string;
199
+ searchInputWrapper: string;
200
+ searchMotionDiv: string;
201
+ searchShowButton: string;
202
+ searchSubmitButton: string;
203
+ searchWrapper: string;
204
+ }, undefined, {
205
+ [key: string]: {
206
+ [key: string]: tailwind_variants0.ClassValue | {
207
+ base?: tailwind_variants0.ClassValue;
208
+ addFilterMenuButton?: tailwind_variants0.ClassValue;
209
+ addFilterMenuItem?: tailwind_variants0.ClassValue;
210
+ activeFilterLabel?: tailwind_variants0.ClassValue;
211
+ filterModalBody?: tailwind_variants0.ClassValue;
212
+ filterModalHeader?: tailwind_variants0.ClassValue;
213
+ filterModalFooter?: tailwind_variants0.ClassValue;
214
+ form?: tailwind_variants0.ClassValue;
215
+ searchInput?: tailwind_variants0.ClassValue;
216
+ searchInputWrapper?: tailwind_variants0.ClassValue;
217
+ searchMotionDiv?: tailwind_variants0.ClassValue;
218
+ searchShowButton?: tailwind_variants0.ClassValue;
219
+ searchSubmitButton?: tailwind_variants0.ClassValue;
220
+ searchWrapper?: tailwind_variants0.ClassValue;
221
+ };
222
+ };
223
+ } | {}, {
224
+ base: string;
225
+ addFilterMenuButton: string;
226
+ addFilterMenuItem: string;
227
+ activeFilterLabel: string;
228
+ filterModalBody: string;
229
+ filterModalHeader: string;
230
+ filterModalFooter: string;
231
+ form: string;
232
+ searchInput: string;
233
+ searchInputWrapper: string;
234
+ searchMotionDiv: string;
235
+ searchShowButton: string;
236
+ searchSubmitButton: string;
237
+ searchWrapper: string;
238
+ }, tailwind_variants0.TVReturnType<unknown, {
239
+ base: string;
240
+ addFilterMenuButton: string;
241
+ addFilterMenuItem: string;
242
+ activeFilterLabel: string;
243
+ filterModalBody: string;
244
+ filterModalHeader: string;
245
+ filterModalFooter: string;
246
+ form: string;
247
+ searchInput: string;
248
+ searchInputWrapper: string;
249
+ searchMotionDiv: string;
250
+ searchShowButton: string;
251
+ searchSubmitButton: string;
252
+ searchWrapper: string;
253
+ }, undefined, unknown, unknown, undefined>>;
254
+ type ClassName = TVClassName<typeof filterVariants>;
255
+ interface FilterValues {
256
+ search?: string;
257
+ filter?: string | Record<string, unknown> | null;
258
+ }
259
+ type FilterChildRenderFn = (values: {
260
+ search?: string;
261
+ filter?: Record<string, unknown>;
262
+ }) => ReactNode;
263
+ /**
264
+ * Filter
265
+ *
266
+ * Controlled, form-driven filter UI.
267
+ *
268
+ * Responsibilities
269
+ * - Derives initial form values from the controlled `values` prop
270
+ * - Builds a composite validation schema from the filter registry (and optional search)
271
+ * - Exposes ergonomic UI: active filters list, add/remove actions, and per-filter modal
272
+ * - Commits changes by invoking the controlled `onChange` callback on submit
273
+ *
274
+ * Structure
275
+ * - Owns an ex-forms `Form` that wraps the entire filter experience
276
+ * - Optionally renders a search input bound to the `search` field
277
+ * - Renders ActiveFilters, AddFilterMenu, and FilterModal inside a shared context
278
+ * - Optionally renders children as a render-prop with the resolved `values`
279
+ */
280
+ interface FilterProps {
281
+ /** Optional render-prop that receives the resolved, controlled values */
282
+ children?: FilterChildRenderFn;
283
+ /** CSS class name */
284
+ className?: ClassName;
285
+ /** Configuration of the filter */
286
+ config: {
287
+ /**
288
+ * Declarative filter configuration. Each entry ties a logical name to a
289
+ * registry filter type and (optionally) per-usage config overrides.
290
+ */
291
+ filters: FiltersConfiguration;
292
+ /** Optional configuration for search field */
293
+ search?: SearchConfiguration;
294
+ };
295
+ /** ex-forms form instance name. Defaults to "filterComponentForm". */
296
+ formName?: string;
297
+ /** Controlled setter invoked on submit with the next canonical values */
298
+ onChange: (nextValues: FilterValues) => void;
299
+ /** Controlled committed state: the canonical `search` and `filter` values */
300
+ values: FilterValues;
301
+ }
302
+ /**
303
+ * Renders the filter UI bound to a single ex-forms `Form`.
304
+ * The form is the source of truth during user interaction; the committed
305
+ * state is controlled by the parent via `values`/`onChange`.
306
+ */
307
+ declare const Filter: ({
308
+ children,
309
+ className,
310
+ config,
311
+ formName,
312
+ onChange,
313
+ values
314
+ }: FilterProps) => react_jsx_runtime0.JSX.Element;
315
+ //#endregion
316
+ //#region src/Filter/filters/createFilter.d.ts
317
+ /**
318
+ * createFilter
319
+ *
320
+ * Builds a filter factory from a static FilterDefinition. The returned factory
321
+ * accepts a usage descriptor (name/icon and optional partial config) and
322
+ * produces a concrete FilterInstance with:
323
+ * - merged config (shallow: definition.defaults.config overlaid by overrides)
324
+ * - Form/Display components
325
+ * - validate function (forwarded from the definition)
326
+ * - defaultValue (forwarded from the definition)
327
+ * - name and icon for UI integration
328
+ *
329
+ * @typeParam Config - Configuration object shape for the filter
330
+ * @typeParam Value - Runtime value type for the filter
331
+ * @param definition - Static description of the filter (components, defaults, validate)
332
+ * @returns FilterFactory that creates FilterInstance<Config, Value>
333
+ */
334
+ declare const createFilter: <Config$1, Value>(definition: FilterDefinition<Config$1, Value>) => FilterFactory<Config$1, Value>;
335
+ //#endregion
336
+ //#region src/Filter/index.d.ts
337
+ declare const filters: {
338
+ boolean: FilterFactory<any, any>;
339
+ checkboxes: FilterFactory<Config, any[]>;
340
+ };
341
+ //#endregion
342
+ export { FilterProps as a, FilterDefinition as c, FilterFormProps as d, FilterInstance as f, FilterChildRenderFn as i, FilterDisplayProps as l, createFilter as n, FilterValues as o, FiltersConfiguration as p, Filter as r, filterVariants as s, filters as t, FilterFactory as u };
343
+ //# sourceMappingURL=index-OWKeKysC.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-OWKeKysC.d.ts","names":[],"sources":["../src/Filter/filters/checkboxes/schema.ts","../src/Filter/filters/types.ts","../src/Filter/Subcomponents/SearchInput.tsx","../src/Filter/Filter.tsx","../src/Filter/filters/createFilter.ts","../src/Filter/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAMa;;KAgBD,MAAA,GAAS,KAAK,cAAc;;IAhB3B,KAAA,EAkBF,SALT,GAAA,CAAA,CAAA,IAAA,EAAA,MAAA,GAAA,SAAA,EAAA,GAKoD,SALpD,CAAA;IAGU,KAAM,EAAA,MAAA;EAAsB,CAAA,EAAA;CAAd;;;;;;;;;AAhB1B;AAgBA;;;;AAEW,UCXM,gBDWN,CAAA,QAAA,EAAA,KAAA,CAAA,CAAA;EAA2C,UAAA,EAAA;IAAS;;;;ICX9C,OAAA,EAAA,CAAA,KAAgB,EAAA;MAMH,KAAA,EAAA,KAAA;MAAe,MAAA,EAAA,QAAA;IAAa,CAAA,EAAA,GAAA,SAAA;IAKX;;;;IAYvB,IAAA,EAAA,CAAA,KAAA,EAAA;MAAM,SAAA,EAAA,MAAA;MAalB,MAAA,EAzBmC,QAyBtB;IAEN,CAAA,EAAA,GA3ByC,SA2BzC;EAAR,CAAA;EAEF,QAAA,EAAA;IAGY;IAAQ,MAAA,EA5BjB,QA4BiB;IAAvB;IAAc,KAAA,EA1BT,KA0BS;EAaH,CAAA;EAEc;;;;EAIf,UAAA,EAAA,CAAA,MAAA,CAAA,EAvCQ,QAuCR,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A,GAAA,CAAA;;;;;;;;;AHhHd;AAgBA;;;;;;;;;;ACTA,cGMM,YHN2B,EAAA,CAAA,QAAA,EAAA,KAAA,CAAA,CAAA,UAAA,EGOnB,gBHPmB,CGOF,QHPE,EGOM,KHPN,CAAA,EAAA,GGQ9B,aHR8B,CGQhB,QHRgB,EGQR,KHRQ,CAAA;;;cIFpB;WAGZ"}
package/dist/index.cjs CHANGED
@@ -1,11 +1,10 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
1
+ const require_Filter = require('./Filter-Bc0LWCnZ.cjs');
2
2
 
3
+ //#region src/index.ts
4
+ /* v8 ignore stop */
3
5
 
4
-
5
- var _chunkBUJICPGPcjs = require('./chunk-BUJICPGP.cjs');
6
-
7
-
8
-
9
-
10
- exports.createFilter = _chunkBUJICPGPcjs.createFilter_default; exports.filterVariants = _chunkBUJICPGPcjs.filterVariants; exports.filters = _chunkBUJICPGPcjs.filters;
6
+ //#endregion
7
+ exports.createFilter = require_Filter.createFilter_default;
8
+ exports.filterVariants = require_Filter.filterVariants;
9
+ exports.filters = require_Filter.filters;
11
10
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/megapixels/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,sKAAC","file":"/home/runner/work/pixels/pixels/packages/megapixels/dist/index.cjs"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* v8 ignore start */\n\n// components\nexport * from './Filter';\n\n/* v8 ignore stop */\n"],"mappings":""}
package/dist/index.d.cts CHANGED
@@ -1,7 +1,2 @@
1
- export { FilterChildRenderFn, FilterDefinition, FilterDisplayProps, FilterFactory, FilterFormProps, FilterInstance, FilterProps, FilterValues, FiltersConfiguration, createFilter, filterVariants, filters } from './Filter/index.cjs';
2
- import '@fuf-stack/veto';
3
- import '@fuf-stack/veto/dist/types.d-BDYR8HZ3';
4
- import 'react';
5
- import 'react/jsx-runtime';
6
- import 'tailwind-variants';
7
- import '@fuf-stack/pixel-utils';
1
+ import { a as FilterProps, c as FilterDefinition, d as FilterFormProps, f as FilterInstance, i as FilterChildRenderFn, l as FilterDisplayProps, n as createFilter, o as FilterValues, p as FiltersConfiguration, s as filterVariants, t as filters, u as FilterFactory } from "./index-C-2_lJp0.cjs";
2
+ export { FilterChildRenderFn, FilterDefinition, FilterDisplayProps, FilterFactory, FilterFormProps, FilterInstance, FilterProps, FilterValues, FiltersConfiguration, createFilter, filterVariants, filters };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,2 @@
1
- export { FilterChildRenderFn, FilterDefinition, FilterDisplayProps, FilterFactory, FilterFormProps, FilterInstance, FilterProps, FilterValues, FiltersConfiguration, createFilter, filterVariants, filters } from './Filter/index.js';
2
- import '@fuf-stack/veto';
3
- import '@fuf-stack/veto/dist/types.d-BDYR8HZ3';
4
- import 'react';
5
- import 'react/jsx-runtime';
6
- import 'tailwind-variants';
7
- import '@fuf-stack/pixel-utils';
1
+ import { a as FilterProps, c as FilterDefinition, d as FilterFormProps, f as FilterInstance, i as FilterChildRenderFn, l as FilterDisplayProps, n as createFilter, o as FilterValues, p as FiltersConfiguration, s as filterVariants, t as filters, u as FilterFactory } from "./index-OWKeKysC.js";
2
+ export { FilterChildRenderFn, FilterDefinition, FilterDisplayProps, FilterFactory, FilterFormProps, FilterInstance, FilterProps, FilterValues, FiltersConfiguration, createFilter, filterVariants, filters };
package/dist/index.js CHANGED
@@ -1,11 +1,8 @@
1
- import {
2
- createFilter_default,
3
- filterVariants,
4
- filters
5
- } from "./chunk-NQHJXFFH.js";
6
- export {
7
- createFilter_default as createFilter,
8
- filterVariants,
9
- filters
10
- };
1
+ import { i as filterVariants, n as filters, r as createFilter_default } from "./Filter-nSuQco2t.js";
2
+
3
+ //#region src/index.ts
4
+ /* v8 ignore stop */
5
+
6
+ //#endregion
7
+ export { createFilter_default as createFilter, filterVariants, filters };
11
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* v8 ignore start */\n\n// components\nexport * from './Filter';\n\n/* v8 ignore stop */\n"],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuf-stack/megapixels",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "fuf react advanced components library",
5
5
  "author": "Fröhlich ∧ Frei",
6
6
  "homepage": "https://github.com/fuf-stack/megapixels#readme",
@@ -8,19 +8,18 @@
8
8
  "type": "module",
9
9
  "main": "./dist/index.cjs",
10
10
  "module": "./dist/index.js",
11
- "types": "./dist/index.d.ts",
11
+ "types": "./dist/index.d.cts",
12
12
  "sideEffects": false,
13
13
  "exports": {
14
14
  ".": {
15
- "types": "./dist/index.d.ts",
16
- "import": "./dist/index.js",
17
- "require": "./dist/index.cjs"
15
+ "require": "./dist/index.cjs",
16
+ "import": "./dist/index.js"
18
17
  },
19
18
  "./Filter": {
20
- "types": "./dist/Filter/index.d.ts",
21
- "import": "./dist/Filter/index.js",
22
- "require": "./dist/Filter/index.cjs"
23
- }
19
+ "require": "./dist/Filter/index.cjs",
20
+ "import": "./dist/Filter/index.js"
21
+ },
22
+ "./package.json": "./package.json"
24
23
  },
25
24
  "files": [
26
25
  "dist"
@@ -37,7 +36,7 @@
37
36
  "url": "https://github.com/fuf-stack/pixels/issues"
38
37
  },
39
38
  "scripts": {
40
- "build": "tsup --config node_modules/@repo/tsup-config/config.ts",
39
+ "build": "tsdown",
41
40
  "prepack": "pnpm build",
42
41
  "test": "vitest ./src"
43
42
  },
@@ -46,20 +45,20 @@
46
45
  "react-dom": ">=18"
47
46
  },
48
47
  "dependencies": {
49
- "@fuf-stack/pixel-motion": "1.0.26",
50
- "@fuf-stack/pixel-utils": "1.0.6",
51
- "@fuf-stack/pixels": "1.6.1",
52
- "@fuf-stack/uniform": "1.10.4",
53
- "@fuf-stack/veto": "0.12.7",
48
+ "@fuf-stack/pixel-motion": "1.1.0",
49
+ "@fuf-stack/pixel-utils": "1.1.0",
50
+ "@fuf-stack/pixels": "1.7.0",
51
+ "@fuf-stack/uniform": "1.11.1",
52
+ "@fuf-stack/veto": "0.13.1",
54
53
  "debug": "4.4.3",
55
54
  "react-icons": "5.5.0"
56
55
  },
57
56
  "devDependencies": {
58
57
  "@types/debug": "4.1.12",
59
- "@types/react": "19.1.16",
60
- "@types/react-dom": "19.1.9",
61
- "react": "19.1.1",
62
- "react-dom": "19.1.1"
58
+ "@types/react": "19.2.7",
59
+ "@types/react-dom": "19.2.3",
60
+ "react": "19.2.3",
61
+ "react-dom": "19.2.3"
63
62
  },
64
- "gitHead": "40772cdf734962be21a6c2fb3b46d01b032b2cfb"
65
- }
63
+ "gitHead": "abae56906882f471a06ffaa6081a3de66a431466"
64
+ }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/pixels/pixels/packages/megapixels/dist/Filter/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACF,0NAAC","file":"/home/runner/work/pixels/pixels/packages/megapixels/dist/Filter/index.cjs"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}