Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@algolia/recommend-vdom

Package Overview
Dependencies
Maintainers
65
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algolia/recommend-vdom - npm Package Compare versions

Comparing version 1.0.0-experimental.4 to 1.0.0-experimental.5

4

dist/esm/FrequentlyBoughtTogether.d.ts
/// <reference types="react" />
/** @jsx createElement */
import { GetFrequentlyBoughtTogetherProps } from '@algolia/recommend-core';
import { RecommendComponentProps, Renderer } from './types';
export declare type FrequentlyBoughtTogetherProps<TObject> = GetFrequentlyBoughtTogetherProps<TObject> & RecommendComponentProps<TObject>;
export declare type FrequentlyBoughtTogetherProps<TObject> = RecommendComponentProps<TObject>;
export declare function createFrequentlyBoughtTogetherComponent({ createElement, Fragment, }: Renderer): <TObject>(props: FrequentlyBoughtTogetherProps<TObject>) => JSX.Element;
/// <reference types="react" />
/** @jsx createElement */
import { GetRelatedProductsProps } from '@algolia/recommend-core';
import { RecommendComponentProps, Renderer } from './types';
export declare type RelatedProductsProps<TObject> = GetRelatedProductsProps<TObject> & RecommendComponentProps<TObject>;
export declare type RelatedProductsProps<TObject> = RecommendComponentProps<TObject>;
export declare function createRelatedProductsComponent({ createElement, Fragment, }: Renderer): <TObject>(props: RelatedProductsProps<TObject>) => JSX.Element;

@@ -1,3 +0,3 @@

/*! @algolia/recommend-vdom 1.0.0-experimental.4 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/ui-components */
/*! @algolia/recommend-vdom 1.0.0-experimental.5 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/ui-components */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/recommend-vdom"]={})}(this,(function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function o(e){var t=e.createElement;return function(e){return 0===e.recommendations.length?t(e.Fallback,null):t("section",{className:r("auc-Recommend",e.classNames.root)},t(e.Header,{classNames:e.classNames,recommendations:e.recommendations,translations:e.translations}),t(e.View,null))}}function a(e){var t=e.createElement;return function(e){return e.translations.title?t("h3",{className:r("auc-Recommend-title",e.classNames.title)},e.translations.title):null}}function l(e){var t=e.createElement;return function(e){return t("div",{className:r("auc-Recommend-container",e.classNames.container)},t("ol",{className:r("auc-Recommend-list",e.classNames.list)},e.items.map((function(n){return t("li",{key:n.objectID,className:r("auc-Recommend-item",e.classNames.item)},t(e.itemComponent,{item:n}))}))))}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.createFrequentlyBoughtTogetherComponent=function(e){var r=e.createElement,i=e.Fragment;return function(e){var s,u,m,f,p,d=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({title:"Frequently bought together",sliderLabel:"Frequently bought together products"},e.translations),b=null!==(s=e.classNames)&&void 0!==s?s:{},O=null!==(u=e.children)&&void 0!==u?u:o({createElement:r,Fragment:i}),g=null!==(m=e.fallbackComponent)&&void 0!==m?m:function(){return null},y=null!==(f=e.headerComponent)&&void 0!==f?f:a({createElement:r,Fragment:i}),v=null!==(p=e.view)&&void 0!==p?p:l({createElement:r,Fragment:i});return O({classNames:b,Fallback:g,Header:y,recommendations:e.items,translations:d,View:function(n){return r(v,t({classNames:b,itemComponent:e.itemComponent,items:e.items,translations:d},n))}})}},e.createRelatedProductsComponent=function(e){var r=e.createElement,c=e.Fragment;return function(e){var s,u,m,f,p,d=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({title:"Related products",sliderLabel:"Related products"},e.translations),b=null!==(s=e.classNames)&&void 0!==s?s:{},O=null!==(u=e.children)&&void 0!==u?u:o({createElement:r,Fragment:c}),g=null!==(m=e.fallbackComponent)&&void 0!==m?m:function(){return null},y=null!==(f=e.headerComponent)&&void 0!==f?f:a({createElement:r,Fragment:c}),v=null!==(p=e.view)&&void 0!==p?p:l({createElement:r,Fragment:c});return O({classNames:b,Fallback:g,Header:y,recommendations:e.items,translations:d,View:function(n){return r(v,t({classNames:b,itemComponent:e.itemComponent,items:e.items,translations:d},n))}})}},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=index.js.map
{
"name": "@algolia/recommend-vdom",
"version": "1.0.0-experimental.4",
"version": "1.0.0-experimental.5",
"license": "MIT",

@@ -31,4 +31,4 @@ "homepage": "https://github.com/algolia/ui-components",

"devDependencies": {
"@algolia/recommend-core": "1.0.0-experimental.4"
"@algolia/recommend-core": "1.0.0-experimental.5"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc