@stapel/listings-react 0.26.0 → 0.28.0

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/MODULE.md +3 -1
  3. package/README.md +102 -8
  4. package/dist/api/generated/schema.d.ts +20 -10
  5. package/dist/api/generated/schema.d.ts.map +1 -1
  6. package/dist/default/ListingActions.d.ts +8 -1
  7. package/dist/default/ListingActions.d.ts.map +1 -1
  8. package/dist/default/ListingActions.js +1 -1
  9. package/dist/default/ListingActions.js.map +1 -1
  10. package/dist/default/ListingDetailPane.d.ts +148 -9
  11. package/dist/default/ListingDetailPane.d.ts.map +1 -1
  12. package/dist/default/ListingDetailPane.js +131 -19
  13. package/dist/default/ListingDetailPane.js.map +1 -1
  14. package/dist/default/MyListingsPane.d.ts.map +1 -1
  15. package/dist/default/MyListingsPane.js +10 -6
  16. package/dist/default/MyListingsPane.js.map +1 -1
  17. package/dist/default/ShareAction.d.ts +16 -1
  18. package/dist/default/ShareAction.d.ts.map +1 -1
  19. package/dist/default/ShareAction.js +16 -9
  20. package/dist/default/ShareAction.js.map +1 -1
  21. package/dist/default/actionRow.d.ts +24 -0
  22. package/dist/default/actionRow.d.ts.map +1 -1
  23. package/dist/default/actionRow.js +50 -7
  24. package/dist/default/actionRow.js.map +1 -1
  25. package/dist/default/detailGallery.d.ts +77 -0
  26. package/dist/default/detailGallery.d.ts.map +1 -0
  27. package/dist/default/detailGallery.js +91 -0
  28. package/dist/default/detailGallery.js.map +1 -0
  29. package/dist/default/index.d.ts +4 -2
  30. package/dist/default/index.d.ts.map +1 -1
  31. package/dist/default/index.js +5 -1
  32. package/dist/default/index.js.map +1 -1
  33. package/dist/default/movableCluster.d.ts +18 -0
  34. package/dist/default/movableCluster.d.ts.map +1 -0
  35. package/dist/default/movableCluster.js +110 -0
  36. package/dist/default/movableCluster.js.map +1 -0
  37. package/dist/headless/MyListings.d.ts +31 -10
  38. package/dist/headless/MyListings.d.ts.map +1 -1
  39. package/dist/headless/MyListings.js +19 -2
  40. package/dist/headless/MyListings.js.map +1 -1
  41. package/dist/headless/Share.d.ts +60 -2
  42. package/dist/headless/Share.d.ts.map +1 -1
  43. package/dist/headless/Share.js +55 -3
  44. package/dist/headless/Share.js.map +1 -1
  45. package/dist/index.d.ts +4 -4
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +2 -2
  48. package/dist/index.js.map +1 -1
  49. package/dist/model/cardBadges.d.ts +25 -0
  50. package/dist/model/cardBadges.d.ts.map +1 -1
  51. package/dist/model/cardBadges.js +41 -5
  52. package/dist/model/cardBadges.js.map +1 -1
  53. package/dist/model/draft.d.ts +42 -1
  54. package/dist/model/draft.d.ts.map +1 -1
  55. package/dist/model/draft.js +40 -3
  56. package/dist/model/draft.js.map +1 -1
  57. package/dist/model/status.d.ts +31 -16
  58. package/dist/model/status.d.ts.map +1 -1
  59. package/dist/model/status.js +30 -15
  60. package/dist/model/status.js.map +1 -1
  61. package/llms.txt +1 -1
  62. package/manifest.json +8 -1
  63. package/nav-manifest.json +1 -1
  64. package/package.json +3 -3
  65. package/src/analytics/generated/events.json +1 -1
  66. package/src/api/generated/schema.ts +20 -10
  67. package/src/default/ListingActions.tsx +9 -1
  68. package/src/default/ListingDetailPane.tsx +316 -18
  69. package/src/default/MyListingsPane.tsx +10 -6
  70. package/src/default/ShareAction.tsx +36 -10
  71. package/src/default/actionRow.ts +55 -7
  72. package/src/default/detailGallery.ts +97 -0
  73. package/src/default/index.ts +15 -1
  74. package/src/default/movableCluster.tsx +137 -0
  75. package/src/headless/MyListings.tsx +52 -12
  76. package/src/headless/Share.tsx +98 -5
  77. package/src/index.ts +7 -0
  78. package/src/model/cardBadges.ts +42 -5
  79. package/src/model/draft.ts +61 -3
  80. package/src/model/status.ts +31 -16
