@pipe0/base 0.0.3 → 0.0.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @pipe0/ops
2
2
 
3
+ ## 0.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @pipe0/autocomplete@0.0.8
9
+
10
+ ## 0.0.4
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+ - @pipe0/autocomplete@0.0.7
16
+
3
17
  ## 0.0.3
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -2,10 +2,39 @@ import * as z$1 from "zod";
2
2
  import { ZodType, z } from "zod";
3
3
  import * as _$liquidjs from "liquidjs";
4
4
  import { Liquid } from "liquidjs";
5
- import { OptionsDef, OptionsDef as OptionsDef$1 } from "@pipe0/autocomplete";
6
5
  import { Widgets as Widgets$1 } from "@pipe0/base";
7
6
  import { ClientSearchPayloadMap } from "@pipe0/client";
8
7
 
8
+ //#region ../autocomplete/dist/client.d.mts
9
+ //#region src/client.d.ts
10
+ /**
11
+ * Structural shape of the per-row `widgets` payload returned by the proxy.
12
+ * Kept as a loose record here to avoid a cyclic dep with `@pipe0/base`;
13
+ * `@pipe0/base` re-asserts this as its canonical `WidgetsByKind` type.
14
+ */
15
+ type AutocompleteWidgets = Record<string, Record<string, unknown>>;
16
+ type AutocompleteOption = {
17
+ value: string;
18
+ label: string;
19
+ widgets?: AutocompleteWidgets;
20
+ };
21
+ type OptionsDef = {
22
+ options: (options: {
23
+ query: string;
24
+ token: string;
25
+ limit?: number;
26
+ }) => Promise<AutocompleteOption[]>;
27
+ type: "provider" | "static" | "csv";
28
+ file?: string;
29
+ /**
30
+ * Optional widgets merged into every option's `widgets` at form-config build
31
+ * time. Per-option widgets win on key collision. Useful for tagging an
32
+ * entire suggestion source with a provider logo without repeating it on
33
+ * every row.
34
+ */
35
+ widgets?: AutocompleteWidgets;
36
+ };
37
+ //#endregion
9
38
  //#region src/pipes/utils/schemas-primitives.d.ts
10
39
  declare const PipesEnvironmentSchema: z.ZodEnum<{
11
40
  production: "production";
@@ -34915,7 +34944,7 @@ interface IncludeExcludeMeta extends ConfigField {
34915
34944
  label: string;
34916
34945
  }[];
34917
34946
  type: "static";
34918
- } | OptionsDef$1;
34947
+ } | OptionsDef;
34919
34948
  maxItems?: number;
34920
34949
  }
34921
34950
  interface MultiCreateMeta extends ConfigField {
@@ -34928,7 +34957,7 @@ interface MultiCreateMeta extends ConfigField {
34928
34957
  label: string;
34929
34958
  }[];
34930
34959
  type: "static";
34931
- } | OptionsDef$1;
34960
+ } | OptionsDef;
34932
34961
  }
34933
34962
  interface OrderedMultiCreateMeta extends ConfigField {
34934
34963
  type: "ordered_multi_create_input";
@@ -34940,7 +34969,7 @@ interface OrderedMultiCreateMeta extends ConfigField {
34940
34969
  label: string;
34941
34970
  }[];
34942
34971
  type: "static";
34943
- } | OptionsDef$1;
34972
+ } | OptionsDef;
34944
34973
  }
34945
34974
  /**
34946
34975
  * List of key/value text rows. Both sides accept literal text plus
@@ -35017,7 +35046,7 @@ interface IncludeExcludeSelectMeta extends ConfigField {
35017
35046
  label: string;
35018
35047
  }[];
35019
35048
  type: "static";
35020
- } | OptionsDef$1;
35049
+ } | OptionsDef;
35021
35050
  maxItems?: number;
35022
35051
  }
35023
35052
  interface ExactRangeMeta extends ConfigField {
@@ -35178,7 +35207,7 @@ interface MinMaxIntMeta extends ConfigField {
35178
35207
  }
35179
35208
  interface AsyncMultiSelectMeta extends ConfigField {
35180
35209
  type: "async_multi_select_input";
35181
- optionsDef: OptionsDef$1;
35210
+ optionsDef: OptionsDef;
35182
35211
  required: boolean;
35183
35212
  disableSearch: boolean;
35184
35213
  }
@@ -35186,7 +35215,7 @@ interface AsyncIncludeExcludeSelectMeta extends ConfigField {
35186
35215
  type: "async_include_exclude_select_input";
35187
35216
  includeLabel?: string;
35188
35217
  excludeLabel?: string;
35189
- optionsDef: OptionsDef$1;
35218
+ optionsDef: OptionsDef;
35190
35219
  maxItems?: number;
35191
35220
  }
35192
35221
  interface CursorPaginationMeta extends ConfigField {