@dxos/plugin-masonry 0.8.4-main.1068cf700f → 0.8.4-main.1c7ec43d41

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 (86) hide show
  1. package/dist/lib/browser/MasonryPlugin-75BJA6RQ.mjs +26 -0
  2. package/dist/lib/browser/MasonryPlugin-75BJA6RQ.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  4. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  5. package/dist/lib/browser/index.mjs +18 -66
  6. package/dist/lib/browser/index.mjs.map +4 -4
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/translations.mjs +30 -0
  9. package/dist/lib/browser/translations.mjs.map +7 -0
  10. package/dist/lib/browser/types/index.mjs +62 -3
  11. package/dist/lib/browser/types/index.mjs.map +4 -4
  12. package/dist/lib/node-esm/MasonryPlugin-P4OXBDN6.mjs +27 -0
  13. package/dist/lib/node-esm/MasonryPlugin-P4OXBDN6.mjs.map +7 -0
  14. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  15. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  16. package/dist/lib/node-esm/index.mjs +18 -66
  17. package/dist/lib/node-esm/index.mjs.map +4 -4
  18. package/dist/lib/node-esm/meta.json +1 -1
  19. package/dist/lib/node-esm/translations.mjs +31 -0
  20. package/dist/lib/node-esm/translations.mjs.map +7 -0
  21. package/dist/lib/node-esm/types/index.mjs +62 -3
  22. package/dist/lib/node-esm/types/index.mjs.map +4 -4
  23. package/dist/types/src/MasonryPlugin.d.ts +1 -0
  24. package/dist/types/src/MasonryPlugin.d.ts.map +1 -1
  25. package/dist/types/src/MasonryPlugin.test.d.ts +2 -0
  26. package/dist/types/src/MasonryPlugin.test.d.ts.map +1 -0
  27. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  28. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  29. package/dist/types/src/capabilities/index.d.ts +8 -1
  30. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  31. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  32. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  33. package/dist/types/src/components/index.d.ts +1 -0
  34. package/dist/types/src/components/index.d.ts.map +1 -0
  35. package/dist/types/src/{components → containers/MasonryContainer}/MasonryContainer.d.ts +1 -1
  36. package/dist/types/src/containers/MasonryContainer/MasonryContainer.d.ts.map +1 -0
  37. package/dist/types/src/containers/MasonryContainer/MasonryContainer.stories.d.ts.map +1 -0
  38. package/dist/types/src/containers/MasonryContainer/index.d.ts +2 -0
  39. package/dist/types/src/containers/MasonryContainer/index.d.ts.map +1 -0
  40. package/dist/types/src/containers/index.d.ts +3 -0
  41. package/dist/types/src/containers/index.d.ts.map +1 -0
  42. package/dist/types/src/index.d.ts +2 -1
  43. package/dist/types/src/index.d.ts.map +1 -1
  44. package/dist/types/src/translations.d.ts +20 -18
  45. package/dist/types/src/translations.d.ts.map +1 -1
  46. package/dist/types/src/types/Masonry.d.ts +3 -9
  47. package/dist/types/src/types/Masonry.d.ts.map +1 -1
  48. package/dist/types/src/types/MasonryAction.d.ts.map +1 -1
  49. package/dist/types/tsconfig.tsbuildinfo +1 -1
  50. package/package.json +47 -36
  51. package/src/MasonryPlugin.test.ts +26 -0
  52. package/src/MasonryPlugin.tsx +7 -24
  53. package/src/capabilities/create-object.ts +36 -0
  54. package/src/capabilities/index.ts +4 -1
  55. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +10 -8
  56. package/src/components/index.ts +3 -0
  57. package/src/{components → containers/MasonryContainer}/MasonryContainer.stories.tsx +10 -10
  58. package/src/containers/MasonryContainer/MasonryContainer.tsx +130 -0
  59. package/src/containers/MasonryContainer/index.ts +5 -0
  60. package/src/containers/index.ts +7 -0
  61. package/src/index.ts +6 -2
  62. package/src/meta.ts +1 -1
  63. package/src/translations.ts +12 -11
  64. package/src/types/Masonry.ts +11 -24
  65. package/src/types/MasonryAction.ts +0 -1
  66. package/dist/lib/browser/chunk-S5JKAK4O.mjs +0 -78
  67. package/dist/lib/browser/chunk-S5JKAK4O.mjs.map +0 -7
  68. package/dist/lib/browser/chunk-U46AGJ2D.mjs +0 -19
  69. package/dist/lib/browser/chunk-U46AGJ2D.mjs.map +0 -7
  70. package/dist/lib/browser/react-surface-QKCNQ7HF.mjs +0 -95
  71. package/dist/lib/browser/react-surface-QKCNQ7HF.mjs.map +0 -7
  72. package/dist/lib/node-esm/chunk-P6EZJITS.mjs +0 -21
  73. package/dist/lib/node-esm/chunk-P6EZJITS.mjs.map +0 -7
  74. package/dist/lib/node-esm/chunk-YNA44I6R.mjs +0 -79
  75. package/dist/lib/node-esm/chunk-YNA44I6R.mjs.map +0 -7
  76. package/dist/lib/node-esm/react-surface-XG56AMA7.mjs +0 -96
  77. package/dist/lib/node-esm/react-surface-XG56AMA7.mjs.map +0 -7
  78. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  79. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  80. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
  81. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  82. package/dist/types/src/components/MasonryContainer.d.ts.map +0 -1
  83. package/dist/types/src/components/MasonryContainer.stories.d.ts.map +0 -1
  84. package/src/capabilities/react-surface/index.ts +0 -7
  85. package/src/components/MasonryContainer.tsx +0 -79
  86. /package/dist/types/src/{components → containers/MasonryContainer}/MasonryContainer.stories.d.ts +0 -0
