@craftercms/classes
Advanced tools
Changelog
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