@datum-cloud/activity-ui 0.7.0-dev.7e2df76 → 0.7.0-dev.f256686
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/dist/index.esm.js +5 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/lib/activity-filters.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15379,7 +15379,9 @@ function serializeActivityFilters(filters, timeRange, streamingEnabled = true) {
|
|
|
15379
15379
|
if (!streamingEnabled) {
|
|
15380
15380
|
params.set('streaming', 'false');
|
|
15381
15381
|
}
|
|
15382
|
-
|
|
15382
|
+
// Written even when it matches a default: the default differs between
|
|
15383
|
+
// pages, so an omitted value can't be read back as the one chosen.
|
|
15384
|
+
if (filters.changeSource) {
|
|
15383
15385
|
params.set('changeSource', filters.changeSource);
|
|
15384
15386
|
}
|
|
15385
15387
|
if (filters.actorNames && filters.actorNames.length > 0) {
|
|
@@ -15443,12 +15445,11 @@ function serializeEventFilters(filters, timeRange, streamingEnabled = true) {
|
|
|
15443
15445
|
function parseActivityFilters(searchParams) {
|
|
15444
15446
|
const filters = {};
|
|
15445
15447
|
const changeSource = searchParams.get('changeSource');
|
|
15448
|
+
// Left unset when absent so the caller's default applies. Filling in
|
|
15449
|
+
// 'human' here overrode pages that default to 'all'.
|
|
15446
15450
|
if (changeSource === 'human' || changeSource === 'system' || changeSource === 'all') {
|
|
15447
15451
|
filters.changeSource = changeSource;
|
|
15448
15452
|
}
|
|
15449
|
-
else {
|
|
15450
|
-
filters.changeSource = 'human';
|
|
15451
|
-
}
|
|
15452
15453
|
const actorNames = searchParams.get('actorNames');
|
|
15453
15454
|
if (actorNames) {
|
|
15454
15455
|
filters.actorNames = actorNames.split(',').filter(Boolean);
|