- [@craftercms/redux]:
- getTree action payload is now an object with
url
anddepth
properties. - getNav action payload is now an object with
url
,depth
andcyrrebtPageUrl
properties. - getNavBreadcrumb action payload is now an object with
url
androot
properties.
- getTree action payload is now an object with
- Dependency updates
- Sync ContentInstance with the one on @craftercms/studio-ui
- Allow for an entire set of fetch config to be provided via crafterConf to be used in all GET requests (SdkService.httpGet)
- Update react peer dependency to correct expression (^18)
- No updates
- Update dependencies to address security vulnerabilities
- Update search API endpoint from
/api/1/site/search/search.json
toapi/1/site/elasticsearch/search
.
urlTransform
,getTree
,getItem
,getChildren
fix config argument to accept partial CrafterConfig- Update createQuery usage examples without SearchEngine parameter.
- Update Endpoints interface
ELASTICSEARCH
property toSEARCH
.
- Remove ElasticQuery query implementation for ElasticSearch.
- Use
Query
class instead of removedElasticQuery
class increateQuery
function. - Update createQuery usage examples without SearchEngine parameter.
- Switching SDK versioning to follow the CrafterCMS release version
- Update
parseProps
(internally used byparseDescriptor
) to includeorderDefault_f
(parsed asorderInNav
) in the resulting ContentInstance. - Update
parseProps
andparseDescriptor
options to receivesystemPropMap
,ignoredProps
,systemProps
to be used during parsing.- Note: modifying these props will require you to open the
ContentInstance
interface and extend it accordingly.
- Note: modifying these props will require you to open the
- Improve
parseDescriptor
signatures definitions - Parse values of
orderInNav
anddisabled
to their target data types (float and boolean, respectively). - Export
extractContent
andextractChildren
functions. - Export the default
systemPropMap
,ignoredProps
,systemProps
.
- Fix
getDescriptor
crashing whenconfig
isn't supplied.
- Add
fetchModelByPath
andfetchModelByUrl
shortcuts methods - Improve
parseDescriptor
typings - Improve
urlTransform
typings
- Add basic
crafterConf
docs
- Add prop data type parsing to
parsedDescriptor
- Add v4 support to
addAuthoringSupport
- Fix
flatten
argument to getDescriptor getting lost/ignored
- Move types from other files into models package
- Adding missing properties to NavigationItem interface
- Change SDKService.httpGet to use fetch instead of rxjs.ajax
- Fix fetch's mode (for cors)
- Extend support for other fetch modes
- Switch from using URLSearchParams to using query-string for the same purpose
- Allow CORs
- Use
crafterConf.configure({ cors: true, ... })
to enable CORs mode.
- Use
- Fix
fetchIsAuthoring
andaddAuthoringSupport
not retrieving for baseUrl fromcrafterConf
.
- Upgrade to redux-observable 2
- Update to rxjs @ ^7
- Remove support for Solr
- Add ability to specify
flatten
for thecontent_store/descriptor
endpoint (via the config argument of the function). - Make
parseDescriptor
be able to handle the deserialization products of the recentcrafter-source
&crafter-source-content-type-id
attribute additions.
- [bugfix] Handle calls to
repaintPencils
before the dependency loader has been configured to avoid incorrect paths to load scripts/css from. - Extend support to react 17 (peerDependencies).
- Upgrade to typescript 4+
- Fix type check issues that arose from upgrade.
- Add
package.json
toreact
folder for prettier import usage and module bundler support
- Improve robustness of
parseDescriptor
function - Adds
preParseSearchResults
function
- Added docs to package readme files for plain html/js usage
- Removed the
browser
field frompackage.json
files so bundlers can make use of es6 modules and tree shaking - Add npm badge to README files
- Adds
reportNavigation
util for SPAs to report the current URL as the app navigates.
- [internal] Bumps acorn version
- Added validation addAuthoringSupport require.js load event
getICEAttributes
- Auto calculates the label if not supplied based on the model param
- Validates parentModelId and path (model.craftercms.path) and throws console errors to help developers use the right values
- Adds a secret second argument so that wrapping utilities can identify themselves and errors as the entry point of the error
- Renames misc/composeUrl param renamed for more accurate semantics
parseDescriptor
- Fixes issue where repeat group items with inner node selectors weren't parsed
- Improvements in
getItem
service parsing and component detection algorithms forgetItem
andgetDescriptor
- Adds ability to parse a
getTree
response into a flat content instance array - Adds
getChildren
response recognition and throws with non-parsable responses
- SDKService refactored as stand alone functions; no need to use as class now though you may still use in the same way as in previous release if you prefer (backward compatible).
- Services refactored as stand alone functions; no need to use as class now though you may still use in the same way as in previous release if you prefer (backward compatible).
- New
parseDescriptor
method which parses agetDescriptor
,getItem
orGraphQL
response into a Content Instance (@see models/Content Instance).
- First published
- Publishing generic Crafter CMS In Context Editing (ICE) attribute retrieval functions for pencils and drop zones (drag and drop)
- getIceAttributes,
- getDropZoneAttributes
- import/use in code by doing
import { getIceAttributes } from '@craftercms/ice';
import { getDropZoneAttributes } from '@craftercms/ice';
- Publishing generic util functions
- repaintPencils: Repaints/repositions Crafter CMS In Context Editing pencils
- fetchIsAuthoring: Interrogates the current origin server to determine if the site/app is running in Crafter CMS authoring or delivery environments
- addAuthoringSupport: Includes the necessary scripts to enable Crafter CMS authoring support
import { repaintPencils, fetchIsAuthoring, addAuthoringSupport } from '@craftercms/ice';
as needed
- Publishing React specific bindings via custom hooks:
- useICE,
- useDropZone
- Import/use in code by doing
import { useICE } from '@craftercms/ice/esm5/react';
import { useDropZone } from '@craftercms/ice/esm5/react';
- For direct usage in HTML
<script/>
tags, use the umd build<script src="{path-to-your-scripts}/ice/bundles/ice.umd.js"></script> <!-- ice/react requires the main ice script --> <script src="{path-to-your-scripts}/ice/bundles/react/index.umd.js"></script>
- Notice the multi-platform builds published under
- bundles (umd)
- esm5 (module)
- es2015 (esm2015)
- fesm5
- fesm2015
- Removed unpublished createLookupTable function; moved to @craftercms/utils
- ContentInstance model added
- redux, redux-observable & rxjs upgraded
- Service refactored as stand alone functions; no need to use as class now though you may still use in the same way as in previous release if you prefer (backward compatible).
- Publishes createLookupTable util
- Internal Yarn workspace set up
- RxJS upgrade for all packages which have it as a dependency
- Rollup config adjustments
- Build script updates to print rollup output
- Added
index.js
to fesm distributions - License updates