@@ -98,6 +98,26 @@ export declare function draftValuesFromWire(draft: ListingDraft, options?: Empty
98
98
  * is the one place the published values live.
99
99
  */
100
100
  export declare function draftValuesFromDetail(detail: ListingDetail, featuresDto: FeaturesDto, options?: EmptyDraftOptions): ListingDraftValues;
101
+ /** One field of the `save-draft` body, by the name the wire uses. */
102
+ export type ListingDraftField = keyof ListingDraftPatch;
103
+ /** Options for {@link draftPatchFromValues}. */
104
+ export interface DraftPatchOptions {
105
+ /**
106
+ * NAME THE FIELDS THIS SAVE IS WRITING, and the body carries no others.
107
+ *
108
+ * `save-draft` REPLACES every field in the body — it does not merge — so a
109
+ * body is not "the values I have", it is "the fields I am claiming". A save
110
+ * fired by one control (a photo settling, a blurred title) previously
111
+ * claimed all fourteen, which is only harmless while every one of them is
112
+ * loaded and true.
113
+ *
114
+ * Given, only these keys are spelled; the omission rules below still apply
115
+ * inside the selection, so naming `features_draft` without a schema still
116
+ * writes nothing. Absent, the whole body is sent, which is right for the
117
+ * composer's own save — it holds every value on the form.
118
+ */
119
+ readonly fields?: readonly ListingDraftField[];
120
+ }
101
121
  /**
102
122
  * The composer's values → the `save-draft` body.
103
123
  *
@@ -108,8 +128,29 @@ export declare function draftValuesFromDetail(detail: ListingDetail, featuresDto
108
128
  * (`error.400.listing_feature_not_allowed`), which is why
109
129
  * {@link retainKnownFeatureValues} prunes on the way in rather than letting
110
130
  * the server explain it.
131
+ *
132
+ * ── NO SCHEMA IS NOT AN EMPTY ANSWER SHEET ───────────────────────────────
133
+ *
134
+ * An absent or empty `features` used to produce `features_draft: {}`, and
135
+ * `save-draft` REPLACES that map rather than merging into it — so a save that
136
+ * left before the category's schema arrived DELETED every characteristic the
137
+ * row was holding, while the form on screen still showed them. Measured by a
138
+ * live container over two cold loads of one draft: a reopen's own
139
+ * settled-photo save fires in the first commit, before the row's category has
140
+ * even been adopted, and the row alternated between the draft's answers and
141
+ * none of them (a client storefront's README, "Named gaps").
142
+ *
143
+ * `{}` is a claim — "this listing has no characteristics" — and a caller with
144
+ * no schema is in no position to make it. So the key is OMITTED entirely
145
+ * whenever there is no schema to tag values with, and `save-draft` then
146
+ * leaves the stored map exactly as it was. A category that genuinely declares
147
+ * no features writes nothing either, which is the same answer arrived at
148
+ * honestly: there is nothing to say and the row already says it.
149
+ *
150
+ * {@link DraftPatchOptions.fields} is the general form of the same rule — a
151
+ * save that names what it is writing cannot erase what it is not.
111
152
  */
112
- export declare function draftPatchFromValues(values: ListingDraftValues, features: readonly FeatureDef[]): ListingDraftPatch;
153
+ export declare function draftPatchFromValues(values: ListingDraftValues, features: readonly FeatureDef[] | undefined, options?: DraftPatchOptions): ListingDraftPatch;
113
154
  /**
114
155
  * The body for CREATING a draft: the category if there is one, `{}` if there
115
156
  * is not.
@@ -1 +1 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/model/draft.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAExE,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAGzB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,eAAe;IAC9B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;mEAC+D;IAC/D,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,8EAA8E;IAC9E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,eAM5B,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,kDA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ACH,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAChD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,EAAE,SAAS,UAAU,EAAE,GAAG,SAAS,EAC3C,OAAO,GAAE,iBAAsB,GAC9B,iBAAiB,CA0CnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,eAAe,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAItE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,QAAQ,EAAE,SAAS,UAAU,EAAE,GAC9B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAOnC;AAED;;;eAGe;AACf,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,QAAQ,EAAE,SAAS,UAAU,EAAE,GAC9B,SAAS,MAAM,EAAE,CAKnB"}
@@ -126,9 +126,30 @@ function toWireFeatures(features, values) {
126
126
  * (`error.400.listing_feature_not_allowed`), which is why
127
127
  * {@link retainKnownFeatureValues} prunes on the way in rather than letting
128
128
  * the server explain it.
129
+ *
130
+ * ── NO SCHEMA IS NOT AN EMPTY ANSWER SHEET ───────────────────────────────
131
+ *
132
+ * An absent or empty `features` used to produce `features_draft: {}`, and
133
+ * `save-draft` REPLACES that map rather than merging into it — so a save that
134
+ * left before the category's schema arrived DELETED every characteristic the
135
+ * row was holding, while the form on screen still showed them. Measured by a
136
+ * live container over two cold loads of one draft: a reopen's own
137
+ * settled-photo save fires in the first commit, before the row's category has
138
+ * even been adopted, and the row alternated between the draft's answers and
139
+ * none of them (a client storefront's README, "Named gaps").
140
+ *
141
+ * `{}` is a claim — "this listing has no characteristics" — and a caller with
142
+ * no schema is in no position to make it. So the key is OMITTED entirely
143
+ * whenever there is no schema to tag values with, and `save-draft` then
144
+ * leaves the stored map exactly as it was. A category that genuinely declares
145
+ * no features writes nothing either, which is the same answer arrived at
146
+ * honestly: there is nothing to say and the row already says it.
147
+ *
148
+ * {@link DraftPatchOptions.fields} is the general form of the same rule — a
149
+ * save that names what it is writing cannot erase what it is not.
129
150
  */
130
- export function draftPatchFromValues(values, features) {
131
- return {
151
+ export function draftPatchFromValues(values, features, options = {}) {
152
+ const full = {
132
153
  // Omitted while unchosen rather than sent as `""`: a draft is allowed to
133
154
  // have no category (0.21.4), and `""` is not "no category" on the wire —
134
155
  // it is an empty id the serializer refuses. The category is written by
@@ -147,7 +168,11 @@ export function draftPatchFromValues(values, features) {
147
168
  // sent here is discarded. Sending one would be a claim the wire ignores.
148
169
  lat_draft: values.location.lat,
149
170
  lon_draft: values.location.lon,
150
- features_draft: toWireFeatures(features, values.features),
171
+ // Omitted, not emptied, when there is no schema to tag with — see the
172
+ // doc above. `{}` is a claim about the listing; silence is not.
173
+ ...(features !== undefined && features.length > 0
174
+ ? { features_draft: toWireFeatures(features, values.features) }
175
+ : {}),
151
176
  countable: values.countable,
152
177
  // The pair mirrors the model's cross-field rule rather than sending a
153
178
  // contradiction: a service carries no quantity, and `validate_countable
@@ -155,6 +180,18 @@ export function draftPatchFromValues(values, features) {
155
180
  stock_quantity: values.countable ? values.stockQuantity : null,
156
181
  auto_republish: values.autoRepublish,
157
182
  };
183
+ const named = options.fields;
184
+ if (named === undefined)
185
+ return full;
186
+ // A selection, not a second body: the field's VALUE is still whatever the
187
+ // rules above produced, so a named field the rules omit stays omitted.
188
+ const wanted = new Set(named);
189
+ const out = {};
190
+ for (const [key, value] of Object.entries(full)) {
191
+ if (wanted.has(key))
192
+ out[key] = value;
193
+ }
194
+ return out;
158
195
  }
159
196
  /**
160
197
  * The body for CREATING a draft: the category if there is one, `{}` if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,CAAC,CAAC;SAClC,IAAI,EAAE,CAAC;AACZ,CAAC"}
@@ -67,8 +67,8 @@ export interface ListingStatusView {
67
67
  }
68
68
  export declare function listingStatusView(status: ListingLifecycleStatus, moderationStatus: ListingModerationStatus): ListingStatusView;
69
69
  /**
70
- * The three tabs `my/counters` COUNTS, and the statuses each one folds
71
- * together.
70
+ * The three tabs whose ROWS come off a keyset page, and the statuses each one
71
+ * folds together.
72
72
  *
73
73
  * The grouping is the SERVER's (`views.my_counters`), copied here so a tab's
74
74
  * caption and its count cannot describe different sets: `active` includes
@@ -76,21 +76,32 @@ export declare function listingStatusView(status: ListingLifecycleStatus, modera
76
76
  * both because a listing in those states is something the owner is still
77
77
  * working on. A client that grouped them its own way would show "3 active"
78
78
  * over two rows.
79
+ *
80
+ * The name is about the SOURCE, not about the counter: `MyCountersResponse`
81
+ * carries four integers since stapel-listings 0.22.4 (`blocked` joined the
82
+ * three), and this is still the set a {@link MyListingsCountedTab} —
83
+ * `MyListingsSource`'s whole parameter type — may name. The removed tab reads
84
+ * its rows off `?status=blocked` directly and unpaged, so a host that
85
+ * implemented the seam before the fourth tab existed is never handed it.
79
86
  */
80
87
  export declare const MY_LISTINGS_COUNTED_TABS: readonly ["active", "drafts", "archived"];
81
- /** One of the three tabs `MyCountersResponse` carries a number for. */
88
+ /** One of the three tabs a `MyListingsSource` is asked for. */
82
89
  export type MyListingsCountedTab = (typeof MY_LISTINGS_COUNTED_TABS)[number];
83
- /** Which of the three COUNTED tabs a status belongs to, or `undefined` for
84
- * one the server's own counter groups nowhere — `blocked`, today. */
90
+ /** Which of the three keyset-paged tabs a status belongs to, or `undefined`
91
+ * for one none of them folds in — `blocked`, today, which has a tab and a
92
+ * counter of its own and a different row source under it. */
85
93
  export declare function countedTabOf(status: ListingLifecycleStatus): MyListingsCountedTab | undefined;
86
94
  /**
87
- * The statuses the server's own counter groups nowhere — `blocked`, and
88
- * nothing else today.
95
+ * The statuses none of the three paged tabs folds in — `blocked`, and nothing
96
+ * else today.
89
97
  *
90
98
  * DERIVED, not written down a second time: a status added upstream and left
91
- * out of the counter groupings lands here automatically and gets shown, which
92
- * is the opposite of what a hardcoded `["blocked"]` would do the day it goes
93
- * stale.
99
+ * out of the tab groupings lands here automatically and gets shown, which is
100
+ * the opposite of what a hardcoded `["blocked"]` would do the day it goes
101
+ * stale. That the server now has a `blocked` COUNTER for the same set does not
102
+ * make the derivation redundant: the counter names one status and this names
103
+ * whatever the three groupings leave over, which is the set the fourth tab
104
+ * must ASK for.
94
105
  */
95
106
  export declare const MY_LISTINGS_UNTABBED_STATUSES: readonly ListingLifecycleStatus[];
96
107
  /**
@@ -112,12 +123,16 @@ export declare const MY_LISTINGS_UNTABBED_STATUSES: readonly ListingLifecycleSta
112
123
  * ── Why a fourth tab and not the archive ─────────────────────────────────
113
124
  *
114
125
  * Folding `blocked` into `archived` is the other shape this could take, and
115
- * it costs the count: `my/counters` has three integers and no fourth, so an
116
- * archive tab holding takedowns would read the server's `archived` number —
117
- * `0` — until the tab was opened and its rows could raise it. The fourth tab
118
- * is counted from its OWN read (`?status=blocked`, unpaged), so the number is
119
- * right while the seller is looking at a different tab, which is exactly the
120
- * moment D407 was measured at.
126
+ * it cost the count: when D407 was written `my/counters` had three integers
127
+ * and no fourth, so an archive tab holding takedowns would have read the
128
+ * server's `archived` number — `0` — until the tab was opened and its rows
129
+ * could raise it. The fourth tab was counted from its OWN read
130
+ * (`?status=blocked`, unpaged) so that the number was right while the seller
131
+ * was looking at a different tab, which is exactly the moment D407 was
132
+ * measured at. stapel-listings 0.22.4 puts `blocked` in the counter, so the
133
+ * number is the server's now and that read is only the tab's rows — but the
134
+ * property it was there to defend is the same one, and it is now defended by
135
+ * the wire instead of by a page.
121
136
  *
122
137
  * The archive keeps its meaning too, which is not nothing: "I put this away"
123
138
  * and "a moderator took this down" are not the same sentence and a tab that
@@ -1 +1 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/model/status.ts"],"names":[],"mappings":"A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AC;AAElF,+DAA+D;AAC/D,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAU7E;;6DAE6D;AAC7D,wBAAgB,YAAY,CAC1B,MAAM,EAAE,sBAAsB,GAC7B,oBAAoB,GAAG,SAAS,CAKlC;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,6BAA6B,EAAE,SAAS,sBAAsB,EACF,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,uBAAuB,YAAY,CAAC;AAEjD;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS;IACtC,GAAG,OAAO,wBAAwB;IAClC,OAAO,uBAAuB;CAC0B,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAC7C,MAAM,CAAC,aAAa,EAAE,SAAS,sBAAsB,EAAE,CAAC,CAIzD,CAAC;AAEF;;;6DAG6D;AAC7D,wBAAgB,KAAK,CACnB,MAAM,EAAE,sBAAsB,GAC7B,aAAa,GAAG,SAAS,CAK3B"}
@@ -206,8 +206,8 @@ export function listingStatusView(status, moderationStatus) {
206
206
  };
207
207
  }
208
208
  /**
209
- * The three tabs `my/counters` COUNTS, and the statuses each one folds
210
- * together.
209
+ * The three tabs whose ROWS come off a keyset page, and the statuses each one
210
+ * folds together.
211
211
  *
212
212
  * The grouping is the SERVER's (`views.my_counters`), copied here so a tab's
213
213
  * caption and its count cannot describe different sets: `active` includes
@@ -215,6 +215,13 @@ export function listingStatusView(status, moderationStatus) {
215
215
  * both because a listing in those states is something the owner is still
216
216
  * working on. A client that grouped them its own way would show "3 active"
217
217
  * over two rows.
218
+ *
219
+ * The name is about the SOURCE, not about the counter: `MyCountersResponse`
220
+ * carries four integers since stapel-listings 0.22.4 (`blocked` joined the
221
+ * three), and this is still the set a {@link MyListingsCountedTab} —
222
+ * `MyListingsSource`'s whole parameter type — may name. The removed tab reads
223
+ * its rows off `?status=blocked` directly and unpaged, so a host that
224
+ * implemented the seam before the fourth tab existed is never handed it.
218
225
  */
219
226
  export const MY_LISTINGS_COUNTED_TABS = ["active", "drafts", "archived"];
220
227
  const COUNTED_TAB_STATUSES = {
@@ -222,8 +229,9 @@ const COUNTED_TAB_STATUSES = {
222
229
  drafts: ["draft", "rejected"],
223
230
  archived: ["archived", "paused", "expired", "sold"],
224
231
  };
225
- /** Which of the three COUNTED tabs a status belongs to, or `undefined` for
226
- * one the server's own counter groups nowhere — `blocked`, today. */
232
+ /** Which of the three keyset-paged tabs a status belongs to, or `undefined`
233
+ * for one none of them folds in — `blocked`, today, which has a tab and a
234
+ * counter of its own and a different row source under it. */
227
235
  export function countedTabOf(status) {
228
236
  for (const tab of MY_LISTINGS_COUNTED_TABS) {
229
237
  if (COUNTED_TAB_STATUSES[tab].includes(status))
@@ -232,13 +240,16 @@ export function countedTabOf(status) {
232
240
  return undefined;
233
241
  }
234
242
  /**
235
- * The statuses the server's own counter groups nowhere — `blocked`, and
236
- * nothing else today.
243
+ * The statuses none of the three paged tabs folds in — `blocked`, and nothing
244
+ * else today.
237
245
  *
238
246
  * DERIVED, not written down a second time: a status added upstream and left
239
- * out of the counter groupings lands here automatically and gets shown, which
240
- * is the opposite of what a hardcoded `["blocked"]` would do the day it goes
241
- * stale.
247
+ * out of the tab groupings lands here automatically and gets shown, which is
248
+ * the opposite of what a hardcoded `["blocked"]` would do the day it goes
249
+ * stale. That the server now has a `blocked` COUNTER for the same set does not
250
+ * make the derivation redundant: the counter names one status and this names
251
+ * whatever the three groupings leave over, which is the set the fourth tab
252
+ * must ASK for.
242
253
  */
243
254
  export const MY_LISTINGS_UNTABBED_STATUSES = LISTING_STATUSES.filter((status) => countedTabOf(status) === undefined);
244
255
  /**
@@ -260,12 +271,16 @@ export const MY_LISTINGS_UNTABBED_STATUSES = LISTING_STATUSES.filter((status) =>
260
271
  * ── Why a fourth tab and not the archive ─────────────────────────────────
261
272
  *
262
273
  * Folding `blocked` into `archived` is the other shape this could take, and
263
- * it costs the count: `my/counters` has three integers and no fourth, so an
264
- * archive tab holding takedowns would read the server's `archived` number —
265
- * `0` — until the tab was opened and its rows could raise it. The fourth tab
266
- * is counted from its OWN read (`?status=blocked`, unpaged), so the number is
267
- * right while the seller is looking at a different tab, which is exactly the
268
- * moment D407 was measured at.
274
+ * it cost the count: when D407 was written `my/counters` had three integers
275
+ * and no fourth, so an archive tab holding takedowns would have read the
276
+ * server's `archived` number — `0` — until the tab was opened and its rows
277
+ * could raise it. The fourth tab was counted from its OWN read
278
+ * (`?status=blocked`, unpaged) so that the number was right while the seller
279
+ * was looking at a different tab, which is exactly the moment D407 was
280
+ * measured at. stapel-listings 0.22.4 puts `blocked` in the counter, so the
281
+ * number is the server's now and that read is only the tab's rows — but the
282
+ * property it was there to defend is the same one, and it is now defended by
283
+ * the wire instead of by a page.
269
284
  *
270
285
  * The archive keeps its meaning too, which is not nothing: "I put this away"
271
286
  * and "a moderator took this down" are not the same sentence and a tab that
@@ -1 +1 @@
1
- {"version":3,"file":"status.js","sourceRoot":"","sources":["../../src/model/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAKnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AA6BrD,MAAM,SAAS,GAEX;IACF,KAAK,EAAE;QACL,QAAQ,EAAE,kBAAkB,CAAC,WAAW;QACxC,IAAI,EAAE,SAAS;QACf,eAAe,EAAE,KAAK;KACvB;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,kBAAkB,CAAC,aAAa;QAC1C,IAAI,EAAE,SAAS;QACf,eAAe,EAAE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AC;IACjE,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
package/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @stapel/listings-react 0.26.0
1
+ # @stapel/listings-react 0.28.0
2
2
 
3
3
  Headless React flow pair for stapel-listings (contract >=0.22 <0.23) — business + state, zero visual opinion.
4
4
  Built on @stapel/core: typed client + StapelApiError envelope, auth token refresh,
package/manifest.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$generated": "by scripts/gen-manifest.mjs — do not edit; drift-gated (pnpm gen:manifest:check)",
3
3
  "package": "@stapel/listings-react",
4
- "version": "0.26.0",
4
+ "version": "0.28.0",
5
5
  "backend": {
6
6
  "module": "stapel-listings",
7
7
  "contract": ">=0.22 <0.23"
@@ -1266,6 +1266,7 @@
1266
1266
  "NO_ADDRESS",
1267
1267
  "OWNER_TRANSITIONS",
1268
1268
  "PRICE_FIELD",
1269
+ "SHARE_COARSE_MEDIA",
1269
1270
  "SHARE_COPIED_MS",
1270
1271
  "SHARE_NETWORKS",
1271
1272
  "Share",
@@ -1276,6 +1277,7 @@
1276
1277
  "browserAddress",
1277
1278
  "canDelete",
1278
1279
  "canTransition",
1280
+ "captionName",
1279
1281
  "cardBadgeText",
1280
1282
  "cardBadgeTexts",
1281
1283
  "countedTabOf",
@@ -1301,6 +1303,7 @@
1301
1303
  "flowEndpoints",
1302
1304
  "formatSpecValue",
1303
1305
  "hasCardBadgeContract",
1306
+ "hasCoarsePointer",
1304
1307
  "hasNativeShare",
1305
1308
  "isBatchValid",
1306
1309
  "isListingViewed",
@@ -1321,6 +1324,7 @@
1321
1324
  "navEntries",
1322
1325
  "ownerMoves",
1323
1326
  "pageKey",
1327
+ "preferNativeShare",
1324
1328
  "publishRefusal",
1325
1329
  "registerListingsI18n",
1326
1330
  "resolveShareUrl",
@@ -1373,6 +1377,7 @@
1373
1377
  "ComposeStage",
1374
1378
  "CreateListingsRuntimeOptions",
1375
1379
  "DeleteResponse",
1380
+ "DraftPatchOptions",
1376
1381
  "EmptyDraftOptions",
1377
1382
  "FavoriteInput",
1378
1383
  "FavoriteToggleBag",
@@ -1391,6 +1396,7 @@
1391
1396
  "ListingDetailBag",
1392
1397
  "ListingDetailData",
1393
1398
  "ListingDraft",
1399
+ "ListingDraftField",
1394
1400
  "ListingDraftLimits",
1395
1401
  "ListingDraftPatch",
1396
1402
  "ListingDraftValues",
@@ -1444,6 +1450,7 @@
1444
1450
  "ShareChannel",
1445
1451
  "ShareLink",
1446
1452
  "ShareNetwork",
1453
+ "SharePreference",
1447
1454
  "ShareTarget",
1448
1455
  "UseFavoritesOptions",
1449
1456
  "UseListingActionsOptions",
package/nav-manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@stapel/listings-react",
3
- "version": "0.26.0",
3
+ "version": "0.28.0",
4
4
  "entries": [
5
5
  {
6
6
  "id": "listings.detail",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stapel/listings-react",
3
- "version": "0.26.0",
3
+ "version": "0.28.0",
4
4
  "description": "Headless React pair for stapel-listings: a typed client over the draft twin, the composer that turns a category schema into a submittable listing, and the owner's dashboard. Two independent axes are rendered as two — lifecycle `status` decides visibility and `moderation_status` decides nothing about it, so an edit to a live listing stays live and says 'under review' instead of vanishing. Feature values are drawn and mirrored by @stapel/attributes-react; photos arrive as an injected upload bag whose `refs` ARE `images_draft` and whose `settled` gates the submit; a publish refusal is routed onto the control that caused it by slug. Zero visual opinion in the main entry; an opt-in /default subpath ships the antd skin.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -53,9 +53,9 @@
53
53
  "limit": "17 KB"
54
54
  },
55
55
  {
56
- "name": "default — the antd skin (three cards, detail, composer, dashboard, the named slots and the delete confirmation) must stay out of the main bundle. Raised 17 -> 19 KB for the mobile wave: <ListingSerpCard> (photo strip + price-first block + action rail), <ListingFeedCard> and <FeedGrid> are two more card surfaces on the same shared target/favourite/photo parts, not three copies of one Raised 19 -> 20 KB for the desktop wave of the detail page: layout=\"split\" is a second ASSEMBLY of the money page (the sticky buy column, the two-column spec table, the widened measure) over the same parts, and GateReasonPopover is the blocked heart's third volume — the reason and the door disclosed on interaction, with the visually-hidden copy that keeps the refusal in the accessibility tree. Both are geometry and wiring, not new widgets. Raised 20 -> 21 KB (measured 20.22) for the engagement wave, which is four small things and no new component: the disclosure became a controlled open/close so a pointer that hovers and then clicks does not shut the only explanation the control has; the heart draws a filled accent when saved and states a failed save through the shared ErrorAlert; an already-seen card dims through one rule in the sheet all three cards already hoist; and the listing page gained a view-count row. 216 bytes is what a control that reports its own outcome costs. Raised 21 -> 22 KB for the seller's board becoming a door in both directions: the transition route and useTransitionListing, OWNER_TRANSITIONS/ownerMoves as the fallback mirror, ListingActionsBag.moves drawn in a stable order, listingHref/linkComponent on the cabinet pane, the refusal that stops quoting the wire, and the row that fits a phone. Measured on a clean tree, this package's src reverted to the previous commit with dependencies held constant: 20.82 -> 21.60 KB. The old ceiling had 180 B of room and the work needs 780; none of it is copy, and a fourth axis of owner state is not a rounding error. Raised 22 -> 25 KB (measured 23.94) for the three surfaces of the same wave: <ListingSpecList>/<ListingSpecColumns>, which is a REPLACEMENT of antd's <Descriptions> with a paragraph row (an inline muted label and the value in one text flow, so a long answer wraps at the measure instead of stacking inside a third-of-a-page cell) and therefore carries its own hoisted sheet; <CardBadges>/<CardSpecLine>, one badge renderer for all three card surfaces with the pre-contract path kept whole beside it; and cardGallery.ts, the hover-scrub and swipe gestures — a segment map, a horizontal-intent threshold, the pointer-capability gate and the touch-action rule that leaves the page's vertical scroll to the browser. A gallery a card did not have and a spec list rebuilt from a table are not a rounding error. Raised 25 -> 26 KB (measured 25.34) for three small things and no new component: the dashboard's fourth tab and the takedown notice that shrank to one line above it (D407), the delete dialog choosing its sentence from the row's own remaining moves rather than printing the archive at somebody standing in the archive, and the photo strip's \"1 of 16\" counter with its two CSS rules (D418's neighbour on the card). None of it is copy; the counter is the one thing on a phone card that says a swipe is worth making. Raised 26 -> 29 KB (measured 27.56) for the reader's two actions: <ShareAction> (the native-sheet arm, the desktop menu with its three outbound links and the clipboard row, and the copy confirmation that stands in the menu rather than only in a toast), <ListingActions> (the cluster the listing page and the cards lay out through), actionRow.ts (two hit-target tiers as a class contract — 44px on the page, 36/44 on a card — plus the overlay pin and the label's phone arm) and notice.ts (the message seam, which is antd's own App/static message and no new dependency). Measured with dependencies held constant: 25.34 -> 27.56 KB. A verb the product did not have at all is not a rounding error.",
56
+ "name": "default — the antd skin (three cards, detail, composer, dashboard, the named slots and the delete confirmation) must stay out of the main bundle. Raised 17 -> 19 KB for the mobile wave: <ListingSerpCard> (photo strip + price-first block + action rail), <ListingFeedCard> and <FeedGrid> are two more card surfaces on the same shared target/favourite/photo parts, not three copies of one Raised 19 -> 20 KB for the desktop wave of the detail page: layout=\"split\" is a second ASSEMBLY of the money page (the sticky buy column, the two-column spec table, the widened measure) over the same parts, and GateReasonPopover is the blocked heart's third volume — the reason and the door disclosed on interaction, with the visually-hidden copy that keeps the refusal in the accessibility tree. Both are geometry and wiring, not new widgets. Raised 20 -> 21 KB (measured 20.22) for the engagement wave, which is four small things and no new component: the disclosure became a controlled open/close so a pointer that hovers and then clicks does not shut the only explanation the control has; the heart draws a filled accent when saved and states a failed save through the shared ErrorAlert; an already-seen card dims through one rule in the sheet all three cards already hoist; and the listing page gained a view-count row. 216 bytes is what a control that reports its own outcome costs. Raised 21 -> 22 KB for the seller's board becoming a door in both directions: the transition route and useTransitionListing, OWNER_TRANSITIONS/ownerMoves as the fallback mirror, ListingActionsBag.moves drawn in a stable order, listingHref/linkComponent on the cabinet pane, the refusal that stops quoting the wire, and the row that fits a phone. Measured on a clean tree, this package's src reverted to the previous commit with dependencies held constant: 20.82 -> 21.60 KB. The old ceiling had 180 B of room and the work needs 780; none of it is copy, and a fourth axis of owner state is not a rounding error. Raised 22 -> 25 KB (measured 23.94) for the three surfaces of the same wave: <ListingSpecList>/<ListingSpecColumns>, which is a REPLACEMENT of antd's <Descriptions> with a paragraph row (an inline muted label and the value in one text flow, so a long answer wraps at the measure instead of stacking inside a third-of-a-page cell) and therefore carries its own hoisted sheet; <CardBadges>/<CardSpecLine>, one badge renderer for all three card surfaces with the pre-contract path kept whole beside it; and cardGallery.ts, the hover-scrub and swipe gestures — a segment map, a horizontal-intent threshold, the pointer-capability gate and the touch-action rule that leaves the page's vertical scroll to the browser. A gallery a card did not have and a spec list rebuilt from a table are not a rounding error. Raised 25 -> 26 KB (measured 25.34) for three small things and no new component: the dashboard's fourth tab and the takedown notice that shrank to one line above it (D407), the delete dialog choosing its sentence from the row's own remaining moves rather than printing the archive at somebody standing in the archive, and the photo strip's \"1 of 16\" counter with its two CSS rules (D418's neighbour on the card). None of it is copy; the counter is the one thing on a phone card that says a swipe is worth making. Raised 26 -> 29 KB (measured 27.56) for the reader's two actions: <ShareAction> (the native-sheet arm, the desktop menu with its three outbound links and the clipboard row, and the copy confirmation that stands in the menu rather than only in a toast), <ListingActions> (the cluster the listing page and the cards lay out through), actionRow.ts (two hit-target tiers as a class contract — 44px on the page, 36/44 on a card — plus the overlay pin and the label's phone arm) and notice.ts (the message seam, which is antd's own App/static message and no new dependency). Measured with dependencies held constant: 25.34 -> 27.56 KB. A verb the product did not have at all is not a rounding error. Raised 29 -> 31 KB (measured 29.92) for the two seams a live container was working around with a second component and an `!important`: the MOVABLE CLUSTER (movableCluster.tsx — the portal, the slot registry, the settle that appends the container into the highest-priority mount on screen, and the pane's two slots plus the bar layer) and the GALLERY LAYOUT (detailGallery.ts — the class, the two arms and the strip's child rule, hoisted because an inline style cannot reach a child), together with `useTitleVisibility`'s IntersectionObserver. Measured with dependencies held constant, this package's src at HEAD built into a scratch tree and then this one: 27.72 -> 29.92 KB. 30 would have left 80 B, which is the budget-passed-by-rounding this entry has warned about four times; 31 leaves 1.08 KB. What was bought: a page that mounts ONE `useFavoriteToggle` instead of two, and a host stylesheet that no longer needs `!important` over a pair's own geometry.",
57
57
  "path": "dist/default/index.js",
58
- "limit": "29 KB"
58
+ "limit": "31 KB"
59
59
  },
60
60
  {
61
61
  "name": "i18n/ru — the Russian bundle is opt-in, not carried by the main entry. Raised 5 -> 5.5 KB (measured 5.02): three sentences the wave added — the fourth tab and its empty state, and the delete warning that does not promise the archive to a listing already in it. A bundle sitting exactly ON its limit is a limit the next sentence breaks. Raised 5.5 -> 6 KB (measured 5.48) for the three features_draft refusals the stapel-listings 0.22.3 pin brought with it: the module is locale-exempt upstream, so a code that arrives without a ru sentence renders its own key on a Russian host, and each of these three has to NAME the shape it wanted rather than say \"try again\". 5.48 of 5.5 is twenty bytes of headroom — the rounding this entry already warns about.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$generated": "by scripts/gen-events.mjs — do not edit; drift-gated (pnpm gen:events:check)",
3
3
  "package": "@stapel/listings-react",
4
- "version": "0.26.0",
4
+ "version": "0.28.0",
5
5
  "defined": [],
6
6
  "flows": []
7
7
  }
@@ -439,15 +439,18 @@ export interface paths {
439
439
  cookie?: never;
440
440
  };
441
441
  /**
442
- * @description Listings CRUD plus owner lifecycle actions and favorites.
442
+ * @description One integer per cabinet tab, over the caller's own listings.
443
443
  *
444
- * Read and write live in one class, so the guest wall
445
- * (:func:`anonymous_write_refusal`, the ``ALLOW_ANONYMOUS_WRITES`` switch)
446
- * is applied per ACTION and never as a class permission: an anonymous
447
- * session must keep browsing and keep its favorites, and only the
448
- * authorship actions ``create``, ``update``/``partial_update``,
449
- * ``save-draft``, ``publish`` are the ones that turn a caller into a
450
- * seller.
444
+ * The tab groupings are the SERVER's ``my/listings?status=`` takes
445
+ * the same sets — so a cabinet never has to re-derive which statuses
446
+ * make up "active". Every lifecycle status is in exactly one group:
447
+ * ``blocked`` (a moderation takedown) is its own count rather than
448
+ * being folded into ``archived``, because the two tell the seller
449
+ * different things and only one of them is theirs to undo.
450
+ *
451
+ * Owner-scoped at the queryset via ``owned_by``, soft-deleted rows
452
+ * excluded by the default manager — the same scope as
453
+ * ``my/listings``, so a tab's rows and its count always agree.
451
454
  *
452
455
  * **Permissions:** `IsAuthenticated`
453
456
  */
@@ -500,7 +503,7 @@ export interface paths {
500
503
  * @description The caller's OWN listings, in every status.
501
504
  *
502
505
  * The counterpart of ``my/counters``: the same owner scope and the same
503
- * status grouping, but the rows behind the three numbers. ``list`` is
506
+ * status grouping, but the rows behind the four numbers. ``list`` is
504
507
  * the shop window (``published()``, narrowable to nobody), so this is
505
508
  * the only route by which a person can be shown their own drafts.
506
509
  *
@@ -1129,11 +1132,18 @@ export interface components {
1129
1132
  * @enum {string}
1130
1133
  */
1131
1134
  ModerationStatusEnum: "not_submitted" | "pending" | "approved" | "rejected" | "needs_review";
1132
- /** @description Listing counts by tab for the current user. */
1135
+ /**
1136
+ * @description Listing counts by tab for the current user.
1137
+ *
1138
+ * One integer per cabinet tab, and every lifecycle status belongs to
1139
+ * exactly one of them — ``blocked`` included, so a listing a moderator
1140
+ * took down is counted somewhere instead of vanishing from the totals.
1141
+ */
1133
1142
  MyCountersResponse: {
1134
1143
  active: number;
1135
1144
  archived: number;
1136
1145
  drafts: number;
1146
+ blocked: number;
1137
1147
  };
1138
1148
  /**
1139
1149
  * @description The owner's own card — the public card plus what only an owner sees.
@@ -46,7 +46,7 @@ import { Flex, Typography } from "antd";
46
46
  import type { SignInCta } from "@stapel/core";
47
47
  import { useT } from "@stapel/core";
48
48
  import { LISTINGS_I18N_KEYS } from "../i18n/keys.js";
49
- import type { ShareChannel } from "../headless/Share.js";
49
+ import type { ShareChannel, SharePreference } from "../headless/Share.js";
50
50
  import { FavoriteHeart } from "./favorite.js";
51
51
  import { ShareAction } from "./ShareAction.js";
52
52
  import {
@@ -92,6 +92,13 @@ export interface ListingActionsProps {
92
92
  readonly shareTitle?: string;
93
93
  /** A line under it in the sheet — the price, typically. */
94
94
  readonly shareText?: string;
95
+ /**
96
+ * Which arm the share control uses — handed straight to
97
+ * `<ShareAction prefer>`, which is where the reading and its measurement
98
+ * are written down. Default `"auto"`: the platform sheet on a thumb, this
99
+ * pair's menu on a mouse.
100
+ */
101
+ readonly sharePrefer?: SharePreference;
95
102
  readonly onShared?: (channel: ShareChannel) => void;
96
103
  /** The container's sign-in door for the heart. */
97
104
  readonly signIn?: SignInCta;
@@ -187,6 +194,7 @@ export function ListingActions(props: ListingActionsProps): ReactElement | null
187
194
  {...(props.shareUrl !== undefined ? { url: props.shareUrl } : {})}
188
195
  {...(props.shareTitle !== undefined ? { title: props.shareTitle } : {})}
189
196
  {...(props.shareText !== undefined ? { text: props.shareText } : {})}
197
+ {...(props.sharePrefer !== undefined ? { prefer: props.sharePrefer } : {})}
190
198
  {...(props.onShared !== undefined ? { onShared: props.onShared } : {})}
191
199
  />
192
200
  ) : null}