sanity 6.2.0-next.160 → 6.2.0-next.162

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.
@@ -2678,7 +2678,8 @@ declare const studioLocaleStrings: {
2678
2678
  'divergence.unresolved-divergence_one': string; /** Label for divergences in multiple nodes */
2679
2679
  'divergence.unresolved-divergence_other': string;
2680
2680
  /** --- Document inventory --- */
2681
- /** The label for the input that filters the variants in the document group inventory */
2681
+ /** The label used in the feedback dialog asking how easy the document group inventory is to use */
2682
+ 'document-group-inventory.feedback.sentiment-label': string; /** The label for the input that filters the variants in the document group inventory */
2682
2683
  'document-group-inventory.filter-string.label': string; /** The document inventory title (singular) */
2683
2684
  'document-group-inventory.title': string; /** The document inventory title (plural) */
2684
2685
  'document-group-inventory.title_one': string; /** The document inventory title (plural) */
@@ -90,6 +90,7 @@ import "lodash-es/findIndex.js";
90
90
  import { useCommentsUpsell } from "./useCommentsUpsell.js";
91
91
  import "@xstate/react";
92
92
  import "xstate";
93
+ import "@sentry/react";
93
94
  import "@sanity/schema";
94
95
  import "@sanity/util/client";
95
96
  import "@sanity/util/concurrency-limiter";
@@ -98,7 +99,6 @@ import "json-reduce";
98
99
  import "rxjs-exhaustmap-with-trailing";
99
100
  import "date-fns/isBefore";
100
101
  import "date-fns/startOfMinute";
101
- import "@sentry/react";
102
102
  import "@portabletext/toolkit";
103
103
  import "polished";
104
104
  import "@sanity/client";
@@ -90,6 +90,7 @@ import "@portabletext/react";
90
90
  import "lodash-es/findIndex.js";
91
91
  import "@xstate/react";
92
92
  import "xstate";
93
+ import "@sentry/react";
93
94
  import "@sanity/schema";
94
95
  import "@sanity/util/client";
95
96
  import "@sanity/util/concurrency-limiter";
@@ -98,7 +99,6 @@ import "json-reduce";
98
99
  import "rxjs-exhaustmap-with-trailing";
99
100
  import "date-fns/isBefore";
100
101
  import "date-fns/startOfMinute";
101
- import "@sentry/react";
102
102
  import "@portabletext/toolkit";
103
103
  import "polished";
104
104
  import "@sanity/client";
@@ -87,9 +87,9 @@ import "@portabletext/react";
87
87
  import "lodash-es/findIndex.js";
88
88
  import "@xstate/react";
89
89
  import "xstate";
90
+ import "@sentry/react";
90
91
  import { isBefore } from "date-fns/isBefore";
91
92
  import { startOfMinute } from "date-fns/startOfMinute";
92
- import "@sentry/react";
93
93
  import "@portabletext/toolkit";
94
94
  import "lodash-es/debounce.js";
95
95
  import "react-focus-lock";
@@ -89,6 +89,7 @@ import "@portabletext/react";
89
89
  import "lodash-es/findIndex.js";
90
90
  import "@xstate/react";
91
91
  import "xstate";
92
+ import "@sentry/react";
92
93
  import "@sanity/schema";
93
94
  import "@sanity/util/client";
94
95
  import "@sanity/util/concurrency-limiter";
@@ -97,7 +98,6 @@ import "json-reduce";
97
98
  import "rxjs-exhaustmap-with-trailing";
98
99
  import "date-fns/isBefore";
99
100
  import "date-fns/startOfMinute";
100
- import "@sentry/react";
101
101
  import "@portabletext/toolkit";
102
102
  import "polished";
103
103
  import "@sanity/client";
@@ -89,6 +89,7 @@ import "@portabletext/react";
89
89
  import "lodash-es/findIndex.js";
90
90
  import "@xstate/react";
91
91
  import "xstate";
92
+ import "@sentry/react";
92
93
  import "@sanity/schema";
93
94
  import "@sanity/util/client";
94
95
  import "@sanity/util/concurrency-limiter";
@@ -97,7 +98,6 @@ import "json-reduce";
97
98
  import "rxjs-exhaustmap-with-trailing";
98
99
  import "date-fns/isBefore";
99
100
  import "date-fns/startOfMinute";
100
- import "@sentry/react";
101
101
  import "@portabletext/toolkit";
102
102
  import "polished";
103
103
  import "@sanity/client";
@@ -87,6 +87,7 @@ import "@portabletext/react";
87
87
  import "lodash-es/findIndex.js";
88
88
  import "@xstate/react";
89
89
  import "xstate";
90
+ import "@sentry/react";
90
91
  import "@sanity/schema";
91
92
  import "@sanity/util/client";
92
93
  import "@sanity/util/concurrency-limiter";
@@ -95,7 +96,6 @@ import "json-reduce";
95
96
  import "rxjs-exhaustmap-with-trailing";
96
97
  import "date-fns/isBefore";
97
98
  import "date-fns/startOfMinute";
98
- import "@sentry/react";
99
99
  import "@portabletext/toolkit";
100
100
  import "lodash-es/debounce.js";
101
101
  import "polished";
@@ -89,6 +89,7 @@ import "@portabletext/react";
89
89
  import "lodash-es/findIndex.js";
90
90
  import "@xstate/react";
91
91
  import "xstate";
92
+ import "@sentry/react";
92
93
  import "@sanity/schema";
93
94
  import "@sanity/util/client";
94
95
  import "@sanity/util/concurrency-limiter";
@@ -97,7 +98,6 @@ import "json-reduce";
97
98
  import "rxjs-exhaustmap-with-trailing";
98
99
  import "date-fns/isBefore";
99
100
  import "date-fns/startOfMinute";
100
- import "@sentry/react";
101
101
  import "@portabletext/toolkit";
102
102
  import "polished";
103
103
  import "@sanity/client";
@@ -89,6 +89,7 @@ import "@portabletext/react";
89
89
  import "lodash-es/findIndex.js";
90
90
  import "@xstate/react";
91
91
  import "xstate";
92
+ import "@sentry/react";
92
93
  import "@sanity/schema";
93
94
  import "@sanity/util/client";
94
95
  import "@sanity/util/concurrency-limiter";
@@ -97,7 +98,6 @@ import "json-reduce";
97
98
  import "rxjs-exhaustmap-with-trailing";
98
99
  import "date-fns/isBefore";
99
100
  import "date-fns/startOfMinute";
100
- import "@sentry/react";
101
101
  import "@portabletext/toolkit";
102
102
  import "polished";
103
103
  import "@sanity/client";
@@ -89,6 +89,7 @@ import "@portabletext/react";
89
89
  import "lodash-es/findIndex.js";
90
90
  import "@xstate/react";
91
91
  import "xstate";
92
+ import "@sentry/react";
92
93
  import "@sanity/schema";
93
94
  import "@sanity/util/client";
94
95
  import "@sanity/util/concurrency-limiter";
@@ -97,7 +98,6 @@ import "json-reduce";
97
98
  import "rxjs-exhaustmap-with-trailing";
98
99
  import "date-fns/isBefore";
99
100
  import "date-fns/startOfMinute";
100
- import "@sentry/react";
101
101
  import "@portabletext/toolkit";
102
102
  import "polished";
103
103
  import "@sanity/client";
@@ -87,6 +87,7 @@ import "@portabletext/react";
87
87
  import "lodash-es/findIndex.js";
88
88
  import "@xstate/react";
89
89
  import "xstate";
90
+ import "@sentry/react";
90
91
  import "@sanity/schema";
91
92
  import "@sanity/util/client";
92
93
  import "@sanity/util/concurrency-limiter";
@@ -95,7 +96,6 @@ import "json-reduce";
95
96
  import "rxjs-exhaustmap-with-trailing";
96
97
  import "date-fns/isBefore";
97
98
  import "date-fns/startOfMinute";
98
- import "@sentry/react";
99
99
  import "lodash-es/debounce.js";
100
100
  import "react-focus-lock";
101
101
  import "polished";
@@ -154,10 +154,10 @@ import values from "lodash-es/values.js";
154
154
  import findIndex$1 from "lodash-es/findIndex.js";
155
155
  import { useSelector, useActorRef } from "@xstate/react";
156
156
  import { setup, and, or, stateIn, fromPromise, fromObservable, not, assign as assign$1, sendParent, sendTo, forwardTo } from "xstate";
157
+ import { inboundFiltersIntegration, functionToStringIntegration, browserApiErrorsIntegration, breadcrumbsIntegration, globalHandlersIntegration, linkedErrorsIntegration, dedupeIntegration, httpContextIntegration, isInitialized, getClient, getCurrentScope, BrowserClient, makeFetchTransport, defaultStackParser, Scope, init, withScope, captureException } from "@sentry/react";
158
+ import sample from "lodash-es/sample.js";
157
159
  import { isBefore } from "date-fns/isBefore";
158
160
  import { startOfMinute } from "date-fns/startOfMinute";
159
- import sample from "lodash-es/sample.js";
160
- import { inboundFiltersIntegration, functionToStringIntegration, browserApiErrorsIntegration, breadcrumbsIntegration, globalHandlersIntegration, linkedErrorsIntegration, dedupeIntegration, httpContextIntegration, isInitialized, getClient, getCurrentScope, BrowserClient, makeFetchTransport, defaultStackParser, Scope, init, withScope, captureException } from "@sentry/react";
161
161
  import range from "lodash-es/range.js";
162
162
  import { endOfDay } from "date-fns/endOfDay";
163
163
  import deburr from "lodash-es/deburr.js";
@@ -1635,6 +1635,8 @@ const studioLocaleNamespace = "studio", validationLocaleNamespace = "validation"
1635
1635
  /** Label for divergences in multiple nodes */
1636
1636
  "divergence.unresolved-divergence_other": "{{count}} unresolved changes in {{versionName}} version",
1637
1637
  /** --- Document inventory --- */
1638
+ /** The label used in the feedback dialog asking how easy the document group inventory is to use */
1639
+ "document-group-inventory.feedback.sentiment-label": "How easy or difficult is the new version inventory to use?",
1638
1640
  /** The label for the input that filters the variants in the document group inventory */
1639
1641
  "document-group-inventory.filter-string.label": "Filter {{subject}}",
1640
1642
  /** The document inventory title (singular) */
@@ -4242,7 +4244,7 @@ const emptyRender = () => /* @__PURE__ */ jsx(Fragment, {});
4242
4244
  function _createMiddlewareComponent(DefaultComponent2, middlewareComponents) {
4243
4245
  function MiddlewareComponent(outerProps) {
4244
4246
  const $ = c(4);
4245
- let next = _temp18;
4247
+ let next = _temp19;
4246
4248
  if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
4247
4249
  for (const Middleware of middlewareComponents) {
4248
4250
  const renderDefault = next;
@@ -4259,7 +4261,7 @@ function _createMiddlewareComponent(DefaultComponent2, middlewareComponents) {
4259
4261
  renderDefault: emptyRender
4260
4262
  }) }), $[2] = outerProps, $[3] = t1) : t1 = $[3], t1;
