@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 CHANGED
@@ -15369,7 +15369,9 @@ function serializeActivityFilters(filters, timeRange, streamingEnabled = true) {
15369
15369
  if (!streamingEnabled) {
15370
15370
  params.set('streaming', 'false');
15371
15371
  }
15372
- if (filters.changeSource && filters.changeSource !== 'human') {
15372
+ // Written even when it matches a default: the default differs between
15373
+ // pages, so an omitted value can't be read back as the one chosen.
15374
+ if (filters.changeSource) {
15373
15375
  params.set('changeSource', filters.changeSource);
15374
15376
  }
15375
15377
  if (filters.actorNames && filters.actorNames.length > 0) {
@@ -15433,12 +15435,11 @@ function serializeEventFilters(filters, timeRange, streamingEnabled = true) {
15433
15435
  function parseActivityFilters(searchParams) {
15434
15436
  const filters = {};
15435
15437
  const changeSource = searchParams.get('changeSource');
15438
+ // Left unset when absent so the caller's default applies. Filling in
15439
+ // 'human' here overrode pages that default to 'all'.
15436
15440
  if (changeSource === 'human' || changeSource === 'system' || changeSource === 'all') {
15437
15441
  filters.changeSource = changeSource;
15438
15442
  }
15439
- else {
15440
- filters.changeSource = 'human';
15441
- }
15442
15443
  const actorNames = searchParams.get('actorNames');
15443
15444
  if (actorNames) {
15444
15445
  filters.actorNames = actorNames.split(',').filter(Boolean);