Commit fb28c6b
committed
fix(pos): include BackgroundShopifyGlobal in targets.json reverse mapping
BackgroundShopifyGlobal (addEventListener/removeEventListener on the shopify
global) was not being picked up by build-docs-targets-json.mjs. The script
discovers APIs by parsing type signatures and recursively resolving nested
*Api names via getNestedApis(), but BackgroundShopifyGlobal is a global
interface that doesn't match the (\w+Api) extraction pattern.
Fix: reference BackgroundShopifyGlobal from DataTargetApi's type intersection
(it is the shopify global for data targets), add it to the build script's
apiFilePaths map, and widen the getNestedApis extraction regex to also match
*Global types. Now getNestedApis('DataTargetApi') naturally discovers
BackgroundShopifyGlobal, which flows into the reverse mapping as
BackgroundShopifyGlobal -> [pos.app.ready.data].
Regenerated 2026-07-rc docs data.1 parent b06074d commit fb28c6b
4 files changed
Lines changed: 239 additions & 3485 deletions
File tree
- packages/ui-extensions
- docs/surfaces/point-of-sale
- generated/pos_ui_extensions/2026-07-rc
- src/surfaces/point-of-sale/api/data-target-api
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| |||
354 | 355 | | |
355 | 356 | | |
356 | 357 | | |
| 358 | + | |
357 | 359 | | |
358 | | - | |
| 360 | + | |
359 | 361 | | |
360 | 362 | | |
361 | 363 | | |
| |||
0 commit comments