@olympeio/runtime-node 9.1.2 → 9.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olympeio/runtime-node",
3
- "version": "9.1.2",
3
+ "version": "9.2.0",
4
4
  "description": "Olympe Node Runtime Environment",
5
5
  "types": "types/index.d.ts",
6
6
  "dependencies": {
package/types/base.d.ts CHANGED
@@ -304,7 +304,7 @@ export abstract class CloudObject implements HasTag {
304
304
  * Inverse relation of {@link modelRel} between a model and its instances
305
305
  * Equivalent to `modelRel.getInverse()`
306
306
  */
307
- static instanceRel: Relation<CloudObject, CloudObject>;
307
+ static instancesRel: Relation<CloudObject, CloudObject>;
308
308
  /**
309
309
  * Model `CloudObjects` can inherit relations and properties
310
310
  * from another `CloudObject` model to mimic their behaviour.
package/types/cloud.d.ts CHANGED
@@ -297,6 +297,24 @@ export class WorkflowObjectState extends CloudObject {
297
297
  static currentObjectRel: Relation<WorkflowObjectState, CloudObject>;
298
298
  }
299
299
 
300
+ // -------------------------
301
+ // -- Theme data types --
302
+ // -------------------------
303
+
304
+ /**
305
+ * Theme object describing the main visual properties used by components
306
+ */
307
+ export class Theme extends CloudObject {
308
+ static nameProp: Property<string>;
309
+ static primaryColorProp: Property<string>;
310
+ static secondaryColorProp: Property<string>;
311
+ static errorColorProp: Property<string>;
312
+ static warningColorProp: Property<string>;
313
+ static infoColorProp: Property<string>;
314
+ static successColorProp: Property<string>;
315
+ static fontFamilyProp: Property<string>;
316
+ }
317
+
300
318
  // ---------------------------
301
319
  // -- Database transactions --
302
320
  // ---------------------------
@@ -133,6 +133,13 @@ export class BrickContext extends Context {
133
133
  */
134
134
  getParent(): BrickContext | null;
135
135
 
136
+ /**
137
+ * Return the closest parent of a given type
138
+ *
139
+ * @param modelTag tag of the "type" of context you want to find in the parent tree
140
+ */
141
+ getClosest(modelTag: Tag): BrickContext | null;
142
+
136
143
  /**
137
144
  * Listen to the creation of the context with the specified id.
138
145
  * Executes the callback when that context becomes accessible by this current context.