@omnia/velcron 8.0.149-dev → 8.0.150-dev

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.
@@ -64,6 +64,7 @@ export interface VelcronRenderContext {
64
64
  eventHandlers?: VelcronRenderContextEventHandlersInstance;
65
65
  editMode?: boolean;
66
66
  disposers: Array<() => void>;
67
+ subApp?: boolean;
67
68
  }
68
69
  export interface VelcronRenderContextEventHandlers {
69
70
  receiving?: {
@@ -82,7 +83,8 @@ export interface VelcronRenderContextEventHandlersInstance extends VelcronRender
82
83
  export interface VelcronRenderContextHooks {
83
84
  dialogVisibilityChanged?: ((visible: boolean) => void);
84
85
  onItemSelected?: ((item: VelcronDefinition) => void);
85
- wrapperStyleExtensions?: ((item: VelcronDefinition) => string);
86
+ wrapperStyleExtensions?: ((item: VelcronDefinition, renderContext: VelcronRenderContext) => string);
87
+ renderExtensions?: <TNodeType>(item: VelcronDefinition) => TNodeType;
86
88
  appStyleExtension?: (() => string);
87
89
  onItemCreatedProps?: ((item: VelcronDefinition) => object);
88
90
  }
@@ -14,6 +14,7 @@ export interface BuiltInPropertyEditors {
14
14
  typography: unknown;
15
15
  spacing: unknown;
16
16
  "color-schema-type": unknown;
17
+ reference: unknown;
17
18
  }
18
19
  export declare enum BuiltInPropertyEditorTypes {
19
20
  text = "text",
@@ -82,6 +83,9 @@ export interface VelcronImagePropertyEditor extends VelcronPropertyEditor<any> {
82
83
  export interface VelcronSpacingPropertyEditor extends VelcronPropertyEditor<VelcronSpacingEditorSettings> {
83
84
  type: "spacing";
84
85
  }
86
+ export interface VelcronReferencePropertyEditor extends VelcronPropertyEditor<any> {
87
+ type: "reference";
88
+ }
85
89
  export interface VelcronState {
86
90
  images?: VelcronImagesState;
87
91
  styling?: VelcronStylingState;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.149-dev",
4
+ "version": "8.0.150-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -93,6 +93,7 @@ class VelcronRenderers {
93
93
  //blueprints: currentRenderCtx.blueprints,
94
94
  disposers: currentRenderCtx.disposers,
95
95
  properties: currentRenderCtx.properties,
96
+ subApp: currentRenderCtx.subApp,
96
97
  };
97
98
  if (VelcronRenderers.definitionContainsCustomColorSchema(definition)) {
98
99
  const colorSchemaType = __1.VelcronData.dataBind(currentRenderCtx, definition.colorSchemaType);