@esrf/daiquiri-lib 0.0.2-alpha.5 → 0.0.2-alpha.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/index.d.ts +8 -1
- package/dist/index.esm.js +2 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -406,6 +406,9 @@ interface YamlRoot extends YamlNode {
|
|
|
406
406
|
name: string;
|
|
407
407
|
error: string;
|
|
408
408
|
}
|
|
409
|
+
interface AnyYamlNode extends YamlNode {
|
|
410
|
+
[key: string]: any;
|
|
411
|
+
}
|
|
409
412
|
interface YamlComponent {
|
|
410
413
|
providers?: Record<string, any>;
|
|
411
414
|
yamlNode: YamlNode;
|
|
@@ -425,6 +428,10 @@ declare function Main(props: Props): JSX.Element;
|
|
|
425
428
|
* Register the Yaml type with the component used to render this Yaml node.
|
|
426
429
|
*/
|
|
427
430
|
declare function registerYamlType(name: string, component: React.ComponentType<any>): void;
|
|
431
|
+
/**
|
|
432
|
+
* Render a Yaml node using registred component from the node type
|
|
433
|
+
*/
|
|
434
|
+
declare function renderYamlNode(yamlNode: AnyYamlNode, key: number | string, panel?: boolean): ReactChild;
|
|
428
435
|
declare class LayoutError extends Error {
|
|
429
436
|
readonly yamlNode: YamlNode;
|
|
430
437
|
constructor(message: string, yamlNode: YamlNode);
|
|
@@ -509,4 +516,4 @@ declare namespace HardwareObject_d {
|
|
|
509
516
|
*/
|
|
510
517
|
declare function registerHardwareComponent(name: string, component: React.ComponentType<any>): void;
|
|
511
518
|
|
|
512
|
-
export { formatting_d as Formatting, Frontend, FullSizer, HardwareObject_d as HWObject, HardwareInputNumber, HardwareNumericStep, schema_d as HardwareSchema, State_d as HardwareState, HardwareTemplate, types_d as HardwareTypes, HardwareVariant, Info, KeyError, MissingKeysError, MotorDefault, type MotorDefaultOptions, Multiposition, NoObject, NumericStep, Property, ShutterDefault, TypeIcon, Main as YAMLLayout, asserts_d as YamlAsserts, type YamlComponent, type YamlNode, registerHardwareComponent, registerComponent as registerYamlComponent, registerYamlType };
|
|
519
|
+
export { formatting_d as Formatting, Frontend, FullSizer, HardwareObject_d as HWObject, HardwareInputNumber, HardwareNumericStep, schema_d as HardwareSchema, State_d as HardwareState, HardwareTemplate, types_d as HardwareTypes, HardwareVariant, Info, KeyError, MissingKeysError, MotorDefault, type MotorDefaultOptions, Multiposition, NoObject, NumericStep, Property, ShutterDefault, TypeIcon, Main as YAMLLayout, asserts_d as YamlAsserts, type YamlComponent, type YamlNode, registerHardwareComponent, registerComponent as registerYamlComponent, registerYamlType, renderYamlNode };
|
package/dist/index.esm.js
CHANGED