@dosgato/templating
Advanced tools
Comparing version 0.0.106 to 0.0.107
@@ -42,2 +42,16 @@ import { ComponentData, PageData } from './component.js'; | ||
/** | ||
* Sometimes it's useful for a component to have a stable but random identifier for use | ||
* during render. For instance, to set the id on an HTML element for reference by other | ||
* components or code. | ||
* | ||
* If your component has a dialog, dosgato-dialog has a <FieldIdentifier> component for this; | ||
* it's invisible but either creates or maintains a random string. | ||
* | ||
* If your component has no dialog but still needs an identifier, you can name a property | ||
* here and dosgato-admin will generate one for you upon creation. | ||
* | ||
* For example, `randomId: 'id'` means your component data will look like `{ id: 'cym87regpk' }` | ||
*/ | ||
randomId?: string; | ||
/** | ||
* Sometimes when you create a component that has areas, you want to automatically fill | ||
@@ -44,0 +58,0 @@ * one or more areas with some default introductory content. |
{ | ||
"name": "@dosgato/templating", | ||
"version": "0.0.106", | ||
"version": "0.0.107", | ||
"description": "A library to support building templates for dosgato CMS.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
90045
2023