@wise/dynamic-flow-client 5.30.0-experimental-18a8b47 → 5.30.0-experimental-7a76ef5
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/build/main.css +57 -14
- package/build/main.js +5 -5
- package/build/main.mjs +5 -5
- package/build/tsconfig.types.tsbuildinfo +1 -1
- package/build/types/domain/components/collectionComponent/CollectionController.d.ts +2 -2
- package/build/types/domain/components/collectionComponent/CollectionController.d.ts.map +1 -1
- package/build/types/renderers/mappers/collectionComponentToProps.d.ts.map +1 -1
- package/package.json +2 -2
package/build/main.css
CHANGED
|
@@ -97,6 +97,13 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
.df-filters-container {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: row;
|
|
103
|
+
gap: 8px;
|
|
104
|
+
flex-wrap: wrap;
|
|
105
|
+
}
|
|
106
|
+
|
|
100
107
|
/* collapses and expands to the filters' natural height by animating a single grid row */
|
|
101
108
|
.df-filters-collapsible {
|
|
102
109
|
display: grid;
|
|
@@ -127,20 +134,11 @@
|
|
|
127
134
|
}
|
|
128
135
|
}
|
|
129
136
|
|
|
130
|
-
.df-filters-container {
|
|
131
|
-
display: flex;
|
|
132
|
-
flex-direction: row;
|
|
133
|
-
gap: 8px;
|
|
134
|
-
flex-wrap: wrap;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
137
|
.df-filter-loader .np-chip {
|
|
138
|
-
background: linear-gradient(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
var(--color-background-neutral) 60%
|
|
143
|
-
);
|
|
138
|
+
background: linear-gradient(-45deg,
|
|
139
|
+
var(--color-background-neutral) 40%,
|
|
140
|
+
var(--color-background-elevated) 50%,
|
|
141
|
+
var(--color-background-neutral) 60%);
|
|
144
142
|
background-size: 300%;
|
|
145
143
|
background-position-x: 100%;
|
|
146
144
|
animation: shimmer 1s infinite linear;
|
|
@@ -148,7 +146,7 @@
|
|
|
148
146
|
border-color: var(--color-border-neutral);
|
|
149
147
|
}
|
|
150
148
|
|
|
151
|
-
.df-filter-loader .np-chip
|
|
149
|
+
.df-filter-loader .np-chip>* {
|
|
152
150
|
visibility: hidden;
|
|
153
151
|
}
|
|
154
152
|
|
|
@@ -158,6 +156,51 @@
|
|
|
158
156
|
}
|
|
159
157
|
}
|
|
160
158
|
|
|
159
|
+
/* the hint is stacked over the input by the input group's grid, lined up with the input's text */
|
|
160
|
+
.df-search-hint {
|
|
161
|
+
display: grid;
|
|
162
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
163
|
+
align-self: center;
|
|
164
|
+
min-width: 0;
|
|
165
|
+
margin-inline: var(--size-48);
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
pointer-events: none;
|
|
168
|
+
color: var(--color-content-tertiary);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* the prefix can end in a space, which a grid item would otherwise trim */
|
|
172
|
+
.df-search-hint-prefix {
|
|
173
|
+
white-space: pre;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* the words share one clipped line, so they appear to roll past each other */
|
|
177
|
+
.df-search-hint-viewport {
|
|
178
|
+
display: grid;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* the words still to come wait above the line, the current one sits on it, and past ones drop below */
|
|
183
|
+
.df-search-hint-word {
|
|
184
|
+
grid-area: 1 / 1;
|
|
185
|
+
overflow: hidden;
|
|
186
|
+
text-overflow: ellipsis;
|
|
187
|
+
white-space: nowrap;
|
|
188
|
+
opacity: 0;
|
|
189
|
+
transform: translateY(-100%);
|
|
190
|
+
transition:
|
|
191
|
+
transform 0.5s cubic-bezier(0.35, 0, 0.35, 1),
|
|
192
|
+
opacity 0.8s cubic-bezier(0.35, 0, 0.35, 1);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.df-search-hint-word--current {
|
|
196
|
+
opacity: 1;
|
|
197
|
+
transform: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.df-search-hint-word--past {
|
|
201
|
+
transform: translateY(100%);
|
|
202
|
+
}
|
|
203
|
+
|
|
161
204
|
.df-columns-renderer-container {
|
|
162
205
|
display: flex;
|
|
163
206
|
gap: var(--size-4);
|
package/build/main.js
CHANGED
|
@@ -1822,7 +1822,7 @@ var toggleFilterOption = (state, filterIndex, optionIndex) => {
|
|
|
1822
1822
|
// src/domain/components/collectionComponent/CollectionController.ts
|
|
1823
1823
|
var createCollectionController = ({
|
|
1824
1824
|
stack,
|
|
1825
|
-
|
|
1825
|
+
collectionClient,
|
|
1826
1826
|
trackEvent
|
|
1827
1827
|
}) => {
|
|
1828
1828
|
let requests = /* @__PURE__ */ new Map();
|
|
@@ -1868,7 +1868,7 @@ var createCollectionController = ({
|
|
|
1868
1868
|
const { analytics, filters, search } = state;
|
|
1869
1869
|
trackEvent(getEventName(mode, "Triggered"), analytics);
|
|
1870
1870
|
try {
|
|
1871
|
-
const response = await
|
|
1871
|
+
const response = await collectionClient({
|
|
1872
1872
|
searchParam: search == null ? void 0 : search.param,
|
|
1873
1873
|
query: search == null ? void 0 : search.query,
|
|
1874
1874
|
cursor: mode === "pagination" ? state.nextCursor : void 0,
|
|
@@ -2148,7 +2148,7 @@ var collectionLayoutToComponent = (uid, { analyticsId, control, initialState, ma
|
|
|
2148
2148
|
);
|
|
2149
2149
|
};
|
|
2150
2150
|
const mapState = (state) => mapCollectionSpecToDomainState(state, mapperProps, mapLayout);
|
|
2151
|
-
const
|
|
2151
|
+
const collectionClient = getPerformCollectionQuery(httpClient, baseRequest, mapState);
|
|
2152
2152
|
const stack = createCollectionStack(
|
|
2153
2153
|
uid,
|
|
2154
2154
|
mapState(__spreadProps(__spreadValues({}, initialState), {
|
|
@@ -2156,7 +2156,7 @@ var collectionLayoutToComponent = (uid, { analyticsId, control, initialState, ma
|
|
|
2156
2156
|
})),
|
|
2157
2157
|
onComponentUpdate
|
|
2158
2158
|
);
|
|
2159
|
-
const controller = createCollectionController({ stack,
|
|
2159
|
+
const controller = createCollectionController({ stack, collectionClient, trackEvent });
|
|
2160
2160
|
const component = createCollectionComponent(
|
|
2161
2161
|
{
|
|
2162
2162
|
uid,
|
|
@@ -9141,6 +9141,7 @@ var collectionComponentToProps = (component, rendererMapperProps) => {
|
|
|
9141
9141
|
const { stack } = component;
|
|
9142
9142
|
return __spreadProps(__spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin", "tags", "fork", "pop")), rendererMapperProps), {
|
|
9143
9143
|
state: mapCollectionState(component, component.getActiveState(), rendererMapperProps),
|
|
9144
|
+
onSearchChange: (query) => component.search(component.getActiveState(), query),
|
|
9144
9145
|
depth: stack.length - 1
|
|
9145
9146
|
});
|
|
9146
9147
|
};
|
|
@@ -9160,7 +9161,6 @@ var mapCollectionState = (component, state, rendererMapperProps) => {
|
|
|
9160
9161
|
afterSectionsProps,
|
|
9161
9162
|
afterSections: afterSectionsProps.map(render),
|
|
9162
9163
|
search: search ? __spreadProps(__spreadValues({}, pick(search, "title", "hint", "hints", "query")), {
|
|
9163
|
-
onChange: (query) => component.search(component.getActiveState(), query),
|
|
9164
9164
|
initialSections: search.initialSections ? mapSections(search.initialSections, rendererMapperProps) : void 0
|
|
9165
9165
|
}) : void 0
|
|
9166
9166
|
};
|
package/build/main.mjs
CHANGED
|
@@ -1791,7 +1791,7 @@ var toggleFilterOption = (state, filterIndex, optionIndex) => {
|
|
|
1791
1791
|
// src/domain/components/collectionComponent/CollectionController.ts
|
|
1792
1792
|
var createCollectionController = ({
|
|
1793
1793
|
stack,
|
|
1794
|
-
|
|
1794
|
+
collectionClient,
|
|
1795
1795
|
trackEvent
|
|
1796
1796
|
}) => {
|
|
1797
1797
|
let requests = /* @__PURE__ */ new Map();
|
|
@@ -1837,7 +1837,7 @@ var createCollectionController = ({
|
|
|
1837
1837
|
const { analytics, filters, search } = state;
|
|
1838
1838
|
trackEvent(getEventName(mode, "Triggered"), analytics);
|
|
1839
1839
|
try {
|
|
1840
|
-
const response = await
|
|
1840
|
+
const response = await collectionClient({
|
|
1841
1841
|
searchParam: search == null ? void 0 : search.param,
|
|
1842
1842
|
query: search == null ? void 0 : search.query,
|
|
1843
1843
|
cursor: mode === "pagination" ? state.nextCursor : void 0,
|
|
@@ -2117,7 +2117,7 @@ var collectionLayoutToComponent = (uid, { analyticsId, control, initialState, ma
|
|
|
2117
2117
|
);
|
|
2118
2118
|
};
|
|
2119
2119
|
const mapState = (state) => mapCollectionSpecToDomainState(state, mapperProps, mapLayout);
|
|
2120
|
-
const
|
|
2120
|
+
const collectionClient = getPerformCollectionQuery(httpClient, baseRequest, mapState);
|
|
2121
2121
|
const stack = createCollectionStack(
|
|
2122
2122
|
uid,
|
|
2123
2123
|
mapState(__spreadProps(__spreadValues({}, initialState), {
|
|
@@ -2125,7 +2125,7 @@ var collectionLayoutToComponent = (uid, { analyticsId, control, initialState, ma
|
|
|
2125
2125
|
})),
|
|
2126
2126
|
onComponentUpdate
|
|
2127
2127
|
);
|
|
2128
|
-
const controller = createCollectionController({ stack,
|
|
2128
|
+
const controller = createCollectionController({ stack, collectionClient, trackEvent });
|
|
2129
2129
|
const component = createCollectionComponent(
|
|
2130
2130
|
{
|
|
2131
2131
|
uid,
|
|
@@ -9112,6 +9112,7 @@ var collectionComponentToProps = (component, rendererMapperProps) => {
|
|
|
9112
9112
|
const { stack } = component;
|
|
9113
9113
|
return __spreadProps(__spreadValues(__spreadValues({}, pick(component, "uid", "analyticsId", "type", "control", "margin", "tags", "fork", "pop")), rendererMapperProps), {
|
|
9114
9114
|
state: mapCollectionState(component, component.getActiveState(), rendererMapperProps),
|
|
9115
|
+
onSearchChange: (query) => component.search(component.getActiveState(), query),
|
|
9115
9116
|
depth: stack.length - 1
|
|
9116
9117
|
});
|
|
9117
9118
|
};
|
|
@@ -9131,7 +9132,6 @@ var mapCollectionState = (component, state, rendererMapperProps) => {
|
|
|
9131
9132
|
afterSectionsProps,
|
|
9132
9133
|
afterSections: afterSectionsProps.map(render),
|
|
9133
9134
|
search: search ? __spreadProps(__spreadValues({}, pick(search, "title", "hint", "hints", "query")), {
|
|
9134
|
-
onChange: (query) => component.search(component.getActiveState(), query),
|
|
9135
9135
|
initialSections: search.initialSections ? mapSections(search.initialSections, rendererMapperProps) : void 0
|
|
9136
9136
|
}) : void 0
|
|
9137
9137
|
};
|