@coveo/atomic 3.35.0-pre.cb00784f95 → 3.35.0-pre.ce906cf5b7

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 (159) hide show
  1. package/dist/atomic/_atomic.esm.js +1 -1
  2. package/dist/atomic/atomic.esm.js.map +1 -1
  3. package/dist/atomic/components/_index.d.ts +0 -18
  4. package/dist/atomic/components/_index.js +0 -9
  5. package/dist/atomic/components/atomic-focus-trap2.js +1 -1
  6. package/dist/atomic/components/atomic-folded-result-list.js +4 -40
  7. package/dist/atomic/components/atomic-folded-result-list.js.map +1 -1
  8. package/dist/atomic/components/atomic-insight-folded-result-list.js +4 -40
  9. package/dist/atomic/components/atomic-insight-folded-result-list.js.map +1 -1
  10. package/dist/atomic/components/atomic-insight-result-action-bar.js +5 -1
  11. package/dist/atomic/components/atomic-insight-result-action-bar.js.map +1 -1
  12. package/dist/atomic/components/atomic-insight-result-children.js +4 -40
  13. package/dist/atomic/components/atomic-insight-result-children.js.map +1 -1
  14. package/dist/atomic/components/atomic-insight-result-list.js +4 -40
  15. package/dist/atomic/components/atomic-insight-result-list.js.map +1 -1
  16. package/dist/atomic/components/atomic-ipx-recs-list.js +4 -40
  17. package/dist/atomic/components/atomic-ipx-recs-list.js.map +1 -1
  18. package/dist/atomic/components/atomic-recs-interface.js +1 -1
  19. package/dist/atomic/components/atomic-recs-list.js +4 -40
  20. package/dist/atomic/components/atomic-recs-list.js.map +1 -1
  21. package/dist/atomic/components/atomic-refine-modal2.js +1 -1
  22. package/dist/atomic/components/atomic-result-children.js +4 -40
  23. package/dist/atomic/components/atomic-result-children.js.map +1 -1
  24. package/dist/atomic/components/atomic-result-list.js +4 -40
  25. package/dist/atomic/components/atomic-result-list.js.map +1 -1
  26. package/dist/atomic/components/atomic-result-placeholder2.js +1 -37
  27. package/dist/atomic/components/atomic-result-placeholder2.js.map +1 -1
  28. package/dist/atomic/components/atomic-smart-snippet-answer2.js +1 -1
  29. package/dist/atomic/components/components/search/atomic-result-section-actions/atomic-result-section-actions.js +25 -0
  30. package/dist/atomic/components/components/search/atomic-result-section-badges/atomic-result-section-badges.js +24 -0
  31. package/dist/atomic/components/components/search/atomic-result-section-bottom-metadata/atomic-result-section-bottom-metadata.js +25 -0
  32. package/dist/atomic/components/components/search/atomic-result-section-children/atomic-result-section-children.js +21 -0
  33. package/dist/atomic/components/components/search/atomic-result-section-emphasized/atomic-result-section-emphasized.js +23 -0
  34. package/dist/atomic/components/components/search/atomic-result-section-excerpt/atomic-result-section-excerpt.js +24 -0
  35. package/dist/atomic/components/components/search/atomic-result-section-title/atomic-result-section-title.js +24 -0
  36. package/dist/atomic/components/components/search/atomic-result-section-title-metadata/atomic-result-section-title-metadata.js +24 -0
  37. package/dist/atomic/components/components/search/atomic-result-section-visual/atomic-result-section-visual.js +29 -0
  38. package/dist/atomic/components/components/search/index.js +9 -0
  39. package/dist/atomic/components/components/search/lazy-index.js +9 -0
  40. package/dist/atomic/components/global/environment.js +1 -1
  41. package/dist/atomic/components/index.js.map +1 -1
  42. package/dist/atomic/components/item-layout-sections.js +1 -1
  43. package/dist/atomic/components/props-utils.js +1 -1
  44. package/dist/atomic/components/result-template-common.js +1 -1
  45. package/dist/atomic/components/utils.js +1 -1
  46. package/dist/atomic/{p-405e6a88.entry.js → p-19290f82.entry.js} +2 -2
  47. package/dist/atomic/p-8641e3a9.entry.js +2 -0
  48. package/dist/atomic/p-8641e3a9.entry.js.map +1 -0
  49. package/dist/atomic/p-d63acdc6.entry.js +2 -0
  50. package/dist/atomic/p-d63acdc6.entry.js.map +1 -0
  51. package/dist/cjs/_loader.cjs.js +1 -1
  52. package/dist/cjs/atomic-insight-result-action-bar.cjs.entry.js +6 -3
  53. package/dist/cjs/atomic-insight-result-action-bar.cjs.entry.js.map +1 -1
  54. package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
  55. package/dist/cjs/{atomic-result-placeholder_8.cjs.entry.js → atomic-result-placeholder_2.cjs.entry.js} +1 -69
  56. package/dist/cjs/atomic-result-placeholder_2.cjs.entry.js.map +1 -0
  57. package/dist/cjs/atomic.cjs.js +1 -1
  58. package/dist/cjs/index-757bc886.js +2 -14
  59. package/dist/cjs/version.cjs.js +2 -2
  60. package/dist/esm/_loader.js +1 -1
  61. package/dist/esm/atomic-insight-result-action-bar.entry.js +5 -2
  62. package/dist/esm/atomic-insight-result-action-bar.entry.js.map +1 -1
  63. package/dist/esm/atomic-recs-interface.entry.js +1 -1
  64. package/dist/esm/{atomic-result-placeholder_8.entry.js → atomic-result-placeholder_2.entry.js} +3 -65
  65. package/dist/esm/atomic-result-placeholder_2.entry.js.map +1 -0
  66. package/dist/esm/atomic.js +1 -1
  67. package/dist/esm/index-3f35faca.js +2 -14
  68. package/dist/esm/version.js +2 -2
  69. package/dist/types/components/common/layout/item-layout-sections.d.ts +1 -1
  70. package/dist/types/components/search/{result-template-components/atomic-result-sections → atomic-result-section-actions}/atomic-result-section-actions.d.ts +9 -3
  71. package/dist/types/components/search/{result-template-components/atomic-result-sections → atomic-result-section-badges}/atomic-result-section-badges.d.ts +9 -3
  72. package/dist/types/components/search/{result-template-components/atomic-result-sections → atomic-result-section-bottom-metadata}/atomic-result-section-bottom-metadata.d.ts +9 -3
  73. package/dist/types/components/search/atomic-result-section-children/atomic-result-section-children.d.ts +16 -0
  74. package/dist/types/components/search/atomic-result-section-emphasized/atomic-result-section-emphasized.d.ts +18 -0
  75. package/dist/types/components/search/{result-template-components/atomic-result-sections → atomic-result-section-excerpt}/atomic-result-section-excerpt.d.ts +9 -3
  76. package/dist/types/components/search/{result-template-components/atomic-result-sections → atomic-result-section-title}/atomic-result-section-title.d.ts +9 -3
  77. package/dist/types/components/search/atomic-result-section-title-metadata/atomic-result-section-title-metadata.d.ts +19 -0
  78. package/dist/types/components/search/atomic-result-section-visual/atomic-result-section-visual.d.ts +26 -0
  79. package/dist/types/components/search/index.d.ts +9 -0
  80. package/dist/types/components.d.ts +0 -413
  81. package/docs/atomic-docs.json +1 -275
  82. package/package.json +3 -12
  83. package/dist/atomic/components/atomic-result-section-actions.d.ts +0 -11
  84. package/dist/atomic/components/atomic-result-section-actions.js +0 -8
  85. package/dist/atomic/components/atomic-result-section-actions.js.map +0 -1
  86. package/dist/atomic/components/atomic-result-section-actions2.js +0 -30
  87. package/dist/atomic/components/atomic-result-section-actions2.js.map +0 -1
  88. package/dist/atomic/components/atomic-result-section-badges.d.ts +0 -11
  89. package/dist/atomic/components/atomic-result-section-badges.js +0 -8
  90. package/dist/atomic/components/atomic-result-section-badges.js.map +0 -1
  91. package/dist/atomic/components/atomic-result-section-badges2.js +0 -30
  92. package/dist/atomic/components/atomic-result-section-badges2.js.map +0 -1
  93. package/dist/atomic/components/atomic-result-section-bottom-metadata.d.ts +0 -11
  94. package/dist/atomic/components/atomic-result-section-bottom-metadata.js +0 -8
  95. package/dist/atomic/components/atomic-result-section-bottom-metadata.js.map +0 -1
  96. package/dist/atomic/components/atomic-result-section-bottom-metadata2.js +0 -30
  97. package/dist/atomic/components/atomic-result-section-bottom-metadata2.js.map +0 -1
  98. package/dist/atomic/components/atomic-result-section-children.d.ts +0 -11
  99. package/dist/atomic/components/atomic-result-section-children.js +0 -33
  100. package/dist/atomic/components/atomic-result-section-children.js.map +0 -1
  101. package/dist/atomic/components/atomic-result-section-emphasized.d.ts +0 -11
  102. package/dist/atomic/components/atomic-result-section-emphasized.js +0 -33
  103. package/dist/atomic/components/atomic-result-section-emphasized.js.map +0 -1
  104. package/dist/atomic/components/atomic-result-section-excerpt.d.ts +0 -11
  105. package/dist/atomic/components/atomic-result-section-excerpt.js +0 -8
  106. package/dist/atomic/components/atomic-result-section-excerpt.js.map +0 -1
  107. package/dist/atomic/components/atomic-result-section-excerpt2.js +0 -30
  108. package/dist/atomic/components/atomic-result-section-excerpt2.js.map +0 -1
  109. package/dist/atomic/components/atomic-result-section-title-metadata.d.ts +0 -11
  110. package/dist/atomic/components/atomic-result-section-title-metadata.js +0 -33
  111. package/dist/atomic/components/atomic-result-section-title-metadata.js.map +0 -1
  112. package/dist/atomic/components/atomic-result-section-title.d.ts +0 -11
  113. package/dist/atomic/components/atomic-result-section-title.js +0 -8
  114. package/dist/atomic/components/atomic-result-section-title.js.map +0 -1
  115. package/dist/atomic/components/atomic-result-section-title2.js +0 -30
  116. package/dist/atomic/components/atomic-result-section-title2.js.map +0 -1
  117. package/dist/atomic/components/atomic-result-section-visual.d.ts +0 -11
  118. package/dist/atomic/components/atomic-result-section-visual.js +0 -8
  119. package/dist/atomic/components/atomic-result-section-visual.js.map +0 -1
  120. package/dist/atomic/components/atomic-result-section-visual2.js +0 -33
  121. package/dist/atomic/components/atomic-result-section-visual2.js.map +0 -1
  122. package/dist/atomic/components/item-section-utils.js +0 -9
  123. package/dist/atomic/components/item-section-utils.js.map +0 -1
  124. package/dist/atomic/p-36e2c945.entry.js +0 -2
  125. package/dist/atomic/p-36e2c945.entry.js.map +0 -1
  126. package/dist/atomic/p-463336ca.entry.js +0 -2
  127. package/dist/atomic/p-463336ca.entry.js.map +0 -1
  128. package/dist/atomic/p-55c41e00.entry.js +0 -2
  129. package/dist/atomic/p-55c41e00.entry.js.map +0 -1
  130. package/dist/atomic/p-5d0fc7e2.js +0 -2
  131. package/dist/atomic/p-5d0fc7e2.js.map +0 -1
  132. package/dist/atomic/p-7fd58269.entry.js +0 -2
  133. package/dist/atomic/p-7fd58269.entry.js.map +0 -1
  134. package/dist/atomic/p-d1fbb20a.entry.js +0 -2
  135. package/dist/atomic/p-d1fbb20a.entry.js.map +0 -1
  136. package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js.map +0 -1
  137. package/dist/cjs/atomic-result-section-children.cjs.entry.js +0 -23
  138. package/dist/cjs/atomic-result-section-children.cjs.entry.js.map +0 -1
  139. package/dist/cjs/atomic-result-section-emphasized.cjs.entry.js +0 -23
  140. package/dist/cjs/atomic-result-section-emphasized.cjs.entry.js.map +0 -1
  141. package/dist/cjs/atomic-result-section-title-metadata.cjs.entry.js +0 -23
  142. package/dist/cjs/atomic-result-section-title-metadata.cjs.entry.js.map +0 -1
  143. package/dist/cjs/item-section-utils-37848715.js +0 -11
  144. package/dist/cjs/item-section-utils-37848715.js.map +0 -1
  145. package/dist/esm/atomic-result-placeholder_8.entry.js.map +0 -1
  146. package/dist/esm/atomic-result-section-children.entry.js +0 -19
  147. package/dist/esm/atomic-result-section-children.entry.js.map +0 -1
  148. package/dist/esm/atomic-result-section-emphasized.entry.js +0 -19
  149. package/dist/esm/atomic-result-section-emphasized.entry.js.map +0 -1
  150. package/dist/esm/atomic-result-section-title-metadata.entry.js +0 -19
  151. package/dist/esm/atomic-result-section-title-metadata.entry.js.map +0 -1
  152. package/dist/esm/item-section-utils-d8aa24b7.js +0 -9
  153. package/dist/esm/item-section-utils-d8aa24b7.js.map +0 -1
  154. package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-children.d.ts +0 -10
  155. package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-emphasized.d.ts +0 -12
  156. package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-title-metadata.d.ts +0 -13
  157. package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-visual.d.ts +0 -20
  158. package/dist/types/types/open-api.d.ts +0 -3
  159. /package/dist/atomic/{p-405e6a88.entry.js.map → p-19290f82.entry.js.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"names":["atomicResultPlaceholderCss","AtomicResultPlaceholderStyle0","placeholderClasses","AtomicResultPlaceholder","renderExcerptLine","width","h","style","height","class","render","key","getItemDisplayClasses","this","display","density","imageSize","join","trim","Array","from","length","AtomicResultSectionActions","componentDidRender","hideEmptySection","host","AtomicResultSectionBadges","AtomicResultSectionBottomMetadata","AtomicResultSectionExcerpt","AtomicResultSectionTitle","AtomicResultSectionVisual","atomicResultTablePlaceholderCss","AtomicResultTablePlaceholderStyle0","AtomicResultTablePlaceholder","getClasses","rows"],"sources":["src/components/common/atomic-result-placeholder/atomic-result-placeholder.pcss?tag=atomic-result-placeholder&encapsulation=shadow","src/components/common/atomic-result-placeholder/atomic-result-placeholder.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-actions.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-badges.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-bottom-metadata.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-excerpt.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-title.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-visual.tsx","src/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.pcss?tag=atomic-result-table-placeholder&encapsulation=shadow","src/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n\n@import '../template-system/template-system.pcss';\n\n:host {\n @apply atomic-template-system;\n\n .result-root {\n &.display-grid {\n atomic-result-section-actions {\n display: none;\n }\n }\n\n .badge {\n width: 14rem;\n }\n\n .action {\n width: 10rem;\n }\n\n .title {\n display: grid;\n grid-auto-flow: column;\n grid-gap: 0.5rem;\n height: var(--line-height);\n width: 30rem;\n max-width: 100%;\n }\n\n .fields-placeholder {\n display: grid;\n grid-template-columns: repeat(auto-fill, min(11rem, 40%));\n grid-column-gap: 0.5rem;\n\n .field-value-placeholder {\n height: var(--font-size);\n margin: calc((var(--line-height) - var(--font-size)) / 2) 0;\n }\n }\n }\n}\n","import {Component, h, Prop} from '@stencil/core';\nimport {\n ItemDisplayLayout,\n ItemDisplayDensity,\n ItemDisplayImageSize,\n getItemDisplayClasses,\n} from '../../common/layout/display-options';\n\nconst placeholderClasses = 'block bg-neutral w-full h-full rounded';\n\n/**\n * The `atomic-result-placeholder` component provides an intermediate visual state that is rendered before the first results are available.\n * @internal\n */\n@Component({\n tag: 'atomic-result-placeholder',\n styleUrl: 'atomic-result-placeholder.pcss',\n shadow: true,\n})\nexport class AtomicResultPlaceholder {\n @Prop() display!: ItemDisplayLayout;\n @Prop() density!: ItemDisplayDensity;\n @Prop() imageSize!: ItemDisplayImageSize;\n\n private renderExcerptLine(width: string) {\n return (\n <div\n style={{\n height: 'var(--line-height)',\n width,\n }}\n >\n <div\n class={placeholderClasses}\n style={{height: 'var(--font-size)'}}\n ></div>\n </div>\n );\n }\n\n public render() {\n return (\n <div\n class={`result-root placeholder with-sections animate-pulse ${getItemDisplayClasses(\n this.display,\n this.density,\n this.imageSize\n )\n .join(' ')\n .trim()}`}\n >\n <atomic-result-section-visual>\n <div class={placeholderClasses}></div>\n </atomic-result-section-visual>\n <atomic-result-section-badges>\n <div class={`badge ${placeholderClasses}`}></div>\n </atomic-result-section-badges>\n <atomic-result-section-actions>\n <div class={`action ${placeholderClasses}`}></div>\n </atomic-result-section-actions>\n <atomic-result-section-title>\n <div class={`title ${placeholderClasses}`}></div>\n </atomic-result-section-title>\n <atomic-result-section-excerpt>\n {this.renderExcerptLine('100%')}\n {this.renderExcerptLine('95%')}\n {this.renderExcerptLine('98%')}\n </atomic-result-section-excerpt>\n <atomic-result-section-bottom-metadata>\n <div class=\"fields-placeholder\">\n {Array.from({length: 4}, () => (\n <div\n class={`field-value-placeholder ${placeholderClasses}`}\n ></div>\n ))}\n </div>\n </atomic-result-section-bottom-metadata>\n </div>\n );\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section allows the information seeker to perform an action on an item without having to view its details.\n * For example, in Commerce you can add an item to the cart directly or add it to a wish list to view at a later time.\n *\n * Behavior:\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * ** You should ensure that elements inside of it have `height: var(--line-height)`.\n * * Is a wrapping flexbox with a gap.\n * * May appear over, next to, or beneath the visual section.\n */\n@Component({\n tag: 'atomic-result-section-actions',\n shadow: false,\n})\nexport class AtomicResultSectionActions {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section provides badges that highlight special features of the item.\n *\n * Behavior:\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * ** You should ensure that elements inside of it have `height: var(--line-height)`.\n * * Is a wrapping flexbox with a gap.\n * * May appear over, next to, or beneath the visual section.\n */\n@Component({\n tag: 'atomic-result-section-badges',\n shadow: false,\n})\nexport class AtomicResultSectionBadges {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section displays additional descriptive information about the item.\n *\n * Behavior:\n * * Has a maximum height of two lines.\n * ** We recommend that you use `atomic-result-fields-list` to ensure that the fields in this section don’t overflow.\n * * Exposes the `--line-height` variable so child elements can adjust to the current line height.\n * * Has a defined CSS `color` property for text.\n * * Has a font weight.\n */\n@Component({\n tag: 'atomic-result-section-bottom-metadata',\n shadow: false,\n})\nexport class AtomicResultSectionBottomMetadata {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section contains an informative summary of the item's content.\n *\n * Behavior:\n * * Has a fixed height of one to three lines, depending on the layout and density.\n * * Ellipses overflowing text.\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * * Has a defined CSS `color` property for text.\n */\n@Component({\n tag: 'atomic-result-section-excerpt',\n shadow: false,\n})\nexport class AtomicResultSectionExcerpt {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section identifies the item by its name, and its main use is to make the result list scannable.\n * This is usually the page title.\n *\n * Behavior:\n * * Has a fixed height of two lines on grid layouts.\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * * Has a defined CSS `color` property for text.\n */\n@Component({\n tag: 'atomic-result-section-title',\n shadow: false,\n})\nexport class AtomicResultSectionTitle {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component, Prop} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\nimport {ItemDisplayImageSize} from '../../../common/layout/display-options';\n\n/**\n * This section provides visual information about the item.\n * For example, in Commerce, an image is a great shorthand for a product category.\n * An icon can quickly show the item type, or an avatar can help identify to whom it is related.\n *\n * Behavior:\n * * Has a fixed size that depends on the specified image size, the layout, the density, and the screen size.\n * ** When the image size is set to `icon`, this section stays very small.\n * ** You should ensure that elements inside of it take the available space.\n * * Always has a 1:1 aspect ratio.\n */\n@Component({\n tag: 'atomic-result-section-visual',\n shadow: false,\n})\nexport class AtomicResultSectionVisual {\n @Element() private host!: HTMLElement;\n\n /**\n * How large or small the visual section of results using this template should be.\n */\n @Prop({reflect: true}) public imageSize?: ItemDisplayImageSize;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","@import '../../../global/global.pcss';\n@import '../../common/item-list/styles/mixins.pcss';\n\n:host {\n display: grid;\n}\n\n.list-root.display-table {\n @apply atomic-result-table border-neutral rounded-xl border;\n\n thead tr,\n tbody tr:not(:last-child) {\n position: relative;\n\n &::after {\n content: ' ';\n display: block;\n position: absolute;\n height: 1px;\n bottom: 0;\n left: var(--padding);\n right: var(--padding);\n @apply bg-neutral;\n }\n }\n\n th,\n td {\n border-color: transparent;\n border-radius: initial;\n }\n\n th {\n background-color: transparent;\n }\n}\n","import {Component, h, Prop} from '@stencil/core';\nimport {\n ItemDisplayDensity,\n ItemDisplayImageSize,\n getItemDisplayClasses,\n} from '../../common/layout/display-options';\n\nconst placeholderClasses = 'block bg-neutral rounded';\n\n/**\n * The `atomic-result-table-placeholder` component provides an intermediate visual state that is rendered before the first results are available.\n * @internal\n */\n@Component({\n tag: 'atomic-result-table-placeholder',\n styleUrl: 'atomic-result-table-placeholder.pcss',\n shadow: true,\n})\nexport class AtomicResultTablePlaceholder {\n @Prop() density!: ItemDisplayDensity;\n @Prop() imageSize!: ItemDisplayImageSize;\n @Prop() rows!: number;\n\n private getClasses() {\n return getItemDisplayClasses('table', this.density, this.imageSize);\n }\n\n public render() {\n return (\n <table class={`list-root animate-pulse ${this.getClasses().join(' ')}`}>\n <thead>\n <tr>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '14.5rem'}}\n ></div>\n </th>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '9.75rem'}}\n ></div>\n </th>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '6.5rem'}}\n ></div>\n </th>\n </tr>\n </thead>\n <tbody>\n {Array.from({length: this.rows}, () => (\n <tr>\n <td>\n <div\n class={`mb-6 h-8 ${placeholderClasses}`}\n style={{width: '22.875rem'}}\n ></div>\n <div\n class={`mb-2 h-5 ${placeholderClasses}`}\n style={{width: '23.75rem'}}\n ></div>\n <div\n class={`h-5 ${placeholderClasses}`}\n style={{width: '11.5rem'}}\n ></div>\n </td>\n <td>\n <div\n class={`mt-1.5 h-5 ${placeholderClasses}`}\n style={{width: '11rem'}}\n ></div>\n </td>\n <td>\n <div\n class={`mt-1.5 h-5 ${placeholderClasses}`}\n style={{width: '4.875rem'}}\n ></div>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n );\n }\n}\n"],"mappings":"0NAAA,MAAMA,EAA6B,ol2WACnC,MAAAC,EAAeD,ECOf,MAAME,EAAqB,yC,MAWdC,EAAuB,M,gGAK1B,iBAAAC,CAAkBC,GACxB,OACEC,EAAA,OACEC,MAAO,CACLC,OAAQ,qBACRH,UAGFC,EAAA,OACEG,MAAOP,EACPK,MAAO,CAACC,OAAQ,sB,CAMjB,MAAAE,GACL,OACEJ,EAAA,OAAAK,IAAA,2CACEF,MAAO,u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AAAK,IAAA,4CACEL,EAAA,MAAAK,IAAA,4CACEL,EAAA,MAAAK,IAAA,4CACEL,EAAA,OAAAK,IAAA,2CACEF,MAAO,YAAYP,IACnBK,MAAO,CAACF,MAAO,cAGnBC,EAAA,MAAAK,IAAA,4CACEL,EAAA,OAAAK,IAAA,2CACEF,MAAO,YAAYP,IACnBK,MAAO,CAACF,MAAO,cAGnBC,EAAA,MAAAK,IAAA,4CACEL,EAAA,OAAAK,IAAA,2CACEF,MAAO,YAAYP,IACnBK,MAAO,CAACF,MAAO,eAKvBC,EAAA,SAAAK,IAAA,4CACGQ,MAAMC,KAAK,CAACC,OAAQR,KAAKsB,OAAO,IAC/B7B,EAAA,UACEA,EAAA,UACEA,EAAA,OACEG,MAAO,YAAYP,IACnBK,MAAO,CAACF,MAAO,eAEjBC,EAAA,OACEG,MAAO,YAAYP,IACnBK,MAAO,CAACF,MAAO,cAEjBC,EAAA,OACEG,MAAO,OAAOP,IACdK,MAAO,CAACF,MAAO,cAGnBC,EAAA,UACEA,EAAA,OACEG,MAAO,cAAcP,IACrBK,MAAO,CAACF,MAAO,YAGnBC,EAAA,UACEA,EAAA,OACEG,MAAO,cAAcP,IACrBK,MAAO,CAACF,MAAO,mB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"file":"atomic-result-placeholder.atomic-result-section-actions.atomic-result-section-badges.atomic-result-section-bottom-metadata.atomic-result-section-excerpt.atomic-result-section-title.atomic-result-section-visual.atomic-result-table-placeholder.entry.cjs.js","mappings":";;;;;;;;;;;;AAAA,MAAM,0BAA0B,GAAG,ml2WAAml2W,CAAC;AACvn2W,sCAAe,0BAA0B;;ACOzC,MAAMA,oBAAkB,GAAG,wCAAwC,CAAC;MAWvD,uBAAuB;;;;;;;IAK1B,iBAAiB,CAAC,KAAa;QACrC,QACEC,iBACE,KAAK,EAAE;gBACL,MAAM,EAAE,oBAAoB;gBAC5B,KAAK;aACN,IAEDA,iBACE,KAAK,EAAED,oBAAkB,EACzB,KAAK,EA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EACPA,iBACE,KAAK,EAAE,OAAO,kBAAkB,EAAE,EAClC,KAAK,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,GACpB,CACJ,EACLA,oBACEA,iBACE,KAAK,EAAE,cAAc,kBAAkB,EAAE,EACzC,KAAK,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC,GAClB,CACJ,EACLA,oBACEA,iBACE,KAAK,EAAE,cAAc,kBAAkB,EAAE,EACzC,KAAK,EAAE,EAAC,KAAK,EAAE,UAAU,EAAC,GACrB,CACJ,CACF,CACN,CAAC,CACI,CACF,EACR;KACH;;;;;;;;;;;;;","names":["placeholderClasses","h","getItemDisplayClasses","hideEmptySection"],"sources":["src/components/common/atomic-result-placeholder/atomic-result-placeholder.pcss?tag=atomic-result-placeholder&encapsulation=shadow","src/components/common/atomic-result-placeholder/atomic-result-placeholder.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-actions.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-badges.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-bottom-metadata.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-excerpt.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-title.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-visual.tsx","src/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.pcss?tag=atomic-result-table-placeholder&encapsulation=shadow","src/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n\n@import '../template-system/template-system.pcss';\n\n:host {\n @apply atomic-template-system;\n\n .result-root {\n &.display-grid {\n atomic-result-section-actions {\n display: none;\n }\n }\n\n .badge {\n width: 14rem;\n }\n\n .action {\n width: 10rem;\n }\n\n .title {\n display: grid;\n grid-auto-flow: column;\n grid-gap: 0.5rem;\n height: var(--line-height);\n width: 30rem;\n max-width: 100%;\n }\n\n .fields-placeholder {\n display: grid;\n grid-template-columns: repeat(auto-fill, min(11rem, 40%));\n grid-column-gap: 0.5rem;\n\n .field-value-placeholder {\n height: var(--font-size);\n margin: calc((var(--line-height) - var(--font-size)) / 2) 0;\n }\n }\n }\n}\n","import {Component, h, Prop} from '@stencil/core';\nimport {\n ItemDisplayLayout,\n ItemDisplayDensity,\n ItemDisplayImageSize,\n getItemDisplayClasses,\n} from '../../common/layout/display-options';\n\nconst placeholderClasses = 'block bg-neutral w-full h-full rounded';\n\n/**\n * The `atomic-result-placeholder` component provides an intermediate visual state that is rendered before the first results are available.\n * @internal\n */\n@Component({\n tag: 'atomic-result-placeholder',\n styleUrl: 'atomic-result-placeholder.pcss',\n shadow: true,\n})\nexport class AtomicResultPlaceholder {\n @Prop() display!: ItemDisplayLayout;\n @Prop() density!: ItemDisplayDensity;\n @Prop() imageSize!: ItemDisplayImageSize;\n\n private renderExcerptLine(width: string) {\n return (\n <div\n style={{\n height: 'var(--line-height)',\n width,\n }}\n >\n <div\n class={placeholderClasses}\n style={{height: 'var(--font-size)'}}\n ></div>\n </div>\n );\n }\n\n public render() {\n return (\n <div\n class={`result-root placeholder with-sections animate-pulse ${getItemDisplayClasses(\n this.display,\n this.density,\n this.imageSize\n )\n .join(' ')\n .trim()}`}\n >\n <atomic-result-section-visual>\n <div class={placeholderClasses}></div>\n </atomic-result-section-visual>\n <atomic-result-section-badges>\n <div class={`badge ${placeholderClasses}`}></div>\n </atomic-result-section-badges>\n <atomic-result-section-actions>\n <div class={`action ${placeholderClasses}`}></div>\n </atomic-result-section-actions>\n <atomic-result-section-title>\n <div class={`title ${placeholderClasses}`}></div>\n </atomic-result-section-title>\n <atomic-result-section-excerpt>\n {this.renderExcerptLine('100%')}\n {this.renderExcerptLine('95%')}\n {this.renderExcerptLine('98%')}\n </atomic-result-section-excerpt>\n <atomic-result-section-bottom-metadata>\n <div class=\"fields-placeholder\">\n {Array.from({length: 4}, () => (\n <div\n class={`field-value-placeholder ${placeholderClasses}`}\n ></div>\n ))}\n </div>\n </atomic-result-section-bottom-metadata>\n </div>\n );\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section allows the information seeker to perform an action on an item without having to view its details.\n * For example, in Commerce you can add an item to the cart directly or add it to a wish list to view at a later time.\n *\n * Behavior:\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * ** You should ensure that elements inside of it have `height: var(--line-height)`.\n * * Is a wrapping flexbox with a gap.\n * * May appear over, next to, or beneath the visual section.\n */\n@Component({\n tag: 'atomic-result-section-actions',\n shadow: false,\n})\nexport class AtomicResultSectionActions {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section provides badges that highlight special features of the item.\n *\n * Behavior:\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * ** You should ensure that elements inside of it have `height: var(--line-height)`.\n * * Is a wrapping flexbox with a gap.\n * * May appear over, next to, or beneath the visual section.\n */\n@Component({\n tag: 'atomic-result-section-badges',\n shadow: false,\n})\nexport class AtomicResultSectionBadges {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section displays additional descriptive information about the item.\n *\n * Behavior:\n * * Has a maximum height of two lines.\n * ** We recommend that you use `atomic-result-fields-list` to ensure that the fields in this section don’t overflow.\n * * Exposes the `--line-height` variable so child elements can adjust to the current line height.\n * * Has a defined CSS `color` property for text.\n * * Has a font weight.\n */\n@Component({\n tag: 'atomic-result-section-bottom-metadata',\n shadow: false,\n})\nexport class AtomicResultSectionBottomMetadata {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section contains an informative summary of the item's content.\n *\n * Behavior:\n * * Has a fixed height of one to three lines, depending on the layout and density.\n * * Ellipses overflowing text.\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * * Has a defined CSS `color` property for text.\n */\n@Component({\n tag: 'atomic-result-section-excerpt',\n shadow: false,\n})\nexport class AtomicResultSectionExcerpt {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section identifies the item by its name, and its main use is to make the result list scannable.\n * This is usually the page title.\n *\n * Behavior:\n * * Has a fixed height of two lines on grid layouts.\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * * Has a defined CSS `color` property for text.\n */\n@Component({\n tag: 'atomic-result-section-title',\n shadow: false,\n})\nexport class AtomicResultSectionTitle {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component, Prop} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\nimport {ItemDisplayImageSize} from '../../../common/layout/display-options';\n\n/**\n * This section provides visual information about the item.\n * For example, in Commerce, an image is a great shorthand for a product category.\n * An icon can quickly show the item type, or an avatar can help identify to whom it is related.\n *\n * Behavior:\n * * Has a fixed size that depends on the specified image size, the layout, the density, and the screen size.\n * ** When the image size is set to `icon`, this section stays very small.\n * ** You should ensure that elements inside of it take the available space.\n * * Always has a 1:1 aspect ratio.\n */\n@Component({\n tag: 'atomic-result-section-visual',\n shadow: false,\n})\nexport class AtomicResultSectionVisual {\n @Element() private host!: HTMLElement;\n\n /**\n * How large or small the visual section of results using this template should be.\n */\n @Prop({reflect: true}) public imageSize?: ItemDisplayImageSize;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","@import '../../../global/global.pcss';\n@import '../../common/item-list/styles/mixins.pcss';\n\n:host {\n display: grid;\n}\n\n.list-root.display-table {\n @apply atomic-result-table border-neutral rounded-xl border;\n\n thead tr,\n tbody tr:not(:last-child) {\n position: relative;\n\n &::after {\n content: ' ';\n display: block;\n position: absolute;\n height: 1px;\n bottom: 0;\n left: var(--padding);\n right: var(--padding);\n @apply bg-neutral;\n }\n }\n\n th,\n td {\n border-color: transparent;\n border-radius: initial;\n }\n\n th {\n background-color: transparent;\n }\n}\n","import {Component, h, Prop} from '@stencil/core';\nimport {\n ItemDisplayDensity,\n ItemDisplayImageSize,\n getItemDisplayClasses,\n} from '../../common/layout/display-options';\n\nconst placeholderClasses = 'block bg-neutral rounded';\n\n/**\n * The `atomic-result-table-placeholder` component provides an intermediate visual state that is rendered before the first results are available.\n * @internal\n */\n@Component({\n tag: 'atomic-result-table-placeholder',\n styleUrl: 'atomic-result-table-placeholder.pcss',\n shadow: true,\n})\nexport class AtomicResultTablePlaceholder {\n @Prop() density!: ItemDisplayDensity;\n @Prop() imageSize!: ItemDisplayImageSize;\n @Prop() rows!: number;\n\n private getClasses() {\n return getItemDisplayClasses('table', this.density, this.imageSize);\n }\n\n public render() {\n return (\n <table class={`list-root animate-pulse ${this.getClasses().join(' ')}`}>\n <thead>\n <tr>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '14.5rem'}}\n ></div>\n </th>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '9.75rem'}}\n ></div>\n </th>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '6.5rem'}}\n ></div>\n </th>\n </tr>\n </thead>\n <tbody>\n {Array.from({length: this.rows}, () => (\n <tr>\n <td>\n <div\n class={`mb-6 h-8 ${placeholderClasses}`}\n style={{width: '22.875rem'}}\n ></div>\n <div\n class={`mb-2 h-5 ${placeholderClasses}`}\n style={{width: '23.75rem'}}\n ></div>\n <div\n class={`h-5 ${placeholderClasses}`}\n style={{width: '11.5rem'}}\n ></div>\n </td>\n <td>\n <div\n class={`mt-1.5 h-5 ${placeholderClasses}`}\n style={{width: '11rem'}}\n ></div>\n </td>\n <td>\n <div\n class={`mt-1.5 h-5 ${placeholderClasses}`}\n style={{width: '4.875rem'}}\n ></div>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n );\n }\n}\n"],"version":3}
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-757bc886.js');
6
- const itemSectionUtils = require('./item-section-utils-37848715.js');
7
- require('./utils-12b49e87.js');
8
- require('./purify-85b542e2.js');
9
- require('./_commonjsHelpers-b3309d7b.js');
10
-
11
- const AtomicResultSectionChildren = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- }
15
- componentDidRender() {
16
- itemSectionUtils.hideEmptySection(this.host);
17
- }
18
- get host() { return index.getElement(this); }
19
- };
20
-
21
- exports.atomic_result_section_children = AtomicResultSectionChildren;
22
-
23
- //# sourceMappingURL=atomic-result-section-children.cjs.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"atomic-result-section-children.entry.cjs.js","mappings":";;;;;;;;;;MAaa,2BAA2B;;;;IAG/B,kBAAkB;QACvBA,iCAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC7B;;;;;;","names":["hideEmptySection"],"sources":["src/components/search/result-template-components/atomic-result-sections/atomic-result-section-children.tsx"],"sourcesContent":["import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section displays the folded results, available when using the <atomic-result-children> component.\n *\n * Behavior:\n * * Shows children at the bottom of the result, indented and wrapped in a border.\n */\n@Component({\n tag: 'atomic-result-section-children',\n shadow: false,\n})\nexport class AtomicResultSectionChildren {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n"],"version":3}
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-757bc886.js');
6
- const itemSectionUtils = require('./item-section-utils-37848715.js');
7
- require('./utils-12b49e87.js');
8
- require('./purify-85b542e2.js');
9
- require('./_commonjsHelpers-b3309d7b.js');
10
-
11
- const AtomicResultSectionEmphasized = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- }
15
- componentDidRender() {
16
- itemSectionUtils.hideEmptySection(this.host);
17
- }
18
- get host() { return index.getElement(this); }
19
- };
20
-
21
- exports.atomic_result_section_emphasized = AtomicResultSectionEmphasized;
22
-
23
- //# sourceMappingURL=atomic-result-section-emphasized.cjs.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"atomic-result-section-emphasized.entry.cjs.js","mappings":";;;;;;;;;;MAea,6BAA6B;;;;IAGjC,kBAAkB;QACvBA,iCAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC7B;;;;;;","names":["hideEmptySection"],"sources":["src/components/search/result-template-components/atomic-result-sections/atomic-result-section-emphasized.tsx"],"sourcesContent":["import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section displays the field that's important for its search criteria.\n * For example, in Commerce, a product's cost is often more important than the title itself.\n *\n * Behavior:\n * * Has a very large font size.\n * * Is the second closest element beneath the title section.\n */\n@Component({\n tag: 'atomic-result-section-emphasized',\n shadow: false,\n})\nexport class AtomicResultSectionEmphasized {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n"],"version":3}
@@ -1,23 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-757bc886.js');
6
- const itemSectionUtils = require('./item-section-utils-37848715.js');
7
- require('./utils-12b49e87.js');
8
- require('./purify-85b542e2.js');
9
- require('./_commonjsHelpers-b3309d7b.js');
10
-
11
- const AtomicResultSectionTitleMetadata = class {
12
- constructor(hostRef) {
13
- index.registerInstance(this, hostRef);
14
- }
15
- componentDidRender() {
16
- itemSectionUtils.hideEmptySection(this.host);
17
- }
18
- get host() { return index.getElement(this); }
19
- };
20
-
21
- exports.atomic_result_section_title_metadata = AtomicResultSectionTitleMetadata;
22
-
23
- //# sourceMappingURL=atomic-result-section-title-metadata.cjs.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"atomic-result-section-title-metadata.entry.cjs.js","mappings":";;;;;;;;;;MAgBa,gCAAgC;;;;IAGpC,kBAAkB;QACvBA,iCAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC7B;;;;;;","names":["hideEmptySection"],"sources":["src/components/search/result-template-components/atomic-result-sections/atomic-result-section-title-metadata.tsx"],"sourcesContent":["import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section surfaces some fields that are directly related to the title of the item.\n * For example, in Commerce, this could be the item's rating, which is tied to the nature of the product itself,\n * rather than to the product's description.\n *\n * Behavior:\n * * Has a very small font size.\n * * Is the closest element beneath the title section.\n */\n@Component({\n tag: 'atomic-result-section-title-metadata',\n shadow: false,\n})\nexport class AtomicResultSectionTitleMetadata {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n"],"version":3}
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- const utils = require('./utils-12b49e87.js');
4
-
5
- function hideEmptySection(element) {
6
- element.style.display = utils.containsVisualElement(element) ? '' : 'none';
7
- }
8
-
9
- exports.hideEmptySection = hideEmptySection;
10
-
11
- //# sourceMappingURL=item-section-utils-37848715.js.map
@@ -1 +0,0 @@
1
- {"file":"item-section-utils-37848715.js","mappings":";;;;SAEgB,gBAAgB,CAAC,OAAoB;IACnD,OAAO,CAAC,KAAK,CAAC,OAAO,GAAGA,2BAAqB,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC;AACvE;;;;","names":["containsVisualElement"],"sources":["src/utils/item-section-utils.ts"],"sourcesContent":["import {containsVisualElement} from './utils';\n\nexport function hideEmptySection(element: HTMLElement) {\n element.style.display = containsVisualElement(element) ? '' : 'none';\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"atomic-result-placeholder.atomic-result-section-actions.atomic-result-section-badges.atomic-result-section-bottom-metadata.atomic-result-section-excerpt.atomic-result-section-title.atomic-result-section-visual.atomic-result-table-placeholder.entry.js","mappings":";;;;;;;;AAAA,MAAM,0BAA0B,GAAG,ml2WAAml2W,CAAC;AACvn2W,sCAAe,0BAA0B;;ACOzC,MAAMA,oBAAkB,GAAG,wCAAwC,CAAC;MAWvD,uBAAuB;;;;;;;IAK1B,iBAAiB,CAAC,KAAa;QACrC,QACE,WACE,KAAK,EAAE;gBACL,MAAM,EAAE,oBAAoB;gBAC5B,KAAK;aACN,IAED,WACE,KAAK,EAAEA,oBAAkB,EACzB,KAAK,EAAE,EAAC,MAAM,EAAE,kBAAkB,EAAC,GAC9B,CACH,EACN;KACH;IAEM,MAAM;QACX,QACE,4DACE,KAAK,EAAE,uDAAuD,qBAAqB,CACjF,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,SAAS,CACf;iBACE,IAAI,CAAC,GAAG,CAAC;iBACT,IAAI,EAAE,EAAE,IAEX,uFACE,4DAAK,KAAK,EAAEA,oBAAkB,GAAQ,CACT,EAC/B,uFACE,4DAAK,KAAK,EAAE,SAASA,oBAAkB,EAAE,GAAQ,CACpB,EAC/B,wFACE,4DAAK,KAAK,EAAE,UAAUA,oBAAkB,EAAE,GAAQ,CACpB,EAChC,sFACE,4DAAK,KAAK,EAAE,SAASA,oBAAkB,EAAE,GAAQ,CACrB,EAC9B,wFACG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAC9B,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAC7B,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,CACA,EAChC,gGACE,4DAAK,KAAK,EAAC,oBAAoB,IAC5B,KAAK,CAAC,IAAI,CAAC,E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,EACvC,KAAK,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,GACpB,CACJ,EACL,6DACE,4DACE,KAAK,EAAE,YAAY,kBAAkB,EAAE,EACvC,KAAK,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAC,GACnB,CACJ,CACF,CACC,EACR,gEACG,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAC,EAAE,OAC/B,cACE,cACE,WACE,KAAK,EAAE,YAAY,kBAAkB,EAAE,EACvC,KAAK,EAAE,EAAC,KAAK,EAAE,WAAW,EAAC,GACtB,EACP,WACE,KAAK,EAAE,YAAY,kBAAkB,EAAE,EACvC,KAAK,EAAE,EAAC,KAAK,EAAE,UAAU,EAAC,GACrB,EACP,WACE,KAAK,EAAE,OAAO,kBAAkB,EAAE,EAClC,KAAK,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,GACpB,CACJ,EACL,cACE,WACE,KAAK,EAAE,cAAc,kBAAkB,EAAE,EACzC,KAAK,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC,GAClB,CACJ,EACL,cACE,WACE,KAAK,EAAE,cAAc,kBAAkB,EAAE,EACzC,KAAK,EAAE,EAAC,KAAK,EAAE,UAAU,EAAC,GACrB,CACJ,CACF,CACN,CAAC,CACI,CACF,EACR;KACH;;;;;;","names":["placeholderClasses"],"sources":["src/components/common/atomic-result-placeholder/atomic-result-placeholder.pcss?tag=atomic-result-placeholder&encapsulation=shadow","src/components/common/atomic-result-placeholder/atomic-result-placeholder.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-actions.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-badges.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-bottom-metadata.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-excerpt.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-title.tsx","src/components/search/result-template-components/atomic-result-sections/atomic-result-section-visual.tsx","src/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.pcss?tag=atomic-result-table-placeholder&encapsulation=shadow","src/components/search/atomic-result-table-placeholder/atomic-result-table-placeholder.tsx"],"sourcesContent":["@import '../../../global/global.pcss';\n\n@import '../template-system/template-system.pcss';\n\n:host {\n @apply atomic-template-system;\n\n .result-root {\n &.display-grid {\n atomic-result-section-actions {\n display: none;\n }\n }\n\n .badge {\n width: 14rem;\n }\n\n .action {\n width: 10rem;\n }\n\n .title {\n display: grid;\n grid-auto-flow: column;\n grid-gap: 0.5rem;\n height: var(--line-height);\n width: 30rem;\n max-width: 100%;\n }\n\n .fields-placeholder {\n display: grid;\n grid-template-columns: repeat(auto-fill, min(11rem, 40%));\n grid-column-gap: 0.5rem;\n\n .field-value-placeholder {\n height: var(--font-size);\n margin: calc((var(--line-height) - var(--font-size)) / 2) 0;\n }\n }\n }\n}\n","import {Component, h, Prop} from '@stencil/core';\nimport {\n ItemDisplayLayout,\n ItemDisplayDensity,\n ItemDisplayImageSize,\n getItemDisplayClasses,\n} from '../../common/layout/display-options';\n\nconst placeholderClasses = 'block bg-neutral w-full h-full rounded';\n\n/**\n * The `atomic-result-placeholder` component provides an intermediate visual state that is rendered before the first results are available.\n * @internal\n */\n@Component({\n tag: 'atomic-result-placeholder',\n styleUrl: 'atomic-result-placeholder.pcss',\n shadow: true,\n})\nexport class AtomicResultPlaceholder {\n @Prop() display!: ItemDisplayLayout;\n @Prop() density!: ItemDisplayDensity;\n @Prop() imageSize!: ItemDisplayImageSize;\n\n private renderExcerptLine(width: string) {\n return (\n <div\n style={{\n height: 'var(--line-height)',\n width,\n }}\n >\n <div\n class={placeholderClasses}\n style={{height: 'var(--font-size)'}}\n ></div>\n </div>\n );\n }\n\n public render() {\n return (\n <div\n class={`result-root placeholder with-sections animate-pulse ${getItemDisplayClasses(\n this.display,\n this.density,\n this.imageSize\n )\n .join(' ')\n .trim()}`}\n >\n <atomic-result-section-visual>\n <div class={placeholderClasses}></div>\n </atomic-result-section-visual>\n <atomic-result-section-badges>\n <div class={`badge ${placeholderClasses}`}></div>\n </atomic-result-section-badges>\n <atomic-result-section-actions>\n <div class={`action ${placeholderClasses}`}></div>\n </atomic-result-section-actions>\n <atomic-result-section-title>\n <div class={`title ${placeholderClasses}`}></div>\n </atomic-result-section-title>\n <atomic-result-section-excerpt>\n {this.renderExcerptLine('100%')}\n {this.renderExcerptLine('95%')}\n {this.renderExcerptLine('98%')}\n </atomic-result-section-excerpt>\n <atomic-result-section-bottom-metadata>\n <div class=\"fields-placeholder\">\n {Array.from({length: 4}, () => (\n <div\n class={`field-value-placeholder ${placeholderClasses}`}\n ></div>\n ))}\n </div>\n </atomic-result-section-bottom-metadata>\n </div>\n );\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section allows the information seeker to perform an action on an item without having to view its details.\n * For example, in Commerce you can add an item to the cart directly or add it to a wish list to view at a later time.\n *\n * Behavior:\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * ** You should ensure that elements inside of it have `height: var(--line-height)`.\n * * Is a wrapping flexbox with a gap.\n * * May appear over, next to, or beneath the visual section.\n */\n@Component({\n tag: 'atomic-result-section-actions',\n shadow: false,\n})\nexport class AtomicResultSectionActions {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section provides badges that highlight special features of the item.\n *\n * Behavior:\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * ** You should ensure that elements inside of it have `height: var(--line-height)`.\n * * Is a wrapping flexbox with a gap.\n * * May appear over, next to, or beneath the visual section.\n */\n@Component({\n tag: 'atomic-result-section-badges',\n shadow: false,\n})\nexport class AtomicResultSectionBadges {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section displays additional descriptive information about the item.\n *\n * Behavior:\n * * Has a maximum height of two lines.\n * ** We recommend that you use `atomic-result-fields-list` to ensure that the fields in this section don’t overflow.\n * * Exposes the `--line-height` variable so child elements can adjust to the current line height.\n * * Has a defined CSS `color` property for text.\n * * Has a font weight.\n */\n@Component({\n tag: 'atomic-result-section-bottom-metadata',\n shadow: false,\n})\nexport class AtomicResultSectionBottomMetadata {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section contains an informative summary of the item's content.\n *\n * Behavior:\n * * Has a fixed height of one to three lines, depending on the layout and density.\n * * Ellipses overflowing text.\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * * Has a defined CSS `color` property for text.\n */\n@Component({\n tag: 'atomic-result-section-excerpt',\n shadow: false,\n})\nexport class AtomicResultSectionExcerpt {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section identifies the item by its name, and its main use is to make the result list scannable.\n * This is usually the page title.\n *\n * Behavior:\n * * Has a fixed height of two lines on grid layouts.\n * * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.\n * * Has a defined CSS `color` property for text.\n */\n@Component({\n tag: 'atomic-result-section-title',\n shadow: false,\n})\nexport class AtomicResultSectionTitle {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","import {Element, Component, Prop} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\nimport {ItemDisplayImageSize} from '../../../common/layout/display-options';\n\n/**\n * This section provides visual information about the item.\n * For example, in Commerce, an image is a great shorthand for a product category.\n * An icon can quickly show the item type, or an avatar can help identify to whom it is related.\n *\n * Behavior:\n * * Has a fixed size that depends on the specified image size, the layout, the density, and the screen size.\n * ** When the image size is set to `icon`, this section stays very small.\n * ** You should ensure that elements inside of it take the available space.\n * * Always has a 1:1 aspect ratio.\n */\n@Component({\n tag: 'atomic-result-section-visual',\n shadow: false,\n})\nexport class AtomicResultSectionVisual {\n @Element() private host!: HTMLElement;\n\n /**\n * How large or small the visual section of results using this template should be.\n */\n @Prop({reflect: true}) public imageSize?: ItemDisplayImageSize;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n","@import '../../../global/global.pcss';\n@import '../../common/item-list/styles/mixins.pcss';\n\n:host {\n display: grid;\n}\n\n.list-root.display-table {\n @apply atomic-result-table border-neutral rounded-xl border;\n\n thead tr,\n tbody tr:not(:last-child) {\n position: relative;\n\n &::after {\n content: ' ';\n display: block;\n position: absolute;\n height: 1px;\n bottom: 0;\n left: var(--padding);\n right: var(--padding);\n @apply bg-neutral;\n }\n }\n\n th,\n td {\n border-color: transparent;\n border-radius: initial;\n }\n\n th {\n background-color: transparent;\n }\n}\n","import {Component, h, Prop} from '@stencil/core';\nimport {\n ItemDisplayDensity,\n ItemDisplayImageSize,\n getItemDisplayClasses,\n} from '../../common/layout/display-options';\n\nconst placeholderClasses = 'block bg-neutral rounded';\n\n/**\n * The `atomic-result-table-placeholder` component provides an intermediate visual state that is rendered before the first results are available.\n * @internal\n */\n@Component({\n tag: 'atomic-result-table-placeholder',\n styleUrl: 'atomic-result-table-placeholder.pcss',\n shadow: true,\n})\nexport class AtomicResultTablePlaceholder {\n @Prop() density!: ItemDisplayDensity;\n @Prop() imageSize!: ItemDisplayImageSize;\n @Prop() rows!: number;\n\n private getClasses() {\n return getItemDisplayClasses('table', this.density, this.imageSize);\n }\n\n public render() {\n return (\n <table class={`list-root animate-pulse ${this.getClasses().join(' ')}`}>\n <thead>\n <tr>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '14.5rem'}}\n ></div>\n </th>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '9.75rem'}}\n ></div>\n </th>\n <th>\n <div\n class={`mt-2 h-8 ${placeholderClasses}`}\n style={{width: '6.5rem'}}\n ></div>\n </th>\n </tr>\n </thead>\n <tbody>\n {Array.from({length: this.rows}, () => (\n <tr>\n <td>\n <div\n class={`mb-6 h-8 ${placeholderClasses}`}\n style={{width: '22.875rem'}}\n ></div>\n <div\n class={`mb-2 h-5 ${placeholderClasses}`}\n style={{width: '23.75rem'}}\n ></div>\n <div\n class={`h-5 ${placeholderClasses}`}\n style={{width: '11.5rem'}}\n ></div>\n </td>\n <td>\n <div\n class={`mt-1.5 h-5 ${placeholderClasses}`}\n style={{width: '11rem'}}\n ></div>\n </td>\n <td>\n <div\n class={`mt-1.5 h-5 ${placeholderClasses}`}\n style={{width: '4.875rem'}}\n ></div>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n );\n }\n}\n"],"version":3}
@@ -1,19 +0,0 @@
1
- import { r as registerInstance, g as getElement } from './index-3f35faca.js';
2
- import { h as hideEmptySection } from './item-section-utils-d8aa24b7.js';
3
- import './utils-6400ebde.js';
4
- import './purify-c7ebd240.js';
5
- import './_commonjsHelpers-1789f0cf.js';
6
-
7
- const AtomicResultSectionChildren = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- }
11
- componentDidRender() {
12
- hideEmptySection(this.host);
13
- }
14
- get host() { return getElement(this); }
15
- };
16
-
17
- export { AtomicResultSectionChildren as atomic_result_section_children };
18
-
19
- //# sourceMappingURL=atomic-result-section-children.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"atomic-result-section-children.entry.js","mappings":";;;;;;MAaa,2BAA2B;;;;IAG/B,kBAAkB;QACvB,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC7B;;;;;;","names":[],"sources":["src/components/search/result-template-components/atomic-result-sections/atomic-result-section-children.tsx"],"sourcesContent":["import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section displays the folded results, available when using the <atomic-result-children> component.\n *\n * Behavior:\n * * Shows children at the bottom of the result, indented and wrapped in a border.\n */\n@Component({\n tag: 'atomic-result-section-children',\n shadow: false,\n})\nexport class AtomicResultSectionChildren {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n"],"version":3}
@@ -1,19 +0,0 @@
1
- import { r as registerInstance, g as getElement } from './index-3f35faca.js';
2
- import { h as hideEmptySection } from './item-section-utils-d8aa24b7.js';
3
- import './utils-6400ebde.js';
4
- import './purify-c7ebd240.js';
5
- import './_commonjsHelpers-1789f0cf.js';
6
-
7
- const AtomicResultSectionEmphasized = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- }
11
- componentDidRender() {
12
- hideEmptySection(this.host);
13
- }
14
- get host() { return getElement(this); }
15
- };
16
-
17
- export { AtomicResultSectionEmphasized as atomic_result_section_emphasized };
18
-
19
- //# sourceMappingURL=atomic-result-section-emphasized.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"atomic-result-section-emphasized.entry.js","mappings":";;;;;;MAea,6BAA6B;;;;IAGjC,kBAAkB;QACvB,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC7B;;;;;;","names":[],"sources":["src/components/search/result-template-components/atomic-result-sections/atomic-result-section-emphasized.tsx"],"sourcesContent":["import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section displays the field that's important for its search criteria.\n * For example, in Commerce, a product's cost is often more important than the title itself.\n *\n * Behavior:\n * * Has a very large font size.\n * * Is the second closest element beneath the title section.\n */\n@Component({\n tag: 'atomic-result-section-emphasized',\n shadow: false,\n})\nexport class AtomicResultSectionEmphasized {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n"],"version":3}
@@ -1,19 +0,0 @@
1
- import { r as registerInstance, g as getElement } from './index-3f35faca.js';
2
- import { h as hideEmptySection } from './item-section-utils-d8aa24b7.js';
3
- import './utils-6400ebde.js';
4
- import './purify-c7ebd240.js';
5
- import './_commonjsHelpers-1789f0cf.js';
6
-
7
- const AtomicResultSectionTitleMetadata = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- }
11
- componentDidRender() {
12
- hideEmptySection(this.host);
13
- }
14
- get host() { return getElement(this); }
15
- };
16
-
17
- export { AtomicResultSectionTitleMetadata as atomic_result_section_title_metadata };
18
-
19
- //# sourceMappingURL=atomic-result-section-title-metadata.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"atomic-result-section-title-metadata.entry.js","mappings":";;;;;;MAgBa,gCAAgC;;;;IAGpC,kBAAkB;QACvB,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC7B;;;;;;","names":[],"sources":["src/components/search/result-template-components/atomic-result-sections/atomic-result-section-title-metadata.tsx"],"sourcesContent":["import {Element, Component} from '@stencil/core';\nimport {hideEmptySection} from '../../../../utils/item-section-utils';\n\n/**\n * This section surfaces some fields that are directly related to the title of the item.\n * For example, in Commerce, this could be the item's rating, which is tied to the nature of the product itself,\n * rather than to the product's description.\n *\n * Behavior:\n * * Has a very small font size.\n * * Is the closest element beneath the title section.\n */\n@Component({\n tag: 'atomic-result-section-title-metadata',\n shadow: false,\n})\nexport class AtomicResultSectionTitleMetadata {\n @Element() private host!: HTMLElement;\n\n public componentDidRender() {\n hideEmptySection(this.host);\n }\n}\n"],"version":3}
@@ -1,9 +0,0 @@
1
- import { e as containsVisualElement } from './utils-6400ebde.js';
2
-
3
- function hideEmptySection(element) {
4
- element.style.display = containsVisualElement(element) ? '' : 'none';
5
- }
6
-
7
- export { hideEmptySection as h };
8
-
9
- //# sourceMappingURL=item-section-utils-d8aa24b7.js.map
@@ -1 +0,0 @@
1
- {"file":"item-section-utils-d8aa24b7.js","mappings":";;SAEgB,gBAAgB,CAAC,OAAoB;IACnD,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,qBAAqB,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC;AACvE;;;;","names":[],"sources":["src/utils/item-section-utils.ts"],"sourcesContent":["import {containsVisualElement} from './utils';\n\nexport function hideEmptySection(element: HTMLElement) {\n element.style.display = containsVisualElement(element) ? '' : 'none';\n}\n"],"version":3}
@@ -1,10 +0,0 @@
1
- /**
2
- * This section displays the folded results, available when using the <atomic-result-children> component.
3
- *
4
- * Behavior:
5
- * * Shows children at the bottom of the result, indented and wrapped in a border.
6
- */
7
- export declare class AtomicResultSectionChildren {
8
- private host;
9
- componentDidRender(): void;
10
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * This section displays the field that's important for its search criteria.
3
- * For example, in Commerce, a product's cost is often more important than the title itself.
4
- *
5
- * Behavior:
6
- * * Has a very large font size.
7
- * * Is the second closest element beneath the title section.
8
- */
9
- export declare class AtomicResultSectionEmphasized {
10
- private host;
11
- componentDidRender(): void;
12
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * This section surfaces some fields that are directly related to the title of the item.
3
- * For example, in Commerce, this could be the item's rating, which is tied to the nature of the product itself,
4
- * rather than to the product's description.
5
- *
6
- * Behavior:
7
- * * Has a very small font size.
8
- * * Is the closest element beneath the title section.
9
- */
10
- export declare class AtomicResultSectionTitleMetadata {
11
- private host;
12
- componentDidRender(): void;
13
- }
@@ -1,20 +0,0 @@
1
- import { ItemDisplayImageSize } from '../../../common/layout/display-options';
2
- /**
3
- * This section provides visual information about the item.
4
- * For example, in Commerce, an image is a great shorthand for a product category.
5
- * An icon can quickly show the item type, or an avatar can help identify to whom it is related.
6
- *
7
- * Behavior:
8
- * * Has a fixed size that depends on the specified image size, the layout, the density, and the screen size.
9
- * ** When the image size is set to `icon`, this section stays very small.
10
- * ** You should ensure that elements inside of it take the available space.
11
- * * Always has a 1:1 aspect ratio.
12
- */
13
- export declare class AtomicResultSectionVisual {
14
- private host;
15
- /**
16
- * How large or small the visual section of results using this template should be.
17
- */
18
- imageSize?: ItemDisplayImageSize;
19
- componentDidRender(): void;
20
- }
@@ -1,3 +0,0 @@
1
- declare module 'https://platform.cloud.coveo.com/api-docs/*' {
2
- export default any;
3
- }