@dxos/plugin-navtree 0.8.4-main.3f58842 → 0.8.4-main.5acf9ea

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 (28) hide show
  1. package/dist/lib/browser/{chunk-SICQTLXC.mjs → chunk-WEMCSQI7.mjs} +140 -113
  2. package/dist/lib/browser/chunk-WEMCSQI7.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +3 -2
  4. package/dist/lib/browser/index.mjs.map +2 -2
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/{react-surface-WURHCBQQ.mjs → react-surface-JSJ5SQX5.mjs} +2 -2
  7. package/dist/types/src/components/NavTree/NavTree.d.ts +2 -2
  8. package/dist/types/src/components/NavTree/NavTree.d.ts.map +1 -1
  9. package/dist/types/src/components/NavTreeItem/NavTreeItemColumns.d.ts +1 -1
  10. package/dist/types/src/components/NavTreeItem/NavTreeItemColumns.d.ts.map +1 -1
  11. package/dist/types/src/components/Sidebar/L1Panel.d.ts +5 -6
  12. package/dist/types/src/components/Sidebar/L1Panel.d.ts.map +1 -1
  13. package/dist/types/src/components/Sidebar/L1Tabs.d.ts +12 -0
  14. package/dist/types/src/components/Sidebar/L1Tabs.d.ts.map +1 -0
  15. package/dist/types/src/components/Sidebar/index.d.ts +1 -0
  16. package/dist/types/src/components/Sidebar/index.d.ts.map +1 -1
  17. package/dist/types/src/translations.d.ts +1 -0
  18. package/dist/types/src/translations.d.ts.map +1 -1
  19. package/dist/types/tsconfig.tsbuildinfo +1 -1
  20. package/package.json +38 -37
  21. package/src/components/NavTree/NavTree.tsx +3 -3
  22. package/src/components/NavTreeItem/NavTreeItemColumns.tsx +2 -3
  23. package/src/components/Sidebar/L1Panel.tsx +72 -92
  24. package/src/components/Sidebar/L1Tabs.tsx +57 -0
  25. package/src/components/Sidebar/index.ts +1 -0
  26. package/src/translations.ts +1 -0
  27. package/dist/lib/browser/chunk-SICQTLXC.mjs.map +0 -7
  28. /package/dist/lib/browser/{react-surface-WURHCBQQ.mjs.map → react-surface-JSJ5SQX5.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { NavTreeItemColumnsProps } from '../types';
2
+ import { type NavTreeItemColumnsProps } from '../types';
3
3
  export declare const NavTreeItemColumns: React.MemoExoticComponent<({ path, item, open, density }: NavTreeItemColumnsProps) => React.JSX.Element>;
4
4
  //# sourceMappingURL=NavTreeItemColumns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavTreeItemColumns.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTreeItem/NavTreeItemColumns.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAU9C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,kBAAkB,4DAAiD,uBAAuB,uBAwDrG,CAAC"}
1
+ {"version":3,"file":"NavTreeItemColumns.d.ts","sourceRoot":"","sources":["../../../../../src/components/NavTreeItem/NavTreeItemColumns.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAU9C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,kBAAkB,4DAAiD,uBAAuB,uBAuDrG,CAAC"}
@@ -2,14 +2,13 @@ import React from 'react';
2
2
  import { type Node } from '@dxos/app-graph';
3
3
  export type L1PanelProps = {
4
4
  open?: boolean;
5
- item: Node<any>;
6
5
  path: string[];
6
+ item: Node<any>;
7
7
  currentItemId: string;
8
8
  onBack?: () => void;
9
9
  };
10
- export type L1PanelsProps = Pick<L1PanelProps, 'open' | 'currentItemId' | 'onBack'> & {
11
- topLevelItems: Node<any>[];
12
- path: string[];
13
- };
14
- export declare const L1Panels: ({ topLevelItems, onBack, ...props }: L1PanelsProps) => React.JSX.Element;
10
+ /**
11
+ * Space or settings panel.
12
+ */
13
+ export declare const L1Panel: ({ open, path, item, currentItemId, onBack }: L1PanelProps) => React.JSX.Element;
15
14
  //# sourceMappingURL=L1Panel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"L1Panel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L1Panel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AA2B5C,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAiHF,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,eAAe,GAAG,QAAQ,CAAC,GAAG;IACpF,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,qCAAqC,aAAa,sBAgB1E,CAAC"}
1
+ {"version":3,"file":"L1Panel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L1Panel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAU5C,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,6CAA6C,YAAY,sBAiEhF,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { type Node } from '@dxos/app-graph';
3
+ import { type L1PanelProps } from './L1Panel';
4
+ export type L1TabsProps = Pick<L1PanelProps, 'open' | 'currentItemId' | 'onBack'> & {
5
+ path: string[];
6
+ topLevelItems: Node<any>[];
7
+ };
8
+ /**
9
+ * Each space is an L1 tab.
10
+ */
11
+ export declare const L1Tabs: ({ topLevelItems, onBack, ...props }: L1TabsProps) => React.JSX.Element;
12
+ //# sourceMappingURL=L1Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"L1Tabs.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/L1Tabs.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAK5C,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,eAAe,GAAG,QAAQ,CAAC,GAAG;IAClF,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,aAAa,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,qCAAqC,WAAW,sBAgBtE,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './L0Menu';
2
2
  export * from './L1Panel';
3
+ export * from './L1Tabs';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
@@ -10,6 +10,7 @@ export declare const translations: [{
10
10
  readonly 'node actions menu invoker label': "More options";
11
11
  readonly 'tree item actions label': "More actions";
12
12
  readonly 'empty branch message': " ";
13
+ readonly 'button back': "Back to Space";
13
14
  };
14
15
  };
15
16
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;UASR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;UAUR;;EAGwB,CAAC"}