UNPKG

@warp-works/warpjs-utils

Version:

Utility functions for WarpJS and plugins

608 lines (315 loc) 11.2 kB
# WarpJS-utils Releases ## 2.0.3 - 2021-06-21 - Merging into master branch and latest tag. ## 2.0.1 - 2021-06-21 - Back to tinymce@4 due to breaking changes. ## 2.0.0 - 2021-06-18 - Updated packages and node@14. ## 1.2.129 - 2019-11-22 - Adding more primary Bootstrap overwrite. ## 1.2.127 - 2019-11-21 - Passing down `<ActionIcon className>`. ## 1.2.126 - 2019-11-21 - Adding DropdownButton, SplitButton, and MenuItem from react-bootstrap. ## 1.2.125 - 2019-11-18 - WarpWorks/warpjs#364: Preload checkbox-off and checkbox-on. - Changed to new SVG and set bg-size to exact container size. ## 1.2.124 - 2019-11-17 - Adding new checkbox-off and checkbox-on SVG to fix size difference. ## 1.2.123 - 2019-11-14 - Adding `RoundedCheckbox` component. ## 1.2.122 - 2019-11-14 - WarpWorks/warpjs#359: Matching color of the corner banner. ## 1.2.121 - 2019-11-14 - WarpWorks/warpjs#359: Defining btn-primary. ## 1.2.120 - 2019-11-09 - Adding canonical link. ## 1.2.119 - 2019-11-07 - Adding `inverse` and `outline` to [`<Button>`](client/react-utils/components/shapes.js). ## 1.2.118 - 2019-11-07 - Allow to pass `className` to [`<Button>`](client/react-utils/components/button.jsx). ## 1.2.117 - 2019-11-07 - Adding `getNamespaceSubstate()` and `setNamespaceAttribute()`. ## 1.2.116 - 2019-10-30 - Making react and Cie be dependencies instead of devDependencies. ## 1.2.115 - 2019-10-30 - Adding used react-bootstrap and react-redux on window.WarpJS.ReactUtils. ## 1.2.114 - 2019-10-29 - Converted to use wrapHookContainer. ## 1.2.113 - 2019-10-28 - Bumping handlebars@4.4.5 because of vulnerability. ## 1.2.112 - 2019-10-28 - Bumping jquery@3.4.1 and bootstrap@3.4.1 because of vulnerability. ## 1.2.111 - 2019-10-24 - Adding wrapper for Container with react hooks. ## 1.2.110 - 2019-10-23 - Adding indicator for modal isDirty. ## 1.2.109 - 2019-10-18 - Minor CSS to add margin-top to forms in modal. ## 1.2.108 - 2019-10-07 - Adding `style` to `<ActionIcon>`. ## 1.2.107 - 2019-10-03 - Adding `<ActionIcon>` and `<Tooltip>`. ## 1.2.106 - 2019-09-30 - Adding Tooltip to `<Button title=>`. ## 1.2.105 - 2019-09-25 - Fixing button radius for footer buttons in modal. ## 1.2.104 - 2019-09-23 - Allow modal to have SplitButtons. ## 1.2.103 - 2019-09-20 - Adding base-namespace-reducer. ## 1.2.102 - 2019-09-10 - Added common CSS to edition. ## 1.2.101 - 2019-08-14 - Refactored `byStatusThenVersion()` from `warpjs` to here. ## 1.2.100 - 2019-08-13 - Adding base-attribute-reducer and button disabled. ## 1.2.99 - 2019-07-22 - WarpWorks/warpjs#245: Fixing login with SSO. ## 1.2.98 - 2019-07-17 - WarpWorks/warpjs#264: Current page header item in bold and not clickable. ## 1.2.97 - 2019-06-17 - Adding meta params to add SEO information. ## 1.2.96 - 2019-06-13 - Exporting `Button` component. ## 1.2.95 - 2019-06-12 - Handling footer in ModalContainer. ## 1.2.94 - 2019-05-23 - Adding option to generate full URI instead of just a pathname for `createResource()`. Added `fullUrl()`. ## 1.2.93 - 2019-05-10 - Calling passed in `onHide()` when modal is closed. ## 1.2.92 - 2019-05-06 - Also copy `defaultProps`. ## 1.2.91 - 2019-04-19 - Adding store init action dispatch. ## 1.2.90 - 2019-04-19 - Added namespace substate getter and setter. ## 1.2.89 - 2019-04-18 - Added most (if not all) `displayName` for `react-bootstrap` components. - Added placeholder for modal footer. - Using flex for modal. ## 1.2.88 - 2019-04-18 - Pass `className` down to the modal container. ## 1.2.87 - 2019-04-18 - Fixed `style="string"` to use `className="text-danger"`. ## 1.2.86 - 2019-04-18 - Fixing CSS for spinner to be able to include it in a modal. ## 1.2.85 - 2019-04-17 - Adding ModalContainer React component. ## 1.2.84 - 2019-04-11 - Revert to Bootstrap 3.3.7 to fix tooltip buttons. ## 1.2.83 - 2019-04-10 - #5: Adding initial spinner in portal. ## 1.2.82 - 2019-04-09 - Updating to bootstrap 3.4.1 ## 1.2.81 - 2019-04-06 - Handling weird case where relnPosition=''. ## 1.2.80 - 2019-04-06 - Fixed sorting issue because relnPosition=null. ## 1.2.79 - 2019-04-04 - Refactored to put common code for send-hal(), send-index(), and send-portal-index(). ## 1.2.78 - 2019-04-03 - Add a link to the current user's profile page. ## 1.2.77 - 2019-02-07 - Login button fix for FF. ## 1.2.76 - 2019-02-07 - Changed logo and footer. ## 1.2.75 - 2019-01-25 - Removed console.log(). ## 1.2.74 - 2019-01-24 - WarpWorks/warpjs-session-plugin#5: Added CAS SSO. ## 1.2.73 - 2018-11-29 - warp-works/warpjs#127: Refactored to allow custom rendering for <FilterableList>. ## 1.2.72 - 2018-11-19 - Fixed filtering element already selected. ## 1.2.71 - 2018-11-15 - Added BaseList, FilterableList, and FilteredList. ## 1.2.70 - 2018-11-14 - Added `window.WarpJS.ReactComponents` for shared components. - Added AutoSaveField component. ## 1.2.69 - 2018-11-13 - Adding few more `window.WarpJS.ReactUtils` functions and components. - Adding FilterInput and FilterableList components (WIP). ## 1.2.68 - 2018-11-09 - Adding some react-utils. ## 1.2.67 - 2018-11-06 - Adding window.WarpJS.bareModal($, NAME). ## 1.2.66 - 2018-10-31 - #184 Update: google analytics api key moved to rc files. ## 1.2.65 - 2018-10-31 - #184 Basic google analytics. ## 1.2.64 - 2018-10-31 - Adding `flattenHAL` to `window.WarpJS`. ## 1.2.63 - 2018-10-31 - #183 Make nav not fixed position in studio and content. ## 1.2.62 - 2018-10-24 - Set tinymce version to 4.7.3. ## 1.2.61 - 2018-10-23 - fix another link. ## 1.2.60 - 2018-10-23 - bump version. ## 1.2.59 - 2018-10-22 - update css url. ## 1.2.57 - 2018-10-22 - Very link before adding it. ## 1.2.56 - 2018-10-20 - Adding `react-bootstrap` and `react-redux`. ## 1.2.55 - 2018-10-19 - Adding `react` and `react-dom`. ## 1.2.54 - 2018-10-12 - Added option to set the URL instead of selecting an existing document to header items. ## 1.2.53 - 2018-10-08 - Display cookie warning only if link also available. ## 1.2.52 - 2018-10-08 - Refactoring customMessages. Allow HTML in modal header. ## 1.2.51 - 2018-09-30 - Adding `expandUrlTemplate(templated, data)`. ## 1.2.50 - 2018-09-28 - Updated `sendIndex()` to also have banner and feedback. ## 1.2.48 - 2018-09-26 - WarpWorks/warpjs#124: Portal: Display cookie disclaimer. ## 1.2.47 - 2018-09-25 - WarpWorks/warpjs#146: Login on 'Return' press. ## 1.2.46 - 2018-09-25 - WarpWorks/warpjs#146: Styling login window. ## 1.2.45 - 2018-09-25 - WarpWorks/warpjs#146: Styling login window. ## 1.2.44 - 2018-09-24 - WarpWorks/warpjs#148: Making POST to portal. ## 1.2.43 - 2018-09-21 - More work for refactoring of content and studio. ## 1.2.42 - 2018-09-20 - #146: Minimum work for the login UI waiting for input from designer. ## 1.2.41 - 2018-09-20 - Update to node 8.12.0 because of `node-gyp` issues. ## 1.2.40 - 2018-09-19 - WarpWorks/warpjs#160: Added feedback button and simulation. ## 1.2.39 - 2018-09-18 - WarpWorks/warpjs#147: Added "Public Beta" banner. ## 1.2.38 - 2018-09-18 - WarpWorks/warpjs#146: Preparation for public access. ## 1.2.37 - 2018-09-10 - Adding `relnPosition` is the sort by position. ## 1.2.36 - 2018-09-07 - Fixed unclosed HTML. ## 1.2.35 - 2018-08-24 - Added tinymce to portal-index. ## 1.2.34 - 2018-08-15 - Added byName for sorting. ## 1.2.33 - 2018-08-15 - #3: fixed byPositionThenName. ## 1.2.32 - 2018-08-09 - Fixed JS import order ## 1.2.31 - 2018-08-09 - Removed doctype that broke the CSS. ## 1.2.30 - 2018-08-09 - Refactored index files. - Using oswald font from googleapi. - Doesn't crash when headerItems are not defined. ## 1.2.29 - 2018-08-06 - Refactored to have left-right-margin partial. ## 1.2.28 - 2018-08-05 - #1: Fixed event handler for search box. ## 1.2.27 - 2018-08-03 - #1: Refactored to use a cached config instead of requiring it. ## 1.2.26 - 2018-08-02 - #1: Server-side portal header/footer rendering. ## 1.2.25 - 2018-08-01 - Portal new header. ## 1.2.24 - 2018-08-01 - Fixing sorting by trim() the name first. ## 1.2.23 - 2018-07-21 - Adding `sendErrorHal`. ## 1.2.22 - 2018-06-27 - Adding header menu. ## 1.2.18 - 2018-06-19 - Missing `debug` dependency. ## 1.2.17 - 2018-05-25 - Explicit definition of `Promise`. - Removed dependency on `chai-as-promised`. ## 1.2.16 - 2018-03-07 - Adding heading for loading toast. ## 1.2.15 - 2018-01-25 - Revert changes for DocLevel model. ## 1.2.14 - 2018-01-25 - Handling Enum. ## 1.2.13 - 2018-01-25 - Created DocLevel model to handle docLevel/updatePath manipulation. ## 1.2.12 - 2018-01-19 - Fixed bundle names to match `.min.js`. ## 1.2.11 - 2018-01-19 - Renamed some files/variables to mention edition instead of content. - Added different background color for Studio. ## 1.2.10 - 2018-01-04 - Fixed debug label - Put plugins as peerDependencies. ## 1.2.9 - 2017-12-22 - Added `Content-Type` to `post()`. - Adding some 'doc-level` utilities. - Refactored `proxy` to have consistent headers. - Fixed route expansion to always replace params due to query params. ## 1.2.8 - 2017-12-08 - Bump down jquery to @2. ## 1.2.7 - 2017-12-08 - Adding the shared 3rd party lib in here. - Used another `toast` library because of bugs in previous one. ## 1.2.6 - 2017-12-06 - Adding `toastr` library. Updated [README.md](README.md) for API. Updated `jquery@3`. ## 1.2.5 - 2017-12-01 - Adding custom class for seemless input group-addon. ## 1.2.2 - 2017-11-30 - Added missing clickable class to search elements. ## 1.2.1 - 2017-11-29 - Fixed minor typo. ## 1.2.0 - 2017-11-29 - Adding the search in the header. ## 0.2.6 - 2017-11-15 - Moved proxy and cache from warpjs to this package. ## 0.2.5 - 2017-10-17 - Adding momentJS helper `momentLongFormat` and `momentFromNow`. ## 0.2.4 - 2017-10-11 - Using hal@0.x instead of hal@1.x ## 0.2.2 - 2017-10-11 - More refactoring for handlebars. ## 0.2.1 - 2017-10-06 - Check `err` before using `err.message`. ## 0.2.0 - 2017-10-06 - Added handlebars views, partials, and helpers. ## 0.1.14 - 2017-09-08 - Adding session-related links in sendHal(). ## 0.1.13 - 2017-08-09 - byPositionThenName() now handles both `Position` and `position` properties. ## 0.1.12 - 2017-07-31 - Fixed sendHal() to not break if homepage is not defined (useful for tests). ## 0.1.11 - 2017-07-26 - Adjusting sendHal() and sendError() with RoutesInfo. ## 0.1.10 - 2017-07-25 - Added '.trace()'. ## 0.1.9 - 2017-07-24 - Modified signature of sendHal(). - Adding mapBrowser link. ## 0.1.8 - 2017-07-21 - Adding compareIDs(). ## 0.1.7 - 2017-07-20 - Allow passing more than one bundle in sendIndex(); - Added urlFormat(). - Fixed export name getCurrentPageHAL(). ## 0.1.6 - 2017-07-19 - Adding getCurrentPageHal(). ## 0.1.5 - 2017-07-19 - Managing sendIndex bundle's path. ## 0.1.4 - 2017-07-19 - Adding param for CSS file. ## 0.1.3 - 2017-07-17 - Adding createResource, sendError, sendHal, sendIndex, wrapWith406. ## 0.1.2 - 2017-07-17 - Adding WarpJSError. ## 0.1.1 - 2017-07-17 - Fixed main entry. ## 0.1.0 - 2017-07-17 - Initial release.