@@ -0,0 +1,31 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import "./chunk-HSLMI22Q.mjs";
3
+
4
+ // src/translations.ts
5
+ import { Type } from "@dxos/echo";
6
+ import { meta } from "#meta";
7
+ import { Masonry } from "#types";
8
+ var translations = [
9
+ {
10
+ "en-US": {
11
+ [Type.getTypename(Masonry.Masonry)]: {
12
+ "typename.label": "Masonry",
13
+ "typename.label_zero": "Masonries",
14
+ "typename.label_one": "Masonry",
15
+ "typename.label_other": "Masonries",
16
+ "object-name.placeholder": "New masonry",
17
+ "add-object.label": "Add masonry",
18
+ "rename-object.label": "Rename masonry",
19
+ "delete-object.label": "Delete masonry",
20
+ "object-deleted.label": "Masonry deleted"
21
+ },
22
+ [meta.id]: {
23
+ "plugin.name": "Masonry"
24
+ }
25
+ }
26
+ }
27
+ ];
28
+ export {
29
+ translations
30
+ };
31
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Type } from '@dxos/echo';\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Masonry } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Type.getTypename(Masonry.Masonry)]: {\n 'typename.label': 'Masonry',\n 'typename.label_zero': 'Masonries',\n 'typename.label_one': 'Masonry',\n 'typename.label_other': 'Masonries',\n 'object-name.placeholder': 'New masonry',\n 'add-object.label': 'Add masonry',\n 'rename-object.label': 'Rename masonry',\n 'delete-object.label': 'Delete masonry',\n 'object-deleted.label': 'Masonry deleted',\n },\n [meta.id]: {\n 'plugin.name': 'Masonry',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;;AAIA,SAASA,YAAY;AAGrB,SAASC,YAAY;AACrB,SAASC,eAAe;AAEjB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACH,KAAKI,YAAYF,QAAQA,OAAO,CAAA,GAAI;QACnC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACD,KAAKI,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;",
6
+ "names": ["Type", "meta", "Masonry", "translations", "getTypename", "id"]
7
+ }
@@ -1,8 +1,67 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
- MasonryAction_exports,
4
- Masonry_exports
5
- } from "../chunk-YNA44I6R.mjs";
3
+ __export
4
+ } from "../chunk-HSLMI22Q.mjs";
5
+
6
+ // src/types/Masonry.ts
7
+ var Masonry_exports = {};
8
+ __export(Masonry_exports, {
9
+ Masonry: () => Masonry,
10
+ make: () => make
11
+ });
12
+ import * as Schema from "effect/Schema";
13
+ import { Annotation, Obj, Ref, Type } from "@dxos/echo";
14
+ import { View } from "@dxos/echo";
15
+ import { FormInputAnnotation, LabelAnnotation } from "@dxos/echo/internal";
16
+ import { ViewAnnotation } from "@dxos/schema";
17
+ var Masonry = Schema.Struct({
18
+ name: Schema.String.pipe(Schema.optional),
19
+ view: Ref.Ref(View.View).pipe(FormInputAnnotation.set(false)),
20
+ arrangement: Schema.Array(Schema.Struct({
21
+ ids: Schema.Array(Obj.ID),
22
+ hidden: Schema.optional(Schema.Boolean)
23
+ })).pipe(FormInputAnnotation.set(false), Schema.optional)
24
+ }).pipe(Type.object({
25
+ typename: "org.dxos.type.masonry",
26
+ version: "0.1.0"
27
+ }), LabelAnnotation.set([
28
+ "name"
29
+ ]), ViewAnnotation.set([
30
+ "view"
31
+ ]), Annotation.IconAnnotation.set({
32
+ icon: "ph--wall--regular",
33
+ hue: "green"
34
+ }));
35
+ var make = ({ name, arrangement = [], view }) => {
36
+ return Obj.make(Masonry, {
37
+ name,
38
+ view: Ref.make(view),
39
+ arrangement
40
+ });
41
+ };
42
+
43
+ // src/types/MasonryAction.ts
44
+ var MasonryAction_exports = {};
45
+ __export(MasonryAction_exports, {
46
+ MasonryProps: () => MasonryProps
47
+ });
48
+ import * as Schema2 from "effect/Schema";
49
+ import { TypeInputOptionsAnnotation } from "@dxos/plugin-space/types";
50
+ var MasonryProps = Schema2.Struct({
51
+ name: Schema2.optional(Schema2.String),
52
+ // TODO(wittjosiah): This should be a query input instead.
53
+ typename: Schema2.String.pipe(Schema2.annotations({
54
+ title: "Select card type"
55
+ }), TypeInputOptionsAnnotation.set({
56
+ location: [
57
+ "database",
58
+ "runtime"
59
+ ],
60
+ kind: [
61
+ "user"
62
+ ]
63
+ }), Schema2.optional)
64
+ });
6
65
  export {
7
66
  Masonry_exports as Masonry,
8
67
  MasonryAction_exports as MasonryAction
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
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(['view']),\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,MAAMZ,IAAIA,IAAIE,KAAKA,IAAI,EAAEQ,KAAKP,oBAAoBU,IAAI,KAAA,CAAA;EAEtDC,aAAoBC,aACXR,cAAO;IACZS,KAAYD,aAAMhB,IAAIkB,EAAE;IACxBC,QAAeP,gBAAgBQ,cAAO;EACxC,CAAA,CAAA,EACAT,KAAKP,oBAAoBU,IAAI,KAAA,GAAeF,eAAQ;AAExD,CAAA,EAAGD,KACDT,KAAKmB,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,GACAlB,gBAAgBS,IAAI;EAAC;CAAO,GAC5BR,eAAeQ,IAAI;EAAC;CAAO,GAC3Bf,WAAWyB,eAAeV,IAAI;EAC5BW,MAAM;EACNC,KAAK;AACP,CAAA,CAAA;AAYK,IAAMC,OAAO,CAAC,EAAElB,MAAMM,cAAc,CAAA,GAAIF,KAAI,MAAa;AAC9D,SAAOb,IAAI2B,KAAKpB,SAAS;IAAEE;IAAMI,MAAMZ,IAAI0B,KAAKd,IAAAA;IAAOE;EAAY,CAAA;AACrE;;;AC/CA;;;;AAIA,YAAYa,aAAY;AAExB,SAASC,kCAAkC;AAEpC,IAAMC,eAAsBC,eAAO;EACxCC,MAAaC,iBAAgBC,cAAM;;EAEnCC,UAAiBD,eAAOE,KACfC,oBAAY;IAAEC,OAAO;EAAmB,CAAA,GAC/CT,2BAA2BU,IAAI;IAC7BC,UAAU;MAAC;MAAY;;IACvBC,MAAM;MAAC;;EACT,CAAA,GACOR,gBAAQ;AAEnB,CAAA;",
6
+ "names": ["Schema", "Annotation", "Obj", "Ref", "Type", "View", "FormInputAnnotation", "LabelAnnotation", "ViewAnnotation", "Masonry", "Struct", "name", "String", "pipe", "optional", "view", "set", "arrangement", "Array", "ids", "ID", "hidden", "Boolean", "object", "typename", "version", "IconAnnotation", "icon", "hue", "make", "Schema", "TypeInputOptionsAnnotation", "MasonryProps", "Struct", "name", "optional", "String", "typename", "pipe", "annotations", "title", "set", "location", "kind"]
7
7
  }
