@vuu-ui/vuu-layout 0.8.57 → 0.8.59

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.
Files changed (92) hide show
  1. package/cjs/Component.js +2 -2
  2. package/cjs/Component.js.map +1 -1
  3. package/cjs/DraggableLayout.js +3 -3
  4. package/cjs/DraggableLayout.js.map +1 -1
  5. package/cjs/dock-layout/DockLayout.js +5 -4
  6. package/cjs/dock-layout/DockLayout.js.map +1 -1
  7. package/cjs/drag-drop/BoxModel.js +4 -5
  8. package/cjs/drag-drop/BoxModel.js.map +1 -1
  9. package/cjs/drag-drop/DropTarget.js +1 -0
  10. package/cjs/drag-drop/DropTarget.js.map +1 -1
  11. package/cjs/flexbox/FlexboxLayout.js +2 -2
  12. package/cjs/flexbox/FlexboxLayout.js.map +1 -1
  13. package/cjs/flexbox/FluidGridLayout.js +2 -2
  14. package/cjs/flexbox/FluidGridLayout.js.map +1 -1
  15. package/cjs/flexbox/flexbox-utils.js +1 -0
  16. package/cjs/flexbox/flexbox-utils.js.map +1 -1
  17. package/cjs/index.js +0 -6
  18. package/cjs/index.js.map +1 -1
  19. package/cjs/layout-provider/LayoutProvider.js.map +1 -1
  20. package/cjs/layout-reducer/flexUtils.js +2 -2
  21. package/cjs/layout-reducer/flexUtils.js.map +1 -1
  22. package/cjs/layout-reducer/layout-reducer.js +2 -2
  23. package/cjs/layout-reducer/layout-reducer.js.map +1 -1
  24. package/cjs/layout-reducer/layoutUtils.js +3 -4
  25. package/cjs/layout-reducer/layoutUtils.js.map +1 -1
  26. package/cjs/layout-reducer/wrap-layout-element.js +1 -2
  27. package/cjs/layout-reducer/wrap-layout-element.js.map +1 -1
  28. package/cjs/layout-view/View.js +1 -2
  29. package/cjs/layout-view/View.js.map +1 -1
  30. package/cjs/layout-view-actions/ViewContext.js.map +1 -1
  31. package/cjs/layout-view-actions/useViewActionDispatcher.js.map +1 -1
  32. package/cjs/palette/Palette.js +3 -4
  33. package/cjs/palette/Palette.js.map +1 -1
  34. package/cjs/placeholder/Placeholder.js +2 -2
  35. package/cjs/placeholder/Placeholder.js.map +1 -1
  36. package/cjs/stack/StackLayout.js +3 -4
  37. package/cjs/stack/StackLayout.js.map +1 -1
  38. package/cjs/utils/pathUtils.js +5 -5
  39. package/cjs/utils/pathUtils.js.map +1 -1
  40. package/esm/Component.js +2 -2
  41. package/esm/Component.js.map +1 -1
  42. package/esm/DraggableLayout.js +2 -2
  43. package/esm/DraggableLayout.js.map +1 -1
  44. package/esm/dock-layout/DockLayout.js +5 -4
  45. package/esm/dock-layout/DockLayout.js.map +1 -1
  46. package/esm/drag-drop/BoxModel.js +1 -2
  47. package/esm/drag-drop/BoxModel.js.map +1 -1
  48. package/esm/drag-drop/DropTarget.js +1 -0
  49. package/esm/drag-drop/DropTarget.js.map +1 -1
  50. package/esm/flexbox/FlexboxLayout.js +1 -1
  51. package/esm/flexbox/FlexboxLayout.js.map +1 -1
  52. package/esm/flexbox/FluidGridLayout.js +1 -1
  53. package/esm/flexbox/FluidGridLayout.js.map +1 -1
  54. package/esm/flexbox/flexbox-utils.js +1 -0
  55. package/esm/flexbox/flexbox-utils.js.map +1 -1
  56. package/esm/index.js +0 -1
  57. package/esm/index.js.map +1 -1
  58. package/esm/layout-provider/LayoutProvider.js.map +1 -1
  59. package/esm/layout-reducer/flexUtils.js +3 -3
  60. package/esm/layout-reducer/flexUtils.js.map +1 -1
  61. package/esm/layout-reducer/layout-reducer.js +1 -1
  62. package/esm/layout-reducer/layout-reducer.js.map +1 -1
  63. package/esm/layout-reducer/layoutUtils.js +2 -3
  64. package/esm/layout-reducer/layoutUtils.js.map +1 -1
  65. package/esm/layout-reducer/wrap-layout-element.js +2 -3
  66. package/esm/layout-reducer/wrap-layout-element.js.map +1 -1
  67. package/esm/layout-view/View.js +1 -2
  68. package/esm/layout-view/View.js.map +1 -1
  69. package/esm/layout-view-actions/ViewContext.js.map +1 -1
  70. package/esm/layout-view-actions/useViewActionDispatcher.js.map +1 -1
  71. package/esm/palette/Palette.js +2 -3
  72. package/esm/palette/Palette.js.map +1 -1
  73. package/esm/placeholder/Placeholder.js +2 -2
  74. package/esm/placeholder/Placeholder.js.map +1 -1
  75. package/esm/stack/StackLayout.js +3 -4
  76. package/esm/stack/StackLayout.js.map +1 -1
  77. package/esm/utils/pathUtils.js +1 -1
  78. package/esm/utils/pathUtils.js.map +1 -1
  79. package/package.json +10 -10
  80. package/types/Component.d.ts +1 -2
  81. package/types/dock-layout/DockLayout.d.ts +2 -4
  82. package/types/flexbox/FluidGridLayout.d.ts +1 -1
  83. package/types/index.d.ts +0 -1
  84. package/types/layout-provider/LayoutProvider.d.ts +1 -1
  85. package/types/layout-reducer/layoutUtils.d.ts +8 -4
  86. package/types/layout-view-actions/ViewContext.d.ts +1 -1
  87. package/cjs/registry/ComponentRegistry.js +0 -27
  88. package/cjs/registry/ComponentRegistry.js.map +0 -1
  89. package/esm/registry/ComponentRegistry.js +0 -21
  90. package/esm/registry/ComponentRegistry.js.map +0 -1
  91. package/types/registry/ComponentRegistry.d.ts +0 -13
  92. package/types/registry/index.d.ts +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"ComponentRegistry.js","sources":["../../src/registry/ComponentRegistry.ts"],"sourcesContent":["import { FunctionComponent } from \"react\";\n\nconst _containers: { [key: string]: boolean } = {};\nconst _views: { [key: string]: boolean } = {};\n\nexport type layoutComponentType = \"component\" | \"container\" | \"view\";\n\nexport interface ComponentWithId {\n id: string;\n [key: string]: unknown;\n}\n\nexport const ComponentRegistry: {\n [key: string]: FunctionComponent<ComponentWithId>;\n} = {};\n\nexport function isContainer(componentType: string) {\n return _containers[componentType] === true;\n}\n\nexport function isView(componentType: string) {\n return _views[componentType] === true;\n}\n\nexport const isLayoutComponent = (type: string) =>\n isContainer(type) || isView(type);\n\n// export const isRegistered = (className: string) =>\n// !!ComponentRegistry[className];\n\nexport function registerComponent(\n componentName: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n component: FunctionComponent<any>,\n type: layoutComponentType = \"component\"\n) {\n ComponentRegistry[componentName] = component;\n\n if (type === \"container\") {\n _containers[componentName] = true;\n } else if (type === \"view\") {\n _views[componentName] = true;\n }\n}\n"],"names":[],"mappings":";;AAEA,MAAM,cAA0C,EAAC,CAAA;AACjD,MAAM,SAAqC,EAAC,CAAA;AASrC,MAAM,oBAET,GAAC;AAEE,SAAS,YAAY,aAAuB,EAAA;AACjD,EAAO,OAAA,WAAA,CAAY,aAAa,CAAM,KAAA,IAAA,CAAA;AACxC,CAAA;AAEO,SAAS,OAAO,aAAuB,EAAA;AAC5C,EAAO,OAAA,MAAA,CAAO,aAAa,CAAM,KAAA,IAAA,CAAA;AACnC,CAAA;AAEO,MAAM,oBAAoB,CAAC,IAAA,KAChC,YAAY,IAAI,CAAA,IAAK,OAAO,IAAI,EAAA;AAK3B,SAAS,iBACd,CAAA,aAAA,EAEA,SACA,EAAA,IAAA,GAA4B,WAC5B,EAAA;AACA,EAAA,iBAAA,CAAkB,aAAa,CAAI,GAAA,SAAA,CAAA;AAEnC,EAAA,IAAI,SAAS,WAAa,EAAA;AACxB,IAAA,WAAA,CAAY,aAAa,CAAI,GAAA,IAAA,CAAA;AAAA,GAC/B,MAAA,IAAW,SAAS,MAAQ,EAAA;AAC1B,IAAA,MAAA,CAAO,aAAa,CAAI,GAAA,IAAA,CAAA;AAAA,GAC1B;AACF;;;;;;;;"}
