@headless-adminapp/app 0.0.17-alpha.17 → 0.0.17-alpha.19

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.
@@ -510,6 +510,7 @@ exports.operatorOptions = {
510
510
  number: numberOperatorOptions,
511
511
  string: stringOperatorOptions,
512
512
  attachment: attachmentOperatorOptions,
513
+ attachments: [],
513
514
  mixed: mixedOperatorOptions,
514
515
  daterange: [],
515
516
  lookups: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@headless-adminapp/app",
3
- "version": "0.0.17-alpha.17",
3
+ "version": "0.0.17-alpha.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -39,5 +39,5 @@
39
39
  "react-hook-form": "7.52.2",
40
40
  "yup": "^1.4.0"
41
41
  },
42
- "gitHead": "69729c8fa4fc5d4b695957adc0f184e9c8b5888c"
42
+ "gitHead": "89b5dcafe7018f95dd77861003216f4fa365d15f"
43
43
  }
@@ -2,5 +2,5 @@ import { IComponentStore } from '@headless-adminapp/core/store';
2
2
  export declare class ComponentStore implements IComponentStore {
3
3
  private components;
4
4
  registerComponent<T>(name: string, component: T): void;
5
- resolveComponent<T>(name: string): T;
5
+ getComponent<T>(name: string): T | null;
6
6
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ComponentStore = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
4
  class ComponentStore {
6
5
  constructor() {
7
6
  this.components = {};
@@ -9,15 +8,12 @@ class ComponentStore {
9
8
  registerComponent(name, component) {
10
9
  this.components[name] = component;
11
10
  }
12
- resolveComponent(name) {
11
+ getComponent(name) {
13
12
  const self = this;
14
- return function (props) {
15
- if (!self.components[name]) {
16
- throw new Error(`Component ${name} is not registered`);
17
- }
18
- const Component = self.components[name];
19
- return (0, jsx_runtime_1.jsx)(Component, Object.assign({}, props));
20
- };
13
+ if (!self.components[name]) {
14
+ return null;
15
+ }
16
+ return self.components[name];
21
17
  }
22
18
  }
23
19
  exports.ComponentStore = ComponentStore;