@@ -1,3 +1,4 @@
1
1
  import { Plugin } from '@dxos/app-framework';
2
2
  export declare const MasonryPlugin: Plugin.PluginFactory<void>;
3
+ export default MasonryPlugin;
3
4
  //# sourceMappingURL=MasonryPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MasonryPlugin.d.ts","sourceRoot":"","sources":["../../../src/MasonryPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAW7C,eAAO,MAAM,aAAa,4BAoBzB,CAAC"}
1
+ {"version":3,"file":"MasonryPlugin.d.ts","sourceRoot":"","sources":["../../../src/MasonryPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQ7C,eAAO,MAAM,aAAa,4BAMzB,CAAC;eAEa,aAAa"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MasonryPlugin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasonryPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/MasonryPlugin.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { SpaceCapabilities } from '@dxos/plugin-space/types';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
5
+ id: string;
6
+ createObject: import("@dxos/plugin-space/types").CreateObject;
7
+ inputSchema?: import("effect/Schema").Schema.AnyNoContext;
8
+ customPanel?: import("react").ComponentType<SpaceCapabilities.CreateObjectCustomPanelProps>;
9
+ }>>>, never, never>;
10
+ export default _default;
11
+ //# sourceMappingURL=create-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-object.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/create-object.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,2 +1,9 @@
1
- export * from './react-surface';
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const CreateObject: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
3
+ id: string;
4
+ createObject: import("@dxos/plugin-space/types").CreateObject;
5
+ inputSchema?: import("effect/Schema").Schema.AnyNoContext;
6
+ customPanel?: import("react").ComponentType<import("@dxos/plugin-space/types").SpaceCapabilities.CreateObjectCustomPanelProps>;
7
+ }>>>, Error>;
8
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
2
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;YAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
4
+ export default _default;
5
+ //# sourceMappingURL=react-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type Ref } from '@dxos/echo';
3
- import { type View } from '@dxos/schema';
3
+ import { type View } from '@dxos/echo';
4
4
  export type MasonryContainerProps = {
5
5
  view: View.View;
6
6
  role?: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasonryContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/MasonryContainer/MasonryContainer.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAK5D,OAAO,EAAkC,KAAK,GAAG,EAAQ,MAAM,YAAY,CAAC;AAC5E,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AASvC,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,gBAAgB,sCAG1B;IACD,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,sBAgEA,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MasonryContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/MasonryContainer/MasonryContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AA6B1B,QAAA,MAAM,IAAI;;;;;;QAkCN,MAAM;;CAEM,CAAC;eAEF,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { MasonryContainer as default } from './MasonryContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/MasonryContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ComponentType } from 'react';
2
+ export declare const MasonryContainer: ComponentType<any>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,GAAG,CAA4C,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const MasonryPlugin: Plugin.PluginFactory<void>;
1
3
  export * from './meta';
2
- export * from './MasonryPlugin';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AAEvB,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,aAAa,4BAAqD,CAAC;AAEhF,cAAc,QAAQ,CAAC"}
@@ -1,25 +1,27 @@
1
1
  export declare const translations: [{
2
2
  readonly 'en-US': {
3
3
  readonly [x: string]: {
4
- readonly 'typename label': "Masonry";
5
- readonly 'typename label_zero': "Masonries";
6
- readonly 'typename label_one': "Masonry";
7
- readonly 'typename label_other': "Masonries";
8
- readonly 'object name placeholder': "New masonry";
9
- readonly 'rename object label': "Rename masonry";
10
- readonly 'delete object label': "Delete masonry";
11
- readonly 'object deleted label': "Masonry deleted";
12
- readonly 'plugin name'?: undefined;
4
+ readonly 'typename.label': 'Masonry';
5
+ readonly 'typename.label_zero': 'Masonries';
6
+ readonly 'typename.label_one': 'Masonry';
7
+ readonly 'typename.label_other': 'Masonries';
8
+ readonly 'object-name.placeholder': 'New masonry';
9
+ readonly 'add-object.label': 'Add masonry';
10
+ readonly 'rename-object.label': 'Rename masonry';
11
+ readonly 'delete-object.label': 'Delete masonry';
12
+ readonly 'object-deleted.label': 'Masonry deleted';
13
+ readonly 'plugin.name'?: undefined;
13
14
  } | {
14
- readonly 'plugin name': "Masonry";
15
- readonly 'typename label'?: undefined;
16
- readonly 'typename label_zero'?: undefined;
17
- readonly 'typename label_one'?: undefined;
18
- readonly 'typename label_other'?: undefined;
19
- readonly 'object name placeholder'?: undefined;
20
- readonly 'rename object label'?: undefined;
21
- readonly 'delete object label'?: undefined;
22
- readonly 'object deleted label'?: undefined;
15
+ readonly 'typename.label'?: undefined;
16
+ readonly 'typename.label_zero'?: undefined;
17
+ readonly 'typename.label_one'?: undefined;
18
+ readonly 'typename.label_other'?: undefined;
19
+ readonly 'object-name.placeholder'?: undefined;
20
+ readonly 'add-object.label'?: undefined;
21
+ readonly 'rename-object.label'?: undefined;
22
+ readonly 'delete-object.label'?: undefined;
23
+ readonly 'object-deleted.label'?: undefined;
24
+ readonly 'plugin.name': 'Masonry';
23
25
  };
24
26
  };
25
27
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;EAkBM,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;uCAIC,SAAS;4CACJ,WAAW;2CACZ,SAAS;6CACP,WAAW;gDACR,aAAa;yCACpB,aAAa;4CACV,gBAAgB;4CAChB,gBAAgB;6CACf,iBAAiB;;;;;;;;;;;;oCAG1B,SAAS;;;EAID,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import * as Schema from 'effect/Schema';
2
2
  import { Obj, Type } from '@dxos/echo';
3
- import { View } from '@dxos/schema';
3
+ import { View } from '@dxos/echo';
4
4
  export declare const Masonry: Type.Obj<{
5
- readonly view: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & View.View>;
6
5
  readonly name?: string | undefined;
6
+ readonly view: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & View.View>;
7
7
  readonly arrangement?: readonly {
8
- readonly hidden?: boolean | undefined;
9
8
  readonly ids: readonly string[];
9
+ readonly hidden?: boolean | undefined;
10
10
  }[] | undefined;
11
11
  }, Schema.Struct.Fields>;
12
12
  export interface Masonry extends Schema.Schema.Type<typeof Masonry> {
@@ -18,11 +18,5 @@ type MakeProps = Omit<Partial<Obj.MakeProps<typeof Masonry>>, 'view'> & {
18
18
  * Make a masonry as a view of a data set.
19
19
  */
20
20
  export declare const make: ({ name, arrangement, view }: MakeProps) => Masonry;
21
- export declare const MasonryV1: Type.Obj<{
22
- readonly arrangement?: readonly {
23
- readonly hidden?: boolean | undefined;
24
- readonly ids: readonly string[];
25
- }[] | undefined;
26
- }, Schema.Struct.Fields>;
27
21
  export {};
28
22
  //# sourceMappingURL=Masonry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Masonry.d.ts","sourceRoot":"","sources":["../../../../src/types/Masonry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,GAAG,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAkB,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,OAAO;;;;;;;wBAmBnB,CAAC;AAEF,MAAM,WAAW,OAAQ,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC;CAAG;AAEtE,KAAK,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;IACtE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,6BAAkC,SAAS,KAAG,OAElE,CAAC;AAMF,eAAO,MAAM,SAAS;;;;;wBAYrB,CAAC"}
1
+ {"version":3,"file":"Masonry.d.ts","sourceRoot":"","sources":["../../../../src/types/Masonry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAc,GAAG,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC,eAAO,MAAM,OAAO;;;;;;;wBAuBnB,CAAC;AAEF,MAAM,WAAW,OAAQ,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC;CAAG;AAEtE,KAAK,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG;IACtE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,gCAAsC,SAAS,KAAG,OAElE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MasonryAction.d.ts","sourceRoot":"","sources":["../../../../src/types/MasonryAction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,eAAO,MAAM,YAAY;;;EAYvB,CAAC"}
1
+ {"version":3,"file":"MasonryAction.d.ts","sourceRoot":"","sources":["../../../../src/types/MasonryAction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,eAAO,MAAM,YAAY;;;EAWvB,CAAC"}