@dxos/app-framework 0.6.11 → 0.6.12-main.5a87ad5
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/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +1 -1
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/chunk-ERPIGFBI.mjs +28 -0
- package/dist/lib/node-esm/chunk-ERPIGFBI.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IY7HCP4K.mjs +22 -0
- package/dist/lib/node-esm/chunk-IY7HCP4K.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-P2TQLXZR.mjs +54 -0
- package/dist/lib/node-esm/chunk-P2TQLXZR.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +677 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/lib/node-esm/plugin-24ZP3LDU.mjs +40 -0
- package/dist/lib/node-esm/plugin-24ZP3LDU.mjs.map +7 -0
- package/dist/lib/node-esm/plugin-5AAUGDB3.mjs +168 -0
- package/dist/lib/node-esm/plugin-5AAUGDB3.mjs.map +7 -0
- package/dist/types/src/plugins/PluginHost/plugin.d.ts +2 -13
- package/dist/types/src/plugins/PluginHost/plugin.d.ts.map +1 -1
- package/dist/types/src/plugins/PluginHost/plugin.test.d.ts.map +1 -1
- package/dist/types/src/plugins/common/navigation.d.ts +3 -3
- package/dist/types/src/plugins/common/navigation.d.ts.map +1 -1
- package/package.json +12 -11
- package/project.json +3 -8
- package/src/plugins/PluginHost/plugin.test.ts +1 -2
- package/src/plugins/PluginHost/plugin.ts +1 -8
- package/src/plugins/common/navigation.ts +1 -2
- package/vitest.config.ts +9 -0
package/project.json
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { expect } from 'chai';
|
|
6
5
|
import { type FC } from 'react';
|
|
6
|
+
import { describe, expect, test } from 'vitest';
|
|
7
7
|
|
|
8
8
|
import { log } from '@dxos/log';
|
|
9
|
-
import { describe, test } from '@dxos/test';
|
|
10
9
|
|
|
11
10
|
import { type Plugin } from './plugin';
|
|
12
11
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import type { IconProps } from '@phosphor-icons/react';
|
|
6
5
|
import type { FC, PropsWithChildren } from 'react';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -64,16 +63,10 @@ export type Plugin<TProvides = {}> = {
|
|
|
64
63
|
*/
|
|
65
64
|
tags?: string[];
|
|
66
65
|
|
|
67
|
-
/**
|
|
68
|
-
* Component to render icon for the plugin when displayed in a list.
|
|
69
|
-
* @deprecated
|
|
70
|
-
*/
|
|
71
|
-
iconComponent?: FC<IconProps>;
|
|
72
|
-
|
|
73
66
|
/**
|
|
74
67
|
* A grep-able symbol string which can be resolved to an icon asset by @ch-ui/icons, via @ch-ui/vite-plugin-icons.
|
|
75
68
|
*/
|
|
76
|
-
|
|
69
|
+
icon?: string;
|
|
77
70
|
};
|
|
78
71
|
|
|
79
72
|
/**
|
|
@@ -19,7 +19,6 @@ export const SLUG_COLLECTION_INDICATOR = '';
|
|
|
19
19
|
const LayoutEntrySchema = S.mutable(S.Struct({ id: S.String, path: S.optional(S.String) }));
|
|
20
20
|
export type LayoutEntry = S.Schema.Type<typeof LayoutEntrySchema>;
|
|
21
21
|
|
|
22
|
-
// TODO(Zan): Consider making solo it's own part. It's not really a function of the 'main' part?
|
|
23
22
|
// TODO(Zan): Consider renaming the 'main' part to 'deck' part now that we are throwing out the old layout plugin.
|
|
24
23
|
// TODO(Zan): Extend to all strings?
|
|
25
24
|
const LayoutPartSchema = S.Union(
|
|
@@ -56,7 +55,7 @@ export type LayoutContainerProps<T> = T & { role?: string; coordinate?: LayoutCo
|
|
|
56
55
|
* Basic state provided by a navigation plugin.
|
|
57
56
|
*/
|
|
58
57
|
export const Attention = z.object({
|
|
59
|
-
attended: z.set(z.string()).
|
|
58
|
+
attended: z.set(z.string()).describe('Ids of items which have focus.'),
|
|
60
59
|
});
|
|
61
60
|
export type Attention = z.infer<typeof Attention>;
|
|
62
61
|
|
package/vitest.config.ts
ADDED