@sqlrooms/layout 0.26.1-rc.1 → 0.26.1-rc.12
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 +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/mosaic/MosaicTile.js +1 -1
- package/dist/mosaic/MosaicTile.js.map +1 -1
- package/dist/mosaic/index.d.ts +1 -1
- package/dist/mosaic/index.d.ts.map +1 -1
- package/dist/mosaic/index.js +1 -1
- package/dist/mosaic/index.js.map +1 -1
- package/package.json +9 -7
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* {@include ../README.md}
|
|
3
3
|
* @packageDocumentation
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export { createLayoutSlice, useStoreWithLayout, createDefaultLayoutConfig, LayoutSliceConfig, } from './LayoutSlice';
|
|
6
|
+
export type { RoomPanelInfo, LayoutSliceState, CreateLayoutSliceProps, } from './LayoutSlice';
|
|
7
|
+
export { makeMosaicStack, visitMosaicLeafNodes, getVisibleMosaicLayoutPanels, findMosaicNodePathByKey, removeMosaicNodeByKey, } from './mosaic/mosaic-utils';
|
|
8
|
+
export { default as MosaicLayout } from './mosaic/MosaicLayout';
|
|
9
|
+
export { MAIN_VIEW, LayoutTypes, DEFAULT_MOSAIC_LAYOUT, createDefaultMosaicLayout, MosaicLayoutDirection, MosaicLayoutParent, isMosaicLayoutParent, MosaicLayoutNodeKey, MosaicLayoutNode, MosaicLayoutConfig, LayoutConfig, } from '@sqlrooms/layout-config';
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAI9D,OAAO,EACL,SAAS,EACT,WAAW,EACX,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,GACb,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
* {@include ../README.md}
|
|
3
3
|
* @packageDocumentation
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export { createLayoutSlice, useStoreWithLayout, createDefaultLayoutConfig, LayoutSliceConfig, } from './LayoutSlice';
|
|
6
|
+
export { makeMosaicStack, visitMosaicLeafNodes, getVisibleMosaicLayoutPanels, findMosaicNodePathByKey, removeMosaicNodeByKey, } from './mosaic/mosaic-utils';
|
|
7
|
+
export { default as MosaicLayout } from './mosaic/MosaicLayout';
|
|
8
|
+
// Re-export from @sqlrooms/layout-config
|
|
9
|
+
// Values also export their corresponding types automatically
|
|
10
|
+
export { MAIN_VIEW, LayoutTypes, DEFAULT_MOSAIC_LAYOUT, createDefaultMosaicLayout, MosaicLayoutDirection, MosaicLayoutParent, isMosaicLayoutParent, MosaicLayoutNodeKey, MosaicLayoutNode, MosaicLayoutConfig, LayoutConfig, } from '@sqlrooms/layout-config';
|
|
8
11
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAOvB,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAE9D,yCAAyC;AACzC,6DAA6D;AAC7D,OAAO,EACL,SAAS,EACT,WAAW,EACX,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,GACb,MAAM,yBAAyB,CAAC","sourcesContent":["/**\n * {@include ../README.md}\n * @packageDocumentation\n */\n\nexport {\n createLayoutSlice,\n useStoreWithLayout,\n createDefaultLayoutConfig,\n LayoutSliceConfig,\n} from './LayoutSlice';\nexport type {\n RoomPanelInfo,\n LayoutSliceState,\n CreateLayoutSliceProps,\n} from './LayoutSlice';\n\nexport {\n makeMosaicStack,\n visitMosaicLeafNodes,\n getVisibleMosaicLayoutPanels,\n findMosaicNodePathByKey,\n removeMosaicNodeByKey,\n} from './mosaic/mosaic-utils';\n\nexport {default as MosaicLayout} from './mosaic/MosaicLayout';\n\n// Re-export from @sqlrooms/layout-config\n// Values also export their corresponding types automatically\nexport {\n MAIN_VIEW,\n LayoutTypes,\n DEFAULT_MOSAIC_LAYOUT,\n createDefaultMosaicLayout,\n MosaicLayoutDirection,\n MosaicLayoutParent,\n isMosaicLayoutParent,\n MosaicLayoutNodeKey,\n MosaicLayoutNode,\n MosaicLayoutConfig,\n LayoutConfig,\n} from '@sqlrooms/layout-config';\n"]}
|
|
@@ -5,7 +5,7 @@ import { MosaicWindow } from 'react-mosaic-component';
|
|
|
5
5
|
const ENABLE_LAYOUT_REARRANGE = false;
|
|
6
6
|
const MosaicTile = (props) => {
|
|
7
7
|
const { id, content, path, isDragging, className } = props;
|
|
8
|
-
const body = (_jsx("div", { className: cn('h-full flex-1 flex-col overflow-hidden
|
|
8
|
+
const body = (_jsx("div", { className: cn('h-full flex-1 flex-col overflow-hidden p-2', className, isDragging ? 'pointer-events-none' : ''), children: content }));
|
|
9
9
|
if (!ENABLE_LAYOUT_REARRANGE || id === MAIN_VIEW) {
|
|
10
10
|
return body;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MosaicTile.js","sourceRoot":"","sources":["../../src/mosaic/MosaicTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAC,EAAE,EAAC,MAAM,cAAc,CAAC;AAEhC,OAAO,EAAe,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAElE,MAAM,uBAAuB,GAAG,KAAK,CAAC;AAEtC,MAAM,UAAU,GAMX,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAC,GAAG,KAAK,CAAC;IACzD,MAAM,IAAI,GAAG,CACX,cACE,SAAS,EAAE,EAAE,CACX,
|
|
1
|
+
{"version":3,"file":"MosaicTile.js","sourceRoot":"","sources":["../../src/mosaic/MosaicTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAC,EAAE,EAAC,MAAM,cAAc,CAAC;AAEhC,OAAO,EAAe,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAElE,MAAM,uBAAuB,GAAG,KAAK,CAAC;AAEtC,MAAM,UAAU,GAMX,CAAC,KAAK,EAAE,EAAE;IACb,MAAM,EAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAC,GAAG,KAAK,CAAC;IACzD,MAAM,IAAI,GAAG,CACX,cACE,SAAS,EAAE,EAAE,CACX,4CAA4C,EAC5C,SAAS,EACT,UAAU,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CACxC,YAEA,OAAO,GACJ,CACP,CAAC;IACF,IAAI,CAAC,uBAAuB,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAE,EAAE;QACT,uBAAuB;QACvB,IAAI;QACJ,qCAAqC;QACrC,IAAI,EAAE,IAAI;QACV,8DAA8D;QAC9D,oEAAoE;QACpE,aAAa,EAAE,GAAG,EAAE,CAClB,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,CACjB,eAAO,CACR,CAAC,CAAC,CAAC,CACF,cAAK,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAC,GAEtD,CACP,YAGF,IAAI,GACQ,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import {MAIN_VIEW} from '@sqlrooms/layout-config';\nimport {cn} from '@sqlrooms/ui';\nimport {FC} from 'react';\nimport {MosaicBranch, MosaicWindow} from 'react-mosaic-component';\n\nconst ENABLE_LAYOUT_REARRANGE = false;\n\nconst MosaicTile: FC<{\n id: string;\n path: MosaicBranch[];\n content: React.ReactNode;\n isDragging: boolean;\n className?: string;\n}> = (props) => {\n const {id, content, path, isDragging, className} = props;\n const body = (\n <div\n className={cn(\n 'h-full flex-1 flex-col overflow-hidden p-2',\n className,\n isDragging ? 'pointer-events-none' : '',\n )}\n >\n {content}\n </div>\n );\n if (!ENABLE_LAYOUT_REARRANGE || id === MAIN_VIEW) {\n return body;\n }\n return (\n <MosaicWindow<string>\n title={id}\n // additionalControls={\n // }\n // createNode={() => genRandomStr(6)}\n path={path}\n // onDragStart={() => console.log('MosaicWindow.onDragStart')}\n // onDragEnd={(type) => console.log('MosaicWindow.onDragEnd', type)}\n renderToolbar={() =>\n id === MAIN_VIEW ? (\n <div />\n ) : (\n <div style={{display: 'flex', width: '100%', height: '100%'}}>\n {/* <RoomPanelHeader panelKey={id as RoomPanelTypes} /> */}\n </div>\n )\n }\n >\n {body}\n </MosaicWindow>\n );\n};\n\nexport default MosaicTile;\n"]}
|
package/dist/mosaic/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { makeMosaicStack, visitMosaicLeafNodes, getVisibleMosaicLayoutPanels, findMosaicNodePathByKey, removeMosaicNodeByKey, } from './mosaic-utils';
|
|
2
2
|
export { default as MosaicLayout } from './MosaicLayout';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mosaic/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mosaic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC"}
|
package/dist/mosaic/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { makeMosaicStack, visitMosaicLeafNodes, getVisibleMosaicLayoutPanels, findMosaicNodePathByKey, removeMosaicNodeByKey, } from './mosaic-utils';
|
|
2
2
|
export { default as MosaicLayout } from './MosaicLayout';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/mosaic/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mosaic/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mosaic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,gBAAgB,CAAC","sourcesContent":["export {\n makeMosaicStack,\n visitMosaicLeafNodes,\n getVisibleMosaicLayoutPanels,\n findMosaicNodePathByKey,\n removeMosaicNodeByKey,\n} from './mosaic-utils';\n\nexport {default as MosaicLayout} from './MosaicLayout';\n"]}
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqlrooms/layout",
|
|
3
|
-
"version": "0.26.1-rc.
|
|
3
|
+
"version": "0.26.1-rc.12",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"*.css"
|
|
10
|
+
],
|
|
8
11
|
"author": "Ilya Boyandin <ilya@boyandin.me>",
|
|
9
12
|
"license": "MIT",
|
|
10
13
|
"repository": {
|
|
@@ -18,11 +21,10 @@
|
|
|
18
21
|
"access": "public"
|
|
19
22
|
},
|
|
20
23
|
"dependencies": {
|
|
21
|
-
"@sqlrooms/layout-config": "0.26.1-rc.
|
|
22
|
-
"@sqlrooms/room-
|
|
23
|
-
"@sqlrooms/
|
|
24
|
-
"
|
|
25
|
-
"immer": "^10.1.3",
|
|
24
|
+
"@sqlrooms/layout-config": "0.26.1-rc.12",
|
|
25
|
+
"@sqlrooms/room-store": "0.26.1-rc.12",
|
|
26
|
+
"@sqlrooms/ui": "0.26.1-rc.12",
|
|
27
|
+
"immer": "^11.0.1",
|
|
26
28
|
"zod": "^4.1.8",
|
|
27
29
|
"zustand": "^5.0.8"
|
|
28
30
|
},
|
|
@@ -38,5 +40,5 @@
|
|
|
38
40
|
"typecheck": "tsc --noEmit",
|
|
39
41
|
"typedoc": "typedoc"
|
|
40
42
|
},
|
|
41
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "2b9d9c03a48aae500c6f725b36bb89d43ef8d2eb"
|
|
42
44
|
}
|