@@ -1,21 +0,0 @@
1
- const _containers = {};
2
- const _views = {};
3
- const ComponentRegistry = {};
4
- function isContainer(componentType) {
5
- return _containers[componentType] === true;
6
- }
7
- function isView(componentType) {
8
- return _views[componentType] === true;
9
- }
10
- const isLayoutComponent = (type) => isContainer(type) || isView(type);
11
- function registerComponent(componentName, component, type = "component") {
12
- ComponentRegistry[componentName] = component;
13
- if (type === "container") {
14
- _containers[componentName] = true;
15
- } else if (type === "view") {
16
- _views[componentName] = true;
17
- }
18
- }
19
-
20
- export { ComponentRegistry, isContainer, isLayoutComponent, isView, registerComponent };
21
- //# sourceMappingURL=ComponentRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ComponentRegistry.js","sources":["../../src/registry/ComponentRegistry.ts"],"sourcesContent":["import { FunctionComponent } from \"react\";\n\nconst _containers: { [key: string]: boolean } = {};\nconst _views: { [key: string]: boolean } = {};\n\nexport type layoutComponentType = \"component\" | \"container\" | \"view\";\n\nexport interface ComponentWithId {\n id: string;\n [key: string]: unknown;\n}\n\nexport const ComponentRegistry: {\n [key: string]: FunctionComponent<ComponentWithId>;\n} = {};\n\nexport function isContainer(componentType: string) {\n return _containers[componentType] === true;\n}\n\nexport function isView(componentType: string) {\n return _views[componentType] === true;\n}\n\nexport const isLayoutComponent = (type: string) =>\n isContainer(type) || isView(type);\n\n// export const isRegistered = (className: string) =>\n// !!ComponentRegistry[className];\n\nexport function registerComponent(\n componentName: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n component: FunctionComponent<any>,\n type: layoutComponentType = \"component\"\n) {\n ComponentRegistry[componentName] = component;\n\n if (type === \"container\") {\n _containers[componentName] = true;\n } else if (type === \"view\") {\n _views[componentName] = true;\n }\n}\n"],"names":[],"mappings":"AAEA,MAAM,cAA0C,EAAC,CAAA;AACjD,MAAM,SAAqC,EAAC,CAAA;AASrC,MAAM,oBAET,GAAC;AAEE,SAAS,YAAY,aAAuB,EAAA;AACjD,EAAO,OAAA,WAAA,CAAY,aAAa,CAAM,KAAA,IAAA,CAAA;AACxC,CAAA;AAEO,SAAS,OAAO,aAAuB,EAAA;AAC5C,EAAO,OAAA,MAAA,CAAO,aAAa,CAAM,KAAA,IAAA,CAAA;AACnC,CAAA;AAEO,MAAM,oBAAoB,CAAC,IAAA,KAChC,YAAY,IAAI,CAAA,IAAK,OAAO,IAAI,EAAA;AAK3B,SAAS,iBACd,CAAA,aAAA,EAEA,SACA,EAAA,IAAA,GAA4B,WAC5B,EAAA;AACA,EAAA,iBAAA,CAAkB,aAAa,CAAI,GAAA,SAAA,CAAA;AAEnC,EAAA,IAAI,SAAS,WAAa,EAAA;AACxB,IAAA,WAAA,CAAY,aAAa,CAAI,GAAA,IAAA,CAAA;AAAA,GAC/B,MAAA,IAAW,SAAS,MAAQ,EAAA;AAC1B,IAAA,MAAA,CAAO,aAAa,CAAI,GAAA,IAAA,CAAA;AAAA,GAC1B;AACF;;;;"}
@@ -1,13 +0,0 @@
1
- import { FunctionComponent } from "react";
2
- export type layoutComponentType = "component" | "container" | "view";
3
- export interface ComponentWithId {
4
- id: string;
5
- [key: string]: unknown;
6
- }
7
- export declare const ComponentRegistry: {
8
- [key: string]: FunctionComponent<ComponentWithId>;
9
- };
10
- export declare function isContainer(componentType: string): boolean;
11
- export declare function isView(componentType: string): boolean;
12
- export declare const isLayoutComponent: (type: string) => boolean;
13
- export declare function registerComponent(componentName: string, component: FunctionComponent<any>, type?: layoutComponentType): void;
@@ -1 +0,0 @@
1
- export * from './ComponentRegistry';