@dxos/plugin-preview 0.8.4-main.7ace549 → 0.8.4-main.9735255
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/{chunk-CEWM5LJG.mjs → chunk-XLN6KTHK.mjs} +1 -1
- package/dist/lib/browser/chunk-XLN6KTHK.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +24 -34
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{preview-popover-4QZ2WDE6.mjs → preview-popover-Y67LE6TV.mjs} +33 -20
- package/dist/lib/browser/preview-popover-Y67LE6TV.mjs.map +7 -0
- package/dist/lib/browser/react-surface-YCDD5VZC.mjs +263 -0
- package/dist/lib/browser/react-surface-YCDD5VZC.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-Q5MUNELK.mjs → chunk-2G4FUGDA.mjs} +1 -1
- package/dist/lib/node-esm/chunk-2G4FUGDA.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +24 -34
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{preview-popover-FJ2ARIGS.mjs → preview-popover-BGV2P6UX.mjs} +33 -20
- package/dist/lib/node-esm/preview-popover-BGV2P6UX.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-MYZZR7AQ.mjs +264 -0
- package/dist/lib/node-esm/react-surface-MYZZR7AQ.mjs.map +7 -0
- package/dist/types/src/PreviewPlugin.d.ts +2 -1
- package/dist/types/src/PreviewPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/preview-popover/index.d.ts +3 -0
- package/dist/types/src/capabilities/preview-popover/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/preview-popover/preview-popover.d.ts +5 -0
- package/dist/types/src/capabilities/preview-popover/preview-popover.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/cards/FormCard.d.ts +7 -0
- package/dist/types/src/cards/FormCard.d.ts.map +1 -0
- package/dist/types/src/cards/OrganizationCard.d.ts +2 -2
- package/dist/types/src/cards/OrganizationCard.d.ts.map +1 -1
- package/dist/types/src/cards/PersonCard.d.ts +2 -2
- package/dist/types/src/cards/PersonCard.d.ts.map +1 -1
- package/dist/types/src/cards/ProjectCard.d.ts +2 -2
- package/dist/types/src/cards/ProjectCard.d.ts.map +1 -1
- package/dist/types/src/cards/TaskCard.d.ts +2 -2
- package/dist/types/src/cards/TaskCard.d.ts.map +1 -1
- package/dist/types/src/cards/index.d.ts +1 -0
- package/dist/types/src/cards/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/stories/Card.stories.d.ts +8 -6
- package/dist/types/src/stories/Card.stories.d.ts.map +1 -1
- package/dist/types/src/stories/testing.d.ts +13 -12
- package/dist/types/src/stories/testing.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +43 -34
- package/src/PreviewPlugin.tsx +10 -22
- package/src/capabilities/index.ts +2 -4
- package/src/capabilities/preview-popover/index.ts +7 -0
- package/src/capabilities/preview-popover/preview-popover.ts +77 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +97 -0
- package/src/cards/FormCard.tsx +63 -0
- package/src/cards/OrganizationCard.tsx +12 -17
- package/src/cards/PersonCard.tsx +35 -51
- package/src/cards/ProjectCard.tsx +7 -9
- package/src/cards/TaskCard.tsx +17 -23
- package/src/cards/index.ts +1 -0
- package/src/index.ts +0 -1
- package/src/meta.ts +2 -2
- package/src/stories/Card.stories.tsx +26 -20
- package/src/stories/testing.tsx +41 -71
- package/dist/lib/browser/chunk-CEWM5LJG.mjs.map +0 -7
- package/dist/lib/browser/preview-popover-4QZ2WDE6.mjs.map +0 -7
- package/dist/lib/browser/react-surface-X4KEMECS.mjs +0 -498
- package/dist/lib/browser/react-surface-X4KEMECS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Q5MUNELK.mjs.map +0 -7
- package/dist/lib/node-esm/preview-popover-FJ2ARIGS.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-DR3UAH6F.mjs +0 -499
- package/dist/lib/node-esm/react-surface-DR3UAH6F.mjs.map +0 -7
- package/dist/types/src/capabilities/preview-popover.d.ts +0 -4
- package/dist/types/src/capabilities/preview-popover.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/components/CardComponents.d.ts +0 -16
- package/dist/types/src/components/CardComponents.d.ts.map +0 -1
- package/dist/types/src/components/CardSubjectMenu.d.ts +0 -8
- package/dist/types/src/components/CardSubjectMenu.d.ts.map +0 -1
- package/dist/types/src/components/index.d.ts +0 -3
- package/dist/types/src/components/index.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -12
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/capabilities/preview-popover.ts +0 -69
- package/src/capabilities/react-surface.tsx +0 -157
- package/src/components/CardComponents.tsx +0 -67
- package/src/components/CardSubjectMenu.tsx +0 -103
- package/src/components/index.ts +0 -6
- package/src/types.ts +0 -25
package/src/meta.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { type
|
|
5
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
6
6
|
import { trim } from '@dxos/util';
|
|
7
7
|
|
|
8
|
-
export const meta:
|
|
8
|
+
export const meta: Plugin.Meta = {
|
|
9
9
|
id: 'dxos.org/plugin/preview',
|
|
10
10
|
name: 'Preview',
|
|
11
11
|
description: trim`
|
|
@@ -4,59 +4,65 @@
|
|
|
4
4
|
|
|
5
5
|
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
6
6
|
|
|
7
|
-
import { IntentPlugin } from '@dxos/app-framework';
|
|
8
7
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
8
|
+
import { corePlugins } from '@dxos/plugin-testing';
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
|
-
import { withTheme } from '@dxos/react-ui/testing';
|
|
10
|
+
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
11
|
+
import { type Organization, type Person, type Project, type Task } from '@dxos/types';
|
|
11
12
|
|
|
13
|
+
import { OrganizationCard, PersonCard, ProjectCard, TaskCard } from '../cards';
|
|
12
14
|
import { translations } from '../translations';
|
|
13
15
|
|
|
14
|
-
import {
|
|
16
|
+
import { DefaultStory, createOrganization, createPerson, createProject, createTask } from './testing';
|
|
15
17
|
|
|
16
18
|
faker.seed(999);
|
|
17
19
|
|
|
18
20
|
const meta = {
|
|
19
21
|
title: 'plugins/plugin-preview/Card',
|
|
20
|
-
render:
|
|
22
|
+
render: DefaultStory,
|
|
21
23
|
decorators: [
|
|
22
24
|
withTheme,
|
|
25
|
+
withLayout({ layout: 'column', scroll: true }),
|
|
23
26
|
// TODO(wittjosiah): Try to write story which does not depend on plugin manager.
|
|
24
|
-
withPluginManager({ plugins:
|
|
27
|
+
withPluginManager({ plugins: corePlugins() }),
|
|
25
28
|
],
|
|
26
29
|
parameters: {
|
|
27
30
|
translations,
|
|
31
|
+
layout: 'fullscreen',
|
|
28
32
|
},
|
|
29
33
|
tags: ['cards'],
|
|
30
|
-
} satisfies Meta<typeof
|
|
34
|
+
} satisfies Meta<typeof DefaultStory>;
|
|
31
35
|
|
|
32
36
|
export default meta;
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export const Popover: Story = {
|
|
38
|
+
export const _Person: StoryObj<typeof DefaultStory<Person.Person>> = {
|
|
37
39
|
args: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
Component: PersonCard,
|
|
41
|
+
createObject: createPerson,
|
|
42
|
+
image: true,
|
|
40
43
|
},
|
|
41
44
|
};
|
|
42
45
|
|
|
43
|
-
export const
|
|
46
|
+
export const _Organization: StoryObj<typeof DefaultStory<Organization.Organization>> = {
|
|
44
47
|
args: {
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
Component: OrganizationCard,
|
|
49
|
+
createObject: createOrganization,
|
|
50
|
+
image: true,
|
|
47
51
|
},
|
|
48
52
|
};
|
|
49
53
|
|
|
50
|
-
export const
|
|
54
|
+
export const _Project: StoryObj<typeof DefaultStory<Project.Project>> = {
|
|
51
55
|
args: {
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
Component: ProjectCard,
|
|
57
|
+
createObject: createProject,
|
|
58
|
+
image: true,
|
|
54
59
|
},
|
|
55
60
|
};
|
|
56
61
|
|
|
57
|
-
export const
|
|
62
|
+
export const _Task: StoryObj<typeof DefaultStory<Task.Task>> = {
|
|
58
63
|
args: {
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
Component: TaskCard,
|
|
65
|
+
createObject: createTask,
|
|
66
|
+
image: true,
|
|
61
67
|
},
|
|
62
68
|
};
|
package/src/stories/testing.tsx
CHANGED
|
@@ -2,50 +2,51 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import React, { type FC } from 'react';
|
|
5
|
+
import React, { type FC, useMemo } from 'react';
|
|
6
6
|
|
|
7
|
+
import { type SurfaceComponentProps } from '@dxos/app-framework/react';
|
|
7
8
|
import { Obj, Ref } from '@dxos/echo';
|
|
8
9
|
import { faker } from '@dxos/random';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { Project } from '@dxos/types';
|
|
10
|
+
import { Card } from '@dxos/react-ui-mosaic';
|
|
11
|
+
import { CardContainer } from '@dxos/react-ui-mosaic/testing';
|
|
12
|
+
import { Organization, Person, Project, Task } from '@dxos/types';
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
type CardProps<T extends Obj.Any> = {
|
|
17
|
-
Component: FC<CardPreviewProps<T>>;
|
|
18
|
-
subject: T;
|
|
19
|
-
icon?: string;
|
|
14
|
+
export type DefaultStoryProps<T extends Obj.Any> = {
|
|
15
|
+
Component: FC<SurfaceComponentProps<T>>;
|
|
16
|
+
createObject: () => T;
|
|
20
17
|
image?: boolean;
|
|
21
18
|
};
|
|
22
19
|
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
export const DefaultStory = <T extends Obj.Any>({ Component, createObject, image }: DefaultStoryProps<T>) => {
|
|
21
|
+
// TODO(wittjosiah): ECHO objects don't work when passed via Storybook args.
|
|
22
|
+
const object = useMemo(() => createObject(), [createObject]);
|
|
23
|
+
const roles: SurfaceComponentProps['role'][] = ['card--popover', 'card--intrinsic'];
|
|
27
24
|
|
|
28
|
-
export const Defaultstory = ({ role, cards }: DefaultstoryProps) => {
|
|
29
25
|
return (
|
|
30
|
-
<div className='
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
<div
|
|
34
|
-
<
|
|
35
|
-
|
|
26
|
+
<div className='grid grid-rows-4 gap-16 plb-8'>
|
|
27
|
+
{roles.map((role, i) => (
|
|
28
|
+
<div key={i} className='flex justify-center'>
|
|
29
|
+
<div className='flex flex-col gap-4 is-full items-center'>
|
|
30
|
+
<label className='text-sm text-description'>{role}</label>
|
|
31
|
+
<CardContainer role={role}>
|
|
32
|
+
<Card.Root>
|
|
33
|
+
<Component role={role} subject={image ? object : omitImage(object)} />
|
|
34
|
+
</Card.Root>
|
|
36
35
|
</CardContainer>
|
|
37
36
|
</div>
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
</div>
|
|
38
|
+
))}
|
|
40
39
|
</div>
|
|
41
40
|
);
|
|
42
41
|
};
|
|
43
42
|
|
|
44
43
|
export const omitImage = ({ image: _, ...rest }: any) => rest;
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Factory functions for creating test objects at render time.
|
|
47
|
+
*/
|
|
48
|
+
export const createOrganization = (): Organization.Organization =>
|
|
49
|
+
Obj.make(Organization.Organization, {
|
|
49
50
|
name: faker.company.name(),
|
|
50
51
|
image:
|
|
51
52
|
'https://plus.unsplash.com/premium_photo-1672116452571-896980a801c8?q=80&w=2671&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
|
|
@@ -53,62 +54,31 @@ export const createCards = (image = true): CardProps<any>[] => {
|
|
|
53
54
|
description: faker.lorem.paragraph(),
|
|
54
55
|
});
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
export const createPerson = (): Person.Person => {
|
|
58
|
+
const organization = createOrganization();
|
|
59
|
+
return Obj.make(Person.Person, {
|
|
57
60
|
fullName: faker.person.fullName(),
|
|
58
61
|
image:
|
|
59
62
|
'https://plus.unsplash.com/premium_photo-1664536392779-049ba8fde933?q=80&w=2574&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
|
|
60
63
|
organization: Ref.make(organization),
|
|
61
64
|
emails: [
|
|
62
|
-
{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
label: 'Work',
|
|
68
|
-
value: faker.internet.email(),
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
label: 'Work',
|
|
72
|
-
value: faker.internet.email(),
|
|
73
|
-
},
|
|
65
|
+
{ label: 'Work', value: faker.internet.email() },
|
|
66
|
+
{ label: 'Work', value: faker.internet.email() },
|
|
67
|
+
{ label: 'Work', value: faker.internet.email() },
|
|
74
68
|
],
|
|
75
69
|
});
|
|
70
|
+
};
|
|
76
71
|
|
|
77
|
-
|
|
72
|
+
export const createProject = (): Project.Project =>
|
|
73
|
+
Obj.make(Project.Project, {
|
|
78
74
|
name: faker.person.fullName(),
|
|
79
75
|
image: 'https://dxos.network/dxos-logotype-blue.png',
|
|
80
76
|
description: faker.lorem.paragraph(),
|
|
77
|
+
columns: [],
|
|
81
78
|
});
|
|
82
79
|
|
|
83
|
-
|
|
80
|
+
export const createTask = (): Task.Task =>
|
|
81
|
+
Obj.make(Task.Task, {
|
|
84
82
|
title: faker.lorem.sentence(),
|
|
85
|
-
status: faker.helpers.arrayElement(['todo', 'in-progress', 'done']),
|
|
83
|
+
status: faker.helpers.arrayElement(['todo', 'in-progress', 'done'] as const),
|
|
86
84
|
});
|
|
87
|
-
|
|
88
|
-
return [
|
|
89
|
-
{
|
|
90
|
-
Component: OrganizationCard,
|
|
91
|
-
subject: organization,
|
|
92
|
-
icon: 'ph--building-office--regular',
|
|
93
|
-
image,
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
Component: PersonCard,
|
|
97
|
-
subject: contact,
|
|
98
|
-
icon: 'ph--user--regular',
|
|
99
|
-
image,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
Component: ProjectCard,
|
|
103
|
-
subject: project,
|
|
104
|
-
icon: 'ph--building--regular',
|
|
105
|
-
image,
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
Component: TaskCard,
|
|
109
|
-
subject: task,
|
|
110
|
-
icon: 'ph--list-checks--regular',
|
|
111
|
-
image,
|
|
112
|
-
},
|
|
113
|
-
];
|
|
114
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: PluginMeta = {\n id: 'dxos.org/plugin/preview',\n name: 'Preview',\n description: trim`\n Rich preview panel for viewing object content without opening full editors.\n Quick peek at documents, images, and data with inline rendering.\n `,\n icon: 'ph--eye--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-preview',\n};\n"],
|
|
5
|
-
"mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAmB;EAC9BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,QAAQ;AACV;",
|
|
6
|
-
"names": ["trim", "meta", "id", "name", "description", "trim", "icon", "source"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/preview-popover.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, LayoutAction, type PluginContext, contributes, createIntent } from '@dxos/app-framework';\nimport { addEventListener } from '@dxos/async';\nimport { type Client } from '@dxos/client';\nimport { type Space, parseId } from '@dxos/client/echo';\nimport { DXN } from '@dxos/keys';\nimport { log } from '@dxos/log';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { DX_ANCHOR_ACTIVATE, type DxAnchorActivate } from '@dxos/react-ui';\nimport { type PreviewLinkRef, type PreviewLinkTarget } from '@dxos/react-ui-editor';\n\nconst customEventOptions = { capture: true, passive: false };\n\nconst handlePreviewLookup = async (\n client: Client,\n defaultSpace: Space,\n { ref, label }: PreviewLinkRef,\n): Promise<PreviewLinkTarget | null> => {\n try {\n const object = await defaultSpace.db.makeRef(DXN.parse(ref)).load();\n return { label, object };\n } catch {\n return null;\n }\n};\n\nexport default (context: PluginContext) => {\n // TODO(wittjosiah): Factor out lookup handlers to other plugins to make not ECHO-specific.\n const handleAnchorActivate = async ({ refId, label, trigger }: DxAnchorActivate) => {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n const client = context.getCapability(ClientCapabilities.Client);\n const [layout] = context.getCapabilities(Capabilities.Layout);\n const { spaceId } = parseId(layout.workspace);\n const space = (spaceId && client.spaces.get(spaceId)) ?? client.spaces.default;\n const result = await handlePreviewLookup(client, space, { ref: refId, label });\n if (!result) {\n return;\n }\n\n await dispatch(\n createIntent(LayoutAction.UpdatePopover, {\n part: 'popover',\n subject: result.object,\n options: {\n state: true,\n variant: 'virtual',\n anchor: trigger,\n },\n }),\n );\n };\n\n let cleanup: () => void;\n if (document.defaultView) {\n cleanup = addEventListener(\n document.defaultView,\n DX_ANCHOR_ACTIVATE as any,\n handleAnchorActivate,\n customEventOptions,\n );\n } else {\n log.warn('No default view found');\n }\n\n return contributes(Capabilities.Null, null, () => cleanup());\n};\n"],
|
|
5
|
-
"mappings": ";AAIA,SAASA,cAAcC,cAAkCC,aAAaC,oBAAoB;AAC1F,SAASC,wBAAwB;AAEjC,SAAqBC,eAAe;AACpC,SAASC,WAAW;AACpB,SAASC,WAAW;AACpB,SAASC,0BAA0B;AACnC,SAASC,0BAAiD;;AAG1D,IAAMC,qBAAqB;EAAEC,SAAS;EAAMC,SAAS;AAAM;AAE3D,IAAMC,sBAAsB,OAC1BC,QACAC,cACA,EAAEC,KAAKC,MAAK,MAAkB;AAE9B,MAAI;AACF,UAAMC,SAAS,MAAMH,aAAaI,GAAGC,QAAQd,IAAIe,MAAML,GAAAA,CAAAA,EAAMM,KAAI;AACjE,WAAO;MAAEL;MAAOC;IAAO;EACzB,QAAQ;AACN,WAAO;EACT;AACF;AAEA,IAAA,2BAAe,CAACK,YAAAA;AAEd,QAAMC,uBAAuB,OAAO,EAAEC,OAAOR,OAAOS,QAAO,MAAoB;AAC7E,UAAM,EAAEC,iBAAiBC,SAAQ,IAAKL,QAAQM,cAAc7B,aAAa8B,gBAAgB;AACzF,UAAMhB,SAASS,QAAQM,cAAcrB,mBAAmBuB,MAAM;AAC9D,UAAM,CAACC,MAAAA,IAAUT,QAAQU,gBAAgBjC,aAAakC,MAAM;AAC5D,UAAM,EAAEC,QAAO,IAAK9B,QAAQ2B,OAAOI,SAAS;AAC5C,UAAMC,SAASF,WAAWrB,OAAOwB,OAAOC,IAAIJ,OAAAA,MAAarB,OAAOwB,OAAOE;AACvE,UAAMC,SAAS,MAAM5B,oBAAoBC,QAAQuB,OAAO;MAAErB,KAAKS;MAAOR;IAAM,CAAA;AAC5E,QAAI,CAACwB,QAAQ;AACX;IACF;AAEA,UAAMb,SACJzB,aAAaF,aAAayC,eAAe;MACvCC,MAAM;MACNC,SAASH,OAAOvB;MAChB2B,SAAS;QACPC,OAAO;QACPC,SAAS;QACTC,QAAQtB;MACV;IACF,CAAA,CAAA;EAEJ;AAEA,MAAIuB;AACJ,MAAIC,SAASC,aAAa;AACxBF,cAAU7C,iBACR8C,SAASC,aACT1C,oBACAe,sBACAd,kBAAAA;EAEJ,OAAO;AACLH,QAAI6C,KAAK,yBAAA,QAAA;;;;;;EACX;AAEA,SAAOlD,YAAYF,aAAaqD,MAAM,MAAM,MAAMJ,QAAAA,CAAAA;AACpD;",
|
|
6
|
-
"names": ["Capabilities", "LayoutAction", "contributes", "createIntent", "addEventListener", "parseId", "DXN", "log", "ClientCapabilities", "DX_ANCHOR_ACTIVATE", "customEventOptions", "capture", "passive", "handlePreviewLookup", "client", "defaultSpace", "ref", "label", "object", "db", "makeRef", "parse", "load", "context", "handleAnchorActivate", "refId", "trigger", "dispatchPromise", "dispatch", "getCapability", "IntentDispatcher", "Client", "layout", "getCapabilities", "Layout", "spaceId", "workspace", "space", "spaces", "get", "default", "result", "UpdatePopover", "part", "subject", "options", "state", "variant", "anchor", "cleanup", "document", "defaultView", "warn", "Null"]
|
|
7
|
-
}
|