@dosgato/templating
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -141,2 +141,12 @@ import type { ComponentData, DataData, PageData } from './component.js'; | ||
/** | ||
* This is very similar to onCopy, but it is called when a page is being imported instead of | ||
* copied. In this case it is possible but not guaranteed that the original page still exists. | ||
* | ||
* Usually you want to avoid regenerating ids during an import because export/import is about | ||
* archiving and restoring pages, so we'd prefer to restore them exactly as they were. However, | ||
* since the original can still exist, anything that MUST be globally unique should be regenerated, | ||
* just in case. | ||
*/ | ||
onImport?: (data: DataType, workspace: Record<string, any>) => void; | ||
/** | ||
* The available component list in the main content area can get very long, among others. Therefore, each | ||
@@ -143,0 +153,0 @@ * template may set a displayCategory and any templates that share a displayCategory will be grouped together |
{ | ||
"name": "@dosgato/templating", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "A library to support building templates for dosgato CMS.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
122263
2659