4261
4263
  }
4262
- function _temp18(props2) {
4264
+ function _temp19(props2) {
4263
4265
  return /* @__PURE__ */ jsx(DefaultComponent2, { ...props2 });
4264
4266
  }
4265
4267
  return MiddlewareComponent;
@@ -4913,7 +4915,7 @@ function createLoginComponent({
4913
4915
  }
4914
4916
  return providers;
4915
4917
  }, $[1] = client, $[2] = t2) : t2 = $[2];
4916
- const getProviderData = t2, getLastUsedProvider = _temp18;
4918
+ const getProviderData = t2, getLastUsedProvider = _temp19;
4917
4919
  let t3, t4;
4918
4920
  $[3] !== client || $[4] !== getProviderData ? (t3 = () => {
4919
4921
  client && (async () => {
@@ -5005,7 +5007,7 @@ function createLoginComponent({
5005
5007
  t12
5006
5008
  ] }), $[23] = T0, $[24] = t12, $[25] = t7, $[26] = t13) : t13 = $[26], t13;
5007
5009
  }
5008
- function _temp18(providerList) {
5010
+ function _temp19(providerList) {
5009
5011
  if (!providerList || providerList.length <= 1)
5010
5012
  return;
5011
5013
  const providerName = localStorage.getItem(SANITY_LAST_USED_PROVIDER_KEY);
@@ -82579,6 +82581,10 @@ const deletionMachine = setup({
82579
82581
  types: {},
82580
82582
  actors: {
82581
82583
  meta: fromObservable(() => EMPTY$5)
82584
+ },
82585
+ actions: {
82586
+ onFeedbackBegin: () => {
82587
+ }
82582
82588
  }
82583
82589
  }).createMachine({
82584
82590
  id: "documentGroupInventory",
@@ -82654,6 +82660,15 @@ const deletionMachine = setup({
82654
82660
  }) => context.selectionRef, {
82655
82661
  type: "selection.unlock"
82656
82662
  })
82663
+ },
82664
+ "feedback.begin": ".feedback",
82665
+ "feedback.end": ".idle"
82666
+ },
82667
+ initial: "idle",
82668
+ states: {
82669
+ idle: {},
82670
+ feedback: {
82671
+ entry: "onFeedbackBegin"
82657
82672
  }
82658
82673
  }
82659
82674
  });
@@ -83328,7 +83343,7 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
83328
83343
  border-radius: ${radius[3]}px ${radius[3]}px 0 0;
83329
83344
  `;
83330
83345
  }), DocumentGroupInventory = (t0) => {
83331
- const $ = c(68), {
83346
+ const $ = c(90), {
83332
83347
  documentType,
83333
83348
  documentId,
83334
83349
  portalElementName,
@@ -83338,7 +83353,9 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
83338
83353
  components: components2
83339
83354
  } = t0, {
83340
83355
  t
83341
- } = useTranslation(studioLocaleNamespace), client = useClient(DEFAULT_STUDIO_CLIENT_OPTIONS), t1 = useSchema();
83356
+ } = useTranslation(studioLocaleNamespace), {
83357
+ t: feedbackT
83358
+ } = useTranslation(feedbackLocaleNamespace), client = useClient(DEFAULT_STUDIO_CLIENT_OPTIONS), t1 = useSchema();
83342
83359
  let t2;
83343
83360
  $[0] !== documentType || $[1] !== t1 ? (t2 = t1.get(documentType), $[0] = documentType, $[1] = t1, $[2] = t2) : t2 = $[2];
83344
83361
  const schema2 = t2;
@@ -83351,33 +83368,42 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
83351
83368
  } = useReleasesStore(), [containerElement, setContainerElement] = useState(null);
83352
83369
  let t4;
83353
83370
  $[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = new Subject(), $[5] = t4) : t4 = $[5];
83354
- const filterStringEvent = t4, [menuPortalElement, setMenuPortalElement] = useState(null);
83371
+ const filterStringEvent = t4, [menuPortalElement, setMenuPortalElement] = useState(null), {
83372
+ feedbackDialogOpened
83373
+ } = useFeedbackTelemetry();
83355
83374
  let t5;
83356
83375
  $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = filterStringEvent.pipe(map$1(_temp$c), debounceTime$1(150), map$1(_temp2$2), map$1(_temp3$2), startWith$1(void 0)), $[6] = t5) : t5 = $[6];
83357
83376
  const filterString = t5;
83358
83377
  let t6;
83359
- $[7] !== releases2 || $[8] !== versionState ? (t6 = documentGroupInventoryMachine.provide({
83360
- actors: {
83361
- meta: fromObservable(() => combineLatest({
83362
- versionState,
83363
- releases: releases2
83364
- }))
83365
- }
83366
- }), $[7] = releases2, $[8] = versionState, $[9] = t6) : t6 = $[9];
83378
+ if ($[7] !== feedbackDialogOpened || $[8] !== releases2 || $[9] !== versionState) {
83379
+ let t72;
83380
+ $[11] !== releases2 || $[12] !== versionState ? (t72 = () => combineLatest({
83381
+ versionState,
83382
+ releases: releases2
83383
+ }), $[11] = releases2, $[12] = versionState, $[13] = t72) : t72 = $[13], t6 = documentGroupInventoryMachine.provide({
83384
+ actors: {
83385
+ meta: fromObservable(t72)
83386
+ },
83387
+ actions: {
83388
+ onFeedbackBegin: feedbackDialogOpened
83389
+ }
83390
+ }), $[7] = feedbackDialogOpened, $[8] = releases2, $[9] = versionState, $[10] = t6;
83391
+ } else
83392
+ t6 = $[10];
83367
83393
  const inventoryMachine = t6;
83368
83394
  let t7;
83369
- $[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = selectionMachine.provide({
83395
+ $[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = selectionMachine.provide({
83370
83396
  actors: {
83371
83397
  filterString: fromObservable(() => filterString)
83372
83398
  }
83373
- }), $[10] = t7) : t7 = $[10];
83399
+ }), $[14] = t7) : t7 = $[14];
83374
83400
  const t8 = t7;
83375
83401
  let t9;
83376
- if ($[11] !== client || $[12] !== referringDocuments$) {
83402
+ if ($[15] !== client || $[16] !== referringDocuments$) {
83377
83403
  let t102;
83378
- $[14] !== referringDocuments$ ? (t102 = () => referringDocuments$, $[14] = referringDocuments$, $[15] = t102) : t102 = $[15];
83404
+ $[18] !== referringDocuments$ ? (t102 = () => referringDocuments$, $[18] = referringDocuments$, $[19] = t102) : t102 = $[19];
83379
83405
  let t112;
83380
- $[16] !== client ? (t112 = (t122) => {
83406
+ $[20] !== client ? (t112 = (t122) => {
83381
83407
  const {
83382
83408
  input,
83383
83409
  signal
@@ -83387,92 +83413,118 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
83387
83413
  skipCrossDatasetReferenceValidation: !0,
83388
83414
  signal
83389
83415
  });
83390
- }, $[16] = client, $[17] = t112) : t112 = $[17], t9 = deletionMachine.provide({
83416
+ }, $[20] = client, $[21] = t112) : t112 = $[21], t9 = deletionMachine.provide({
83391
83417
  actors: {
83392
83418
  referringDocuments: fromObservable(t102),
83393
83419
  deleteVariants: fromPromise(t112)
83394
83420
  }
83395
- }), $[11] = client, $[12] = referringDocuments$, $[13] = t9;
83421
+ }), $[15] = client, $[16] = referringDocuments$, $[17] = t9;
83396
83422
  } else
83397
- t9 = $[13];
83423
+ t9 = $[17];
83398
83424
  const t10 = t9;
83399
83425
  let t11;
83400
- $[18] !== t10 ? (t11 = {
83426
+ $[22] !== t10 ? (t11 = {
83401
83427
  input: {
83402
83428
  selectionMachine: t8,
83403
83429
  deletionMachine: t10
83404
83430
  }
83405
- }, $[18] = t10, $[19] = t11) : t11 = $[19];
83406
- const inventoryRef = useActorRef(inventoryMachine, t11), selectionRef = useSelector(inventoryRef, _temp5$1), deletionRef = useSelector(inventoryRef, _temp6), selectionCount = useSelector(selectionRef, _temp7), isReadOnly = useSelector(selectionRef, _temp8), isDeletionActive = useSelector(deletionRef, _temp9), canRequestDeletion = useSelector(deletionRef, _temp0), hasFilter = useSelector(selectionRef, _temp1);
83431
+ }, $[22] = t10, $[23] = t11) : t11 = $[23];
83432
+ const inventoryRef = useActorRef(inventoryMachine, t11), selectionRef = useSelector(inventoryRef, _temp5$1), deletionRef = useSelector(inventoryRef, _temp6), selectionCount = useSelector(selectionRef, _temp7), isReadOnly = useSelector(selectionRef, _temp8), isDeletionActive = useSelector(deletionRef, _temp9), isFeedbackActive = useSelector(inventoryRef, _temp0), canRequestDeletion = useSelector(deletionRef, _temp1), hasFilter = useSelector(selectionRef, _temp10);
83407
83433
  let t12;
83408
- $[20] !== containerElement || $[21] !== hasFilter ? (t12 = {
83434
+ $[24] !== containerElement || $[25] !== hasFilter ? (t12 = {
83409
83435
  element: containerElement,
83410
83436
  isActive: hasFilter
83411
- }, $[20] = containerElement, $[21] = hasFilter, $[22] = t12) : t12 = $[22], usePreserveIntrinsicBlockSize(t12);
83437
+ }, $[24] = containerElement, $[25] = hasFilter, $[26] = t12) : t12 = $[26], usePreserveIntrinsicBlockSize(t12);
83412
83438
  let t13;
83413
- $[23] !== t ? (t13 = t("document-group-inventory.filter-string.label", {
83414
- subject: t("document-group.subject.version_other")
83415
- }), $[23] = t, $[24] = t13) : t13 = $[24];
83439
+ $[27] !== inventoryRef ? (t13 = () => inventoryRef.send({
83440
+ type: "feedback.begin"
83441
+ }), $[27] = inventoryRef, $[28] = t13) : t13 = $[28];
83416
83442
  let t14;
83417
- $[25] !== t ? (t14 = t("document-group-inventory.filter-string.label", {
83418
- subject: t("document-group.subject.version_other")
83419
- }), $[25] = t, $[26] = t14) : t14 = $[26];
83443
+ $[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ jsx(FeedbackIcon, {}), $[29] = t14) : t14 = $[29];
83420
83444
  let t15;
83421
- $[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t15 = /* @__PURE__ */ jsx(SearchIcon, {}), $[27] = t15) : t15 = $[27];
83445
+ $[30] !== feedbackT ? (t15 = feedbackT("feedback.menu-item"), $[30] = feedbackT, $[31] = t15) : t15 = $[31];
83422
83446
  let t16;
83423
- $[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t16 = (event_0) => filterStringEvent.next(event_0), $[28] = t16) : t16 = $[28];
83447
+ $[32] !== t15 ? (t16 = /* @__PURE__ */ jsx(Text$1, { size: 1, children: /* @__PURE__ */ jsxs(Flex, { gap: 2, align: "center", justify: "flex-end", children: [
83448
+ t14,
83449
+ " ",
83450
+ t15
83451
+ ] }) }), $[32] = t15, $[33] = t16) : t16 = $[33];
83424
83452
  let t17;
83425
- $[29] !== isReadOnly || $[30] !== t13 || $[31] !== t14 ? (t17 = /* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx("search", { children: /* @__PURE__ */ jsx(TextInput$1, { name: t13, placeholder: t14, icon: t15, readOnly: isReadOnly, onChange: t16 }) }) }), $[29] = isReadOnly, $[30] = t13, $[31] = t14, $[32] = t17) : t17 = $[32];
83453
+ $[34] !== t13 || $[35] !== t16 ? (t17 = /* @__PURE__ */ jsx(TextButton, { onClick: t13, children: t16 }), $[34] = t13, $[35] = t16, $[36] = t17) : t17 = $[36];
83426
83454
  let t18;
83427
- $[33] !== documentType || $[34] !== inventoryRef || $[35] !== menuPortalElement || $[36] !== navigatePerspective || $[37] !== perspectiveList || $[38] !== schema2 || $[39] !== selectionRef ? (t18 = schema2 && /* @__PURE__ */ jsx(Select, { machine: selectionRef, inventoryRef, documentType, menuPortalElement, perspectiveList, onPrimaryAction: (variantId) => {
83455
+ $[37] !== t ? (t18 = t("document-group-inventory.filter-string.label", {
83456
+ subject: t("document-group.subject.version_other")
83457
+ }), $[37] = t, $[38] = t18) : t18 = $[38];
83458
+ let t19;
83459
+ $[39] !== t ? (t19 = t("document-group-inventory.filter-string.label", {
83460
+ subject: t("document-group.subject.version_other")
83461
+ }), $[39] = t, $[40] = t19) : t19 = $[40];
83462
+ let t20;
83463
+ $[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t20 = /* @__PURE__ */ jsx(SearchIcon, {}), $[41] = t20) : t20 = $[41];
83464
+ let t21;
83465
+ $[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t21 = (event_0) => filterStringEvent.next(event_0), $[42] = t21) : t21 = $[42];
83466
+ let t22;
83467
+ $[43] !== isReadOnly || $[44] !== t18 || $[45] !== t19 ? (t22 = /* @__PURE__ */ jsx("search", { children: /* @__PURE__ */ jsx(TextInput$1, { name: t18, placeholder: t19, icon: t20, readOnly: isReadOnly, onChange: t21 }) }), $[43] = isReadOnly, $[44] = t18, $[45] = t19, $[46] = t22) : t22 = $[46];
83468
+ let t23;
83469
+ $[47] !== t17 || $[48] !== t22 ? (t23 = /* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsxs(Stack, { gap: 4, children: [
83470
+ t17,
83471
+ t22
83472
+ ] }) }), $[47] = t17, $[48] = t22, $[49] = t23) : t23 = $[49];
83473
+ let t24;
83474
+ $[50] !== documentType || $[51] !== inventoryRef || $[52] !== menuPortalElement || $[53] !== navigatePerspective || $[54] !== perspectiveList || $[55] !== schema2 || $[56] !== selectionRef ? (t24 = schema2 && /* @__PURE__ */ jsx(Select, { machine: selectionRef, inventoryRef, documentType, menuPortalElement, perspectiveList, onPrimaryAction: (variantId) => {
83428
83475
  let perspective;
83429
- bb52: switch (!0) {
83476
+ bb56: switch (!0) {
83430
83477
  case isPublishedId(variantId): {
83431
83478
  perspective = "published";
83432
- break bb52;
83479
+ break bb56;
83433
83480
  }
83434
83481
  case isDraftId(variantId): {
83435
83482
  perspective = "drafts";
83436
- break bb52;
83483
+ break bb56;
83437
83484
  }
83438
83485
  case isVersionId(variantId): {
83439
83486
  perspective = getVersionFromId(variantId);
83440
- break bb52;
83487
+ break bb56;
83441
83488
  }
83442
83489
  default:
83443
83490
  perspective = void 0;
83444
83491
  }
83445
83492
  typeof perspective < "u" && navigatePerspective(perspective);
83446
- } }), $[33] = documentType, $[34] = inventoryRef, $[35] = menuPortalElement, $[36] = navigatePerspective, $[37] = perspectiveList, $[38] = schema2, $[39] = selectionRef, $[40] = t18) : t18 = $[40];
83447
- let t19;
83448
- $[41] !== t18 ? (t19 = /* @__PURE__ */ jsx(Body, { children: t18 }), $[41] = t18, $[42] = t19) : t19 = $[42];
83449
- let t20;
83450
- $[43] !== selectionCount || $[44] !== t ? (t20 = t("document-group.delete.confirm-button.text", {
83451
- count: selectionCount
83452
- }), $[43] = selectionCount, $[44] = t, $[45] = t20) : t20 = $[45];
83453
- let t21;
83454
- $[46] !== deletionRef ? (t21 = () => deletionRef.send({
83455
- type: "delete.request"
83456
- }), $[46] = deletionRef, $[47] = t21) : t21 = $[47];
83457
- const t22 = !canRequestDeletion;
83458
- let t23;
83459
- $[48] !== t20 || $[49] !== t21 || $[50] !== t22 ? (t23 = /* @__PURE__ */ jsx(Footer, { children: /* @__PURE__ */ jsx(Button$1, { text: t20, onClick: t21, disabled: t22, tone: "critical", size: "large", icon: TrashIcon }) }), $[48] = t20, $[49] = t21, $[50] = t22, $[51] = t23) : t23 = $[51];
83460
- let t24;
83461
- $[52] !== t17 || $[53] !== t19 || $[54] !== t23 ? (t24 = /* @__PURE__ */ jsxs(Container, { ref: setContainerElement, "data-testid": "document-group-inventory", children: [
83462
- t17,
83463
- t19,
83464
- t23
83465
- ] }), $[52] = t17, $[53] = t19, $[54] = t23, $[55] = t24) : t24 = $[55];
83493
+ } }), $[50] = documentType, $[51] = inventoryRef, $[52] = menuPortalElement, $[53] = navigatePerspective, $[54] = perspectiveList, $[55] = schema2, $[56] = selectionRef, $[57] = t24) : t24 = $[57];
83466
83494
  let t25;
83467
- $[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t25 = /* @__PURE__ */ jsx("div", { ref: setMenuPortalElement }), $[56] = t25) : t25 = $[56];
83495
+ $[58] !== t24 ? (t25 = /* @__PURE__ */ jsx(Body, { children: t24 }), $[58] = t24, $[59] = t25) : t25 = $[59];
83468
83496
  let t26;
83469
- $[57] !== components2 || $[58] !== deletionRef || $[59] !== documentId || $[60] !== documentType || $[61] !== isDeletionActive || $[62] !== portalElementName || $[63] !== selectionRef ? (t26 = isDeletionActive && /* @__PURE__ */ jsx(ConfirmDeleteDialog, { documentId, documentType, deletionRef, selectionRef, portalElementName, components: components2 }), $[57] = components2, $[58] = deletionRef, $[59] = documentId, $[60] = documentType, $[61] = isDeletionActive, $[62] = portalElementName, $[63] = selectionRef, $[64] = t26) : t26 = $[64];
83497
+ $[60] !== selectionCount || $[61] !== t ? (t26 = t("document-group.delete.confirm-button.text", {
83498
+ count: selectionCount
83499
+ }), $[60] = selectionCount, $[61] = t, $[62] = t26) : t26 = $[62];
83470
83500
  let t27;
83471
- return $[65] !== t24 || $[66] !== t26 ? (t27 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
83472
- t24,
83501
+ $[63] !== deletionRef ? (t27 = () => deletionRef.send({
83502
+ type: "delete.request"
83503
+ }), $[63] = deletionRef, $[64] = t27) : t27 = $[64];
83504
+ const t28 = !canRequestDeletion;
83505
+ let t29;
83506
+ $[65] !== t26 || $[66] !== t27 || $[67] !== t28 ? (t29 = /* @__PURE__ */ jsx(Footer, { children: /* @__PURE__ */ jsx(Button$1, { text: t26, onClick: t27, disabled: t28, tone: "critical", size: "large", icon: TrashIcon }) }), $[65] = t26, $[66] = t27, $[67] = t28, $[68] = t29) : t29 = $[68];
83507
+ let t30;
83508
+ $[69] !== t23 || $[70] !== t25 || $[71] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Container, { ref: setContainerElement, "data-testid": "document-group-inventory", children: [
83509
+ t23,
83473
83510
  t25,
83474
- t26
83475
- ] }), $[65] = t24, $[66] = t26, $[67] = t27) : t27 = $[67], t27;
83511
+ t29
83512
+ ] }), $[69] = t23, $[70] = t25, $[71] = t29, $[72] = t30) : t30 = $[72];
83513
+ let t31;
83514
+ $[73] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t31 = /* @__PURE__ */ jsx("div", { ref: setMenuPortalElement }), $[73] = t31) : t31 = $[73];
83515
+ let t32;
83516
+ $[74] !== components2 || $[75] !== deletionRef || $[76] !== documentId || $[77] !== documentType || $[78] !== isDeletionActive || $[79] !== portalElementName || $[80] !== selectionRef ? (t32 = isDeletionActive && /* @__PURE__ */ jsx(ConfirmDeleteDialog, { documentId, documentType, deletionRef, selectionRef, portalElementName, components: components2 }), $[74] = components2, $[75] = deletionRef, $[76] = documentId, $[77] = documentType, $[78] = isDeletionActive, $[79] = portalElementName, $[80] = selectionRef, $[81] = t32) : t32 = $[81];
83517
+ let t33;
83518
+ $[82] !== inventoryRef || $[83] !== isFeedbackActive || $[84] !== t ? (t33 = isFeedbackActive && /* @__PURE__ */ jsx(StudioFeedbackDialog, { dsn: STUDIO_DSN, feedbackVersion: "1", source: "document-group-inventory", onClose: () => inventoryRef.send({
83519
+ type: "feedback.end"
83520
+ }), sentimentLabel: t("document-group-inventory.feedback.sentiment-label") }), $[82] = inventoryRef, $[83] = isFeedbackActive, $[84] = t, $[85] = t33) : t33 = $[85];
83521
+ let t34;
83522
+ return $[86] !== t30 || $[87] !== t32 || $[88] !== t33 ? (t34 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
83523
+ t30,
83524
+ t31,
83525
+ t32,
83526
+ t33
83527
+ ] }), $[86] = t30, $[87] = t32, $[88] = t33, $[89] = t34) : t34 = $[89], t34;
83476
83528
  }, Select = (t0) => {
83477
83529
  const $ = c(23), {
83478
83530
  machine,
@@ -83483,7 +83535,7 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
83483
83535
  perspectiveList
83484
83536
  } = t0, {
83485
83537
  t
83486
- } = useTranslation(studioLocaleNamespace), sets = useSelector(inventoryRef, _temp10), hasFilterString = useSelector(machine, _temp11), filterMatchingVariantIds = useSelector(machine, _temp12);
83538
+ } = useTranslation(studioLocaleNamespace), sets = useSelector(inventoryRef, _temp11), hasFilterString = useSelector(machine, _temp12), filterMatchingVariantIds = useSelector(machine, _temp13);
83487
83539
  let t1;
83488
83540
  if ($[0] !== documentType || $[1] !== filterMatchingVariantIds || $[2] !== hasFilterString || $[3] !== inventoryRef || $[4] !== machine || $[5] !== menuPortalElement || $[6] !== onPrimaryAction || $[7] !== perspectiveList || $[8] !== sets || $[9] !== t) {
83489
83541
  let t22;
@@ -83539,7 +83591,7 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
83539
83591
  const isVersion = t3;
83540
83592
  let t4;
83541
83593
  $[6] !== variant.id ? (t4 = getPublishedId(variant.id), $[6] = variant.id, $[7] = t4) : t4 = $[7];
83542
- const documentId = t4, versionName = getVersionFromId(variant.id), bundleId = isPublishedVersion ? "published" : isDraftVersion ? "draft" : versionName ?? "", isReadOnly = useSelector(machine, _temp13), selectedIds = useSelector(machine, _temp14), releases2 = useSelector(inventoryRef, _temp15), {
83594
+ const documentId = t4, versionName = getVersionFromId(variant.id), bundleId = isPublishedVersion ? "published" : isDraftVersion ? "draft" : versionName ?? "", isReadOnly = useSelector(machine, _temp14), selectedIds = useSelector(machine, _temp15), releases2 = useSelector(inventoryRef, _temp16), {
83543
83595
  filteredReleases,
83544
83596
  getReleaseChipState,
83545
83597
  handleCopyToDraftsNavigate,
@@ -83649,14 +83701,14 @@ function usePreserveIntrinsicBlockSize(t0) {
83649
83701
  let t4, t5;
83650
83702
  $[5] !== currentSize || $[6] !== element || $[7] !== isActive ? (t4 = () => {
83651
83703
  if (!element || !currentSize)
83652
- return _temp16;
83704
+ return _temp17;
83653
83705
  const cleanUp = () => element.style.removeProperty("--intrinsic-block-size");
83654
- return isActive ? (element?.style.setProperty("--intrinsic-block-size", `${currentSize.height}px`), cleanUp) : (cleanUp(), _temp17);
83706
+ return isActive ? (element?.style.setProperty("--intrinsic-block-size", `${currentSize.height}px`), cleanUp) : (cleanUp(), _temp18);
83655
83707
  }, t5 = [element, currentSize, isActive], $[5] = currentSize, $[6] = element, $[7] = isActive, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), useEffect(t4, t5);
83656
83708
  }
83657
- function _temp17() {
83709
+ function _temp18() {
83658
83710
  }
83659
- function _temp16() {
83711
+ function _temp17() {
83660
83712
  }
83661
83713
  const TextButton = /* @__PURE__ */ styled.button.withConfig({
83662
83714
  displayName: "TextButton",
@@ -83667,7 +83719,7 @@ const TextButton = /* @__PURE__ */ styled.button.withConfig({
83667
83719
  const {
83668
83720
  color
83669
83721
  } = getTheme_v2(theme);
83670
- return css`display:inline-block;appearance:none;border:0;margin:0;padding:0;outline:none;all:unset;color:${color.link.fg};*{color:inherit;}`;
83722
+ return css`display:inline-block;appearance:none;border:0;margin:0;padding:0;outline:none;all:unset;color:${color.link.fg};*{color:inherit;}svg[data-sanity-icon]{color:currentColor;}`;
83671
83723
  });
83672
83724
  function _temp$c(event) {
83673
83725
  return event.target.value;
@@ -83705,45 +83757,48 @@ function _temp8(snapshot2) {
83705
83757
  function _temp9(snapshot_0) {
83706
83758
  return snapshot_0.matches("active");
83707
83759
  }
83708
- function _temp0(machine) {
83760
+ function _temp0(snapshot_1) {
83761
+ return snapshot_1.matches("feedback");
83762
+ }
83763
+ function _temp1(machine) {
83709
83764
  return machine.can({
83710
83765
  type: "delete.request"
83711
83766
  });
83712
83767
  }
83713
- function _temp1(t0) {
83768
+ function _temp10(t0) {
83714
83769
  const {
83715
83770
  context: context_2
83716
83771
  } = t0;
83717
83772
  return typeof context_2.filterString == "string";
83718
83773
  }
83719
- function _temp10(t0) {
83774
+ function _temp11(t0) {
83720
83775
  const {
83721
83776
  context
83722
83777
  } = t0;
83723
83778
  return context.sets;
83724
83779
  }
83725
- function _temp11(t0) {
83780
+ function _temp12(t0) {
83726
83781
  const {
83727
83782
  context: context_0
83728
83783
  } = t0;
83729
83784
  return typeof context_0.filterString < "u";
83730
83785
  }
83731
- function _temp12(t0) {
83786
+ function _temp13(t0) {
83732
83787
  const {
83733
83788
  context: context_1
83734
83789
  } = t0;
83735
83790
  return context_1.filterMatchingVariantIds;
83736
83791
  }
83737
- function _temp13(s) {
83792
+ function _temp14(s) {
83738
83793
  return s.matches("readonly");
83739
83794
  }
83740
- function _temp14(t0) {
83795
+ function _temp15(t0) {
83741
83796
  const {
83742
83797
  context
83743
83798
  } = t0;
83744
83799
  return context.selectedIds;
83745
83800
  }
83746
- function _temp15(t0) {
83801
+ function _temp16(t0) {
83747
83802
  const {
83748
83803
  context: context_0
83749
83804
  } = t0;