Releases: Patternslib/Patterns
Release 6.0.0
6.0.0 (2021-11-17)
Bug Fixes
- build: Do not recommend the next version bump. (b875a08)
Add option to not automatically detect the next recommended version bump.
Ref: release-it/release-it#833
Ref: release-it/conventional-changelog#37
Breaking Changes
- build: Upgrade Webpack to v5. (39762db)
If you extend this webpack configuration and run into problems see the
Webpack upgrade guide: https://webpack.js.org/migrate/5/
Maintenance
-
build: Add
babel_include
option to Webpack config factory. (d97ded0)
Allow to configure exclusions from babel-loader exclude string via the
babel_include
config option.
The default is to not exclude anything innode_modules/@patternslib
and allpat-*
packaes.
Anything else innode_modules
is excluded from babel processing. -
build: Add CORS header 'Access-Control-Allow-Origin' to allow including the JS from a different URL in test sites. (3c51dd2)
-
build: Add release to Github. (4636a9d)
-
build: Allow multiple bundles expose jQuery. Needed for module federation where multiple Webpack entry points are loaded. (59a9991)
-
build: Deactivate duplicates plugin due to non-resolvable error. (867e08f)
-
build: Ignore node_modules and docs folder when watching for better performance. (7b8a1e0)
-
build: Let screenful be processed by babel-loader. This is necessary since screenful 6.0.0. (ff95ec6)
-
build: Load svg as resource and not inline. (298be11)
-
build: Remove clean-webpack-plugin. Use built-in option to clean the output directory before compiling instead. (604a8ed)
-
build: Remove ProvidePlugin. Modules depending on jQuery need to explicitly import it. (f43c8af)
-
build: Use new inspectpack instead duplicate-package-checker-webpack-plugin. (cf57b67)
-
dependencies: Upgrade fullcalendar to 5.10.1. (9cefa48)
-
dependencies: Upgrade moment-timezone to 0.5.34. (a7d8d3c)
-
dependencies: Upgrade screenfull to 6.0.0. (491d92e)
-
dependencies: Upgrade tippy.js to 6.3.7. (0dd51e0)
4.0.0-dev.0
- yarn install (f91a7c2)
- Infrastructure: Prepare release using release-it. (23c842b)
- Merge pull request #827 from Patternslib/scr-984 (548394b)
- pat gallery: Import styles for photoswipe. (ab1af51)
- pat carousel: Import styles for slick carousel. (a1fea7d)
- pat auto suggest: Import styles for select2. (cb653bf)
- pat-tooltip: Import styles for tippy. (901f09f)
- pat-modal: Import styles. (2fe998e)
- pat datetime picker: Import styles. (d908a67)
- pat date picker: Import styles for pikaday. (dc13741)
- Styles: Import styles by setting __patternslib_import_styles (6d8282c)
- yarn install/upgrade (d3a8040)
- Infrastructure: Upgrade jQuery to 3.6.0. (07c4e69)
- Webpack: Backport changes from Mockup - add loaders for images, svg, sass and xml. (e3ffc9f)
- Webpack: Automatically detect the chunk path or "webpack_public_path" while still allowing for overriding via "patternslib_public_path". (d4ea4e2)
- Cleanup: Make dynamic imports from default exports one-liners. (4cd4e27)
- Export all parsers in all patterns to be able to modify default values or add aliases. (2c500e8)
- pat datetime picker: Fixes and Cleanup. (9e28bc7)
- pat carousel: Use imagesloaded instead of timeout to wait for images to have been loaded. (30d879a)
- pat carousel: Minor modernization. (ff45ce8)
- pat selectbox: Minor optimization. (26a4a90)
- pat-modal: Modernize code (a6b8a7a)
- pat autosuggest: Remove ie<11 compatibility css. (6110184)
- Merge pull request #826 from Patternslib/core-fixes (e2fb089)
- pat clone: Document pattern initialization within templates and add test. (dfc9411)
- pat clone: Code modernization. (8688946)
- core registry: Do not scan patterns within trees with attribute
hidden
or classcant-touch-this
. (e6308e8) - core registry: Slight optimization in scan + tests. (93a84c7)
- core polyfills: Add polyfill for Node.closest method. (9d8aa24)
- core dom: Fix usage of optional chaining operator. (b6caa4f)
- core base test: Remove trigger where it's not used - trigger is a selector and some selectors were invalid thus unused. (1859f28)
- core dom is_visible: Mock in tests to check only for hidden to avoid unavailable offsetWidth/offsetHeight in Jest. (b9feb15)
- core dom: Add get_parents to return all parent elements from a given DOM node. (6160980)
- core base constructor: Await for initalization. (7c85ee5)
- pat calendar: Explicitly import JavaScript language files to avoid missing Webpack TypeScript loader errors. (af8e62f)
- pat validation: Add email validation to demo. (384ef56)
- Merge pull request #817 from Patternslib/support-more-prefixes (1b41fd7)
- Don't rebase for some additional known prefixes to avoid that the links break when contained in an injected page snippet. This can certainly be made more generic, but for now, it hurts only for the tel links and is a good enough fix for me (702b859)
- Remove fullcalendar from styles - its included via patterns-sass or webpack. (1c0e402)
- Merge pull request #816 from Patternslib/dependabot/npm_and_yarn/elliptic-6.5.4 (ea8bba9)
- Bump elliptic from 6.5.3 to 6.5.4 (4fd24bf)
- Merge pull request #814 from Patternslib/thet-calfilterfix (ba6b1ac)
- Revert "Do not apply filter, if filter is empty.", as this leads to unexpected UX. (e83cdaf)
- Update and simplify minimalpattern (77222dc)
- Merge pull request #813 from Patternslib/thet-bubbleevents (b8a2828)
- Dispatch DOM events with bubbling, canceling (c08e757)
- Merge pull request #812 from Patternslib/thet-fix-esling (3e1e9f8)
- pat inject: Fix eslint errors. (e2865b5)
- Merge pull request #811 from Patternslib/inject-config-context (387d5cf)
- pat inject: Fix target-self context for nested pat-inject (f2343cb)
- Update documentation.md (0bd93c9)
- Merge branch 'master' of https://github.com/Patternslib/Patterns (1252d9b)
- Update documentation.md (c223388)
- pat calendar: Support on events with a URL via set to some CSS class names. (6780440)
- Merge pull request #810 from Patternslib/calendar-tooltip (2ddd459)
- pat-calendar: URL support for event JSON model. (d94bd94)
- pat calendar: Support on events with a URL via set to . (493e1be)
- Demos: Add and extend list of patterns. (5bd0ccb)
- pat calendar: Update demo (a2d3ac9)
- Brushed up demo page (9e60f24)
- Merge pull request #809 from Patternslib/fix-formaction-self (35eda23)
- pat inject: Fix formaction button injections with target self. (b875946)
- Merge pull request #806 from Patternslib/thet-cal-injectonlyifurl (7241dec)
- pat-calendar: pat-inject is only set event has a url. (23198b4)
- Add autocomplete=off to in pat-select. Firefox otherwise prefills with previous form data, even if the selected attribute is used in . See: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete (8613b70) pat-calendar: Do not apply filter, if filter is empty. (2acb2c7) Merge pull request #798 from Patternslib/scr-844 (dff47be) pat calendar: Support for rendered events via some configuration options. (005f774) pat-calendar: Do not include properties not existent in the event source. Avoids problem of setting a href attribute of undefined in the calendar. (dc07b43) pat-calendar: Deactivate some more event-add related code paths if not needed. (eb30880) Merge pull request #797 from Patternslib/pat-scroll-click (0badd14) pat-scroll: Do handle click events also when trigger is set to . (48bcf26) Merge pull request #796 from Patternslib/scr-840 (fd68f4e) pat-scroll: selector:bottom (e9d251f) pat-scroll: Modernize code (af2a1e7) No need to deregister the event handler with the logic. (3ad3218) Merge pull request #795 from Patternslib/scr-841 (f6dc2e0) pat forward: Add delay parameter and self for selector. (d520252) pat forward: modernize and simplify code (f3cfef5) Merge pull request #794 from Patternslib/scr-838 (8370636) pat tooltop: Change show/hide classes to less generic names. (c96e0da) pat inject: Rebase URLs in pattern configuration attributes /3 (f95d2f1) pat-inject - Better Error Reporting on inject (4b398c7) Build infrastructure: Use npx as runner for binaries. (2ec4837) Cleanup: Configure TAB for Makefile. (f0120dc) Merge pull request #790 from Patternslib/thet-parser (971199e) pat collapsible demo: Fix url. (4ae77ec) pat date-picker demo: Fix url. (772ed39) pat calendar demo: Fix url. (4708830) pat datetime-picker: Add the parser to the pattern attributes. (3a9d5e0) pat date-picker: Add the parser to the pattern attributes. (a2d6f99) pat collapsible: Add the parser to the pattern attributes. (766ba67) pat calendar: Add the parser to the pattern attributes. (1cff029) pat inject: Rebase URLs in pattern configuration attributes /2 (a2b5f88) core base: Add the parser instance to pattern attributes if available. (9c8ef3b) pat inject: Rebase URLs in pattern configuration attributes. This avoids URLs in pattern configuration to point to unreachable paths in the context where the result is injected into. (e3036e9) pat slides: Avoid jQuery extended CSS selector syntax. (0a3fd54) pat autofocus: Avoid jQuery extended CSS selector syntax. (6de0d64) Fix tests: Add missing import for jquery-ext where it's needed. (06c1728) core utils: Add jqToNode to return a DOM node if a jQuery node was passed. (d97881a) code dom: Make find_parents more robust against DocumentFragments without a parent. (b2ecbec) core registry scan: Clean up selectors before querying. (ce904bf) core registry: Modernize code - Remove underscore and jquery-ext, use more regular js (b50415b) core registry: modernize code (ee09d31) core base: modernize code (336f16d) core mockup-parser: modernize code (2a0e515) core parser: Remove usage of underscore. (dfbb547) core parser: modernize code - class based syntax (a54e8ad) core parser: modernize code - let/const instead of var (3c08438) core parser: modernize code - use arrow functions (91264e4) core parser: modernize code - simpler function definitions (cdb9292) pat-inject: Bugfix: refer to currentTarget which is the element the event handler is attached to. (05d0be5) Merge pull request #788 from Patternslib/scr-732 (eb1f925) pat inject: Allow configurable error pages. Can be disabled by adding pat-inject-errorhandler.off to the URL's query string. (46dee87) pat inject: Allow configurable error pages. Fixes: https://github.com//issues/735 (b4cc0c3) pat-inject: Change log messages to log.debug (8371183) pat-inject: Reuse function and remove code duplication. (ae3295d) pat-inject: Fix this context. See: https://gist.github.com/thet/07145dfbfec9bf6c1213b7fc9f963450 (9e3ae07) pat-inject: refactor to refer to this instance instead of object. (9a551f3) pat-inject: Modernize - use const and let (bcec73b) pat-inject: Modernize - avoid modified this (5f1f4ac) pat-inject: Modernize - functions (0ad4522) core utils debounce: Remove unnecessary var (8f501fd) core dom: Add create_from_string to create a DOM Element from a string. (92fb400) pat-checklist demo: fix html structure (84cfeba) Update patterns (cc9249c) pat calendar demo: fix categories filter (1bb65a0) pat-calendar: okay. temporary last minute fixes to make the demo work on patternslib site (d74d7fc) English as default language for the demo (270dcd5) Path fix (e7c4517) Restore @thet's corrections (d524f06) Merge branch 'master' of https://github.com/Patternslib/Patterns (64e03f8) Calendar demo (b9f52d3) pat-calendar demo: Use absolute URL for temporary patternslib demo website fix. (e740079) Fix bug with image width (93087f4) Update patterns (5e81858) Update patterns (d97ab05) Update patterns (9e00dbc) Update patterns (ece6b32) Update index.html (a0cd9e5) Fix path (379a832) Brushing up demo (8fa4bca) Brushed up demo (5f3609a) ...
2.1.2 - Aug 29, 2017
- pat-modal: Followup fix for the issue where chrome is so quick that a modal is closed before the actual injection call can be sent. Now modals can be closed again. (pilz)
2.1.1 - Aug 28, 2017
- pat-modal: Only add a panel-header to the first panel-content element within pat-modal, not everyone. Otherwise this may collide with pat-collapsible which also creates a panel-content class further down the DOM (pilz)
- pat-modal: Fix an issue where chrome is so quick that a modal is closed before the actual injection call can be sent.
2.1.0 - Jun 26, 2017
- pat-gallery: Also include the node with the
pat-gallery
class trigger for initializing the gallery.
Nowpat-gallery
can be used on anchor tags wrapping images directly, making it possible to let images be opened individually in in the overlay without adding them to a gallery with navigation controls to the next image. - fix input-change-events for
- pat-autosubmit: allow nested autosubmitting subforms with different delays.
- pat-masonry: Initialize masonry just before layouting gets startet, which is after first image has been loaded or at loading has finished. This avoids overlapping images while they are still being loaded.
- pat-masonry: fix layout of nested .pat-masonry elements
- pat-gallery: UX improvements - do not close on scroll or pinch.
- pat-gallery: UX improvements - remove scrollbars when gallery is opened.
- pat-gallery: add option
item-selector
for gallery items, which are added to the gallery.
Defaults toa
.
Fixes situations, when gallery items and normal links are mixed within the same container and normal links would open within the gallery lightbox. - Update to jQuery 1.11.3.
- While images are loading, already do masonry layouting.
- Remove the
clear-imagesloaded-cache
trigger, as cache functionality was removed from imagesloaded from version 3.2.0.
See: desandro/imagesloaded#103 (comment) - Change
imagesloaded
from usage of jQuery plugin to vanilla JavaScript to avoid timing errors, where theimagesloaded
plugin wasn't available. - Update
masonry
andimagesloaded
plugins. - Fix
pat-gallery
to work withrequirejs-text
insteadrequirejs-tpl-jcbrand
.
Fixes an obscure "window undefined" error.
Backwards incompatible change: Thephotoswipe-template
RequireJS configuration variable is removed and a thepat-gallery-url
variable is defined instead. - always recalculate masonry also at the very end, even if there are no images to be loaded
- Fix a bug in pat-scroll that would only properly leave nav items alone if their urls end in a slash
- An href can also contain a url left of the hashmark. pat-scroll should only care for the part right of the hashmark
- Issue a delayed redraw of the calendar to prevent rendering race conditions
- make list of calendar categories unique to speed up js processing on sites with many calendars.
2.0.14 - Aug 15, 2016
- A fix for pat-scroll to scroll up to current scroll container instead of body.
- A fix for pat-scroll to await loading of all images before determining the amount to scroll up.
- A fix for IE10/11 where the modal wouldn`t close anymore due to activeElement being undefined
- Allow to configure different data-pat-inject per formaction, so that different targets can be configured per formaction
2.0.13 - Apr. 27, 2016
- New property for sortable pattern,
drag-class
, the CSS class to apply to item being dragged. Is"dragged"
by default. - New property for sortable pattern,
drop
, a Javascript callback function to be called when an item is dropped. - Form with pat-autosubmit doesn't get notified when injected inputs change.
- Inject pattern with
autoload-visible
injected erroneously based upon old autoload element no longer in DOM. - Add the class
modal-active
to thebody
element whenever a modal is in the DOM. - New pattern:
pat-tabs
. See the relevant documentation. - Bugfix:
pat-validation
still validates removed clones frompat-clone
. - Let the next-href option of pat-inject work as advertised.
- Parser fix: don't treat
&
as a separator - #436 Remove
pat-bumper
restriction that scroll container must be the direct parent. - pat-masonry fix: the
containerStyle
value must be an object.
2.0.12 - Oct. 9, 2015
- New property for the inject pattern:
loading-class
.
Specifies a class to appear on the injection target while the injected content is still loading.
Previously this was hardcoded toinjecting
, this is still set to the default value. - New properties for the inject pattern:
confirm
andconfirm-message
.
Allows you to specify whether a confirmation message should be shown before
injecting, as well as the text of that message. - New property for tooltip pattern:
mark-inactive
.
A boolean value, used to specify whether the class 'inactive' should be added
to the tooltip trigger. Previously this behavior was hardcoded, now it's
optional with a default oftrue
. - Fix: tooltips with
closing
set tosticky
orauto
couldn't be closed on mobile. - Parser fix. Remove duplicate configurations.
- Bugfix: TypeError: Cannot read property 'msie' of undefined.
2.0.11 - September 30, 2015
- Bugfix. Specifying combined pattern properties (with &&) not working on IE10.
- Add an alternative parser, from the Mockup project.
- Updated documentation.
- Clone pattern has a new argument: remove-behaviour
2.0.10 - Sept. 18, 2015
- Add new argument "hooks" to pat-inject.
- Add new parser method addAlias for adding aliases of parser arguments.
- Add the addJSONArgument method to the argument parser, which provides support for JSON as argument values.
- Added Sass files for all patterns.
- Bugfix in pat-masonry. Wait until images are loaded.
- Bugfixes and improvements to pat-clone.
- Fixed a bug where the page reloads when the image viewer from pat-gallery is closed.
- In pat-autosuggest, new option allow-new-words, for explicitly allowing or denying custom tags.
- Make pat-bumper also bump against the bottom edge.
- New layout. All files relevant to individual patterns (except for tests) are now in ./src/pat
- pat-gallery now uses Photoswipe 4.1.0 and is based on pat-base.
- New pattern pat-validation which replaces pat-validate.