@dxos/plugin-masonry 0.8.4-main.c351d160a8 → 0.8.4-main.dfabb4ec29
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/MasonryContainer-Q7VPG6YS.mjs → neutral/MasonryContainer-KP37NJFB.mjs} +40 -21
- package/dist/lib/neutral/MasonryContainer-KP37NJFB.mjs.map +7 -0
- package/dist/lib/neutral/MasonryPlugin.mjs +26 -0
- package/dist/lib/neutral/MasonryPlugin.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +11 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/{browser/chunk-7W5GV4MG.mjs → neutral/chunk-E42CTC55.mjs} +1 -1
- package/dist/lib/{browser/chunk-7W5GV4MG.mjs.map → neutral/chunk-E42CTC55.mjs.map} +2 -2
- package/dist/lib/{browser/chunk-ANLADCDB.mjs → neutral/chunk-YG4D3X6I.mjs} +5 -3
- package/dist/lib/neutral/chunk-YG4D3X6I.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +1 -0
- package/dist/lib/neutral/containers/index.mjs +9 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-object-WRCYV4HT.mjs +39 -0
- package/dist/lib/neutral/create-object-WRCYV4HT.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +14 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/plugin.mjs +12 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/{browser/react-surface-E3X4DF5N.mjs → neutral/react-surface-367CTRTD.mjs} +14 -20
- package/dist/lib/neutral/react-surface-367CTRTD.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +30 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/types/index.mjs +1 -1
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/MasonryPlugin.d.ts +1 -0
- package/dist/types/src/MasonryPlugin.d.ts.map +1 -1
- package/dist/types/src/MasonryPlugin.test.d.ts +2 -0
- package/dist/types/src/MasonryPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/create-object.d.ts +11 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +8 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/containers/MasonryContainer/MasonryContainer.d.ts.map +1 -1
- package/dist/types/src/containers/MasonryContainer/MasonryContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/MasonryContainer/index.d.ts +1 -2
- package/dist/types/src/containers/MasonryContainer/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +3 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +20 -20
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Masonry.d.ts +2 -2
- package/dist/types/src/types/Masonry.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +79 -44
- package/src/MasonryPlugin.test.ts +26 -0
- package/src/MasonryPlugin.tsx +7 -26
- package/src/capabilities/create-object.ts +36 -0
- package/src/capabilities/index.ts +4 -1
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +9 -7
- package/src/containers/MasonryContainer/MasonryContainer.stories.tsx +8 -10
- package/src/containers/MasonryContainer/MasonryContainer.tsx +45 -14
- package/src/containers/MasonryContainer/index.ts +1 -3
- package/src/index.ts +1 -2
- package/src/plugin.ts +9 -0
- package/src/translations.ts +12 -12
- package/src/types/Masonry.ts +1 -1
- package/src/types/MasonryAction.ts +1 -1
- package/dist/lib/browser/MasonryContainer-Q7VPG6YS.mjs.map +0 -7
- package/dist/lib/browser/chunk-ANLADCDB.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -78
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-E3X4DF5N.mjs.map +0 -7
- package/dist/lib/node-esm/MasonryContainer-NQGW3OZD.mjs +0 -85
- package/dist/lib/node-esm/MasonryContainer-NQGW3OZD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CCWUD5KF.mjs +0 -21
- package/dist/lib/node-esm/chunk-CCWUD5KF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GHHWMU6E.mjs +0 -68
- package/dist/lib/node-esm/chunk-GHHWMU6E.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/index.mjs +0 -79
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-surface-4C6BZVEJ.mjs +0 -43
- package/dist/lib/node-esm/react-surface-4C6BZVEJ.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -11
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/src/capabilities/react-surface/index.ts +0 -7
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
- /package/dist/lib/{browser/types → neutral/components}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/types → neutral}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/meta.mjs.map} +0 -0
- /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-masonry",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.dfabb4ec29",
|
|
4
4
|
"description": "Masonry DXOS Surface plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -12,72 +12,107 @@
|
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#capabilities": {
|
|
17
|
+
"source": "./src/capabilities/index.ts",
|
|
18
|
+
"types": "./dist/types/src/capabilities/index.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/capabilities/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"#components": {
|
|
22
|
+
"source": "./src/components/index.ts",
|
|
23
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
24
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"#containers": {
|
|
27
|
+
"source": "./src/containers/index.ts",
|
|
28
|
+
"types": "./dist/types/src/containers/index.d.ts",
|
|
29
|
+
"default": "./dist/lib/neutral/containers/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"#meta": {
|
|
32
|
+
"source": "./src/meta.ts",
|
|
33
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
34
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
35
|
+
},
|
|
36
|
+
"#plugin": {
|
|
37
|
+
"source": "./src/MasonryPlugin.tsx",
|
|
38
|
+
"types": "./dist/types/src/MasonryPlugin.d.ts",
|
|
39
|
+
"default": "./dist/lib/neutral/MasonryPlugin.mjs"
|
|
40
|
+
},
|
|
41
|
+
"#translations": {
|
|
42
|
+
"source": "./src/translations.ts",
|
|
43
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
44
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
45
|
+
},
|
|
46
|
+
"#types": {
|
|
47
|
+
"source": "./src/types/index.ts",
|
|
48
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
49
|
+
"default": "./dist/lib/neutral/types/index.mjs"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
15
52
|
"exports": {
|
|
16
53
|
".": {
|
|
17
54
|
"source": "./src/index.ts",
|
|
18
55
|
"types": "./dist/types/src/index.d.ts",
|
|
19
|
-
"
|
|
20
|
-
"node": "./dist/lib/node-esm/index.mjs"
|
|
56
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
21
57
|
},
|
|
22
|
-
"./
|
|
23
|
-
"source": "./src/
|
|
24
|
-
"types": "./dist/types/src/
|
|
25
|
-
"
|
|
26
|
-
|
|
58
|
+
"./plugin": {
|
|
59
|
+
"source": "./src/plugin.ts",
|
|
60
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
61
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./translations": {
|
|
64
|
+
"source": "./src/translations.ts",
|
|
65
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
66
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
27
67
|
}
|
|
28
68
|
},
|
|
29
69
|
"types": "dist/types/src/index.d.ts",
|
|
30
|
-
"typesVersions": {
|
|
31
|
-
"*": {
|
|
32
|
-
"types": [
|
|
33
|
-
"dist/types/src/types/index.d.ts"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
70
|
"files": [
|
|
38
71
|
"dist",
|
|
39
72
|
"src"
|
|
40
73
|
],
|
|
41
74
|
"dependencies": {
|
|
42
|
-
"@dxos/app-
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/effect": "0.8.4-main.
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/plugin-search": "0.8.4-main.
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
51
|
-
"@dxos/react-ui-
|
|
52
|
-
"@dxos/react-ui-
|
|
53
|
-
"@dxos/react-ui-
|
|
54
|
-
"@dxos/react-ui-
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/react-ui-
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
75
|
+
"@dxos/app-framework": "0.8.4-main.dfabb4ec29",
|
|
76
|
+
"@dxos/app-toolkit": "0.8.4-main.dfabb4ec29",
|
|
77
|
+
"@dxos/effect": "0.8.4-main.dfabb4ec29",
|
|
78
|
+
"@dxos/echo": "0.8.4-main.dfabb4ec29",
|
|
79
|
+
"@dxos/plugin-client": "0.8.4-main.dfabb4ec29",
|
|
80
|
+
"@dxos/plugin-search": "0.8.4-main.dfabb4ec29",
|
|
81
|
+
"@dxos/react-client": "0.8.4-main.dfabb4ec29",
|
|
82
|
+
"@dxos/plugin-space": "0.8.4-main.dfabb4ec29",
|
|
83
|
+
"@dxos/react-ui-masonry": "0.8.4-main.dfabb4ec29",
|
|
84
|
+
"@dxos/react-ui-list": "0.8.4-main.dfabb4ec29",
|
|
85
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.dfabb4ec29",
|
|
86
|
+
"@dxos/react-ui-search": "0.8.4-main.dfabb4ec29",
|
|
87
|
+
"@dxos/react-ui-stack": "0.8.4-main.dfabb4ec29",
|
|
88
|
+
"@dxos/react-ui-form": "0.8.4-main.dfabb4ec29",
|
|
89
|
+
"@dxos/react-ui-menu": "0.8.4-main.dfabb4ec29",
|
|
90
|
+
"@dxos/compute": "0.8.4-main.dfabb4ec29",
|
|
91
|
+
"@dxos/schema": "0.8.4-main.dfabb4ec29",
|
|
92
|
+
"@dxos/react-ui": "0.8.4-main.dfabb4ec29",
|
|
93
|
+
"@dxos/util": "0.8.4-main.dfabb4ec29",
|
|
94
|
+
"@dxos/types": "0.8.4-main.dfabb4ec29"
|
|
60
95
|
},
|
|
61
96
|
"devDependencies": {
|
|
62
97
|
"@types/react": "~19.2.7",
|
|
63
98
|
"@types/react-dom": "~19.2.3",
|
|
64
|
-
"effect": "3.
|
|
99
|
+
"effect": "3.20.0",
|
|
65
100
|
"react": "~19.2.3",
|
|
66
101
|
"react-dom": "~19.2.3",
|
|
67
|
-
"vite": "^
|
|
68
|
-
"@dxos/plugin-
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
72
|
-
"@dxos/plugin-
|
|
73
|
-
"@dxos/
|
|
102
|
+
"vite": "^8.0.10",
|
|
103
|
+
"@dxos/plugin-testing": "0.8.4-main.dfabb4ec29",
|
|
104
|
+
"@dxos/random": "0.8.4-main.dfabb4ec29",
|
|
105
|
+
"@dxos/ui-theme": "0.8.4-main.dfabb4ec29",
|
|
106
|
+
"@dxos/storybook-utils": "0.8.4-main.dfabb4ec29",
|
|
107
|
+
"@dxos/plugin-preview": "0.8.4-main.dfabb4ec29",
|
|
108
|
+
"@dxos/plugin-theme": "0.8.4-main.dfabb4ec29"
|
|
74
109
|
},
|
|
75
110
|
"peerDependencies": {
|
|
76
|
-
"effect": "3.
|
|
111
|
+
"effect": "3.20.0",
|
|
77
112
|
"react": "~19.2.3",
|
|
78
113
|
"react-dom": "~19.2.3",
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/ui
|
|
114
|
+
"@dxos/ui-theme": "0.8.4-main.dfabb4ec29",
|
|
115
|
+
"@dxos/react-ui": "0.8.4-main.dfabb4ec29"
|
|
81
116
|
},
|
|
82
117
|
"publishConfig": {
|
|
83
118
|
"access": "public"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, test } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { ClientPlugin } from '@dxos/plugin-client/plugin';
|
|
8
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
9
|
+
|
|
10
|
+
import { MasonryPlugin } from '#plugin';
|
|
11
|
+
|
|
12
|
+
import { meta } from './meta';
|
|
13
|
+
|
|
14
|
+
const moduleId = (name: string) => `${meta.id}.module.${name}`;
|
|
15
|
+
|
|
16
|
+
describe('MasonryPlugin', () => {
|
|
17
|
+
test('modules activate on the expected events', async ({ expect }) => {
|
|
18
|
+
await using harness = await createComposerTestApp({
|
|
19
|
+
plugins: [ClientPlugin({}), MasonryPlugin()],
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
expect(harness.manager.getActive()).toEqual(
|
|
23
|
+
expect.arrayContaining([moduleId('CreateObject'), moduleId('schema'), moduleId('ReactSurface')]),
|
|
24
|
+
);
|
|
25
|
+
});
|
|
26
|
+
});
|
package/src/MasonryPlugin.tsx
CHANGED
|
@@ -2,39 +2,20 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
|
|
7
|
-
import * as Option from 'effect/Option';
|
|
8
|
-
|
|
9
5
|
import { Plugin } from '@dxos/app-framework';
|
|
10
6
|
import { AppPlugin } from '@dxos/app-toolkit';
|
|
11
|
-
import { Annotation, Type } from '@dxos/echo';
|
|
12
|
-
import { type CreateObject } from '@dxos/plugin-space/types';
|
|
13
|
-
import { ViewModel } from '@dxos/schema';
|
|
14
7
|
|
|
15
|
-
import { ReactSurface } from '
|
|
16
|
-
import { meta } from '
|
|
17
|
-
import { translations } from '
|
|
18
|
-
import { Masonry
|
|
8
|
+
import { CreateObject, ReactSurface } from '#capabilities';
|
|
9
|
+
import { meta } from '#meta';
|
|
10
|
+
import { translations } from '#translations';
|
|
11
|
+
import { Masonry } from '#types';
|
|
19
12
|
|
|
20
13
|
export const MasonryPlugin = Plugin.define(meta).pipe(
|
|
21
|
-
AppPlugin.
|
|
22
|
-
metadata: {
|
|
23
|
-
id: Type.getTypename(Masonry.Masonry),
|
|
24
|
-
metadata: {
|
|
25
|
-
icon: Annotation.IconAnnotation.get(Masonry.Masonry).pipe(Option.getOrThrow).icon,
|
|
26
|
-
iconHue: Annotation.IconAnnotation.get(Masonry.Masonry).pipe(Option.getOrThrow).hue ?? 'white',
|
|
27
|
-
inputSchema: MasonryAction.MasonryProps,
|
|
28
|
-
createObject: ((props, { db }) =>
|
|
29
|
-
Effect.promise(async () => {
|
|
30
|
-
const { view } = await ViewModel.makeFromDatabase({ db, typename: props.typename });
|
|
31
|
-
return Masonry.make({ name: props.name, view });
|
|
32
|
-
})) satisfies CreateObject,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
}),
|
|
14
|
+
AppPlugin.addCreateObjectModule({ activate: CreateObject }),
|
|
36
15
|
AppPlugin.addSchemaModule({ schema: [Masonry.Masonry] }),
|
|
37
16
|
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
38
17
|
AppPlugin.addTranslationsModule({ translations }),
|
|
39
18
|
Plugin.make,
|
|
40
19
|
);
|
|
20
|
+
|
|
21
|
+
export default MasonryPlugin;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
9
|
+
import { Type } from '@dxos/echo';
|
|
10
|
+
import { SpaceOperation } from '@dxos/plugin-space';
|
|
11
|
+
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
12
|
+
import { ViewModel } from '@dxos/schema';
|
|
13
|
+
|
|
14
|
+
import { Masonry, MasonryAction } from '#types';
|
|
15
|
+
|
|
16
|
+
export default Capability.makeModule(
|
|
17
|
+
Effect.fnUntraced(function* () {
|
|
18
|
+
return Capability.contributes(SpaceCapabilities.CreateObjectEntry, {
|
|
19
|
+
id: Type.getTypename(Masonry.Masonry),
|
|
20
|
+
inputSchema: MasonryAction.MasonryProps,
|
|
21
|
+
createObject: (props, options) =>
|
|
22
|
+
Effect.gen(function* () {
|
|
23
|
+
const object = yield* Effect.promise(async () => {
|
|
24
|
+
const { view } = await ViewModel.makeFromDatabase({ db: options.db, typename: props.typename });
|
|
25
|
+
return Masonry.make({ name: props.name, view });
|
|
26
|
+
});
|
|
27
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
28
|
+
object,
|
|
29
|
+
target: options.target,
|
|
30
|
+
hidden: true,
|
|
31
|
+
targetNodeId: options.targetNodeId,
|
|
32
|
+
});
|
|
33
|
+
}),
|
|
34
|
+
});
|
|
35
|
+
}),
|
|
36
|
+
);
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { Capability } from '@dxos/app-framework';
|
|
6
|
+
|
|
7
|
+
export const CreateObject = Capability.lazy('CreateObject', () => import('./create-object'));
|
|
8
|
+
export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
|
|
@@ -7,21 +7,23 @@ import React from 'react';
|
|
|
7
7
|
|
|
8
8
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
import { Surface } from '@dxos/app-framework/ui';
|
|
10
|
+
import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
10
11
|
import { Obj } from '@dxos/echo';
|
|
11
12
|
import { View } from '@dxos/echo';
|
|
12
13
|
|
|
13
|
-
import { MasonryContainer } from '
|
|
14
|
-
import {
|
|
15
|
-
import { Masonry } from '../../types';
|
|
14
|
+
import { MasonryContainer } from '#containers';
|
|
15
|
+
import { Masonry } from '#types';
|
|
16
16
|
|
|
17
17
|
export default Capability.makeModule(() =>
|
|
18
18
|
Effect.succeed(
|
|
19
19
|
Capability.contributes(Capabilities.ReactSurface, [
|
|
20
20
|
Surface.create({
|
|
21
|
-
id:
|
|
22
|
-
|
|
23
|
-
filter: (
|
|
24
|
-
|
|
21
|
+
id: 'root',
|
|
22
|
+
// TODO(wittjosiah): Split into multiple surfaces if this filter proves too strict for non-article roles.
|
|
23
|
+
filter: AppSurface.oneOf(
|
|
24
|
+
AppSurface.object(AppSurface.Article, [Masonry.Masonry, View.View]),
|
|
25
|
+
AppSurface.object(AppSurface.Section, [Masonry.Masonry, View.View]),
|
|
26
|
+
),
|
|
25
27
|
component: ({ data, role }) => {
|
|
26
28
|
const view = Obj.instanceOf(View.View, data.subject) ? data.subject : data.subject.view;
|
|
27
29
|
return <MasonryContainer view={view} role={role} />;
|
|
@@ -8,21 +8,21 @@ import React from 'react';
|
|
|
8
8
|
|
|
9
9
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
10
10
|
import { View } from '@dxos/echo';
|
|
11
|
-
import { ClientPlugin } from '@dxos/plugin-client';
|
|
12
|
-
import {
|
|
11
|
+
import { ClientPlugin } from '@dxos/plugin-client/plugin';
|
|
12
|
+
import { initializeIdentity } from '@dxos/plugin-client/testing';
|
|
13
|
+
import { PreviewPlugin } from '@dxos/plugin-preview/testing';
|
|
13
14
|
import { StorybookPlugin, corePlugins } from '@dxos/plugin-testing';
|
|
14
|
-
import {
|
|
15
|
+
import { random } from '@dxos/random';
|
|
15
16
|
import { Filter, useObject, useQuery, useSpaces } from '@dxos/react-client/echo';
|
|
16
|
-
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
17
17
|
import { ViewModel } from '@dxos/schema';
|
|
18
18
|
import { createObjectFactory } from '@dxos/schema/testing';
|
|
19
19
|
import { Organization } from '@dxos/types';
|
|
20
20
|
|
|
21
|
-
import { Masonry } from '
|
|
21
|
+
import { Masonry } from '#types';
|
|
22
22
|
|
|
23
23
|
import { MasonryContainer } from './MasonryContainer';
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
random.seed(0);
|
|
26
26
|
|
|
27
27
|
const StorybookMasonry = () => {
|
|
28
28
|
const spaces = useSpaces();
|
|
@@ -38,8 +38,6 @@ const meta = {
|
|
|
38
38
|
component: StorybookMasonry,
|
|
39
39
|
render: () => <StorybookMasonry />,
|
|
40
40
|
decorators: [
|
|
41
|
-
withTheme(),
|
|
42
|
-
withLayout({ layout: 'fullscreen' }),
|
|
43
41
|
withPluginManager({
|
|
44
42
|
plugins: [
|
|
45
43
|
...corePlugins(),
|
|
@@ -48,7 +46,7 @@ const meta = {
|
|
|
48
46
|
types: [Organization.Organization, View.View, Masonry.Masonry],
|
|
49
47
|
onClientInitialized: ({ client }) =>
|
|
50
48
|
Effect.gen(function* () {
|
|
51
|
-
yield*
|
|
49
|
+
yield* initializeIdentity(client);
|
|
52
50
|
const space = yield* Effect.promise(() => client.spaces.create());
|
|
53
51
|
yield* Effect.promise(() => space.waitUntilReady());
|
|
54
52
|
const { view } = yield* Effect.promise(() =>
|
|
@@ -59,7 +57,7 @@ const meta = {
|
|
|
59
57
|
);
|
|
60
58
|
const masonry = Masonry.make({ view });
|
|
61
59
|
space.db.add(masonry);
|
|
62
|
-
const factory = createObjectFactory(space.db,
|
|
60
|
+
const factory = createObjectFactory(space.db, random as any);
|
|
63
61
|
yield* Effect.promise(() => factory([{ type: Organization.Organization, count: 64 }]));
|
|
64
62
|
}),
|
|
65
63
|
}),
|
|
@@ -5,19 +5,20 @@
|
|
|
5
5
|
import * as Function from 'effect/Function';
|
|
6
6
|
import * as Option from 'effect/Option';
|
|
7
7
|
import type * as Schema from 'effect/Schema';
|
|
8
|
-
import React, { useEffect, useState } from 'react';
|
|
8
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
9
9
|
|
|
10
10
|
import { Surface, useCapabilities } from '@dxos/app-framework/ui';
|
|
11
11
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
12
|
-
import { useObjectMenuItems } from '@dxos/app-toolkit/ui';
|
|
13
|
-
import { Annotation, Filter, Obj, type Ref, Type } from '@dxos/echo';
|
|
12
|
+
import { AppSurface, useObjectMenuItems } from '@dxos/app-toolkit/ui';
|
|
13
|
+
import { Annotation, Filter, Obj, Query, type Ref, Type } from '@dxos/echo';
|
|
14
14
|
import { type View } from '@dxos/echo';
|
|
15
|
-
import { useGlobalFilteredObjects } from '@dxos/plugin-search';
|
|
16
15
|
import { useObject, useQuery } from '@dxos/react-client/echo';
|
|
17
|
-
import { Card, Toolbar } from '@dxos/react-ui';
|
|
16
|
+
import { Card, Panel, Toolbar } from '@dxos/react-ui';
|
|
18
17
|
import { Masonry as MasonryComponent } from '@dxos/react-ui-masonry';
|
|
19
18
|
import { Menu } from '@dxos/react-ui-menu';
|
|
20
|
-
import {
|
|
19
|
+
import { SearchList, useSearchListResults } from '@dxos/react-ui-search';
|
|
20
|
+
import { getTagFromQuery, getTypenameFromQuery } from '@dxos/schema';
|
|
21
|
+
import { isNonNullable } from '@dxos/util';
|
|
21
22
|
|
|
22
23
|
export type MasonryContainerProps = {
|
|
23
24
|
view: View.View;
|
|
@@ -35,6 +36,7 @@ export const MasonryContainer = ({
|
|
|
35
36
|
const schemas = useCapabilities(AppCapabilities.Schema);
|
|
36
37
|
const db = view && Obj.getDatabase(view);
|
|
37
38
|
const typename = view?.query ? getTypenameFromQuery(view.query.ast) : undefined;
|
|
39
|
+
const tag = view?.query ? getTagFromQuery(view.query.ast) : undefined;
|
|
38
40
|
|
|
39
41
|
const [cardSchema, setCardSchema] = useState<Schema.Schema.AnyNoContext>();
|
|
40
42
|
|
|
@@ -58,15 +60,40 @@ export const MasonryContainer = ({
|
|
|
58
60
|
}
|
|
59
61
|
}, [schemas, typename, db]);
|
|
60
62
|
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
+
const query = useMemo(() => {
|
|
64
|
+
const baseFilter = cardSchema ? Filter.type(cardSchema) : Filter.nothing();
|
|
65
|
+
return tag ? Query.select(baseFilter).select(Filter.tag(tag)) : Query.select(baseFilter);
|
|
66
|
+
}, [cardSchema, tag]);
|
|
67
|
+
const objects = useQuery(db, query);
|
|
68
|
+
|
|
69
|
+
const sortedObjects = useMemo(
|
|
70
|
+
() =>
|
|
71
|
+
objects.filter(isNonNullable).toSorted((a, b) => (Obj.getLabel(a) ?? '').localeCompare(Obj.getLabel(b) ?? '')),
|
|
72
|
+
[objects],
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
const { results, handleSearch } = useSearchListResults({
|
|
76
|
+
items: sortedObjects,
|
|
77
|
+
extract: (obj) => Obj.getLabel(obj) ?? '',
|
|
78
|
+
});
|
|
63
79
|
|
|
64
80
|
return (
|
|
65
|
-
<MasonryComponent.Root
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
81
|
+
<MasonryComponent.Root Tile={Item}>
|
|
82
|
+
<SearchList.Root onSearch={handleSearch}>
|
|
83
|
+
<Panel.Root>
|
|
84
|
+
<Panel.Toolbar asChild>
|
|
85
|
+
<Toolbar.Root>
|
|
86
|
+
<SearchList.Input placeholder='Search...' />
|
|
87
|
+
</Toolbar.Root>
|
|
88
|
+
</Panel.Toolbar>
|
|
89
|
+
<Panel.Content>
|
|
90
|
+
<MasonryComponent.Content>
|
|
91
|
+
<MasonryComponent.Viewport items={results} getId={(data: any) => data?.id} />
|
|
92
|
+
</MasonryComponent.Content>
|
|
93
|
+
</Panel.Content>
|
|
94
|
+
</Panel.Root>
|
|
95
|
+
</SearchList.Root>
|
|
96
|
+
</MasonryComponent.Root>
|
|
70
97
|
);
|
|
71
98
|
};
|
|
72
99
|
|
|
@@ -92,7 +119,11 @@ const Item = ({ data }: { data: any }) => {
|
|
|
92
119
|
</Menu.Trigger>
|
|
93
120
|
<Menu.Content items={objectMenuItems} />
|
|
94
121
|
</Card.Toolbar>
|
|
95
|
-
<Surface.Surface
|
|
122
|
+
<Surface.Surface
|
|
123
|
+
type={AppSurface.Card}
|
|
124
|
+
limit={1}
|
|
125
|
+
data={{ subject: data } satisfies AppSurface.ObjectCardData}
|
|
126
|
+
/>
|
|
96
127
|
</Card.Root>
|
|
97
128
|
</Menu.Root>
|
|
98
129
|
);
|
package/src/index.ts
CHANGED
package/src/plugin.ts
ADDED
package/src/translations.ts
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
import { Type } from '@dxos/echo';
|
|
6
6
|
import { type Resource } from '@dxos/react-ui';
|
|
7
7
|
|
|
8
|
-
import { meta } from '
|
|
9
|
-
import { Masonry } from '
|
|
8
|
+
import { meta } from '#meta';
|
|
9
|
+
import { Masonry } from '#types';
|
|
10
10
|
|
|
11
11
|
export const translations = [
|
|
12
12
|
{
|
|
13
13
|
'en-US': {
|
|
14
14
|
[Type.getTypename(Masonry.Masonry)]: {
|
|
15
|
-
'typename
|
|
16
|
-
'typename
|
|
17
|
-
'typename
|
|
18
|
-
'typename
|
|
19
|
-
'object
|
|
20
|
-
'add
|
|
21
|
-
'rename
|
|
22
|
-
'delete
|
|
23
|
-
'object
|
|
15
|
+
'typename.label': 'Masonry',
|
|
16
|
+
'typename.label_zero': 'Masonries',
|
|
17
|
+
'typename.label_one': 'Masonry',
|
|
18
|
+
'typename.label_other': 'Masonries',
|
|
19
|
+
'object-name.placeholder': 'New masonry',
|
|
20
|
+
'add-object.label': 'Add masonry',
|
|
21
|
+
'rename-object.label': 'Rename masonry',
|
|
22
|
+
'delete-object.label': 'Delete masonry',
|
|
23
|
+
'object-deleted.label': 'Masonry deleted',
|
|
24
24
|
},
|
|
25
25
|
[meta.id]: {
|
|
26
|
-
'plugin
|
|
26
|
+
'plugin.name': 'Masonry',
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
},
|
package/src/types/Masonry.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import { TypeInputOptionsAnnotation } from '@dxos/plugin-space
|
|
7
|
+
import { TypeInputOptionsAnnotation } from '@dxos/plugin-space';
|
|
8
8
|
|
|
9
9
|
export const MasonryProps = Schema.Struct({
|
|
10
10
|
name: Schema.optional(Schema.String),
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/containers/MasonryContainer/MasonryContainer.tsx", "../../../src/containers/MasonryContainer/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Function from 'effect/Function';\nimport * as Option from 'effect/Option';\nimport type * as Schema from 'effect/Schema';\nimport React, { useEffect, useState } from 'react';\n\nimport { Surface, useCapabilities } from '@dxos/app-framework/ui';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { useObjectMenuItems } from '@dxos/app-toolkit/ui';\nimport { Annotation, Filter, Obj, type Ref, Type } from '@dxos/echo';\nimport { type View } from '@dxos/echo';\nimport { useGlobalFilteredObjects } from '@dxos/plugin-search';\nimport { useObject, useQuery } from '@dxos/react-client/echo';\nimport { Card, Toolbar } from '@dxos/react-ui';\nimport { Masonry as MasonryComponent } from '@dxos/react-ui-masonry';\nimport { Menu } from '@dxos/react-ui-menu';\nimport { getTypenameFromQuery } from '@dxos/schema';\n\nexport type MasonryContainerProps = {\n view: View.View;\n role?: string;\n};\n\nexport const MasonryContainer = ({\n view: viewOrRef,\n role: _role,\n}: {\n view: View.View | Ref.Ref<View.View>;\n role?: string;\n}) => {\n const [view] = useObject(viewOrRef);\n const schemas = useCapabilities(AppCapabilities.Schema);\n const db = view && Obj.getDatabase(view);\n const typename = view?.query ? getTypenameFromQuery(view.query.ast) : undefined;\n\n const [cardSchema, setCardSchema] = useState<Schema.Schema.AnyNoContext>();\n\n useEffect(() => {\n const staticSchema = schemas.flat().find((schema) => Type.getTypename(schema) === typename);\n if (staticSchema) {\n setCardSchema(() => staticSchema);\n }\n if (!staticSchema && typename && db) {\n const query = db.schemaRegistry.query({ typename });\n const unsubscribe = query.subscribe(\n () => {\n const [schema] = query.results;\n if (schema) {\n setCardSchema(schema);\n }\n },\n { fire: true },\n );\n return unsubscribe;\n }\n }, [schemas, typename, db]);\n\n const objects = useQuery(db, cardSchema ? Filter.type(cardSchema) : Filter.nothing());\n const filteredObjects = useGlobalFilteredObjects(objects);\n\n return (\n <MasonryComponent.Root\n items={filteredObjects}\n render={Item as any}\n classNames='w-full max-w-full h-full max-h-full overflow-y-auto p-4'\n />\n );\n};\n\nconst Item = ({ data }: { data: any }) => {\n const objectMenuItems = useObjectMenuItems(data);\n const icon = Function.pipe(\n Obj.getSchema(data),\n Option.fromNullable,\n Option.flatMap(Annotation.IconAnnotation.get),\n Option.map(({ icon }) => icon),\n Option.getOrElse(() => 'ph--placeholder--regular'),\n );\n\n return (\n <Menu.Root>\n <Card.Root>\n <Card.Toolbar>\n <Card.Icon icon={icon} />\n <Card.Title>{Obj.getLabel(data)}</Card.Title>\n {/* TODO(wittjosiah): Reconcile with Card.Menu. */}\n <Menu.Trigger asChild disabled={!objectMenuItems?.length}>\n <Toolbar.IconButton iconOnly variant='ghost' icon='ph--dots-three-vertical--regular' label='Actions' />\n </Menu.Trigger>\n <Menu.Content items={objectMenuItems} />\n </Card.Toolbar>\n <Surface.Surface role='card--content' limit={1} data={{ subject: data }} />\n </Card.Root>\n </Menu.Root>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { MasonryContainer } from './MasonryContainer';\n\nexport default MasonryContainer;\n"],
|
|
5
|
-
"mappings": ";;;AAIA,YAAYA,cAAc;AAC1B,YAAYC,YAAY;AAExB,OAAOC,SAASC,WAAWC,gBAAgB;AAE3C,SAASC,SAASC,uBAAuB;AACzC,SAASC,uBAAuB;AAChC,SAASC,0BAA0B;AACnC,SAASC,YAAYC,QAAQC,KAAeC,YAAY;AAExD,SAASC,gCAAgC;AACzC,SAASC,WAAWC,gBAAgB;AACpC,SAASC,MAAMC,eAAe;AAC9B,SAASC,WAAWC,wBAAwB;AAC5C,SAASC,YAAY;AACrB,SAASC,4BAA4B;AAO9B,IAAMC,mBAAmB,CAAC,EAC/BC,MAAMC,WACNC,MAAMC,MAAK,MAIZ;AACC,QAAM,CAACH,IAAAA,IAAQI,UAAUH,SAAAA;AACzB,QAAMI,UAAUC,gBAAgBC,gBAAgBC,MAAM;AACtD,QAAMC,KAAKT,QAAQU,IAAIC,YAAYX,IAAAA;AACnC,QAAMY,WAAWZ,MAAMa,QAAQC,qBAAqBd,KAAKa,MAAME,GAAG,IAAIC;AAEtE,QAAM,CAACC,YAAYC,aAAAA,IAAiBC,SAAAA;AAEpCC,YAAU,MAAA;AACR,UAAMC,eAAehB,QAAQiB,KAAI,EAAGC,KAAK,CAACC,WAAWC,KAAKC,YAAYF,MAAAA,MAAYZ,QAAAA;AAClF,QAAIS,cAAc;AAChBH,oBAAc,MAAMG,YAAAA;IACtB;AACA,QAAI,CAACA,gBAAgBT,YAAYH,IAAI;AACnC,YAAMI,QAAQJ,GAAGkB,eAAed,MAAM;QAAED;MAAS,CAAA;AACjD,YAAMgB,cAAcf,MAAMgB,UACxB,MAAA;AACE,cAAM,CAACL,MAAAA,IAAUX,MAAMiB;AACvB,YAAIN,QAAQ;AACVN,wBAAcM,MAAAA;QAChB;MACF,GACA;QAAEO,MAAM;MAAK,CAAA;AAEf,aAAOH;IACT;EACF,GAAG;IAACvB;IAASO;IAAUH;GAAG;AAE1B,QAAMuB,UAAUC,SAASxB,IAAIQ,aAAaiB,OAAOC,KAAKlB,UAAAA,IAAciB,OAAOE,QAAO,CAAA;AAClF,QAAMC,kBAAkBC,yBAAyBN,OAAAA;AAEjD,SACE,sBAAA,cAACO,iBAAiBC,MAAI;IACpBC,OAAOJ;IACPK,QAAQC;IACRC,YAAW;;AAGjB;AAEA,IAAMD,OAAO,CAAC,EAAEE,KAAI,MAAiB;AACnC,QAAMC,kBAAkBC,mBAAmBF,IAAAA;AAC3C,QAAMG,OAAgBC,cACpBvC,IAAIwC,UAAUL,IAAAA,GACPM,qBACAC,eAAQC,WAAWC,eAAeC,GAAG,GACrCC,WAAI,CAAC,EAAER,MAAAA,MAAI,MAAOA,KAAAA,GAClBS,iBAAU,MAAM,0BAAA,CAAA;AAGzB,SACE,sBAAA,cAACC,KAAKlB,MAAI,MACR,sBAAA,cAACmB,KAAKnB,MAAI,MACR,sBAAA,cAACmB,KAAKC,SAAO,MACX,sBAAA,cAACD,KAAKE,MAAI;IAACb;MACX,sBAAA,cAACW,KAAKG,OAAK,MAAEpD,IAAIqD,SAASlB,IAAAA,CAAAA,GAE1B,sBAAA,cAACa,KAAKM,SAAO;IAACC,SAAAA;IAAQC,UAAU,CAACpB,iBAAiBqB;KAChD,sBAAA,cAACP,QAAQQ,YAAU;IAACC,UAAAA;IAASC,SAAQ;IAAQtB,MAAK;IAAmCuB,OAAM;OAE7F,sBAAA,cAACb,KAAKc,SAAO;IAAC/B,OAAOK;OAEvB,sBAAA,cAAC2B,QAAQA,SAAO;IAACvE,MAAK;IAAgBwE,OAAO;IAAG7B,MAAM;MAAE8B,SAAS9B;IAAK;;AAI9E;;;AC5FA,IAAA,2BAAe+B;",
|
|
6
|
-
"names": ["Function", "Option", "React", "useEffect", "useState", "Surface", "useCapabilities", "AppCapabilities", "useObjectMenuItems", "Annotation", "Filter", "Obj", "Type", "useGlobalFilteredObjects", "useObject", "useQuery", "Card", "Toolbar", "Masonry", "MasonryComponent", "Menu", "getTypenameFromQuery", "MasonryContainer", "view", "viewOrRef", "role", "_role", "useObject", "schemas", "useCapabilities", "AppCapabilities", "Schema", "db", "Obj", "getDatabase", "typename", "query", "getTypenameFromQuery", "ast", "undefined", "cardSchema", "setCardSchema", "useState", "useEffect", "staticSchema", "flat", "find", "schema", "Type", "getTypename", "schemaRegistry", "unsubscribe", "subscribe", "results", "fire", "objects", "useQuery", "Filter", "type", "nothing", "filteredObjects", "useGlobalFilteredObjects", "MasonryComponent", "Root", "items", "render", "Item", "classNames", "data", "objectMenuItems", "useObjectMenuItems", "icon", "pipe", "getSchema", "fromNullable", "flatMap", "Annotation", "IconAnnotation", "get", "map", "getOrElse", "Menu", "Card", "Toolbar", "Icon", "Title", "getLabel", "Trigger", "asChild", "disabled", "length", "IconButton", "iconOnly", "variant", "label", "Content", "Surface", "limit", "subject", "MasonryContainer"]
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/Masonry.ts", "../../../src/types/MasonryAction.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Annotation, Obj, Ref, Type } from '@dxos/echo';\nimport { View } from '@dxos/echo';\nimport { FormInputAnnotation, LabelAnnotation } from '@dxos/echo/internal';\nimport { ViewAnnotation } from '@dxos/schema';\n\nexport const Masonry = Schema.Struct({\n name: Schema.String.pipe(Schema.optional),\n\n view: Ref.Ref(View.View).pipe(FormInputAnnotation.set(false)),\n\n arrangement: Schema.Array(\n Schema.Struct({\n ids: Schema.Array(Obj.ID),\n hidden: Schema.optional(Schema.Boolean),\n }),\n ).pipe(FormInputAnnotation.set(false), Schema.optional),\n // TODO(wittjosiah): Consider Masonry supporting not being just a view but referencing arbitrary data directly.\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.masonry',\n version: '0.1.0',\n }),\n LabelAnnotation.set(['name']),\n ViewAnnotation.set(true),\n Annotation.IconAnnotation.set({\n icon: 'ph--wall--regular',\n hue: 'green',\n }),\n);\n\nexport interface Masonry extends Schema.Schema.Type<typeof Masonry> {}\n\ntype MakeProps = Omit<Partial<Obj.MakeProps<typeof Masonry>>, 'view'> & {\n view: View.View;\n};\n\n/**\n * Make a masonry as a view of a data set.\n */\nexport const make = ({ name, arrangement = [], view }: MakeProps): Masonry => {\n return Obj.make(Masonry, { name, view: Ref.make(view), arrangement });\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { TypeInputOptionsAnnotation } from '@dxos/plugin-space/types';\n\nexport const MasonryProps = Schema.Struct({\n name: Schema.optional(Schema.String),\n // TODO(wittjosiah): This should be a query input instead.\n typename: Schema.String.pipe(\n Schema.annotations({ title: 'Select card type' }),\n TypeInputOptionsAnnotation.set({\n location: ['database', 'runtime'],\n kind: ['user'],\n }),\n Schema.optional,\n ),\n});\n"],
|
|
5
|
-
"mappings": ";;;;;AAAA;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAYC,KAAKC,KAAKC,YAAY;AAC3C,SAASC,YAAY;AACrB,SAASC,qBAAqBC,uBAAuB;AACrD,SAASC,sBAAsB;AAExB,IAAMC,UAAiBC,cAAO;EACnCC,MAAaC,cAAOC,KAAYC,eAAQ;EAExCC,MAAMC,IAAIA,IAAIC,KAAKA,IAAI,EAAEJ,KAAKK,oBAAoBC,IAAI,KAAA,CAAA;EAEtDC,aAAoBC,aACXX,cAAO;IACZY,KAAYD,aAAME,IAAIC,EAAE;IACxBC,QAAeX,gBAAgBY,cAAO;EACxC,CAAA,CAAA,EACAb,KAAKK,oBAAoBC,IAAI,KAAA,GAAeL,eAAQ;AAExD,CAAA,EAAGD,KACDc,KAAKC,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,GACAC,gBAAgBZ,IAAI;EAAC;CAAO,GAC5Ba,eAAeb,IAAI,IAAA,GACnBc,WAAWC,eAAef,IAAI;EAC5BgB,MAAM;EACNC,KAAK;AACP,CAAA,CAAA;AAYK,IAAMC,OAAO,CAAC,EAAE1B,MAAMS,cAAc,CAAA,GAAIL,KAAI,MAAa;AAC9D,SAAOQ,IAAIc,KAAK5B,SAAS;IAAEE;IAAMI,MAAMC,IAAIqB,KAAKtB,IAAAA;IAAOK;EAAY,CAAA;AACrE;;;AC/CA;;;;AAIA,YAAYkB,aAAY;AAExB,SAASC,kCAAkC;AAEpC,IAAMC,eAAsBC,eAAO;EACxCC,MAAaC,iBAAgBC,cAAM;;EAEnCC,UAAiBD,eAAOE,KACfC,oBAAY;IAAEC,OAAO;EAAmB,CAAA,GAC/CC,2BAA2BC,IAAI;IAC7BC,UAAU;MAAC;MAAY;;IACvBC,MAAM;MAAC;;EACT,CAAA,GACOT,gBAAQ;AAEnB,CAAA;",
|
|
6
|
-
"names": ["Schema", "Annotation", "Obj", "Ref", "Type", "View", "FormInputAnnotation", "LabelAnnotation", "ViewAnnotation", "Masonry", "Struct", "name", "String", "pipe", "optional", "view", "Ref", "View", "FormInputAnnotation", "set", "arrangement", "Array", "ids", "Obj", "ID", "hidden", "Boolean", "Type", "object", "typename", "version", "LabelAnnotation", "ViewAnnotation", "Annotation", "IconAnnotation", "icon", "hue", "make", "Schema", "TypeInputOptionsAnnotation", "MasonryProps", "Struct", "name", "optional", "String", "typename", "pipe", "annotations", "title", "TypeInputOptionsAnnotation", "set", "location", "kind"]
|
|
7
|
-
}
|