@seedprotocol/mapping 0.6.0 → 0.6.2
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 +11 -0
- package/README.md +43 -32
- package/dist/applyMapping.d.ts +13 -7
- package/dist/applyMapping.d.ts.map +1 -1
- package/dist/autoMap-OMvtOG0S.js +549 -0
- package/dist/autoMap-OMvtOG0S.js.map +1 -0
- package/dist/autoMap.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -47
- package/dist/react/FieldMapper.d.ts +14 -2
- package/dist/react/FieldMapper.d.ts.map +1 -1
- package/dist/react/FieldMapperWires.d.ts +3 -2
- package/dist/react/FieldMapperWires.d.ts.map +1 -1
- package/dist/react/LookupEditor.d.ts +5 -9
- package/dist/react/LookupEditor.d.ts.map +1 -1
- package/dist/react/PropertyRows.d.ts +3 -2
- package/dist/react/PropertyRows.d.ts.map +1 -1
- package/dist/react/SourceRows.d.ts +3 -2
- package/dist/react/SourceRows.d.ts.map +1 -1
- package/dist/react/fieldMapperCore.d.ts +6 -2
- package/dist/react/fieldMapperCore.d.ts.map +1 -1
- package/dist/react/fieldMapperTypes.d.ts +16 -2
- package/dist/react/fieldMapperTypes.d.ts.map +1 -1
- package/dist/react/useFieldMapper.d.ts.map +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +719 -646
- package/dist/react.js.map +1 -1
- package/dist/relationLookup.d.ts +21 -1
- package/dist/relationLookup.d.ts.map +1 -1
- package/dist/types.d.ts +19 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, y as b } from "./autoMap-OMvtOG0S.js";
|
|
2
|
+
import x from "rss-parser";
|
|
3
3
|
//#region src/adapters/markdown.ts
|
|
4
|
-
var
|
|
5
|
-
function
|
|
4
|
+
var S = "section-full";
|
|
5
|
+
function C(e) {
|
|
6
6
|
try {
|
|
7
7
|
let t = e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);
|
|
8
8
|
if (!t) return {
|
|
@@ -45,7 +45,7 @@ function v(e) {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function w(e) {
|
|
49
49
|
let t = e.split("\n"), n = [], r = null;
|
|
50
50
|
for (let e of t) {
|
|
51
51
|
let t = e.match(/^## (.+)/), i = e.match(/^# (.+)/);
|
|
@@ -63,8 +63,8 @@ function y(e) {
|
|
|
63
63
|
}
|
|
64
64
|
return r && n.push(r), n;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
let t =
|
|
66
|
+
function T(e) {
|
|
67
|
+
let t = C(e), n = w(t.body), r = [];
|
|
68
68
|
for (let e of t.frontmatter) r.push({
|
|
69
69
|
id: e.id,
|
|
70
70
|
label: e.key,
|
|
@@ -73,7 +73,7 @@ function b(e) {
|
|
|
73
73
|
meta: { valueType: e.valueType }
|
|
74
74
|
});
|
|
75
75
|
r.push({
|
|
76
|
-
id:
|
|
76
|
+
id: S,
|
|
77
77
|
label: "Full document",
|
|
78
78
|
kind: "full",
|
|
79
79
|
value: t.body
|
|
@@ -92,14 +92,14 @@ function b(e) {
|
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region src/adapters/rss.ts
|
|
95
|
-
function
|
|
95
|
+
function E(e) {
|
|
96
96
|
try {
|
|
97
97
|
return JSON.parse(JSON.stringify(e));
|
|
98
98
|
} catch {
|
|
99
99
|
return { ...e };
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
var
|
|
102
|
+
var D = new x({ customFields: { item: [
|
|
103
103
|
"featureImage",
|
|
104
104
|
"feature_image",
|
|
105
105
|
"content:encoded",
|
|
@@ -108,16 +108,16 @@ var S = new g({ customFields: { item: [
|
|
|
108
108
|
["media:content", "mediaContent"],
|
|
109
109
|
["media:thumbnail", "mediaThumbnail"]
|
|
110
110
|
] } });
|
|
111
|
-
async function
|
|
112
|
-
let t = await
|
|
111
|
+
async function O(e) {
|
|
112
|
+
let t = await D.parseString(e);
|
|
113
113
|
return {
|
|
114
114
|
title: t.title,
|
|
115
115
|
link: t.link,
|
|
116
116
|
description: t.description,
|
|
117
|
-
items: (t.items ?? []).map(
|
|
117
|
+
items: (t.items ?? []).map(E)
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function k(e) {
|
|
121
121
|
if (e == null) return null;
|
|
122
122
|
if (typeof e == "string") {
|
|
123
123
|
let t = e.trim();
|
|
@@ -141,7 +141,7 @@ function w(e) {
|
|
|
141
141
|
}
|
|
142
142
|
return null;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function A(e) {
|
|
145
145
|
if (e == null) return null;
|
|
146
146
|
if (typeof e == "string") {
|
|
147
147
|
let t = e.trim();
|
|
@@ -157,13 +157,13 @@ function T(e) {
|
|
|
157
157
|
length: a ? String(a).trim() : void 0
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function j(e) {
|
|
161
161
|
if (e == null) return [];
|
|
162
|
-
if (Array.isArray(e)) return e.map(
|
|
163
|
-
let t =
|
|
162
|
+
if (Array.isArray(e)) return e.map(A).filter((e) => e != null);
|
|
163
|
+
let t = A(e);
|
|
164
164
|
return t ? [t] : [];
|
|
165
165
|
}
|
|
166
|
-
var
|
|
166
|
+
var M = /* @__PURE__ */ new Set([
|
|
167
167
|
"enclosure",
|
|
168
168
|
"enclosures",
|
|
169
169
|
"media:content",
|
|
@@ -171,63 +171,63 @@ var D = /* @__PURE__ */ new Set([
|
|
|
171
171
|
"media:thumbnail",
|
|
172
172
|
"mediaThumbnail"
|
|
173
173
|
]);
|
|
174
|
-
function
|
|
174
|
+
function N(e, t, n, r, i) {
|
|
175
175
|
if (t.has(n)) return;
|
|
176
176
|
t.add(n);
|
|
177
|
-
let
|
|
178
|
-
url:
|
|
179
|
-
contentType:
|
|
177
|
+
let a = o({
|
|
178
|
+
url: i.url,
|
|
179
|
+
contentType: i.contentType
|
|
180
180
|
});
|
|
181
181
|
e.push({
|
|
182
182
|
id: n,
|
|
183
|
-
label:
|
|
183
|
+
label: r,
|
|
184
184
|
kind: "rssField",
|
|
185
|
-
value:
|
|
185
|
+
value: i.url,
|
|
186
186
|
meta: {
|
|
187
|
-
url:
|
|
188
|
-
contentType:
|
|
189
|
-
length:
|
|
190
|
-
class:
|
|
187
|
+
url: i.url,
|
|
188
|
+
contentType: i.contentType,
|
|
189
|
+
length: i.length,
|
|
190
|
+
class: a
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
let t = [], n = /* @__PURE__ */ new Set(),
|
|
196
|
-
for (let [
|
|
197
|
-
if (
|
|
198
|
-
if (
|
|
199
|
-
let e =
|
|
200
|
-
for (let
|
|
194
|
+
function P(e) {
|
|
195
|
+
let t = [], n = /* @__PURE__ */ new Set(), r = 0;
|
|
196
|
+
for (let [i, a] of Object.entries(e)) {
|
|
197
|
+
if (i === "items" || i.startsWith("$")) continue;
|
|
198
|
+
if (M.has(i)) {
|
|
199
|
+
let e = j(a);
|
|
200
|
+
for (let a of e) N(t, n, i === "enclosure" || i === "enclosures" ? `rss-enclosure-${r}` : `rss-${i}-${r}`, i === "enclosure" || i === "enclosures" ? `enclosure[${r}]` : `${i}[${r}]`, a), r += 1;
|
|
201
201
|
continue;
|
|
202
202
|
}
|
|
203
|
-
let e =
|
|
204
|
-
if (e == null || n.has(
|
|
205
|
-
n.add(
|
|
203
|
+
let e = k(a);
|
|
204
|
+
if (e == null || n.has(i)) continue;
|
|
205
|
+
n.add(i);
|
|
206
206
|
let s = {
|
|
207
|
-
id: `rss-${
|
|
208
|
-
label:
|
|
207
|
+
id: `rss-${i}`,
|
|
208
|
+
label: i,
|
|
209
209
|
kind: "rssField",
|
|
210
210
|
value: e
|
|
211
211
|
};
|
|
212
|
-
(
|
|
212
|
+
(i === "featureImage" || i === "feature_image") && /^https?:\/\//i.test(e) && (s.meta = {
|
|
213
213
|
url: e,
|
|
214
|
-
class:
|
|
214
|
+
class: o({ url: e })
|
|
215
215
|
}), t.push(s);
|
|
216
216
|
}
|
|
217
217
|
return t;
|
|
218
218
|
}
|
|
219
|
-
async function
|
|
220
|
-
let t = await
|
|
219
|
+
async function F(e) {
|
|
220
|
+
let t = await O(e);
|
|
221
221
|
return {
|
|
222
222
|
channel: {
|
|
223
223
|
title: t.title,
|
|
224
224
|
link: t.link,
|
|
225
225
|
description: t.description
|
|
226
226
|
},
|
|
227
|
-
items: t.items.map((e) =>
|
|
227
|
+
items: t.items.map((e) => P(e))
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
//#endregion
|
|
231
|
-
export {
|
|
231
|
+
export { n as RESOLVE_EXTRACT_SUFFIX, p as RESOLVE_FILE_SUFFIX, S as SECTION_FULL_ID, f as applyMapping, h as applyMappingAsync, _ as autoMap, g as buildResolvedSourceNodes, o as classifyUrl, l as coerceValue, d as isRelationLookupTarget, m as looksLikeUrl, c as lookupEntriesFromMapping, s as lookupRefFromEntries, T as markdownToSources, t as normalizeLookupKey, i as normalizeMappingFromSourceId, w as parseMarkdownSections, C as parseMarkdownWithFrontmatter, u as parseResolvedSourceId, y as resolveLookupMapped, v as resolveMappingSource, a as resolvedSourceId, P as rssItemToSources, F as rssXmlToSources, b as sampleValueFromSource, r as shapeLookupValue, e as withLookupEntries };
|
|
232
232
|
|
|
233
233
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import type { FieldMapping, MappingLookups, SourceNode, TargetProperty } from '../types';
|
|
3
3
|
import type { FieldMapperComponents, FieldMapperSlot, FieldMapperSlots } from './fieldMapperSlots';
|
|
4
|
-
import type { FieldMapperDefaultRows, FieldMapperLayout, FieldMapperRow, FieldMapperRowKey } from './fieldMapperTypes';
|
|
4
|
+
import type { FieldMapperDefaultRows, FieldMapperLayout, FieldMapperLookupRow, FieldMapperRow, FieldMapperRowKey } from './fieldMapperTypes';
|
|
5
5
|
import { type FieldMapperTheme } from './fieldMapperTheme';
|
|
6
6
|
export { connectionStrokeForIndex, FIELD_MAPPER_PAIR_SLOTS, resolveTheme, ensureThemeInjected, buildThemeCss, wrapInThemeLayer, DEFAULT_THEME_CSS, STRUCTURAL_THEME_CSS, PAINT_THEME_CSS, THEME_STYLE_ID, resetThemeInjectionForTests, type FieldMapperTheme, type ResolvedFieldMapperTheme, } from './fieldMapperTheme';
|
|
7
7
|
export { slotClass, resolveSlots, showRowPreview, showJsonPreview, SLOT_BASE_CLASS, type FieldMapperSlot, type FieldMapperSlots, type ResolvedFieldMapperSlots, type FieldMapperComponents, type ResolvedFieldMapperComponents, type FieldMapperSelectProps, type FieldMapperButtonProps, type FieldMapperPillProps, } from './fieldMapperSlots';
|
|
@@ -20,7 +20,14 @@ export type FieldMapperProps = {
|
|
|
20
20
|
* String → seed uid dictionaries for `resolve: 'lookup'` edges.
|
|
21
21
|
* Host should persist alongside `MappingDocument.lookups`.
|
|
22
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Prefer `FieldMapping.lookup.entries` + `renderLookup`.
|
|
25
|
+
* Still accepted as a read fallback for preview / LookupEditor.
|
|
26
|
+
*/
|
|
23
27
|
lookups?: MappingLookups;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Prefer `renderLookup`. Enables the package uid editor fallback.
|
|
30
|
+
*/
|
|
24
31
|
onLookupsChange?: (lookups: MappingLookups) => void;
|
|
25
32
|
/** Override default autoMap heuristics. */
|
|
26
33
|
onAutoMap?: () => FieldMapping[];
|
|
@@ -68,12 +75,17 @@ export type FieldMapperProps = {
|
|
|
68
75
|
* Return `null` when nothing to show. Package does not fetch or preview.
|
|
69
76
|
*/
|
|
70
77
|
renderRowAccessory?: (row: FieldMapperRow) => ReactNode;
|
|
78
|
+
/**
|
|
79
|
+
* Host lookup chrome on `resolve: 'lookup'` rows (Identity picker, etc.).
|
|
80
|
+
* When set, the package uid editor is not mounted. Return `null` when idle.
|
|
81
|
+
*/
|
|
82
|
+
renderLookup?: (row: FieldMapperLookupRow) => ReactNode;
|
|
71
83
|
};
|
|
72
84
|
/**
|
|
73
85
|
* Generic field mapper. Props-driven; no Seed hooks or routing.
|
|
74
86
|
* Default layout is rows; pass `layout="wires"` only if you still need the
|
|
75
87
|
* two-pane connector UI (deprecated).
|
|
76
88
|
*/
|
|
77
|
-
export declare function FieldMapper({ sources, targets, mappings, onChange, lookups, onLookupsChange, onAutoMap, className, theme, connectionColors, showPreview, layout, rowKey, defaultRows, classNames, components, slots, renderRowAccessory, }: FieldMapperProps): React.JSX.Element;
|
|
89
|
+
export declare function FieldMapper({ sources, targets, mappings, onChange, lookups, onLookupsChange, onAutoMap, className, theme, connectionColors, showPreview, layout, rowKey, defaultRows, classNames, components, slots, renderRowAccessory, renderLookup, }: FieldMapperProps): React.JSX.Element;
|
|
78
90
|
export default FieldMapper;
|
|
79
91
|
//# sourceMappingURL=FieldMapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldMapper.d.ts","sourceRoot":"","sources":["../../src/react/FieldMapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAsB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,UAAU,CAAA;AAMjB,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EACjB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,KAAK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AAE,MAAM,EAAE,CAAA;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,+DAA+D;IAC/D,WAAW,CAAC,EAAE,sBAAsB,CAAA;IACpC,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAA;IACrD,yEAAyE;IACzE,UAAU,CAAC,EAAE,qBAAqB,CAAA;IAClC,mEAAmE;IACnE,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,SAAS,CAAA;CACxD,CAAA;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAY,EACZ,eAAe,EACf,SAAS,EACT,SAAS,EACT,KAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,MAAe,EACf,MAAmB,EACnB,WAAiC,EACjC,UAAU,EACV,UAAU,EACV,KAAK,EACL,kBAAkB,
|
|
1
|
+
{"version":3,"file":"FieldMapper.d.ts","sourceRoot":"","sources":["../../src/react/FieldMapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAsB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,UAAU,CAAA;AAMjB,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EACjB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EAClB,MAAM,oBAAoB,CAAA;AAC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E,OAAO,CAAA;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,+DAA+D;IAC/D,WAAW,CAAC,EAAE,sBAAsB,CAAA;IACpC,mFAAmF;IACnF,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAA;IACrD,yEAAyE;IACzE,UAAU,CAAC,EAAE,qBAAqB,CAAA;IAClC,mEAAmE;IACnE,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,SAAS,CAAA;IACvD;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,SAAS,CAAA;CACxD,CAAA;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAY,EACZ,eAAe,EACf,SAAS,EACT,SAAS,EACT,KAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,MAAe,EACf,MAAmB,EACnB,WAAiC,EACjC,UAAU,EACV,UAAU,EACV,KAAK,EACL,kBAAkB,EAClB,YAAY,GACb,EAAE,gBAAgB,qBAmGlB;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FieldMapping, MappingLookups, SourceNode, TargetProperty } from '../types';
|
|
3
3
|
import type { FieldMapperSlot, ResolvedFieldMapperComponents, ResolvedFieldMapperSlots } from './fieldMapperSlots';
|
|
4
|
-
import type { UseFieldMapperResult } from './fieldMapperTypes';
|
|
4
|
+
import type { FieldMapperLookupRow, UseFieldMapperResult } from './fieldMapperTypes';
|
|
5
5
|
export type FieldMapperWiresProps = {
|
|
6
6
|
sources: SourceNode[];
|
|
7
7
|
targets: TargetProperty[];
|
|
@@ -9,11 +9,12 @@ export type FieldMapperWiresProps = {
|
|
|
9
9
|
mapper: UseFieldMapperResult;
|
|
10
10
|
lookups?: MappingLookups;
|
|
11
11
|
onLookupsChange?: (lookups: MappingLookups) => void;
|
|
12
|
+
renderLookup?: (row: FieldMapperLookupRow) => React.ReactNode;
|
|
12
13
|
/** @deprecated Prefer CSS map tokens. */
|
|
13
14
|
connectionColors?: string[];
|
|
14
15
|
slots: ResolvedFieldMapperSlots;
|
|
15
16
|
classNames?: Partial<Record<FieldMapperSlot, string>>;
|
|
16
17
|
ui?: ResolvedFieldMapperComponents;
|
|
17
18
|
};
|
|
18
|
-
export declare function FieldMapperWires({ sources, targets, mappings, mapper,
|
|
19
|
+
export declare function FieldMapperWires({ sources, targets, mappings, mapper, onLookupsChange, renderLookup, connectionColors, slots, classNames, ui, }: FieldMapperWiresProps): React.JSX.Element;
|
|
19
20
|
//# sourceMappingURL=FieldMapperWires.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldMapperWires.d.ts","sourceRoot":"","sources":["../../src/react/FieldMapperWires.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,oBAAoB,CAAA;AAQ3B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"FieldMapperWires.d.ts","sourceRoot":"","sources":["../../src/react/FieldMapperWires.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,cAAc,EACf,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,oBAAoB,CAAA;AAQ3B,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,oBAAoB,CAAA;AAiC3B,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,QAAQ,EAAE,YAAY,EAAE,CAAA;IACxB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,KAAK,CAAC,SAAS,CAAA;IAC7D,yCAAyC;IACzC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,KAAK,EAAE,wBAAwB,CAAA;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAA;IACrD,EAAE,CAAC,EAAE,6BAA6B,CAAA;CACnC,CAAA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,OAAO,EACP,QAAQ,EACR,MAAM,EACN,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,KAAK,EACL,UAAU,EACV,EAIC,GACF,EAAE,qBAAqB,qBAwVvB"}
|
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { FieldMapping,
|
|
2
|
+
import type { FieldMapping, LookupEntry, SourceNode, TargetProperty } from '../types';
|
|
3
3
|
import type { FieldMapperSlot } from './fieldMapperSlots';
|
|
4
|
-
export declare function parseUidInput(raw: string): string | string[];
|
|
5
|
-
export declare function formatUidValue(value: string | string[] | undefined): string;
|
|
6
|
-
export declare function setLookupEntry(lookups: MappingLookups, propertyName: string, sourceKey: string, uidRaw: string): MappingLookups;
|
|
7
4
|
export type LookupEditorProps = {
|
|
8
5
|
mode: 'section' | 'row';
|
|
9
6
|
/** Lookup edges to edit. Section: all lookup mappings; row: one property. */
|
|
10
7
|
mappings: FieldMapping[];
|
|
11
8
|
sources: SourceNode[];
|
|
12
9
|
targets: TargetProperty[];
|
|
13
|
-
|
|
14
|
-
onLookupsChange: (lookups: MappingLookups) => void;
|
|
10
|
+
onLookupChange: (mapping: FieldMapping, entries: LookupEntry[]) => void;
|
|
15
11
|
classNames?: Partial<Record<FieldMapperSlot, string>>;
|
|
16
12
|
/** Extra class on the root (e.g. nested-in-row modifier). */
|
|
17
13
|
className?: string;
|
|
18
14
|
};
|
|
19
15
|
/**
|
|
20
|
-
*
|
|
21
|
-
* `
|
|
16
|
+
* Fallback string → ref editor when the host does not pass `renderLookup`.
|
|
17
|
+
* Writes `FieldMapping.lookup.entries` via `onLookupChange`.
|
|
22
18
|
*/
|
|
23
|
-
export declare function LookupEditor({ mode, mappings, sources, targets,
|
|
19
|
+
export declare function LookupEditor({ mode, mappings, sources, targets, onLookupChange, classNames, className, }: LookupEditorProps): React.JSX.Element | null;
|
|
24
20
|
//# sourceMappingURL=LookupEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LookupEditor.d.ts","sourceRoot":"","sources":["../../src/react/LookupEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EACV,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"LookupEditor.d.ts","sourceRoot":"","sources":["../../src/react/LookupEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,UAAU,EACV,cAAc,EACf,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAgBzD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,SAAS,GAAG,KAAK,CAAA;IACvB,6EAA6E;IAC7E,QAAQ,EAAE,YAAY,EAAE,CAAA;IACxB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,cAAc,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,IAAI,CAAA;IACvE,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAA;IACrD,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAkED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,EACP,cAAc,EACd,UAAU,EACV,SAAS,GACV,EAAE,iBAAiB,4BAuCnB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import type { FieldMapping, MappingLookups, SourceNode, TargetProperty } from '../types';
|
|
3
3
|
import type { FieldMapperSlot, ResolvedFieldMapperComponents, ResolvedFieldMapperSlots } from './fieldMapperSlots';
|
|
4
|
-
import type { FieldMapperDefaultRows, FieldMapperRow, UseFieldMapperResult } from './fieldMapperTypes';
|
|
4
|
+
import type { FieldMapperDefaultRows, FieldMapperLookupRow, FieldMapperRow, UseFieldMapperResult } from './fieldMapperTypes';
|
|
5
5
|
export type PropertyRowsProps = {
|
|
6
6
|
sources: SourceNode[];
|
|
7
7
|
targets: TargetProperty[];
|
|
@@ -14,6 +14,7 @@ export type PropertyRowsProps = {
|
|
|
14
14
|
classNames?: Partial<Record<FieldMapperSlot, string>>;
|
|
15
15
|
ui?: ResolvedFieldMapperComponents;
|
|
16
16
|
renderRowAccessory?: (row: FieldMapperRow) => ReactNode;
|
|
17
|
+
renderLookup?: (row: FieldMapperLookupRow) => ReactNode;
|
|
17
18
|
};
|
|
18
|
-
export declare function PropertyRows({ sources, targets, mappings, mapper, defaultRows,
|
|
19
|
+
export declare function PropertyRows({ sources, targets, mappings, mapper, defaultRows, onLookupsChange, slots, classNames, ui, renderRowAccessory, renderLookup, }: PropertyRowsProps): React.JSX.Element;
|
|
19
20
|
//# sourceMappingURL=PropertyRows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyRows.d.ts","sourceRoot":"","sources":["../../src/react/PropertyRows.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAChE,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EAEd,UAAU,EACV,cAAc,EACf,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,oBAAoB,CAAA;AAiB3B,OAAO,KAAK,EACV,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACrB,MAAM,oBAAoB,CAAA;AAU3B,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,QAAQ,EAAE,YAAY,EAAE,CAAA;IACxB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,WAAW,CAAC,EAAE,sBAAsB,CAAA;IACpC,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,KAAK,EAAE,wBAAwB,CAAA;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAA;IACrD,EAAE,CAAC,EAAE,6BAA6B,CAAA;IAClC,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,SAAS,CAAA;CACxD,CAAA;AAED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,OAAO,EACP,QAAQ,EACR,MAAM,EACN,WAAiC,EACjC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UnB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import type { FieldMapping, MappingLookups, SourceNode, TargetProperty } from '../types';
|
|
3
3
|
import type { FieldMapperSlot, ResolvedFieldMapperComponents, ResolvedFieldMapperSlots } from './fieldMapperSlots';
|
|
4
|
-
import type { FieldMapperRow, UseFieldMapperResult } from './fieldMapperTypes';
|
|
4
|
+
import type { FieldMapperLookupRow, FieldMapperRow, UseFieldMapperResult } from './fieldMapperTypes';
|
|
5
5
|
export type SourceRowsProps = {
|
|
6
6
|
sources: SourceNode[];
|
|
7
7
|
targets: TargetProperty[];
|
|
@@ -13,6 +13,7 @@ export type SourceRowsProps = {
|
|
|
13
13
|
classNames?: Partial<Record<FieldMapperSlot, string>>;
|
|
14
14
|
ui?: ResolvedFieldMapperComponents;
|
|
15
15
|
renderRowAccessory?: (row: FieldMapperRow) => ReactNode;
|
|
16
|
+
renderLookup?: (row: FieldMapperLookupRow) => ReactNode;
|
|
16
17
|
};
|
|
17
|
-
export declare function SourceRows({ sources, targets, mappings, mapper,
|
|
18
|
+
export declare function SourceRows({ sources, targets, mappings, mapper, onLookupsChange, slots, classNames, ui, renderRowAccessory, renderLookup, }: SourceRowsProps): React.JSX.Element;
|
|
18
19
|
//# sourceMappingURL=SourceRows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceRows.d.ts","sourceRoot":"","sources":["../../src/react/SourceRows.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAChE,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EAEd,UAAU,EACV,cAAc,EACf,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,oBAAoB,CAAA;AAY3B,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACrB,MAAM,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,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,KAAK,EAAE,wBAAwB,CAAA;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAA;IACrD,EAAE,CAAC,EAAE,6BAA6B,CAAA;IAClC,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,SAAS,CAAA;IACvD,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,oBAAoB,KAAK,SAAS,CAAA;CACxD,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,OAAO,EACP,QAAQ,EACR,MAAM,EACN,eAAe,EACf,KAAK,EACL,UAAU,EACV,EAIC,EACD,kBAAkB,EAClB,YAAY,GACb,EAAE,eAAe,qBA4OjB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldMapping, MappingLookups, ResolveJob, SourceNode, TargetProperty } from '../types';
|
|
1
|
+
import type { FieldMapping, LookupEntry, MappingLookups, ResolveJob, SourceNode, TargetProperty } from '../types';
|
|
2
2
|
import type { FieldMapperCoverage, FieldMapperOption, FieldMapperRow, FieldMapperRowState } from './fieldMapperTypes';
|
|
3
3
|
export declare function truncateSample(s: string, n?: number): string;
|
|
4
4
|
export declare function formatSourceOptionLabel(source: SourceNode): string;
|
|
@@ -14,11 +14,12 @@ export type PreviewForEdgeOptions = {
|
|
|
14
14
|
target?: TargetProperty;
|
|
15
15
|
lookups?: MappingLookups;
|
|
16
16
|
propertyName?: string;
|
|
17
|
+
mapping?: FieldMapping;
|
|
17
18
|
};
|
|
18
19
|
/**
|
|
19
20
|
* Sync row preview aligned with `applyMapping` / lookup tables.
|
|
20
21
|
* `extract`/`file` stay descriptive (sync apply skips them).
|
|
21
|
-
* `lookup` shows a
|
|
22
|
+
* `lookup` shows a stored-entry hit when present; otherwise a pending placeholder.
|
|
22
23
|
* Plain copy shows the coerced value when a target is known.
|
|
23
24
|
*/
|
|
24
25
|
export declare function previewForEdge(source: SourceNode | undefined, resolve: ResolveJob | undefined, options?: PreviewForEdgeOptions): string;
|
|
@@ -31,6 +32,8 @@ export declare function rowState(args: {
|
|
|
31
32
|
mapping?: FieldMapping;
|
|
32
33
|
requiredResolve: ResolveJob | null;
|
|
33
34
|
conflict?: boolean;
|
|
35
|
+
sampleValue?: string;
|
|
36
|
+
lookups?: MappingLookups;
|
|
34
37
|
}): FieldMapperRowState;
|
|
35
38
|
export declare function computeCoverage(targets: TargetProperty[], mappings: FieldMapping[]): FieldMapperCoverage;
|
|
36
39
|
export declare function findConflicts(rows: {
|
|
@@ -38,6 +41,7 @@ export declare function findConflicts(rows: {
|
|
|
38
41
|
propertyName?: string;
|
|
39
42
|
}[]): Set<string>;
|
|
40
43
|
export declare function attachLookupIfNeeded(edge: FieldMapping, target: TargetProperty | undefined): FieldMapping;
|
|
44
|
+
export declare function applyLookupEntriesToMappings(mappings: FieldMapping[], rowKey: 'property' | 'source', rowId: string, edgeIds: string[], entries: LookupEntry[]): FieldMapping[] | null;
|
|
41
45
|
export declare function upsertPropertyMapping(mappings: FieldMapping[], edge: FieldMapping): FieldMapping[];
|
|
42
46
|
export declare function clearLookupsForProperties(lookups: MappingLookups, propertyNames: string[]): MappingLookups | null;
|
|
43
47
|
export declare function connectSourceToProperty(mappings: FieldMapping[], sources: SourceNode[], targets: TargetProperty[], sourceId: string, propertyName: string): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldMapperCore.d.ts","sourceRoot":"","sources":["../../src/react/fieldMapperCore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fieldMapperCore.d.ts","sourceRoot":"","sources":["../../src/react/fieldMapperCore.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,cAAc,EACd,UAAU,EACV,UAAU,EACV,cAAc,EACf,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,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AAY,EAAE,EACxB,IAAI,EAAE,mBAAmB,GAAG,QAAQ,GAAG,KAAK,EAC5C,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,GACjB,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CASpB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FieldMapping, MappingLookups, ResolveJob, SourceNode, TargetProperty } from '../types';
|
|
1
|
+
import type { FieldMapping, LookupEntry, MappingLookups, ResolveJob, SourceNode, TargetProperty } from '../types';
|
|
2
2
|
/** Authoring surface. Prefer `'rows'`; `'wires'` is deprecated but still supported. */
|
|
3
3
|
export type FieldMapperLayout = 'rows' | 'wires';
|
|
4
4
|
export type FieldMapperRowKey = 'property' | 'source';
|
|
@@ -10,19 +10,24 @@ export type FieldMapperOption = {
|
|
|
10
10
|
kind?: string;
|
|
11
11
|
dataType?: string;
|
|
12
12
|
};
|
|
13
|
-
export type FieldMapperRowState = 'empty' | 'mapped' | 'needsResolve' | 'conflict';
|
|
13
|
+
export type FieldMapperRowState = 'empty' | 'mapped' | 'needsResolve' | 'needsLookup' | 'conflict';
|
|
14
14
|
export type FieldMapperRow = {
|
|
15
15
|
/** Property name in property mode; synthetic edge id in source mode. */
|
|
16
16
|
id: string;
|
|
17
17
|
target?: TargetProperty;
|
|
18
18
|
mapping?: FieldMapping;
|
|
19
19
|
source?: SourceNode;
|
|
20
|
+
/** Normalized origin sample string for the current source. */
|
|
21
|
+
sampleValue: string;
|
|
20
22
|
/** Sync preview, or a description of what the host resolver will produce. */
|
|
21
23
|
preview: string;
|
|
22
24
|
/** Transform this edge needs to yield a usable value, if any. */
|
|
23
25
|
requiredResolve: ResolveJob | null;
|
|
24
26
|
state: FieldMapperRowState;
|
|
25
27
|
};
|
|
28
|
+
export type FieldMapperLookupRow = FieldMapperRow & {
|
|
29
|
+
onLookupChange: (entries: LookupEntry[]) => void;
|
|
30
|
+
};
|
|
26
31
|
export type FieldMapperCoverage = {
|
|
27
32
|
mapped: number;
|
|
28
33
|
total: number;
|
|
@@ -33,7 +38,14 @@ export type UseFieldMapperArgs = {
|
|
|
33
38
|
targets: TargetProperty[];
|
|
34
39
|
mappings: FieldMapping[];
|
|
35
40
|
onChange: (mappings: FieldMapping[]) => void;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Prefer `FieldMapping.lookup.entries`. Read as a fallback for preview.
|
|
43
|
+
*/
|
|
36
44
|
lookups?: MappingLookups;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Prefer `setLookupEntries` / `renderLookup`. Still clears the
|
|
47
|
+
* document-level table when a lookup edge is removed.
|
|
48
|
+
*/
|
|
37
49
|
onLookupsChange?: (lookups: MappingLookups) => void;
|
|
38
50
|
rowKey?: FieldMapperRowKey;
|
|
39
51
|
onAutoMap?: () => FieldMapping[];
|
|
@@ -49,6 +61,8 @@ export type UseFieldMapperResult = {
|
|
|
49
61
|
setSource: (rowId: string, sourceId: string | null) => void;
|
|
50
62
|
setProperty: (rowId: string, propertyName: string) => void;
|
|
51
63
|
setTransform: (rowId: string, resolve: ResolveJob | null) => void;
|
|
64
|
+
/** Write `lookup.entries` on the edge for this row. Empty list omits `lookup`. */
|
|
65
|
+
setLookupEntries: (rowId: string, entries: LookupEntry[]) => void;
|
|
52
66
|
addRow: (propertyName?: string) => void;
|
|
53
67
|
removeRow: (rowId: string) => void;
|
|
54
68
|
autoMap: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldMapperTypes.d.ts","sourceRoot":"","sources":["../../src/react/fieldMapperTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,UAAU,EACV,cAAc,EACf,MAAM,UAAU,CAAA;AAEjB,uFAAuF;AACvF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,OAAO,CAAA;AAEhD,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,QAAQ,CAAA;AAErD,MAAM,MAAM,sBAAsB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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFieldMapper.d.ts","sourceRoot":"","sources":["../../src/react/useFieldMapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useFieldMapper.d.ts","sourceRoot":"","sources":["../../src/react/useFieldMapper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,cAAc,EACf,MAAM,UAAU,CAAA;AACjB,OAAO,EAWL,mBAAmB,EAOpB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,oBAAoB,CAAA;AAE3B,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAY,EACZ,eAAe,EACf,MAAmB,EACnB,SAAS,GACV,EAAE,kBAAkB,GAAG,oBAAoB,CAod3C;AAED,iDAAiD;AACjD,OAAO,EAAE,mBAAmB,EAAE,CAAA;AAC9B,YAAY,EAAE,cAAc,EAAE,CAAA"}
|
package/dist/react.d.ts
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { FieldMapper, connectionStrokeForIndex, FIELD_MAPPER_PAIR_SLOTS, resolveTheme, ensureThemeInjected, buildThemeCss, wrapInThemeLayer, DEFAULT_THEME_CSS, STRUCTURAL_THEME_CSS, PAINT_THEME_CSS, THEME_STYLE_ID, resetThemeInjectionForTests, slotClass, resolveSlots, showRowPreview, showJsonPreview, SLOT_BASE_CLASS, type FieldMapperProps, type FieldMapperTheme, type ResolvedFieldMapperTheme, type FieldMapperLayout, type FieldMapperRowKey, type FieldMapperDefaultRows, type FieldMapperSlot, type FieldMapperSlots, type ResolvedFieldMapperSlots, type FieldMapperComponents, type ResolvedFieldMapperComponents, type FieldMapperSelectProps, type FieldMapperButtonProps, type FieldMapperPillProps, } from './react/FieldMapper';
|
|
7
7
|
export { useFieldMapper, filterPropertyNames, } from './react/useFieldMapper';
|
|
8
|
-
export type { FieldMapperOption, FieldMapperRow, FieldMapperRowState, FieldMapperCoverage, UseFieldMapperArgs, UseFieldMapperResult, } from './react/fieldMapperTypes';
|
|
8
|
+
export type { FieldMapperOption, FieldMapperRow, FieldMapperLookupRow, FieldMapperRowState, FieldMapperCoverage, UseFieldMapperArgs, UseFieldMapperResult, } from './react/fieldMapperTypes';
|
|
9
9
|
export { computeRequiredResolve, computeCoverage, buildSourceOptions, buildPropertyModeRows, buildSyncPreviewBag, previewForEdge, findConflicts, connectSourceToProperty, } from './react/fieldMapperCore';
|
|
10
10
|
//# sourceMappingURL=react.d.ts.map
|
package/dist/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,uBAAuB,EACvB,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,2BAA2B,EAC3B,SAAS,EACT,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,cAAc,EACd,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAE/B,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,uBAAuB,GACxB,MAAM,yBAAyB,CAAA"}
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,uBAAuB,EACvB,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,2BAA2B,EAC3B,SAAS,EACT,YAAY,EACZ,cAAc,EACd,eAAe,EACf,eAAe,EACf,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,cAAc,EACd,mBAAmB,GACpB,MAAM,wBAAwB,CAAA;AAE/B,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,uBAAuB,GACxB,MAAM,yBAAyB,CAAA"}
|