@craftercms/models
Advanced tools
Changelog
1.2.3
package.json
to react
folder for prettier import usage and module bundler supportparseDescriptor
functionpreParseSearchResults
functionbrowser
field from package.json
files so bundlers can make use of es6 modules and tree shakingChangelog
1.2.2
reportNavigation
util for SPAs to report the current URL as the app navigates.Changelog
1.2.1
getICEAttributes
parseDescriptor
getItem
service parsing and component detection algorithms for getItem
and getDescriptor
getTree
response into a flat content instance arraygetChildren
response recognition and throws with non-parsable responsesChangelog
1.2.0
parseDescriptor
method which parses a getDescriptor
, getItem
or GraphQL
response into a Content Instance (@see models/Content Instance).import { getIceAttributes } from '@craftercms/ice';
import { getDropZoneAttributes } from '@craftercms/ice';
import { repaintPencils, fetchIsAuthoring, addAuthoringSupport } from '@craftercms/ice';
as neededimport { useICE } from '@craftercms/ice/esm5/react';
import { useDropZone } from '@craftercms/ice/esm5/react';
<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>
index.js
to fesm distributions