@dosgato/templating 1.0.5 → 1.0.7

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/render.d.ts CHANGED
@@ -21,6 +21,13 @@ export interface PictureAttributes {
21
21
  src: string;
22
22
  /** string appropriate for the srcset attribute of the default <img> tag, or use widths array to reconstruct */
23
23
  srcset: string;
24
+ /**
25
+ * When an image link cannot be found, we still return the src and srcset with a non-working path so that the
26
+ * user can more easily determine 1) that there was an image that is now broken and 2) where the image used
27
+ * to be.
28
+ * This attribute will be set to true in case the render needs any additional logic for broken links
29
+ */
30
+ broken: boolean;
24
31
  /** a list of available widths in case you want to filter some out and recreate the srcset */
25
32
  widths: PictureResize[];
26
33
  /** alternative text stored with the image in its asset repository, may be overridden by local alt text */
@@ -163,7 +163,7 @@ export interface UITemplateData extends UITemplateBase {
163
163
  * Defines the responsive behavior of the list view, given a tree width. Should return an array with the titles of the extra columns that
164
164
  * should be shown at the given tree width, or an empty array if none should be shown. The behavior of the default columns is handled by the admin interface.
165
165
  */
166
- responsiveDataColumns?: ((treeWidth: number) => string[]);
166
+ responsiveDataColumns?: (treeWidth: number) => string[];
167
167
  }
168
168
  /**
169
169
  * This is a type for the data that will be passed to dialog Svelte components as
@@ -318,6 +318,10 @@ export interface UIConfig {
318
318
  */
319
319
  display?: AssetMetaDisplay | AssetMetaDisplay[];
320
320
  };
321
+ trainings?: {
322
+ noEdit?: boolean;
323
+ hide?: boolean;
324
+ };
321
325
  tracing?: TracingInterface;
322
326
  /** Non-Awaited async call for logging interface interactions if defined.
323
327
  * Useful for defining how to log form submissions, interaction clicks, page edits, or state
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,8 +17,8 @@
17
17
  "txstate-utils": "^1.8.8"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/node": "^18.7.11",
21
- "eslint-config-standard-with-typescript": "^34.0.0",
20
+ "@types/node": "^20.10.3",
21
+ "eslint-config-standard-with-typescript": "^39.0.0",
22
22
  "typescript": "^5.0.4"
23
23
  },
24
24
  "repository": {