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

doofinder

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doofinder - npm Package Compare versions

Comparing version 5.3.14 to 5.3.15

2

bower.json
{
"name": "doofinder",
"description": "Javascript Library for Doofinder Search API",
"version": "5.3.14",
"version": "5.3.15",
"main": "dist/doofinder.js",

@@ -6,0 +6,0 @@ "authors": [

@@ -7,2 +7,6 @@ # Changelog

## [5.3.15] - 2018-09-27
### Fixed
- Don't escape `nextLabel` and `previousLabel` in `PagerWidget` templates so they can be passed to the `translate` helper.
## [5.3.14] - 2018-08-28

@@ -9,0 +13,0 @@ ### Added

@@ -147,2 +147,19 @@ ---

## doofinder.widgets.Pager
`Widget < Display < Pager`
This class render a paginator: i.e. a collection pagination links ( `previous, 1, 2, 3, ... 15 next` and so on) .
Each time the user clicks on one of these pagination links, a search request for that particular page is made. Hopefully, there's also some results display widget somewhere on the page that will display those results :-).
### Pager Display: Extra options for the constructor
| Option | Required | Type | Values | Default | Description |
| :--- | :---: | :---: | :---: | :---: | :--- |
| `delta` | No | `Number` || `2` | Number of page links to show before and after the current page number. |
| `previousLabel` | No | `String` || `Previous` | Label to use for the "previous" link. |
| `nextLabel` | No | `String` || `Next` | Label to use for the "next" link. |
## doofinder.widgets.TermsFacet

@@ -149,0 +166,0 @@

@@ -27,2 +27,4 @@ ## Table Of Contents

- [Instantiating the class](display#scrolldisplay-instantating-the-class)
- [Pager widget](display#doofinderwidgetspager)
- [Extra options](display#pagerdisplayextraoptionsfortheconstructor)
- [Terms Facet class](display#doofinderwidgetstermsfacet)

@@ -29,0 +31,0 @@ - [Instantiating the class](display#termsfacet-instantiating-the-class)

@@ -166,28 +166,1 @@ ---

### dofinder.widgets.ScrollDisplay
`Widget < Display < ScrollDisplay`
You can use this class to render subsequent responses for the same search one after another by appending HTML instead of replacing it. HTML is replaced for the first page of a search only.
When the user performs scrolling and reaches the end of the results, a new search page is automatically requested.
**IMPORTANT:** Scrolling content inside a `<div>` (or similar node) requires width / height being restricted so the content overflows the container instead of the latter adapts to its content. Also, setting `overflow-x` and `overflow-y` properties in CSS will enforce these rules.
### doofinder.widgets.Pager
`Widget < Display < Pager`
This class render a paginator: i.e. a collection pagination links ( `previous, 1, 2, 3, ... 15 next` and so on) .
Each time the user clicks on one of these pagination links, a search request for that particular page is made. Hopefully, there's also some results display widget somewhere on the page that will display those results :-).
#### Extra options for the constructor
| Option | Required | Type | Values | Default | Description |
| :--- | :---: | :---: | :---: | :---: | :--- |
| `delta` | No | `Number` || `2` | Number of page links to show before and after the current page number. |
| `previousLabel` | No | `String` || `Previous` | Label to use for the "previous" link. |
| `nextLabel` | No | `String` || `Next` | Label to use for the "next" link. |
(function() {
module.exports = {
version: "5.3.14",
version: "5.3.15",
Client: require("./client"),

@@ -5,0 +5,0 @@ Controller: require("./controller"),

@@ -15,3 +15,3 @@ (function() {

Pager.defaultTemplate = "{{#pager}}\n <ul class=\"df-pagination\">\n <li class=\"df-page{{^previous}} df-page--disabled{{/previous}}\">\n {{#previous}}\n <a href=\"#page-{{.}}\" data-page=\"{{.}}\">\n {{#translate}}{{previousLabel}}{{/translate}}\n </a>\n {{/previous}}\n {{^previous}}\n <span>\n {{#translate}}{{previousLabel}}{{/translate}}\n </span>\n {{/previous}}\n </li>\n {{#first}}\n <li class=\"df-page\">\n <a href=\"#page-{{.}}\" data-page=\"{{.}}\">{{.}}</a>\n </li>\n <li class=\"df-page df-page--disabled\">\n <span>…</span>\n </li>\n {{/first}}\n {{#pages}}\n <li class=\"df-page{{#current}} df-page--disabled{{/current}}\">\n {{#current}}\n <span data-page=\"{{page}}\">{{page}}</span>\n {{/current}}\n {{^current}}\n <a href=\"#page-{{page}}\" data-page=\"{{page}}\">{{page}}</a>\n {{/current}}\n </li>\n {{/pages}}\n {{#last}}\n <li class=\"df-page df-page--disabled\">\n <span>…</span>\n </li>\n <li class=\"df-page\">\n <a href=\"#page-{{.}}\" data-page=\"{{.}}\">{{.}}</a>\n </li>\n {{/last}}\n <li class=\"df-page{{^next}} df-page--disabled{{/next}}\">\n {{#next}}\n <a href=\"#page-{{.}}\" data-page=\"{{.}}\">\n {{#translate}}{{nextLabel}}{{/translate}}\n </a>\n {{/next}}\n {{^next}}\n <span>\n {{#translate}}{{nextLabel}}{{/translate}}\n </span>\n {{/next}}\n </li>\n </ul>\n{{/pager}}";
Pager.defaultTemplate = "{{#pager}}\n <ul class=\"df-pagination\">\n <li class=\"df-page{{^previous}} df-page--disabled{{/previous}}\">\n {{#previous}}\n <a href=\"#page-{{.}}\" data-page=\"{{.}}\">\n {{#translate}}{{{previousLabel}}}{{/translate}}\n </a>\n {{/previous}}\n {{^previous}}\n <span>\n {{#translate}}{{{previousLabel}}}{{/translate}}\n </span>\n {{/previous}}\n </li>\n {{#first}}\n <li class=\"df-page\">\n <a href=\"#page-{{.}}\" data-page=\"{{.}}\">{{.}}</a>\n </li>\n <li class=\"df-page df-page--disabled\">\n <span>…</span>\n </li>\n {{/first}}\n {{#pages}}\n <li class=\"df-page{{#current}} df-page--disabled{{/current}}\">\n {{#current}}\n <span data-page=\"{{page}}\">{{page}}</span>\n {{/current}}\n {{^current}}\n <a href=\"#page-{{page}}\" data-page=\"{{page}}\">{{page}}</a>\n {{/current}}\n </li>\n {{/pages}}\n {{#last}}\n <li class=\"df-page df-page--disabled\">\n <span>…</span>\n </li>\n <li class=\"df-page\">\n <a href=\"#page-{{.}}\" data-page=\"{{.}}\">{{.}}</a>\n </li>\n {{/last}}\n <li class=\"df-page{{^next}} df-page--disabled{{/next}}\">\n {{#next}}\n <a href=\"#page-{{.}}\" data-page=\"{{.}}\">\n {{#translate}}{{{nextLabel}}}{{/translate}}\n </a>\n {{/next}}\n {{^next}}\n <span>\n {{#translate}}{{{nextLabel}}}{{/translate}}\n </span>\n {{/next}}\n </li>\n </ul>\n{{/pager}}";

@@ -18,0 +18,0 @@ function Pager(element, options) {

{
"name": "doofinder",
"version": "5.3.14",
"version": "5.3.15",
"description": "Javascript Library for Doofinder Search API",

@@ -5,0 +5,0 @@ "main": "lib/doofinder.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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