@dxos/app-framework 0.8.1-main.303c73a → 0.8.1-main.a06ad20
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.
|
@@ -101,28 +101,28 @@ export declare namespace LayoutAction {
|
|
|
101
101
|
}
|
|
102
102
|
export const Toast: S.Struct<{
|
|
103
103
|
id: S.SchemaClass<string, string, never>;
|
|
104
|
-
title: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
104
|
+
title: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
105
105
|
ns: typeof S.String;
|
|
106
106
|
count: S.optional<typeof S.Number>;
|
|
107
|
-
}
|
|
108
|
-
description: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
107
|
+
}>>>>]>>;
|
|
108
|
+
description: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
109
109
|
ns: typeof S.String;
|
|
110
110
|
count: S.optional<typeof S.Number>;
|
|
111
|
-
}
|
|
111
|
+
}>>>>]>>;
|
|
112
112
|
icon: S.optional<S.SchemaClass<string, string, never>>;
|
|
113
113
|
duration: S.optional<S.SchemaClass<number, number, never>>;
|
|
114
|
-
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
114
|
+
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
115
115
|
ns: typeof S.String;
|
|
116
116
|
count: S.optional<typeof S.Number>;
|
|
117
|
-
}
|
|
118
|
-
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
117
|
+
}>>>>]>>;
|
|
118
|
+
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
119
119
|
ns: typeof S.String;
|
|
120
120
|
count: S.optional<typeof S.Number>;
|
|
121
|
-
}
|
|
122
|
-
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
121
|
+
}>>>>]>>;
|
|
122
|
+
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
123
123
|
ns: typeof S.String;
|
|
124
124
|
count: S.optional<typeof S.Number>;
|
|
125
|
-
}
|
|
125
|
+
}>>>>]>>;
|
|
126
126
|
onAction: S.optional<S.SchemaClass<any, any, never>>;
|
|
127
127
|
}>;
|
|
128
128
|
export interface Toast extends Omit<S.Schema.Type<typeof Toast>, 'onAction'> {
|
|
@@ -135,28 +135,28 @@ export declare namespace LayoutAction {
|
|
|
135
135
|
part: S.Literal<["toast"]>;
|
|
136
136
|
subject: S.Struct<{
|
|
137
137
|
id: S.SchemaClass<string, string, never>;
|
|
138
|
-
title: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
138
|
+
title: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
139
139
|
ns: typeof S.String;
|
|
140
140
|
count: S.optional<typeof S.Number>;
|
|
141
|
-
}
|
|
142
|
-
description: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
141
|
+
}>>>>]>>;
|
|
142
|
+
description: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
143
143
|
ns: typeof S.String;
|
|
144
144
|
count: S.optional<typeof S.Number>;
|
|
145
|
-
}
|
|
145
|
+
}>>>>]>>;
|
|
146
146
|
icon: S.optional<S.SchemaClass<string, string, never>>;
|
|
147
147
|
duration: S.optional<S.SchemaClass<number, number, never>>;
|
|
148
|
-
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
148
|
+
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
149
149
|
ns: typeof S.String;
|
|
150
150
|
count: S.optional<typeof S.Number>;
|
|
151
|
-
}
|
|
152
|
-
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
151
|
+
}>>>>]>>;
|
|
152
|
+
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
153
153
|
ns: typeof S.String;
|
|
154
154
|
count: S.optional<typeof S.Number>;
|
|
155
|
-
}
|
|
156
|
-
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.
|
|
155
|
+
}>>>>]>>;
|
|
156
|
+
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
157
157
|
ns: typeof S.String;
|
|
158
158
|
count: S.optional<typeof S.Number>;
|
|
159
|
-
}
|
|
159
|
+
}>>>>]>>;
|
|
160
160
|
onAction: S.optional<S.SchemaClass<any, any, never>>;
|
|
161
161
|
}>;
|
|
162
162
|
}>;
|
|
@@ -6,10 +6,10 @@ export declare namespace IntentAction {
|
|
|
6
6
|
readonly _tag: S.tag<"dxos.org/plugin/intent/action/show-undo">;
|
|
7
7
|
} & {
|
|
8
8
|
input: S.Struct<{
|
|
9
|
-
message: S.Union<[typeof S.String, S.mutable<S.
|
|
9
|
+
message: S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
10
10
|
ns: typeof S.String;
|
|
11
11
|
count: S.optional<typeof S.Number>;
|
|
12
|
-
}
|
|
12
|
+
}>>>>]>;
|
|
13
13
|
}>;
|
|
14
14
|
output: typeof S.Void;
|
|
15
15
|
}>;
|
|
@@ -60,9 +60,9 @@ export declare const createIntent: <Tag extends string, Fields extends IntentPar
|
|
|
60
60
|
* NOTE: Chaining of intents depends on the data inputs and outputs being structs.
|
|
61
61
|
*/
|
|
62
62
|
export declare const chain: <FirstTag extends string, NextTag extends string, FirstFields extends IntentParams, LastFields extends IntentParams, NextFields extends IntentParams>(schema: IntentSchema<NextTag, NextFields>, data?: Omit<IntentData<NextFields>, keyof IntentResultData<LastFields>>, params?: Pick<AnyIntent, "module" | "undo">) => (intent: IntentChain<FirstTag, any, FirstFields, LastFields>) => IntentChain<FirstTag, NextTag, FirstFields, NextFields>;
|
|
63
|
-
export declare const Label: S.Union<[typeof S.String, S.mutable<S.
|
|
63
|
+
export declare const Label: S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
64
64
|
ns: typeof S.String;
|
|
65
65
|
count: S.optional<typeof S.Number>;
|
|
66
|
-
}
|
|
66
|
+
}>>>>]>;
|
|
67
67
|
export type Label = S.Schema.Type<typeof Label>;
|
|
68
68
|
//# sourceMappingURL=intent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/intent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC;AAErC,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,YAAY,IAChD,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAA;CAAE,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC;AAEnH,MAAM,MAAM,gBAAgB,CAAC,MAAM,SAAS,YAAY,IACtD,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,MAA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
3
|
+
"version": "0.8.1-main.a06ad20",
|
|
4
4
|
"description": "A framework for building applications from composible plugins.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -38,29 +38,29 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@preact/signals-core": "^1.6.0",
|
|
41
|
-
"effect": "3.
|
|
42
|
-
"@dxos/app-graph": "0.8.1-main.
|
|
43
|
-
"@dxos/artifact": "0.8.1-main.
|
|
44
|
-
"@dxos/async": "0.8.1-main.
|
|
45
|
-
"@dxos/client-protocol": "0.8.1-main.
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/live-object": "0.8.1-main.
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/react-hooks": "0.8.1-main.
|
|
52
|
-
"@dxos/util": "0.8.1-main.
|
|
41
|
+
"effect": "3.13.3",
|
|
42
|
+
"@dxos/app-graph": "0.8.1-main.a06ad20",
|
|
43
|
+
"@dxos/artifact": "0.8.1-main.a06ad20",
|
|
44
|
+
"@dxos/async": "0.8.1-main.a06ad20",
|
|
45
|
+
"@dxos/client-protocol": "0.8.1-main.a06ad20",
|
|
46
|
+
"@dxos/debug": "0.8.1-main.a06ad20",
|
|
47
|
+
"@dxos/live-object": "0.8.1-main.a06ad20",
|
|
48
|
+
"@dxos/local-storage": "0.8.1-main.a06ad20",
|
|
49
|
+
"@dxos/log": "0.8.1-main.a06ad20",
|
|
50
|
+
"@dxos/invariant": "0.8.1-main.a06ad20",
|
|
51
|
+
"@dxos/react-hooks": "0.8.1-main.a06ad20",
|
|
52
|
+
"@dxos/util": "0.8.1-main.a06ad20"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@phosphor-icons/react": "^2.1.5",
|
|
56
56
|
"@types/react": "~18.2.0",
|
|
57
57
|
"react": "~18.2.0",
|
|
58
|
-
"@dxos/echo-
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/react-ui": "0.8.1-main.
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.1-main.
|
|
63
|
-
"@dxos/storybook-utils": "0.8.1-main.
|
|
58
|
+
"@dxos/echo-schema": "0.8.1-main.a06ad20",
|
|
59
|
+
"@dxos/echo-signals": "0.8.1-main.a06ad20",
|
|
60
|
+
"@dxos/react-ui": "0.8.1-main.a06ad20",
|
|
61
|
+
"@dxos/random": "0.8.1-main.a06ad20",
|
|
62
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.1-main.a06ad20",
|
|
63
|
+
"@dxos/storybook-utils": "0.8.1-main.a06ad20"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"react": "~18.2.0"
|