@dosgato/templating 0.0.121 → 0.0.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/links.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { htmlDecode } from 'txstate-utils';
2
- const LinkRegex = /{.*"type"\s?:\s?"\w+".*?}/g;
3
- const HTMLEscapedLinkRegex = /{.*"type"\s?:\s?"\w+".*?}/g;
2
+ const LinkRegex = /{[^}]*"type"\s?:\s?"\w+"[^}]*}/g;
3
+ const HTMLEscapedLinkRegex = /{[^}]*"type"\s?:\s?"\w+"[^}]*}/g;
4
4
  /**
5
5
  * This function is used by template definitions to help them identify links inside large blocks
6
6
  * of text and return them for indexing, and by render definitions to help replace them with the actual URLs.
@@ -184,5 +184,11 @@ export interface UIConfig {
184
184
  * here. The data collected will be available when you retrieve assets.
185
185
  */
186
186
  assetMetaDialog?: UITemplate['dialog'];
187
+ tracing?: {
188
+ init?: () => void;
189
+ startTransaction?: (name: string, details: any) => void;
190
+ endTransaction?: (name: string, details: any) => void;
191
+ event?: (name: string, details: any) => void;
192
+ };
187
193
  }
188
194
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.121",
3
+ "version": "0.0.123",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {