Version 8.23.0

@esri/hub-sites

Module to interact with ArcGIS Hub Sites in Node.js and modern browsers.

npm install:

npm install @esri/hub-sites @esri/arcgis-rest-auth@^2.13.0 || 3  @esri/arcgis-rest-portal@^2.19.0 || 3  @esri/arcgis-rest-request@^2.13.0 || 3  @esri/hub-common@^8.2.0  @esri/hub-initiatives@^8.0.0  @esri/hub-teams@^8.0.0 

Module Import:

import {
  applyDraft,
  convertCard,
  convertLayoutToTemplate,
  convertPageToTemplate,
  convertRow,
  convertSection,
  convertSiteToTemplate,
  createPage,
  createPageModelFromTemplate,
  createSite,
  createSiteModelFromTemplate,
  deleteDraft,
  ensureOptionalGroupsTemplating,
  ensurePageHasSiteEntry,
  ensureRequiredPageProperties,
  ensureRequiredSiteProperties,
  extractAssets,
  fetchAndApplyDraft,
  fetchDraft,
  getCardDependencies,
  getDataForSiteItem,
  getDomain,
  getDomains,
  getDraftDate,
  getLayoutDependencies,
  getMembers,
  getPageDependencies,
  getPageEditUrl,
  getPageItemType,
  getPortalSiteHostname,
  getPortalSiteUrl,
  getRowDependencies,
  getSectionDependencies,
  getSiteDependencies,
  getSiteEditUrl,
  getSiteItemType,
  getTheme,
  hasUnpublishedChanges,
  isPage,
  isSite,
  linkSiteAndPage,
  markPublished,
  markUnpublished,
  registerBrowserApp,
  registerSiteAsApplication,
  removePage,
  removeSite,
  removeSiteFromPage,
  removeUnusedResources,
  saveDraft,
  savePublishedStatus,
  shareItemsToSiteGroups,
  siteSecondPass,
  unlinkPagesFromSite,
  unlinkSiteAndPage,
  updateAppRedirectUris,
  updatePage,
  updateSite,
  updateSiteApplicationUris,
  upgradeDraftSchema,
} from "@esri/hub-sites";

CDN:

<script src="https://unpkg.com/@esri/hub-sites@8.23.0/dist/umd/sites.umd.min.js"></script>

CDN with SRI: