@tappify/extension-sdk 2.0.0 → 2.1.0-beta.1

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 (148) hide show
  1. package/README.md +208 -0
  2. package/dist/chunk-2CY5HVY7.mjs +59 -0
  3. package/dist/chunk-2CY5HVY7.mjs.map +1 -0
  4. package/dist/{chunk-2DBSVKAU.cjs → chunk-6HETNZJY.cjs} +1 -1
  5. package/dist/chunk-6HETNZJY.cjs.map +1 -0
  6. package/dist/{chunk-PYJMJF44.cjs → chunk-7YKH4LZN.cjs} +9 -2
  7. package/dist/chunk-7YKH4LZN.cjs.map +1 -0
  8. package/dist/{chunk-RMUWRESK.cjs → chunk-A74HCO6T.cjs} +31 -18
  9. package/dist/chunk-A74HCO6T.cjs.map +1 -0
  10. package/dist/chunk-BPCGXXMD.cjs +781 -0
  11. package/dist/chunk-BPCGXXMD.cjs.map +1 -0
  12. package/dist/chunk-EB5XWQAU.cjs +132 -0
  13. package/dist/chunk-EB5XWQAU.cjs.map +1 -0
  14. package/dist/{chunk-5AAPD5WV.cjs → chunk-GAUZYBXE.cjs} +11 -11
  15. package/dist/chunk-GAUZYBXE.cjs.map +1 -0
  16. package/dist/chunk-J5LGTIGS.mjs +10 -0
  17. package/dist/chunk-J5LGTIGS.mjs.map +1 -0
  18. package/dist/{chunk-ZT35X7KL.mjs → chunk-KZ5NGFUP.mjs} +22 -9
  19. package/dist/chunk-KZ5NGFUP.mjs.map +1 -0
  20. package/dist/chunk-NN263PGQ.cjs +70 -0
  21. package/dist/chunk-NN263PGQ.cjs.map +1 -0
  22. package/dist/{chunk-3YWVYA42.cjs → chunk-O357OJXL.cjs} +14 -18
  23. package/dist/chunk-O357OJXL.cjs.map +1 -0
  24. package/dist/chunk-ONJMPO3P.cjs +59 -0
  25. package/dist/chunk-ONJMPO3P.cjs.map +1 -0
  26. package/dist/{chunk-OPPYEA7F.cjs → chunk-PRCZMOLD.cjs} +3 -3
  27. package/dist/chunk-PRCZMOLD.cjs.map +1 -0
  28. package/dist/chunk-Q7SFCCGT.cjs +10 -0
  29. package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
  30. package/dist/{chunk-QHM7XNRK.mjs → chunk-QA5AL3VZ.mjs} +2 -2
  31. package/dist/{chunk-QHM7XNRK.mjs.map → chunk-QA5AL3VZ.mjs.map} +1 -1
  32. package/dist/chunk-QJMZRV7A.mjs +132 -0
  33. package/dist/chunk-QJMZRV7A.mjs.map +1 -0
  34. package/dist/{chunk-CSTYBKZC.mjs → chunk-QXD7WVKK.mjs} +1 -1
  35. package/dist/chunk-QXD7WVKK.mjs.map +1 -0
  36. package/dist/{chunk-4C5Z3CIK.mjs → chunk-RBIQT75L.mjs} +2 -2
  37. package/dist/chunk-RBIQT75L.mjs.map +1 -0
  38. package/dist/{chunk-MNDVYPEP.mjs → chunk-SGCYEEXD.mjs} +9 -2
  39. package/dist/chunk-SGCYEEXD.mjs.map +1 -0
  40. package/dist/{chunk-BDCX6LRQ.mjs → chunk-SGEYDV3K.mjs} +3 -3
  41. package/dist/chunk-SGEYDV3K.mjs.map +1 -0
  42. package/dist/{chunk-IGK2AP6J.mjs → chunk-SLGOHIBL.mjs} +13 -17
  43. package/dist/chunk-SLGOHIBL.mjs.map +1 -0
  44. package/dist/chunk-SWG7CNTZ.mjs +781 -0
  45. package/dist/chunk-SWG7CNTZ.mjs.map +1 -0
  46. package/dist/{chunk-7KIKOH5H.cjs → chunk-VV7ELNRW.cjs} +3 -3
  47. package/dist/chunk-VV7ELNRW.cjs.map +1 -0
  48. package/dist/chunk-Z43DPNZ6.mjs +70 -0
  49. package/dist/chunk-Z43DPNZ6.mjs.map +1 -0
  50. package/dist/client-CV1qzQgx.d.cts +25 -0
  51. package/dist/client-CnlSHDWE.d.ts +25 -0
  52. package/dist/codegen.cjs.map +1 -1
  53. package/dist/codegen.d.cts +40 -7
  54. package/dist/codegen.d.ts +40 -7
  55. package/dist/codegen.mjs.map +1 -1
  56. package/dist/{constants-DJ_KgZpN.d.cts → constants-BAimnqOK.d.cts} +41 -8
  57. package/dist/{constants-DJ_KgZpN.d.ts → constants-BAimnqOK.d.ts} +41 -8
  58. package/dist/{context-Ml7k_V14.d.ts → context-Cr93B05o.d.ts} +5 -4
  59. package/dist/{context-Dt6xh_5t.d.cts → context-DJ3REtdT.d.cts} +5 -4
  60. package/dist/{errors-COsBh7kd.d.cts → errors-Cqh0wrqt.d.cts} +3 -2
  61. package/dist/{errors-COsBh7kd.d.ts → errors-Cqh0wrqt.d.ts} +3 -2
  62. package/dist/host.cjs +5 -4
  63. package/dist/host.cjs.map +1 -1
  64. package/dist/host.d.cts +5 -5
  65. package/dist/host.d.ts +5 -5
  66. package/dist/host.mjs +4 -3
  67. package/dist/host.mjs.map +1 -1
  68. package/dist/index.cjs +9 -656
  69. package/dist/index.cjs.map +1 -1
  70. package/dist/index.d.cts +69 -627
  71. package/dist/index.d.ts +69 -627
  72. package/dist/index.mjs +5 -652
  73. package/dist/index.mjs.map +1 -1
  74. package/dist/manifest.cjs +138 -85
  75. package/dist/manifest.cjs.map +1 -1
  76. package/dist/manifest.d.cts +93 -12
  77. package/dist/manifest.d.ts +93 -12
  78. package/dist/manifest.mjs +125 -72
  79. package/dist/manifest.mjs.map +1 -1
  80. package/dist/server.cjs +15 -66
  81. package/dist/server.cjs.map +1 -1
  82. package/dist/server.d.cts +6 -6
  83. package/dist/server.d.ts +6 -6
  84. package/dist/server.mjs +10 -61
  85. package/dist/server.mjs.map +1 -1
  86. package/dist/testing/index.cjs +73 -750
  87. package/dist/testing/index.cjs.map +1 -1
  88. package/dist/testing/index.d.cts +30 -11
  89. package/dist/testing/index.d.ts +30 -11
  90. package/dist/testing/index.mjs +89 -766
  91. package/dist/testing/index.mjs.map +1 -1
  92. package/dist/testing/jest.cjs +6 -5
  93. package/dist/testing/jest.cjs.map +1 -1
  94. package/dist/testing/jest.mjs +3 -2
  95. package/dist/testing/jest.mjs.map +1 -1
  96. package/dist/testing/vitest.cjs +6 -5
  97. package/dist/testing/vitest.cjs.map +1 -1
  98. package/dist/testing/vitest.d.cts +10 -0
  99. package/dist/testing/vitest.d.ts +10 -0
  100. package/dist/testing/vitest.mjs +3 -2
  101. package/dist/testing/vitest.mjs.map +1 -1
  102. package/dist/{types-DrpQSv_2.d.cts → types-BYGcp5pZ.d.ts} +4 -3
  103. package/dist/{types-DDAGLpov.d.ts → types-I1JOZyI_.d.cts} +4 -3
  104. package/dist/ui/styles.css +740 -0
  105. package/dist/ui.cjs +1018 -0
  106. package/dist/ui.cjs.map +1 -0
  107. package/dist/ui.d.cts +231 -0
  108. package/dist/ui.d.ts +231 -0
  109. package/dist/ui.mjs +1018 -0
  110. package/dist/ui.mjs.map +1 -0
  111. package/dist/vite-preview-bootstrap.cjs +66 -0
  112. package/dist/vite-preview-bootstrap.cjs.map +1 -0
  113. package/dist/vite-preview-bootstrap.d.cts +15 -0
  114. package/dist/vite-preview-bootstrap.d.ts +15 -0
  115. package/dist/vite-preview-bootstrap.mjs +66 -0
  116. package/dist/vite-preview-bootstrap.mjs.map +1 -0
  117. package/dist/vite-preview.cjs +876 -0
  118. package/dist/vite-preview.cjs.map +1 -0
  119. package/dist/vite-preview.d.cts +9 -0
  120. package/dist/vite-preview.d.ts +9 -0
  121. package/dist/vite-preview.mjs +876 -0
  122. package/dist/vite-preview.mjs.map +1 -0
  123. package/dist/vite.cjs +316 -59
  124. package/dist/vite.cjs.map +1 -1
  125. package/dist/vite.d.cts +51 -8
  126. package/dist/vite.d.ts +51 -8
  127. package/dist/vite.mjs +308 -53
  128. package/dist/vite.mjs.map +1 -1
  129. package/dist/work-events-DB3WR468.d.ts +547 -0
  130. package/dist/work-events-Dxe7Djdy.d.cts +547 -0
  131. package/package.json +19 -2
  132. package/schema/extension-v2.json +432 -121
  133. package/dist/chunk-2DBSVKAU.cjs.map +0 -1
  134. package/dist/chunk-3YWVYA42.cjs.map +0 -1
  135. package/dist/chunk-4C5Z3CIK.mjs.map +0 -1
  136. package/dist/chunk-5AAPD5WV.cjs.map +0 -1
  137. package/dist/chunk-7KIKOH5H.cjs.map +0 -1
  138. package/dist/chunk-BDCX6LRQ.mjs.map +0 -1
  139. package/dist/chunk-CSTYBKZC.mjs.map +0 -1
  140. package/dist/chunk-IGK2AP6J.mjs.map +0 -1
  141. package/dist/chunk-MNDVYPEP.mjs.map +0 -1
  142. package/dist/chunk-OPPYEA7F.cjs.map +0 -1
  143. package/dist/chunk-PYJMJF44.cjs.map +0 -1
  144. package/dist/chunk-RMUWRESK.cjs.map +0 -1
  145. package/dist/chunk-ZT35X7KL.mjs.map +0 -1
  146. package/dist/handler-CZIlZ5vu.d.ts +0 -227
  147. package/dist/handler-kU9Jf36K.d.cts +0 -227
  148. package/dist/styles.css +0 -367
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/client/ui/cn.ts","../src/client/ui/primitives.tsx","../src/client/ui/TapDialog.tsx","../src/client/ui/TapForm.tsx"],"sourcesContent":["import clsx, { type ClassValue as ClsxClassValue } from 'clsx';\n\n/**\n * Anything `cn` accepts: a class string, a number, an array of these, a map of\n * class name to condition, or a value to drop.\n */\nexport type ClassValue = ClsxClassValue;\n\n/**\n * Joins class names, dropping the ones that are `false`, `null` or `undefined`.\n *\n * @remarks\n * This is `clsx`, re-exported so a vendor surface needs no class-name dependency\n * of its own. It does not merge conflicting utility classes.\n *\n * @example\n * ```tsx\n * import { cn } from '@tappify/extension-sdk';\n *\n * function Row({ compact }: { compact: boolean }) {\n * return <div className={cn('starter-row', compact && 'starter-row--compact')} />;\n * }\n * ```\n */\nexport function cn(...values: ClassValue[]): string {\n return clsx(values);\n}\n","import {\n useId,\n type ButtonHTMLAttributes,\n type InputHTMLAttributes,\n type ReactElement,\n type ReactNode,\n type SelectHTMLAttributes,\n type TextareaHTMLAttributes,\n} from 'react';\nimport { cn } from './cn';\n\n/** The props `TapButton` takes, on top of the native button attributes. */\nexport interface TapButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Defaults to `primary`. */\n variant?: 'primary' | 'secondary' | 'ghost' | 'danger';\n /** Defaults to `md`. */\n size?: 'sm' | 'md';\n /** Disables the button and marks it `aria-busy`. */\n loading?: boolean;\n}\n\n/**\n * Renders a button in the host's styling, in one of four variants.\n *\n * @remarks\n * Draws on `--tap-accent` and `--tap-accent-fg` for `primary`, `--bg-raised`,\n * `--fg-default` and `--divider` for `secondary`, `--fg-muted` for `ghost` and\n * `--tap-danger` for `danger`, and takes its radius from `--tap-radius`. The\n * element defaults to `type=\"button\"`, so a button inside a `TapForm` does not\n * submit it unless you pass `type=\"submit\"`. `loading` disables the button, so a\n * click cannot land twice.\n *\n * @example\n * ```tsx\n * import { TapButton } from '@tappify/extension-sdk';\n *\n * function ExportRow({ busy, onExport }: { busy: boolean; onExport: () => void }) {\n * return (\n * <TapButton variant=\"secondary\" size=\"sm\" loading={busy} onClick={onExport}>\n * Export\n * </TapButton>\n * );\n * }\n * ```\n */\nexport function TapButton({\n variant = 'primary',\n size = 'md',\n loading = false,\n disabled,\n className,\n children,\n ...rest\n}: TapButtonProps): ReactElement {\n return (\n <button\n type=\"button\"\n {...rest}\n disabled={disabled === true || loading}\n aria-busy={loading || undefined}\n className={cn(\n 'tap-btn',\n `tap-btn--${variant}`,\n size === 'sm' && 'tap-btn--sm',\n className,\n )}\n >\n {children}\n </button>\n );\n}\n\n/** The props `TapCard` takes. */\nexport interface TapCardProps {\n /** Rendered in the header, which appears only with a `title` or an `action`. */\n title?: ReactNode;\n /** Sits at the end of the header, for a button or a link. */\n action?: ReactNode;\n /** Rendered under a divider below the body. */\n footer?: ReactNode;\n className?: string;\n children: ReactNode;\n}\n\n/**\n * Renders the bordered surface a widget, tab or page section sits in.\n *\n * @remarks\n * Renders as a `section` on `--bg-raised` with a `--divider` border and the\n * `--tap-radius` corner, and the footer in `--fg-muted`. The header appears only\n * when `title` or `action` is given, and the body carries its own padding, so\n * nest content directly rather than wrapping it in another padded box. A widget\n * belongs in one card.\n *\n * @example\n * ```tsx\n * import { TapButton, TapCard, TapStat } from '@tappify/extension-sdk';\n *\n * function InstallSummary() {\n * return (\n * <TapCard\n * title=\"Install summary\"\n * action={<TapButton variant=\"ghost\" size=\"sm\">Compact</TapButton>}\n * footer={<span>Last seven days</span>}\n * >\n * <TapStat label=\"Installs\" value=\"1,260\" delta={0.087} />\n * </TapCard>\n * );\n * }\n * ```\n */\nexport function TapCard({\n title,\n action,\n footer,\n className,\n children,\n}: TapCardProps): ReactElement {\n return (\n <section className={cn('tap-card', className)}>\n {(title !== undefined || action !== undefined) && (\n <header className=\"tap-card__head\">\n <span>{title}</span>\n {action}\n </header>\n )}\n <div className=\"tap-card__body\">{children}</div>\n {footer !== undefined && (\n <footer className=\"tap-card__foot\">{footer}</footer>\n )}\n </section>\n );\n}\n\n/** The props `TapPageHeader` takes. */\nexport interface TapPageHeaderProps {\n title: ReactNode;\n description?: ReactNode;\n /** Laid out in a row at the end of the header. */\n actions?: ReactNode;\n}\n\n/**\n * Renders the title, description and actions at the top of a tab, a page or a\n * settings panel.\n *\n * @remarks\n * The title renders as an `h2`, because the host owns the page's `h1`. The\n * description follows `--fg-muted` and the rule under the header follows\n * `--divider`. Under 360 pixels of mount width the actions stack under the title.\n * A widget in a slot uses `TapCard`'s own header instead.\n *\n * @example\n * ```tsx\n * import { TapButton, TapPageHeader } from '@tappify/extension-sdk';\n *\n * function FunnelsHeader() {\n * return (\n * <TapPageHeader\n * title=\"Funnels\"\n * description=\"Every step from impression to install.\"\n * actions={<TapButton size=\"sm\">New funnel</TapButton>}\n * />\n * );\n * }\n * ```\n */\nexport function TapPageHeader({\n title,\n description,\n actions,\n}: TapPageHeaderProps): ReactElement {\n return (\n <div className=\"tap-page-header\">\n <div>\n <h2 className=\"tap-page-header__title\">{title}</h2>\n {description !== undefined && (\n <p className=\"tap-page-header__description\">{description}</p>\n )}\n </div>\n {actions !== undefined && <div className=\"tap-row\">{actions}</div>}\n </div>\n );\n}\n\n/** The props `TapSkeleton` takes. */\nexport interface TapSkeletonProps {\n /** How many bars to draw. Defaults to one. */\n lines?: number;\n /** A CSS width for every bar. Left out, each bar is 12% shorter than the last. */\n width?: string;\n className?: string;\n}\n\n/**\n * Renders the placeholder bars that stand in for content while a read is in\n * flight.\n *\n * @remarks\n * The bars are `aria-hidden`, so a screen reader is not told about them, and they\n * take their tone from `--bg-subtle`. The pulse stops under\n * `prefers-reduced-motion`. Render this while `isLoading` is `true`, in place of\n * the content rather than beside it.\n *\n * @example\n * ```tsx\n * import { TapSkeleton, TapStat, useTapQuery } from '@tappify/extension-sdk';\n *\n * function Keywords() {\n * const keywords = useTapQuery({ kind: 'keywords' });\n * if (keywords.isLoading) return <TapSkeleton lines={3} />;\n * return <TapStat label=\"Tracked\" value={keywords.data?.keywords.length ?? 0} />;\n * }\n * ```\n */\nexport function TapSkeleton({\n lines = 1,\n width,\n className,\n}: TapSkeletonProps): ReactElement {\n return (\n <div aria-hidden=\"true\">\n {Array.from({ length: lines }, (_, index) => (\n <span\n key={index}\n className={cn('tap-skeleton', className)}\n style={{ width: width ?? `${String(100 - index * 12)}%` }}\n />\n ))}\n </div>\n );\n}\n\n/** The props `TapEmptyState` takes. */\nexport interface TapEmptyStateProps {\n title: string;\n description?: string;\n /** Rendered under the text, for the one thing the owner can do next. */\n action?: ReactNode;\n}\n\n/**\n * Renders the centred message that stands in for content when there is nothing to\n * show.\n *\n * @remarks\n * Centres its text in `--fg-muted` with the title in `--fg-default`. Use it for an\n * empty result or a surface the install has not been granted; a failure belongs in\n * `TapErrorState`, which carries a retry and announces itself as an alert.\n *\n * @example\n * ```tsx\n * import { TapEmptyState, useTapQuery } from '@tappify/extension-sdk';\n *\n * function Reviews() {\n * const reviews = useTapQuery({\n * kind: 'reviews',\n * range: { from: '2026-09-01', to: '2026-09-08' },\n * });\n * if (reviews.data?.total === 0) {\n * return <TapEmptyState title=\"No reviews in this range\" />;\n * }\n * return <span>{reviews.data?.total ?? 0} reviews</span>;\n * }\n * ```\n */\nexport function TapEmptyState({\n title,\n description,\n action,\n}: TapEmptyStateProps): ReactElement {\n return (\n <div className=\"tap-state\">\n <span className=\"tap-state__title\">{title}</span>\n {description !== undefined && <span>{description}</span>}\n {action}\n </div>\n );\n}\n\n/** The props `TapErrorState` takes. */\nexport interface TapErrorStateProps {\n title: string;\n /** The failure's own message, which is what a caller shows the owner. */\n description?: string;\n /** An error code, rendered small in `--font-mono` under the description. */\n code?: string;\n /** Renders a Retry button, and is called by it. */\n onRetry?: () => void;\n}\n\n/**\n * Renders the centred failure message a surface shows in place of its content.\n *\n * @remarks\n * Carries `role=\"alert\"`, so the host announces it, and draws the title in\n * `--tap-danger`. The Retry button appears only with `onRetry`; wire it to the\n * `refetch` of every read the surface needs. Pass the failure's own `message` as\n * the description — an error from `useTapServer` carries the text your server sent\n * the owner — and the `code` of a `TapError` or `TapServerError` as `code`.\n *\n * @example\n * ```tsx\n * import { TapErrorState, useTapQuery } from '@tappify/extension-sdk';\n *\n * function Crashes() {\n * const crashes = useTapQuery({\n * kind: 'crashes',\n * range: { from: '2026-09-01', to: '2026-09-08' },\n * });\n * if (crashes.error !== null) {\n * return (\n * <TapErrorState\n * title=\"Crashes did not load\"\n * description={crashes.error.message}\n * onRetry={crashes.refetch}\n * />\n * );\n * }\n * return <span>{crashes.data?.issues.length ?? 0} issues</span>;\n * }\n * ```\n */\nexport function TapErrorState({\n title,\n description,\n code,\n onRetry,\n}: TapErrorStateProps): ReactElement {\n return (\n <div className=\"tap-state tap-state--error\" role=\"alert\">\n <span className=\"tap-state__title\">{title}</span>\n {description !== undefined && <span>{description}</span>}\n {code !== undefined && <span className=\"tap-state__code\">{code}</span>}\n {onRetry !== undefined && (\n <TapButton variant=\"secondary\" size=\"sm\" onClick={onRetry}>\n Retry\n </TapButton>\n )}\n </div>\n );\n}\n\n/** The props `TapStat` takes. */\nexport interface TapStatProps {\n label: string;\n value: ReactNode;\n /** A share of the previous period, so `0.087` renders as `+9%`. */\n delta?: number;\n /** A line of context under the number. */\n hint?: string;\n}\n\n/**\n * Renders one labelled number, with an optional change against the previous\n * period.\n *\n * @remarks\n * The label is uppercased in `--fg-muted` and the number uses tabular figures, so\n * a row of stats stays aligned as values change. `delta` is a ratio, not a\n * percentage: it renders as whole percent with a plus in front when it is above\n * zero, and is coloured `--tap-danger` below zero and `--tap-accent` at or above\n * it. Format `value`\n * yourself with `tap.format.number` or `tap.format.currency`, so it follows the\n * owner's locale.\n *\n * @example\n * ```tsx\n * import { TapStat, useTap } from '@tappify/extension-sdk';\n *\n * function Installs({ installs, delta }: { installs: number; delta: number }) {\n * const tap = useTap();\n * return (\n * <TapStat\n * label=\"Installs\"\n * value={tap.format.number(installs)}\n * delta={delta}\n * hint=\"Against the previous seven days\"\n * />\n * );\n * }\n * ```\n */\nexport function TapStat({\n label,\n value,\n delta,\n hint,\n}: TapStatProps): ReactElement {\n const percent =\n delta === undefined\n ? undefined\n : `${delta > 0 ? '+' : ''}${String(Math.round(delta * 100))}%`;\n\n return (\n <div className=\"tap-stat\">\n <span className=\"tap-stat__label\">{label}</span>\n <span className=\"tap-stat__value\">{value}</span>\n {percent !== undefined && (\n <span\n className={cn(\n delta !== undefined && delta < 0\n ? 'tap-stat__delta--down'\n : 'tap-stat__delta--up',\n )}\n >\n {percent}\n </span>\n )}\n {hint !== undefined && <span className=\"tap-field__hint\">{hint}</span>}\n </div>\n );\n}\n\ninterface FieldFrameProps {\n id: string;\n label?: string;\n hint?: string;\n error?: string;\n hintId: string;\n errorId: string;\n children: ReactNode;\n}\n\nfunction FieldFrame({\n id,\n label,\n hint,\n error,\n hintId,\n errorId,\n children,\n}: FieldFrameProps): ReactElement {\n return (\n <div className=\"tap-field\">\n {label !== undefined && (\n <label className=\"tap-field__label\" htmlFor={id}>\n {label}\n </label>\n )}\n {children}\n {hint !== undefined && (\n <span className=\"tap-field__hint\" id={hintId}>\n {hint}\n </span>\n )}\n {error !== undefined && (\n <span className=\"tap-field__error\" id={errorId}>\n {error}\n </span>\n )}\n </div>\n );\n}\n\nfunction describedByOf(\n fieldId: string,\n hint: string | undefined,\n error: string | undefined,\n): string | undefined {\n const value = cn(\n hint !== undefined && `${fieldId}-hint`,\n error !== undefined && `${fieldId}-error`,\n );\n return value === '' ? undefined : value;\n}\n\n/**\n * The `TapInput` props for a single-line control, on top of the native input\n * attributes minus `size`.\n */\nexport interface TapSingleLineInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'size'\n> {\n /** Rendered as a `label` bound to the control by id. */\n label?: string;\n /** Marks the control invalid and renders the message under it. */\n error?: string;\n /** A line of guidance under the control, referenced by `aria-describedby`. */\n hint?: string;\n}\n\nfunction TapSingleLineInput({\n label,\n error,\n hint,\n className,\n id,\n ...rest\n}: TapSingleLineInputProps): ReactElement {\n const generated = useId();\n const fieldId = id ?? generated;\n\n return (\n <FieldFrame\n id={fieldId}\n label={label}\n hint={hint}\n error={error}\n hintId={`${fieldId}-hint`}\n errorId={`${fieldId}-error`}\n >\n <input\n {...rest}\n id={fieldId}\n className={cn(\n 'tap-control',\n error !== undefined && 'tap-control--invalid',\n className,\n )}\n aria-invalid={error !== undefined || undefined}\n aria-describedby={describedByOf(fieldId, hint, error)}\n />\n </FieldFrame>\n );\n}\n\n/**\n * The `TapInput` props for a multiline control, on top of the native textarea\n * attributes.\n */\nexport interface TapTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {\n /** Rendered as a `label` bound to the control by id. */\n label?: string;\n /** Marks the control invalid and renders the message under it. */\n error?: string;\n /** A line of guidance under the control, referenced by `aria-describedby`. */\n hint?: string;\n}\n\nfunction TapTextarea({\n label,\n error,\n hint,\n className,\n id,\n rows,\n ...rest\n}: TapTextareaProps): ReactElement {\n const generated = useId();\n const fieldId = id ?? generated;\n\n return (\n <FieldFrame\n id={fieldId}\n label={label}\n hint={hint}\n error={error}\n hintId={`${fieldId}-hint`}\n errorId={`${fieldId}-error`}\n >\n <textarea\n {...rest}\n id={fieldId}\n rows={rows ?? 4}\n className={cn(\n 'tap-control',\n error !== undefined && 'tap-control--invalid',\n className,\n )}\n aria-invalid={error !== undefined || undefined}\n aria-describedby={describedByOf(fieldId, hint, error)}\n />\n </FieldFrame>\n );\n}\n\n/**\n * The props `TapInput` takes: the single-line set, or the textarea set behind\n * `multiline`.\n */\nexport type TapInputProps =\n | ({ multiline?: false } & TapSingleLineInputProps)\n | ({ multiline: true } & TapTextareaProps);\n\n/**\n * Renders a labelled text control with its hint and error, as an input or, with\n * `multiline`, a textarea.\n *\n * @remarks\n * Generates an id when none is passed and binds the label, the hint and the error\n * to the control, so the field is announced whole; an `error` also sets\n * `aria-invalid` and the `--tap-danger` border. The textarea starts at four rows\n * and is resizable in height. Pass `type=\"checkbox\"` with\n * `className=\"tap-control--checkbox\"` for a boolean, which is what `TapForm`\n * does.\n *\n * @example\n * ```tsx\n * import { TapInput } from '@tappify/extension-sdk';\n *\n * function TermField({ term, onTerm }: { term: string; onTerm: (next: string) => void }) {\n * return (\n * <TapInput\n * label=\"Keyword\"\n * hint=\"One term per row in the report.\"\n * value={term}\n * onChange={event => onTerm(event.target.value)}\n * />\n * );\n * }\n * ```\n */\nexport function TapInput(props: TapInputProps): ReactElement {\n if (props.multiline === true) {\n const { multiline: _multiline, ...rest } = props;\n return <TapTextarea {...rest} />;\n }\n\n const { multiline: _multiline, ...rest } = props;\n return <TapSingleLineInput {...rest} />;\n}\n\n/** The props `TapSelect` takes, on top of the native select attributes. */\nexport interface TapSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {\n /** Rendered as a `label` bound to the control by id. */\n label?: string;\n /** Marks the control invalid and renders the message under it. */\n error?: string;\n /** A line of guidance under the control, referenced by `aria-describedby`. */\n hint?: string;\n /** Rendered in order; the component adds no empty option of its own. */\n options: { value: string; label: string }[];\n}\n\n/**\n * Renders a labelled select over a list of options, with its hint and error.\n *\n * @remarks\n * Carries the same label, hint, error and `aria-describedby` wiring as\n * `TapInput`. Add your own empty option when the field starts unset — `TapForm`\n * puts a `Choose one` option in front of a schema's enum values.\n *\n * @example\n * ```tsx\n * import { TapSelect } from '@tappify/extension-sdk';\n *\n * function PlatformPicker({ value, onPick }: { value: string; onPick: (next: string) => void }) {\n * return (\n * <TapSelect\n * label=\"Platform\"\n * value={value}\n * options={[\n * { value: 'ios', label: 'iOS' },\n * { value: 'android', label: 'Android' },\n * ]}\n * onChange={event => onPick(event.target.value)}\n * />\n * );\n * }\n * ```\n */\nexport function TapSelect({\n label,\n error,\n hint,\n options,\n className,\n id,\n ...rest\n}: TapSelectProps): ReactElement {\n const generated = useId();\n const fieldId = id ?? generated;\n\n return (\n <FieldFrame\n id={fieldId}\n label={label}\n hint={hint}\n error={error}\n hintId={`${fieldId}-hint`}\n errorId={`${fieldId}-error`}\n >\n <select\n {...rest}\n id={fieldId}\n className={cn(\n 'tap-control',\n error !== undefined && 'tap-control--invalid',\n className,\n )}\n aria-invalid={error !== undefined || undefined}\n aria-describedby={describedByOf(fieldId, hint, error)}\n >\n {options.map(option => (\n <option key={option.value} value={option.value}>\n {option.label}\n </option>\n ))}\n </select>\n </FieldFrame>\n );\n}\n\n/** One column of a `TapTable`. */\nexport interface TapTableColumnDef<T> {\n /** The key read from each row when there is no `render`. */\n key: string;\n label: string;\n /** `end` right-aligns the column and gives it tabular figures. */\n align?: 'start' | 'end';\n /** Draws the cell. Without it the cell shows the row's own string or number. */\n render?(row: T): ReactNode;\n}\n\n/** The props `TapTable` takes. */\nexport interface TapTableProps<T> {\n columns: TapTableColumnDef<T>[];\n rows: T[];\n /** Returns a stable key per row, which React uses for reconciliation. */\n rowKey: (row: T) => string;\n /** Rendered in place of the whole table when `rows` is empty. */\n empty?: ReactNode;\n /** Makes each row clickable and focusable, and is called on click or Enter. */\n onRowClick?: (row: T) => void;\n}\n\nfunction cellText(row: unknown, key: string): string {\n if (row === null || typeof row !== 'object') return '';\n const value: unknown = Reflect.get(row, key);\n if (typeof value === 'string') return value;\n if (\n typeof value === 'number' ||\n typeof value === 'boolean' ||\n typeof value === 'bigint'\n ) {\n return String(value);\n }\n return '';\n}\n\n/**\n * Renders rows under column headers, scrolling sideways inside the mount rather\n * than widening it.\n *\n * @remarks\n * A cell with no `render` shows the row's own value under `key` when that value is\n * a string, number, boolean or bigint, and nothing otherwise, so an object or an\n * array needs a `render`. With `empty` and no rows, the table is replaced whole by\n * that node. With `onRowClick` each row becomes focusable and answers Enter and\n * Space as well as a click, and hovers on `--bg-subtle`; the headers and rules\n * follow `--fg-muted` and `--divider`.\n *\n * @example\n * ```tsx\n * import { TapEmptyState, TapTable, useTapQuery } from '@tappify/extension-sdk';\n *\n * function Keywords() {\n * const keywords = useTapQuery({ kind: 'keywords' });\n * return (\n * <TapTable\n * columns={[\n * { key: 'term', label: 'Term' },\n * { key: 'position', label: 'Rank', align: 'end' },\n * ]}\n * rows={keywords.data?.keywords ?? []}\n * rowKey={keyword => keyword.id}\n * empty={<TapEmptyState title=\"No keywords tracked yet\" />}\n * />\n * );\n * }\n * ```\n */\nexport function TapTable<T>({\n columns,\n rows,\n rowKey,\n empty,\n onRowClick,\n}: TapTableProps<T>): ReactElement {\n if (rows.length === 0 && empty !== undefined) {\n return <>{empty}</>;\n }\n\n return (\n <div className=\"tap-table-wrap\">\n <table className=\"tap-table\">\n <thead>\n <tr>\n {columns.map(column => (\n <th\n key={column.key}\n className={cn(column.align === 'end' && 'tap-table__end')}\n scope=\"col\"\n >\n {column.label}\n </th>\n ))}\n </tr>\n </thead>\n <tbody>\n {rows.map(row => (\n <tr\n key={rowKey(row)}\n data-clickable={onRowClick !== undefined}\n tabIndex={onRowClick === undefined ? undefined : 0}\n onClick={\n onRowClick === undefined ? undefined : () => onRowClick(row)\n }\n onKeyDown={\n onRowClick === undefined\n ? undefined\n : event => {\n if (event.key !== 'Enter' && event.key !== ' ') return;\n event.preventDefault();\n onRowClick(row);\n }\n }\n >\n {columns.map(column => (\n <td\n key={column.key}\n className={cn(column.align === 'end' && 'tap-table__end')}\n >\n {column.render\n ? column.render(row)\n : cellText(row, column.key)}\n </td>\n ))}\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n );\n}\n","import {\n useCallback,\n useEffect,\n useId,\n useRef,\n type KeyboardEvent,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport { createPortal } from 'react-dom';\nimport { useTap } from '../context';\nimport { TapError } from '../errors';\n\nconst DIALOG_CLOSE_EVENT = 'tap:dialog-close';\n\nconst FOCUSABLE =\n 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';\n\n/**\n * `document.activeElement` is the mount's shadow host whenever focus sits\n * inside the shadow tree, so the trap resolves focus from the dialog's own root.\n */\nfunction activeElementNear(node: Node | null): Element | null {\n const root = node?.getRootNode();\n return root instanceof ShadowRoot\n ? root.activeElement\n : document.activeElement;\n}\n\n/** The props `TapDialog` takes. */\nexport interface TapDialogProps {\n /** The dialog renders nothing while this is `false`. */\n open: boolean;\n /** Rendered in the header, and used as the dialog's accessible name. */\n title: string;\n /** Called by Escape, by a click on the scrim, and by the host's close event. */\n onClose: () => void;\n /** Rendered under a divider at the end, for the dialog's buttons. */\n footer?: ReactNode;\n children: ReactNode;\n /** The id of your own heading, when the accessible name is not the title. */\n labelledBy?: string;\n}\n\n/**\n * Renders a modal dialog into the mount's own portal node, so it covers the\n * surface without leaving the extension.\n *\n * @remarks\n * Rendered outside a Tappify mount it throws `TAP_OUTSIDE_HOST`, from the `useTap`\n * above it. Inside a mount whose shadow root has no portal node yet, opening it\n * throws `TapError` with code `TAP_NO_PORTAL`; `renderWithTap` provides that node\n * in tests. While open it traps Tab\n * inside itself, moves focus to the first focusable element and returns focus\n * where it was on close, and answers Escape and a click on the scrim with\n * `onClose`. The scrim follows `--tap-scrim` and the panel `--bg-raised`,\n * `--divider` and `--tap-radius`; the panel is at most 520 pixels wide. The\n * component keeps no open state of its own.\n *\n * @example\n * ```tsx\n * import { TapButton, TapDialog } from '@tappify/extension-sdk';\n * import { useState } from 'react';\n *\n * function ExportDialog() {\n * const [open, setOpen] = useState(false);\n * return (\n * <>\n * <TapButton onClick={() => setOpen(true)}>Export</TapButton>\n * <TapDialog\n * open={open}\n * title=\"Export keywords\"\n * onClose={() => setOpen(false)}\n * footer={<TapButton onClick={() => setOpen(false)}>Done</TapButton>}\n * >\n * <span>The report covers the range in the filter bar.</span>\n * </TapDialog>\n * </>\n * );\n * }\n * ```\n */\nexport function TapDialog({\n open,\n title,\n onClose,\n footer,\n children,\n labelledBy,\n}: TapDialogProps): ReactElement | null {\n const tap = useTap();\n const dialogRef = useRef<HTMLDivElement | null>(null);\n const titleId = useId();\n\n const focusables = useCallback((): HTMLElement[] => {\n const root = dialogRef.current;\n if (root === null) return [];\n return Array.from(root.querySelectorAll<HTMLElement>(FOCUSABLE));\n }, []);\n\n useEffect(() => {\n if (!open) return;\n\n const previous = activeElementNear(dialogRef.current);\n focusables()[0]?.focus();\n\n return () => {\n if (previous instanceof HTMLElement) previous.focus();\n };\n }, [open, focusables]);\n\n useEffect(() => {\n const portal = tap.__portal;\n if (!open || portal === null) return;\n\n const close = (): void => {\n onClose();\n };\n\n portal.addEventListener(DIALOG_CLOSE_EVENT, close);\n return () => {\n portal.removeEventListener(DIALOG_CLOSE_EVENT, close);\n };\n }, [open, tap, onClose]);\n\n if (!open) return null;\n\n if (tap.__portal === null) {\n throw new TapError(\n 'TAP_NO_PORTAL',\n 'TapDialog needs the host portal node, which the mount sets inside its shadow root. Render this dialog from a contribution entry, or use renderWithTap() in tests.',\n );\n }\n\n const onKeyDown = (event: KeyboardEvent<HTMLDivElement>): void => {\n if (event.key === 'Escape') {\n event.stopPropagation();\n event.preventDefault();\n onClose();\n return;\n }\n\n if (event.key !== 'Tab') return;\n\n const items = focusables();\n if (items.length === 0) return;\n\n const first = items[0];\n const last = items[items.length - 1];\n const active = activeElementNear(dialogRef.current);\n\n if (event.shiftKey && active === first) {\n event.preventDefault();\n last.focus();\n return;\n }\n\n if (!event.shiftKey && active === last) {\n event.preventDefault();\n first.focus();\n }\n };\n\n return createPortal(\n <div\n className=\"tap-dialog-scrim\"\n onKeyDown={onKeyDown}\n onMouseDown={event => {\n if (event.target === event.currentTarget) onClose();\n }}\n >\n <div\n ref={dialogRef}\n className=\"tap-dialog\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={labelledBy ?? titleId}\n >\n <header className=\"tap-dialog__head\" id={titleId}>\n {title}\n </header>\n <div className=\"tap-dialog__body\">{children}</div>\n {footer !== undefined && (\n <footer className=\"tap-dialog__foot\">{footer}</footer>\n )}\n </div>\n </div>,\n tap.__portal,\n );\n}\n","import {\n useMemo,\n useState,\n type ReactElement,\n type SubmitEventHandler,\n} from 'react';\nimport { z } from 'zod';\nimport type { JsonSchema } from '../../manifest/types';\nimport { TapButton, TapInput, TapSelect } from './primitives';\n\n/** The control a schema property maps to. */\nexport type TapFormFieldKind =\n | 'text'\n | 'textarea'\n | 'date'\n | 'number'\n | 'boolean'\n | 'enum';\n\n/** One control `TapForm` renders, as `formFields` reads it off a schema. */\nexport interface TapFormField {\n /** The property name in the schema, and the key in the submitted value. */\n name: string;\n /** The property's `title`, or the name spaced and capitalised. */\n label: string;\n kind: TapFormFieldKind;\n /** Whether the schema lists the property under `required`. */\n required: boolean;\n /** The property's `description`. */\n hint?: string;\n /** Set for an `enum` property: one option per string value. */\n options?: { value: string; label: string }[];\n}\n\nfunction humanise(name: string): string {\n const spaced = name\n .replace(/[_-]+/g, ' ')\n .replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n .trim();\n return spaced.charAt(0).toUpperCase() + spaced.slice(1);\n}\n\nfunction readString(\n source: Record<string, unknown>,\n key: string,\n): string | undefined {\n const value = source[key];\n return typeof value === 'string' ? value : undefined;\n}\n\nfunction kindOf(property: Record<string, unknown>): TapFormFieldKind {\n if (Array.isArray(property.enum)) return 'enum';\n\n const type = readString(property, 'type');\n if (type === 'boolean') return 'boolean';\n if (type === 'number' || type === 'integer') return 'number';\n\n const format = readString(property, 'format');\n if (format === 'textarea') return 'textarea';\n if (format === 'date') return 'date';\n return 'text';\n}\n\n/**\n * Reads a JSON Schema object and returns the list of controls `TapForm` renders\n * from it.\n *\n * @remarks\n * One field per declared property, in the order the schema lists them; a schema\n * with no `properties` object returns an empty list, and a property that is not an\n * object is skipped. An `enum` becomes a select and keeps only its string values;\n * otherwise the kind comes from `type` — `boolean`, `number` and `integer` — and\n * then from `format`, where `textarea` and `date` are recognised and anything else\n * falls back to a single-line text control. Nested objects and arrays get a text\n * control, so render those yourself. Call it when you want the fields without the\n * form.\n *\n * @example\n * ```ts\n * import { formFields } from '@tappify/extension-sdk';\n *\n * const fields = formFields({\n * type: 'object',\n * properties: { refreshMinutes: { type: 'integer', title: 'Refresh minutes' } },\n * required: ['refreshMinutes'],\n * });\n * const names = fields.map(field => field.name);\n * ```\n */\nexport function formFields(schema: JsonSchema): TapFormField[] {\n const properties = schema.properties;\n if (typeof properties !== 'object' || properties === null) return [];\n\n const required = new Set(\n Array.isArray(schema.required)\n ? schema.required.filter(\n (name): name is string => typeof name === 'string',\n )\n : [],\n );\n\n return Object.entries(properties).flatMap(([name, raw]) => {\n if (typeof raw !== 'object' || raw === null) return [];\n const property: Record<string, unknown> = { ...raw };\n const kind = kindOf(property);\n\n const field: TapFormField = {\n name,\n label: readString(property, 'title') ?? humanise(name),\n kind,\n required: required.has(name),\n };\n\n const hint = readString(property, 'description');\n if (hint !== undefined) field.hint = hint;\n\n if (kind === 'enum' && Array.isArray(property.enum)) {\n field.options = property.enum\n .filter((option): option is string => typeof option === 'string')\n .map(option => ({ value: option, label: option }));\n }\n\n return [field];\n });\n}\n\ntype Values = Record<string, unknown>;\n\nfunction requiredErrors(\n fields: TapFormField[],\n values: Values,\n): Record<string, string> {\n const errors: Record<string, string> = {};\n for (const field of fields) {\n const value = values[field.name];\n if (field.required && (value === undefined || value === '')) {\n errors[field.name] = `${field.label} is required.`;\n }\n }\n return errors;\n}\n\nfunction compile(schema: JsonSchema): z.ZodType | null {\n try {\n return z.fromJSONSchema(schema);\n } catch {\n return null;\n }\n}\n\nfunction validate(\n fields: TapFormField[],\n compiled: z.ZodType | null,\n values: Values,\n): Record<string, string> {\n const errors = requiredErrors(fields, values);\n if (compiled === null) return errors;\n\n const result = compiled.safeParse(values);\n if (result.success) return errors;\n\n for (const issue of result.error.issues) {\n const key = issue.path[0];\n if (typeof key === 'string' && errors[key] === undefined) {\n errors[key] = issue.message;\n }\n }\n return errors;\n}\n\nfunction clean(fields: TapFormField[], values: Values): Values {\n const output: Values = {};\n for (const field of fields) {\n const value = values[field.name];\n if (value === undefined || value === '') continue;\n output[field.name] = value;\n }\n return output;\n}\n\n/** The props `TapForm` takes. */\nexport interface TapFormProps<T> {\n /** The object schema to render, one control per declared property. */\n schema: JsonSchema;\n /** The value the fields start at; later changes to it do not reset the form. */\n value?: Partial<T>;\n /** Defaults to `Submit`. */\n submitLabel?: string;\n /** Defaults to `Cancel`. */\n cancelLabel?: string;\n /** Marks the submit button busy and disables it while a submit is in flight. */\n busy?: boolean;\n /** Called with the cleaned value once validation passes. */\n onSubmit: (value: T) => void | Promise<void>;\n /** Renders a cancel button next to submit, and is called by it. */\n onCancel?: () => void;\n}\n\n/**\n * Renders a JSON Schema as a form in the host's styling, validates it on submit\n * and hands back the value.\n *\n * @remarks\n * Point it at the same schema file the manifest references, so the form and the\n * handler change together. Submit drops the fields left blank, then checks what\n * remains against the whole schema, so a `minimum`, `pattern` or `maxLength`\n * lands under the control it belongs to; a required field left empty is reported\n * without reaching the schema. A schema this SDK's Zod version cannot compile\n * still renders and still enforces required fields. `onSubmit` runs only when\n * nothing failed, and the form holds its own values, so a change to `value` after\n * the first render does not reset it. A form with no `value` has nothing to infer\n * `T` from, so annotate the handler's parameter.\n *\n * @example\n * ```tsx\n * import { TapForm, type TapSettingsProps } from '@tappify/extension-sdk';\n *\n * const schema = {\n * type: 'object',\n * properties: { refreshMinutes: { type: 'integer', title: 'Refresh minutes' } },\n * required: ['refreshMinutes'],\n * };\n *\n * function Settings({ values, onChange }: TapSettingsProps) {\n * return (\n * <TapForm\n * schema={schema}\n * value={values}\n * submitLabel=\"Save\"\n * onSubmit={next => onChange(next)}\n * />\n * );\n * }\n * ```\n */\nexport function TapForm<T>({\n schema,\n value,\n submitLabel = 'Submit',\n cancelLabel = 'Cancel',\n busy = false,\n onSubmit,\n onCancel,\n}: TapFormProps<T>): ReactElement {\n const fields = useMemo(() => formFields(schema), [schema]);\n const compiled = useMemo(() => compile(schema), [schema]);\n const [values, setValues] = useState<Values>(() => ({ ...value }));\n const [errors, setErrors] = useState<Record<string, string>>({});\n\n const set = (name: string, next: unknown): void => {\n setValues(current => ({ ...current, [name]: next }));\n setErrors(current => {\n if (current[name] === undefined) return current;\n const { [name]: _cleared, ...rest } = current;\n return rest;\n });\n };\n\n const submit: SubmitEventHandler<HTMLFormElement> = event => {\n event.preventDefault();\n const candidate = clean(fields, values);\n const found = validate(fields, compiled, candidate);\n setErrors(found);\n if (Object.keys(found).length > 0) return;\n\n void onSubmit(candidate as T);\n };\n\n return (\n <form className=\"tap-form\" onSubmit={submit} noValidate>\n {fields.map(field => {\n const raw = values[field.name];\n\n if (field.kind === 'enum') {\n return (\n <TapSelect\n key={field.name}\n label={field.label}\n hint={field.hint}\n error={errors[field.name]}\n required={field.required}\n value={typeof raw === 'string' ? raw : ''}\n options={[\n { value: '', label: 'Choose one' },\n ...(field.options ?? []),\n ]}\n onChange={event => {\n set(field.name, event.target.value);\n }}\n />\n );\n }\n\n if (field.kind === 'boolean') {\n return (\n <TapInput\n key={field.name}\n type=\"checkbox\"\n label={field.label}\n hint={field.hint}\n error={errors[field.name]}\n className=\"tap-control--checkbox\"\n checked={raw === true}\n onChange={event => {\n set(field.name, event.target.checked);\n }}\n />\n );\n }\n\n if (field.kind === 'textarea') {\n return (\n <TapInput\n key={field.name}\n multiline\n label={field.label}\n hint={field.hint}\n error={errors[field.name]}\n required={field.required}\n value={typeof raw === 'string' ? raw : ''}\n onChange={event => {\n set(field.name, event.target.value);\n }}\n />\n );\n }\n\n return (\n <TapInput\n key={field.name}\n type={\n field.kind === 'number'\n ? 'number'\n : field.kind === 'date'\n ? 'date'\n : 'text'\n }\n label={field.label}\n hint={field.hint}\n error={errors[field.name]}\n required={field.required}\n value={\n typeof raw === 'string' || typeof raw === 'number'\n ? String(raw)\n : ''\n }\n onChange={event => {\n set(\n field.name,\n field.kind === 'number'\n ? event.target.value === ''\n ? ''\n : Number(event.target.value)\n : event.target.value,\n );\n }}\n />\n );\n })}\n\n <div className=\"tap-form__actions\">\n {onCancel !== undefined && (\n <TapButton variant=\"secondary\" onClick={onCancel}>\n {cancelLabel}\n </TapButton>\n )}\n <TapButton type=\"submit\" loading={busy}>\n {submitLabel}\n </TapButton>\n </div>\n </form>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,UAAiD;AAwBjD,SAAS,MAAM,QAA8B;AAClD,SAAO,KAAK,MAAM;AACpB;;;AC1BA;AAAA,EACE;AAAA,OAOK;AA+CH,SA6sBO,UA7sBP,KAkEI,YAlEJ;AAVG,SAAS,UAAU;AAAA,EACxB,UAAU;AAAA,EACV,OAAO;AAAA,EACP,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAiC;AAC/B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACJ,GAAG;AAAA,MACJ,UAAU,aAAa,QAAQ;AAAA,MAC/B,aAAW,WAAW;AAAA,MACtB,WAAW;AAAA,QACT;AAAA,QACA,YAAY,OAAO;AAAA,QACnB,SAAS,QAAQ;AAAA,QACjB;AAAA,MACF;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ;AAyCO,SAAS,QAAQ;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA+B;AAC7B,SACE,qBAAC,aAAQ,WAAW,GAAG,YAAY,SAAS,GACxC;AAAA,eAAU,UAAa,WAAW,WAClC,qBAAC,YAAO,WAAU,kBAChB;AAAA,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H;AAAA,MAEF,gBAAAA,KAAC,aAAU,MAAK,UAAS,SAAS,MAC/B,uBACH;AAAA,OACF;AAAA,KACF;AAEJ;","names":["_multiline","rest","useId","jsx","jsxs","useId","jsx","jsxs"]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/manifest.cjs CHANGED
@@ -3,6 +3,10 @@
3
3
 
4
4
 
5
5
 
6
+ var _chunkNN263PGQcjs = require('./chunk-NN263PGQ.cjs');
7
+
8
+
9
+
6
10
 
7
11
 
8
12
 
@@ -17,70 +21,10 @@
17
21
 
18
22
 
19
23
 
20
- var _chunkPYJMJF44cjs = require('./chunk-PYJMJF44.cjs');
21
24
 
22
- // src/manifest/define.ts
23
- var EXPOSE_FOLDER = {
24
- page: "pages",
25
- tab: "tabs",
26
- widget: "widgets",
27
- rowAction: "rowActions"
28
- };
29
- function defineManifest(manifest) {
30
- return manifest;
31
- }
32
- function exposeName(kind, id) {
33
- if (kind === "settings") return "./settings";
34
- return `./${EXPOSE_FOLDER[kind]}/${_nullishCoalesce(id, () => ( ""))}`;
35
- }
36
- function remoteName(extensionId) {
37
- return `ext_${extensionId.replace(/-/g, "_")}`;
38
- }
39
- function uiContributions(manifest) {
40
- const contributes = manifest.contributes;
41
- const refs = [];
42
- for (const page of _nullishCoalesce(contributes.pages, () => ( []))) {
43
- refs.push({
44
- kind: "page",
45
- id: page.id,
46
- entry: page.entry,
47
- expose: exposeName("page", page.id)
48
- });
49
- }
50
- for (const tab of _nullishCoalesce(contributes.tabs, () => ( []))) {
51
- refs.push({
52
- kind: "tab",
53
- id: tab.id,
54
- entry: tab.entry,
55
- expose: exposeName("tab", tab.id)
56
- });
57
- }
58
- for (const widget of _nullishCoalesce(contributes.widgets, () => ( []))) {
59
- refs.push({
60
- kind: "widget",
61
- id: widget.id,
62
- entry: widget.entry,
63
- expose: exposeName("widget", widget.id)
64
- });
65
- }
66
- for (const rowAction of _nullishCoalesce(contributes.rowActions, () => ( []))) {
67
- refs.push({
68
- kind: "rowAction",
69
- id: rowAction.id,
70
- entry: rowAction.entry,
71
- expose: exposeName("rowAction", rowAction.id)
72
- });
73
- }
74
- if (contributes.settings) {
75
- refs.push({
76
- kind: "settings",
77
- id: "settings",
78
- entry: contributes.settings.entry,
79
- expose: exposeName("settings")
80
- });
81
- }
82
- return refs;
83
- }
25
+
26
+ var _chunk7YKH4LZNcjs = require('./chunk-7YKH4LZN.cjs');
27
+ require('./chunk-Q7SFCCGT.cjs');
84
28
 
85
29
  // src/manifest/schema.ts
86
30
  var _zod = require('zod');
@@ -140,7 +84,7 @@ var contributionId = _zod.z.string().regex(CONTRIBUTION_ID).describe(
140
84
  );
141
85
  var title = _zod.z.string().min(1).max(60).describe("The label owners read on this contribution.");
142
86
  var scopeEntry = _zod.z.object({
143
- key: _zod.z.enum(_chunkPYJMJF44cjs.SCOPE_KEYS, {
87
+ key: _zod.z.enum(_chunk7YKH4LZNcjs.SCOPE_KEYS, {
144
88
  error: "Unknown scope key; see the Scopes reference."
145
89
  }).describe("The scope key, from the scopes reference."),
146
90
  justification: _zod.z.string().min(20).max(500).describe(
@@ -150,7 +94,7 @@ var scopeEntry = _zod.z.object({
150
94
  var mobile = _zod.z.boolean().describe(
151
95
  "Whether this surface is drawn on phone layouts. Defaults to true; set false to hide it there."
152
96
  ).optional();
153
- var hostPage = (what) => _zod.z.enum(_chunkPYJMJF44cjs.PAGE_KEYS).describe(what);
97
+ var hostPage = (what) => _zod.z.enum(_chunk7YKH4LZNcjs.PAGE_KEYS).describe(what);
154
98
  var pageContribution = _zod.z.object({
155
99
  id: contributionId,
156
100
  title,
@@ -172,7 +116,7 @@ var widgetContribution = _zod.z.object({
172
116
  title,
173
117
  entry: entryPath,
174
118
  page: hostPage("The host page this widget renders on."),
175
- slot: _zod.z.enum(_chunkPYJMJF44cjs.SLOTS).describe(
119
+ slot: _zod.z.enum(_chunk7YKH4LZNcjs.SLOTS).describe(
176
120
  "The named anchor on that page. A slot that is not on the page fails validation."
177
121
  ),
178
122
  size: _zod.z.enum(["1x1", "2x1", "2x2"]).describe(
@@ -185,7 +129,7 @@ var widgetContribution = _zod.z.object({
185
129
  var seriesContribution = _zod.z.object({
186
130
  id: contributionId,
187
131
  label: title,
188
- chart: _zod.z.enum(_chunkPYJMJF44cjs.CHARTS).describe("The host chart this line is drawn on."),
132
+ chart: _zod.z.enum(_chunk7YKH4LZNcjs.CHARTS).describe("The host chart this line is drawn on."),
189
133
  metric: _zod.z.string().min(1).max(60).describe(
190
134
  "The connector metric this line plots. It has to be one the connector declares."
191
135
  )
@@ -200,13 +144,13 @@ var bannerContribution = _zod.z.object({
200
144
  var rowActionContribution = _zod.z.object({
201
145
  id: contributionId,
202
146
  title,
203
- table: _zod.z.enum(_chunkPYJMJF44cjs.TABLE_KEYS).describe("The host table whose row menu gains this entry."),
147
+ table: _zod.z.enum(_chunk7YKH4LZNcjs.TABLE_KEYS).describe("The host table whose row menu gains this entry."),
204
148
  entry: entryPath
205
149
  }).strict();
206
150
  var markerContribution = _zod.z.object({
207
151
  id: contributionId,
208
152
  label: title,
209
- chart: _zod.z.union([_zod.z.enum(_chunkPYJMJF44cjs.CHARTS), _zod.z.literal("*")]).describe(
153
+ chart: _zod.z.union([_zod.z.enum(_chunk7YKH4LZNcjs.CHARTS), _zod.z.literal("*")]).describe(
210
154
  "The host chart this marker is drawn on, or `*` for every chart."
211
155
  ),
212
156
  event: _zod.z.string().regex(DOMAIN_EVENT).describe(
@@ -332,7 +276,7 @@ var aiContribution = _zod.z.object({
332
276
  "Always true. An action goes through an owner approval; there is no way to opt out."
333
277
  ),
334
278
  reversible: _zod.z.boolean().describe("Whether the owner can undo it after it runs."),
335
- scope: _zod.z.enum(_chunkPYJMJF44cjs.SCOPE_KEYS).describe(
279
+ scope: _zod.z.enum(_chunk7YKH4LZNcjs.SCOPE_KEYS).describe(
336
280
  "The scope this action needs. Declare it under `scopes` as well."
337
281
  ),
338
282
  estimatesCost: _zod.z.boolean().describe(
@@ -398,7 +342,7 @@ var aiContribution = _zod.z.object({
398
342
  ).optional()
399
343
  }).strict();
400
344
  var statusNames = (stage) => _zod.z.array(_zod.z.string()).describe(`Your own status names that mean ${stage}.`);
401
- var workContribution = _zod.z.object({
345
+ var legacyWorkContribution = _zod.z.object({
402
346
  kind: _zod.z.enum(["tracker", "docs", "chat"]).describe("What kind of destination this is."),
403
347
  container: _zod.z.object({
404
348
  label: _zod.z.string().min(1).max(60).describe(
@@ -433,6 +377,55 @@ var workContribution = _zod.z.object({
433
377
  "Whether items are created as the owner who asked (`user`) or as the install itself."
434
378
  )
435
379
  }).strict();
380
+ var workDirection = _zod.z.enum([
381
+ "none",
382
+ "to_provider",
383
+ "from_provider",
384
+ "two-way"
385
+ ]);
386
+ var workAuth = _zod.z.discriminatedUnion("method", [
387
+ _zod.z.object({
388
+ method: _zod.z.literal("oauth"),
389
+ provider: _zod.z.string().min(1).describe("The OAuth provider identifier."),
390
+ scopes: _zod.z.array(_zod.z.string()).describe("The scopes requested from the provider.")
391
+ }).strict(),
392
+ _zod.z.object({
393
+ method: _zod.z.literal("api_key"),
394
+ fields: _zod.z.array(credentialField).max(20)
395
+ }).strict()
396
+ ]);
397
+ var currentWorkContribution = legacyWorkContribution.extend({
398
+ container: legacyWorkContribution.shape.container.describe(
399
+ "Deprecated. Resolve containers dynamically with describe_container."
400
+ ).optional(),
401
+ fields: legacyWorkContribution.shape.fields.describe("Deprecated. Resolve fields dynamically with describe_container.").optional(),
402
+ comments: _zod.z.union([
403
+ _zod.z.enum(["two-way", "none"]).describe("Deprecated. Declare a comments capability object."),
404
+ _zod.z.object({
405
+ direction: workDirection,
406
+ supportsEdits: _zod.z.literal(false),
407
+ supportsDeletes: _zod.z.literal(false)
408
+ }).strict()
409
+ ]),
410
+ status: _zod.z.object({
411
+ direction: workDirection,
412
+ webhook: _zod.z.string().regex(DOMAIN_EVENT).optional(),
413
+ map: _zod.z.object({
414
+ open: statusNames("not started"),
415
+ in_progress: statusNames("under way"),
416
+ done: statusNames("finished")
417
+ }).strict().describe(
418
+ "Deprecated. Resolve statuses dynamically with describe_container."
419
+ ).optional()
420
+ }).strict().optional(),
421
+ auth: workAuth.describe("How owners authenticate the work destination.")
422
+ });
423
+ var workContribution = _zod.z.union([
424
+ currentWorkContribution,
425
+ legacyWorkContribution.describe(
426
+ "Deprecated SDK v2 work declaration. Migrate to work capabilities and auth."
427
+ )
428
+ ]);
436
429
  var listing = _zod.z.object({
437
430
  longDescription: _zod.z.string().min(1).max(5e3).describe("The body of your listing page, in markdown.").optional(),
438
431
  screenshots: _zod.z.array(_zod.z.string().min(1)).min(1, "A listing shows 1 to 6 screenshots.").max(6, "A listing shows 1 to 6 screenshots.").describe(
@@ -479,7 +472,7 @@ var manifestObject = _zod.z.object({
479
472
  icon: _zod.z.string().min(1).max(200).describe(
480
473
  "The icon file carried in the bundle, as a path relative to the manifest. Square png or svg, at most 512 KB."
481
474
  ),
482
- category: _zod.z.enum(_chunkPYJMJF44cjs.CATEGORIES, {
475
+ category: _zod.z.enum(_chunk7YKH4LZNcjs.CATEGORIES, {
483
476
  error: "Choose a category from the Tap Store list (see the Categories reference)."
484
477
  }).describe("The Tap Store section owners browse and filter by."),
485
478
  sdk: _zod.z.string().min(1).max(60).describe(
@@ -491,7 +484,7 @@ var manifestObject = _zod.z.object({
491
484
  installScope: _zod.z.enum(["project", "organization"]).describe(
492
485
  "Whether one install belongs to a single project or to a whole organization. An organization install contributes no pages, tabs, widgets or series, because those render on a project."
493
486
  ),
494
- scopes: _zod.z.array(scopeEntry).min(1).max(_chunkPYJMJF44cjs.SCOPE_KEYS.length).describe(
487
+ scopes: _zod.z.array(scopeEntry).min(1).max(_chunk7YKH4LZNcjs.SCOPE_KEYS.length).describe(
495
488
  "The permissions an owner grants at install. Declare only what your contributions use."
496
489
  ),
497
490
  contributes: _zod.z.object({
@@ -524,7 +517,7 @@ var manifestObject = _zod.z.object({
524
517
  "What this extension offers the assistant: tools, mentions, actions, knowledge, skills, prompts and context providers."
525
518
  ).optional(),
526
519
  work: workContribution.describe(
527
- "The work destination this extension creates issues, pages or messages in. Needs the `work:create` and `work:sync` scopes."
520
+ "The work destination this extension creates issues, pages or messages in. Needs `review.threads:read` and `work:create`; active comment or status sync also needs `work:sync`."
528
521
  ).optional()
529
522
  }).strict().describe(
530
523
  "What this extension adds to the host. At most 20 UI contributions in total, and a page, tab, widget, row action, marker or settings panel needs the `ui:render` scope."
@@ -546,7 +539,7 @@ var manifestObject = _zod.z.object({
546
539
  "The procedures the host may call on your server, by name, each with its input and output schema. At most 30."
547
540
  ).optional(),
548
541
  events: _zod.z.array(
549
- _zod.z.enum(_chunkPYJMJF44cjs.EVENTS, {
542
+ _zod.z.enum(_chunk7YKH4LZNcjs.EVENTS, {
550
543
  error: (issue) => `"${String(issue.input)}" is not a Tappify event. Subscribe to a name from the event catalogue.`
551
544
  })
552
545
  ).describe(
@@ -602,7 +595,7 @@ var manifestSchema = manifestObject.superRefine((manifest, ctx) => {
602
595
  });
603
596
  };
604
597
  for (const [index, widget] of (_nullishCoalesce(contributes.widgets, () => ( []))).entries()) {
605
- const slots = _chunkPYJMJF44cjs.slotsForPage.call(void 0, widget.page);
598
+ const slots = _chunk7YKH4LZNcjs.slotsForPage.call(void 0, widget.page);
606
599
  if (!slots.includes(widget.slot)) {
607
600
  ctx.addIssue({
608
601
  code: "custom",
@@ -745,16 +738,36 @@ var manifestSchema = manifestObject.superRefine((manifest, ctx) => {
745
738
  }
746
739
  }
747
740
  if (contributes.work) {
741
+ const work = contributes.work;
742
+ const legacy = isLegacyWork(work);
743
+ if (!legacy || !granted.has("reviews:read")) {
744
+ requireScope(
745
+ "review.threads:read",
746
+ ["scopes"],
747
+ "the work destination reads Review threads."
748
+ );
749
+ }
748
750
  requireScope(
749
751
  "work:create",
750
752
  ["scopes"],
751
753
  "the work destination creates items."
752
754
  );
753
- requireScope(
754
- "work:sync",
755
- ["scopes"],
756
- "the work destination syncs comments and status."
757
- );
755
+ const comments = typeof work.comments === "string" ? work.comments : work.comments.direction;
756
+ const status = work.status ? "direction" in work.status ? work.status.direction : "from_provider" : "none";
757
+ if (comments !== "none" || status !== "none") {
758
+ requireScope(
759
+ "work:sync",
760
+ ["scopes"],
761
+ "the work destination syncs comments or status."
762
+ );
763
+ }
764
+ if (work.identity === "user") {
765
+ ctx.addIssue({
766
+ code: "custom",
767
+ path: ["contributes", "work", "identity"],
768
+ message: 'Per-user work identity is not supported. Set identity to "install".'
769
+ });
770
+ }
758
771
  }
759
772
  const needsServer = contributes.connector !== void 0 || (_nullishCoalesce(_optionalChain([contributes, 'access', _46 => _46.webhooks, 'optionalAccess', _47 => _47.length]), () => ( 0))) > 0 || ai !== void 0 || contributes.work !== void 0 || _optionalChain([manifest, 'access', _48 => _48.server, 'optionalAccess', _49 => _49.procedures]) !== void 0;
760
773
  if (needsServer && !_optionalChain([manifest, 'access', _50 => _50.server, 'optionalAccess', _51 => _51.baseUrl])) {
@@ -773,7 +786,7 @@ var manifestSchema = manifestObject.superRefine((manifest, ctx) => {
773
786
  });
774
787
  }
775
788
  for (const scope of manifest.scopes) {
776
- const definition = _chunkPYJMJF44cjs.findScope.call(void 0, scope.key);
789
+ const definition = _chunk7YKH4LZNcjs.findScope.call(void 0, scope.key);
777
790
  if (_optionalChain([definition, 'optionalAccess', _54 => _54.requiresJustification]) && !scope.justification) {
778
791
  ctx.addIssue({
779
792
  code: "custom",
@@ -806,11 +819,11 @@ var manifestSchema = manifestObject.superRefine((manifest, ctx) => {
806
819
  });
807
820
  }
808
821
  }
809
- if (!sdkMajors(manifest.sdk).some((major) => _chunkPYJMJF44cjs.SERVED_SDK_MAJORS.includes(major))) {
822
+ if (!sdkMajors(manifest.sdk).some((major) => _chunk7YKH4LZNcjs.SERVED_SDK_MAJORS.includes(major))) {
810
823
  ctx.addIssue({
811
824
  code: "custom",
812
825
  path: ["sdk"],
813
- message: `The host serves SDK major ${_chunkPYJMJF44cjs.SERVED_SDK_MAJORS.join(", ")}. Set sdk to a range that includes it, such as "^2.0.0".`
826
+ message: `The host serves SDK major ${_chunk7YKH4LZNcjs.SERVED_SDK_MAJORS.join(", ")}. Set sdk to a range that includes it, such as "^2.0.0".`
814
827
  });
815
828
  }
816
829
  });
@@ -841,6 +854,46 @@ function validateManifest(value) {
841
854
  }));
842
855
  return { ok: false, issues };
843
856
  }
857
+ function isLegacyWork(work) {
858
+ return !("auth" in work);
859
+ }
860
+ function workManifestWarnings(manifest) {
861
+ const work = manifest.contributes.work;
862
+ if (!work) return [];
863
+ const warnings = [];
864
+ if (work.container) {
865
+ warnings.push({
866
+ path: "contributes.work.container",
867
+ message: "Static work containers are deprecated. Resolve containers dynamically with describe_container."
868
+ });
869
+ }
870
+ if (work.fields) {
871
+ warnings.push({
872
+ path: "contributes.work.fields",
873
+ message: "Static work fields are deprecated. Resolve fields dynamically with describe_container."
874
+ });
875
+ }
876
+ if (typeof work.comments === "string") {
877
+ warnings.push({
878
+ path: "contributes.work.comments",
879
+ message: "String work comments are deprecated. Declare direction, supportsEdits: false and supportsDeletes: false."
880
+ });
881
+ }
882
+ if (_optionalChain([work, 'access', _62 => _62.status, 'optionalAccess', _63 => _63.map])) {
883
+ warnings.push({
884
+ path: "contributes.work.status.map",
885
+ message: "Static work status maps are deprecated. Resolve statuses dynamically with describe_container."
886
+ });
887
+ }
888
+ if (isLegacyWork(work) && manifest.scopes.some((scope) => scope.key === "reviews:read") && !manifest.scopes.some((scope) => scope.key === "review.threads:read")) {
889
+ warnings.push({
890
+ path: "scopes",
891
+ message: "Using reviews:read for work is deprecated. Add review.threads:read for Review threads; reviews:read grants store-review access."
892
+ });
893
+ }
894
+ return warnings;
895
+ }
896
+
844
897
 
845
898
 
846
899
 
@@ -868,5 +921,5 @@ function validateManifest(value) {
868
921
 
869
922
 
870
923
 
871
- exports.CARD_KEYS = _chunkPYJMJF44cjs.CARD_KEYS; exports.CATEGORIES = _chunkPYJMJF44cjs.CATEGORIES; exports.CHARTS = _chunkPYJMJF44cjs.CHARTS; exports.EVENTS = _chunkPYJMJF44cjs.EVENTS; exports.KINDS = _chunkPYJMJF44cjs.KINDS; exports.PAGES = _chunkPYJMJF44cjs.PAGES; exports.PAGE_KEYS = _chunkPYJMJF44cjs.PAGE_KEYS; exports.QUERY_SCOPES = _chunkPYJMJF44cjs.QUERY_SCOPES; exports.SCOPES = _chunkPYJMJF44cjs.SCOPES; exports.SCOPE_KEYS = _chunkPYJMJF44cjs.SCOPE_KEYS; exports.SERVED_SDK_MAJORS = _chunkPYJMJF44cjs.SERVED_SDK_MAJORS; exports.SLOTS = _chunkPYJMJF44cjs.SLOTS; exports.TABLES = _chunkPYJMJF44cjs.TABLES; exports.TABLE_KEYS = _chunkPYJMJF44cjs.TABLE_KEYS; exports.defineManifest = defineManifest; exports.exposeName = exposeName; exports.findPage = _chunkPYJMJF44cjs.findPage; exports.findScope = _chunkPYJMJF44cjs.findScope; exports.findTable = _chunkPYJMJF44cjs.findTable; exports.manifestJsonSchema = manifestJsonSchema; exports.manifestSchema = manifestSchema; exports.remoteName = remoteName; exports.sdkMajors = sdkMajors; exports.slotsForPage = _chunkPYJMJF44cjs.slotsForPage; exports.uiContributions = uiContributions; exports.validateManifest = validateManifest;
924
+ exports.CARD_KEYS = _chunk7YKH4LZNcjs.CARD_KEYS; exports.CATEGORIES = _chunk7YKH4LZNcjs.CATEGORIES; exports.CHARTS = _chunk7YKH4LZNcjs.CHARTS; exports.EVENTS = _chunk7YKH4LZNcjs.EVENTS; exports.KINDS = _chunk7YKH4LZNcjs.KINDS; exports.PAGES = _chunk7YKH4LZNcjs.PAGES; exports.PAGE_KEYS = _chunk7YKH4LZNcjs.PAGE_KEYS; exports.QUERY_SCOPES = _chunk7YKH4LZNcjs.QUERY_SCOPES; exports.SCOPES = _chunk7YKH4LZNcjs.SCOPES; exports.SCOPE_KEYS = _chunk7YKH4LZNcjs.SCOPE_KEYS; exports.SERVED_SDK_MAJORS = _chunk7YKH4LZNcjs.SERVED_SDK_MAJORS; exports.SLOTS = _chunk7YKH4LZNcjs.SLOTS; exports.TABLES = _chunk7YKH4LZNcjs.TABLES; exports.TABLE_KEYS = _chunk7YKH4LZNcjs.TABLE_KEYS; exports.defineManifest = _chunkNN263PGQcjs.defineManifest; exports.exposeName = _chunkNN263PGQcjs.exposeName; exports.findPage = _chunk7YKH4LZNcjs.findPage; exports.findScope = _chunk7YKH4LZNcjs.findScope; exports.findTable = _chunk7YKH4LZNcjs.findTable; exports.manifestJsonSchema = manifestJsonSchema; exports.manifestSchema = manifestSchema; exports.remoteName = _chunkNN263PGQcjs.remoteName; exports.sdkMajors = sdkMajors; exports.slotsForPage = _chunk7YKH4LZNcjs.slotsForPage; exports.uiContributions = _chunkNN263PGQcjs.uiContributions; exports.validateManifest = validateManifest; exports.workManifestWarnings = workManifestWarnings;
872
925
  //# sourceMappingURL=manifest.cjs.map