@appkit/dek-lib 0.29.0 → 0.31.0
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/data/types/gql.d.ts +2 -2
- package/dist/data/types/graphql.d.ts +17 -16
- package/dist/index.es.js +19 -31
- package/dist/index.umd.js +19 -31
- package/package.json +2 -2
package/dist/data/types/gql.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/
|
|
|
11
11
|
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
12
12
|
*/
|
|
13
13
|
declare const documents: {
|
|
14
|
-
"\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n base {\n integration\n key\n }\n zones {\n key\n
|
|
14
|
+
"\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n base {\n integration\n key\n }\n zones {\n key\n integrationKey\n componentKey\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n commandGroups {\n title\n key\n commands {\n title\n integrationKey\n componentKey\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n }\n }\n": DocumentNode<types.UserDataQuery, types.Exact<{
|
|
15
15
|
[key: string]: never;
|
|
16
16
|
}>>;
|
|
17
17
|
"\n query userPluginsAndIntegrations {\n currentUser {\n plugins {\n name\n code\n version\n }\n integrations {\n key\n pluginName\n pluginVersion\n pluginConfig {\n key\n value\n }\n }\n }\n }\n": DocumentNode<types.UserPluginsAndIntegrationsQuery, types.Exact<{
|
|
@@ -37,7 +37,7 @@ export declare function gql(source: string): unknown;
|
|
|
37
37
|
/**
|
|
38
38
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
39
39
|
*/
|
|
40
|
-
export declare function gql(source: "\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n base {\n integration\n key\n }\n zones {\n key\n
|
|
40
|
+
export declare function gql(source: "\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n base {\n integration\n key\n }\n zones {\n key\n integrationKey\n componentKey\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n commandGroups {\n title\n key\n commands {\n title\n integrationKey\n componentKey\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n }\n }\n"): (typeof documents)["\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n base {\n integration\n key\n }\n zones {\n key\n integrationKey\n componentKey\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n commandGroups {\n title\n key\n commands {\n title\n integrationKey\n componentKey\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n }\n }\n"];
|
|
41
41
|
/**
|
|
42
42
|
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
43
43
|
*/
|
|
@@ -91,9 +91,9 @@ export type AddCommandGroupResult = {
|
|
|
91
91
|
error?: Maybe<Error>;
|
|
92
92
|
};
|
|
93
93
|
export type AddCommandInput = {
|
|
94
|
-
|
|
94
|
+
componentKey: Scalars['String']['input'];
|
|
95
95
|
containerProps?: InputMaybe<Array<CommandPropInput>>;
|
|
96
|
-
|
|
96
|
+
integrationKey: Scalars['String']['input'];
|
|
97
97
|
props?: InputMaybe<Array<CommandPropInput>>;
|
|
98
98
|
title: Scalars['String']['input'];
|
|
99
99
|
};
|
|
@@ -172,9 +172,9 @@ export type AddUserResult = {
|
|
|
172
172
|
};
|
|
173
173
|
export type AddZoneInput = {
|
|
174
174
|
boardId: Scalars['ID']['input'];
|
|
175
|
-
|
|
175
|
+
componentKey: Scalars['String']['input'];
|
|
176
176
|
containerProps?: InputMaybe<Array<ZonePropInput>>;
|
|
177
|
-
|
|
177
|
+
integrationKey: Scalars['String']['input'];
|
|
178
178
|
key: Scalars['String']['input'];
|
|
179
179
|
props?: InputMaybe<Array<ZonePropInput>>;
|
|
180
180
|
};
|
|
@@ -325,11 +325,11 @@ export type Command = {
|
|
|
325
325
|
__typename?: 'Command';
|
|
326
326
|
archived: Scalars['Boolean']['output'];
|
|
327
327
|
archivedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
328
|
-
|
|
328
|
+
componentKey: Scalars['String']['output'];
|
|
329
329
|
containerProps: Array<CommandProp>;
|
|
330
330
|
createdAt: Scalars['DateTime']['output'];
|
|
331
331
|
id: Scalars['ID']['output'];
|
|
332
|
-
|
|
332
|
+
integrationKey: Scalars['String']['output'];
|
|
333
333
|
props: Array<CommandProp>;
|
|
334
334
|
title: Scalars['String']['output'];
|
|
335
335
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -991,9 +991,9 @@ export type UpdateCommandGroupResult = {
|
|
|
991
991
|
};
|
|
992
992
|
export type UpdateCommandInput = {
|
|
993
993
|
archived?: InputMaybe<Scalars['Boolean']['input']>;
|
|
994
|
-
|
|
994
|
+
componentKey?: InputMaybe<Scalars['String']['input']>;
|
|
995
995
|
containerProps?: InputMaybe<Array<CommandPropInput>>;
|
|
996
|
-
|
|
996
|
+
integrationKey?: InputMaybe<Scalars['String']['input']>;
|
|
997
997
|
props?: InputMaybe<Array<CommandPropInput>>;
|
|
998
998
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
999
999
|
};
|
|
@@ -1067,9 +1067,9 @@ export type UpdateUserResult = {
|
|
|
1067
1067
|
};
|
|
1068
1068
|
export type UpdateZoneInput = {
|
|
1069
1069
|
archived?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1070
|
-
|
|
1070
|
+
componentKey?: InputMaybe<Scalars['String']['input']>;
|
|
1071
1071
|
containerProps?: InputMaybe<Array<ZonePropInput>>;
|
|
1072
|
-
|
|
1072
|
+
integrationKey?: InputMaybe<Scalars['String']['input']>;
|
|
1073
1073
|
key?: InputMaybe<Scalars['String']['input']>;
|
|
1074
1074
|
props?: InputMaybe<Array<ZonePropInput>>;
|
|
1075
1075
|
};
|
|
@@ -1153,11 +1153,12 @@ export type Zone = {
|
|
|
1153
1153
|
archived: Scalars['Boolean']['output'];
|
|
1154
1154
|
archivedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1155
1155
|
board: Board;
|
|
1156
|
-
|
|
1156
|
+
componentKey: Scalars['String']['output'];
|
|
1157
1157
|
containerProps: Array<ZoneProp>;
|
|
1158
1158
|
createdAt: Scalars['DateTime']['output'];
|
|
1159
1159
|
id: Scalars['ID']['output'];
|
|
1160
|
-
integration:
|
|
1160
|
+
integration: Integration;
|
|
1161
|
+
integrationKey: Scalars['String']['output'];
|
|
1161
1162
|
key: Scalars['String']['output'];
|
|
1162
1163
|
props: Array<ZoneProp>;
|
|
1163
1164
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -1215,8 +1216,8 @@ export type UserDataQuery = {
|
|
|
1215
1216
|
zones: Array<{
|
|
1216
1217
|
__typename?: 'Zone';
|
|
1217
1218
|
key: string;
|
|
1218
|
-
|
|
1219
|
-
|
|
1219
|
+
integrationKey: string;
|
|
1220
|
+
componentKey: string;
|
|
1220
1221
|
props: Array<{
|
|
1221
1222
|
__typename?: 'ZoneProp';
|
|
1222
1223
|
key: string;
|
|
@@ -1236,8 +1237,8 @@ export type UserDataQuery = {
|
|
|
1236
1237
|
commands: Array<{
|
|
1237
1238
|
__typename?: 'Command';
|
|
1238
1239
|
title: string;
|
|
1239
|
-
|
|
1240
|
-
|
|
1240
|
+
integrationKey: string;
|
|
1241
|
+
componentKey: string;
|
|
1241
1242
|
props: Array<{
|
|
1242
1243
|
__typename?: 'CommandProp';
|
|
1243
1244
|
key: string;
|
package/dist/index.es.js
CHANGED
|
@@ -49811,8 +49811,8 @@ const Zone = (props) => {
|
|
|
49811
49811
|
if (zones.length > 1) {
|
|
49812
49812
|
const components = [];
|
|
49813
49813
|
zones.forEach((zone2) => {
|
|
49814
|
-
if (zone2.
|
|
49815
|
-
const component = api2.integration(zone2.
|
|
49814
|
+
if (zone2.integrationKey && zone2.componentKey) {
|
|
49815
|
+
const component = api2.integration(zone2.integrationKey).component(zone2.componentKey, {
|
|
49816
49816
|
...parsePropsForComponent(api2, zone2.props),
|
|
49817
49817
|
"aria-label": `zone-${props.id}`
|
|
49818
49818
|
});
|
|
@@ -49843,9 +49843,9 @@ const Zone = (props) => {
|
|
|
49843
49843
|
const zone = api2.board.zones.find(
|
|
49844
49844
|
(z) => z.key === props.id
|
|
49845
49845
|
);
|
|
49846
|
-
if (zone && zone.
|
|
49847
|
-
label = `${props.id}: ${zone.
|
|
49848
|
-
const component = api2.integration(zone.
|
|
49846
|
+
if (zone && zone.integrationKey && zone.componentKey) {
|
|
49847
|
+
label = `${props.id}: ${zone.integrationKey}/${zone.componentKey}`;
|
|
49848
|
+
const component = api2.integration(zone.integrationKey).component(zone.componentKey, {
|
|
49849
49849
|
...parsePropsForComponent(api2, zone.props),
|
|
49850
49850
|
"aria-label": `zone-${props.id}`
|
|
49851
49851
|
});
|
|
@@ -66270,11 +66270,11 @@ async function getClient(email, password) {
|
|
|
66270
66270
|
cache: new InMemoryCache()
|
|
66271
66271
|
});
|
|
66272
66272
|
}
|
|
66273
|
-
const UserDataDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "userData" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "location" } }, { "kind": "Field", "name": { "kind": "Name", "value": "avatar" } }, { "kind": "Field", "name": { "kind": "Name", "value": "boards" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "layout" } }, { "kind": "Field", "name": { "kind": "Name", "value": "base" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "zones" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "
|
|
66273
|
+
const UserDataDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "userData" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "location" } }, { "kind": "Field", "name": { "kind": "Name", "value": "avatar" } }, { "kind": "Field", "name": { "kind": "Name", "value": "boards" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "layout" } }, { "kind": "Field", "name": { "kind": "Name", "value": "base" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "zones" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "integrationKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "componentKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "props" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "containerProps" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "commandGroups" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "commands" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "integrationKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "componentKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "props" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "containerProps" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }] } }] } }] };
|
|
66274
66274
|
const UserPluginsAndIntegrationsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "userPluginsAndIntegrations" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "plugins" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "code" } }, { "kind": "Field", "name": { "kind": "Name", "value": "version" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "integrations" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pluginName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pluginVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pluginConfig" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }] } }] };
|
|
66275
66275
|
const UserChangeDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "subscription", "name": { "kind": "Name", "value": "userChange" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "userChange" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "user" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }] } }] } }] } }] };
|
|
66276
66276
|
const documents = {
|
|
66277
|
-
"\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n base {\n integration\n key\n }\n zones {\n key\n
|
|
66277
|
+
"\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n base {\n integration\n key\n }\n zones {\n key\n integrationKey\n componentKey\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n commandGroups {\n title\n key\n commands {\n title\n integrationKey\n componentKey\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n }\n }\n": UserDataDocument,
|
|
66278
66278
|
"\n query userPluginsAndIntegrations {\n currentUser {\n plugins {\n name\n code\n version\n }\n integrations {\n key\n pluginName\n pluginVersion\n pluginConfig {\n key\n value\n }\n }\n }\n }\n": UserPluginsAndIntegrationsDocument,
|
|
66279
66279
|
"\n subscription userChange {\n userChange {\n user {\n id\n }\n }\n }\n": UserChangeDocument
|
|
66280
66280
|
};
|
|
@@ -66300,8 +66300,8 @@ const USER_DATA_QUERY = gql(`
|
|
|
66300
66300
|
}
|
|
66301
66301
|
zones {
|
|
66302
66302
|
key
|
|
66303
|
-
|
|
66304
|
-
|
|
66303
|
+
integrationKey
|
|
66304
|
+
componentKey
|
|
66305
66305
|
props {
|
|
66306
66306
|
key
|
|
66307
66307
|
value
|
|
@@ -66317,8 +66317,8 @@ const USER_DATA_QUERY = gql(`
|
|
|
66317
66317
|
key
|
|
66318
66318
|
commands {
|
|
66319
66319
|
title
|
|
66320
|
-
|
|
66321
|
-
|
|
66320
|
+
integrationKey
|
|
66321
|
+
componentKey
|
|
66322
66322
|
props {
|
|
66323
66323
|
key
|
|
66324
66324
|
value
|
|
@@ -66861,7 +66861,7 @@ async function fetchUserPlugins(email, password) {
|
|
|
66861
66861
|
result.integrations.push({
|
|
66862
66862
|
key: "base",
|
|
66863
66863
|
pluginName: "base",
|
|
66864
|
-
pluginVersion: "0.
|
|
66864
|
+
pluginVersion: "0.31.0",
|
|
66865
66865
|
pluginConfig: []
|
|
66866
66866
|
});
|
|
66867
66867
|
return result;
|
|
@@ -67036,7 +67036,7 @@ const Header = ({ height = 70 }) => {
|
|
|
67036
67036
|
};
|
|
67037
67037
|
const About = () => {
|
|
67038
67038
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, direction: "vert", children: [
|
|
67039
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.
|
|
67039
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.31.0"}` }),
|
|
67040
67040
|
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
|
|
67041
67041
|
] });
|
|
67042
67042
|
};
|
|
@@ -98725,8 +98725,7 @@ const ComponentScreen = ({ api: api2 }) => {
|
|
|
98725
98725
|
setPropsString(value);
|
|
98726
98726
|
};
|
|
98727
98727
|
const parsedProps = parsePropsForComponent(api2, propsArray);
|
|
98728
|
-
const
|
|
98729
|
-
const maxHeight = parsedProps && parsedProps["dev"] && parsedProps["dev"]["maxHeight"];
|
|
98728
|
+
const style = parsedProps && parsedProps["style"];
|
|
98730
98729
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wt2, { children: [
|
|
98731
98730
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { fullscreen: true, cols: "40% 60%", children: [
|
|
98732
98731
|
/* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { direction: "vert", paddingTop: 100, children: [
|
|
@@ -98778,18 +98777,7 @@ const ComponentScreen = ({ api: api2 }) => {
|
|
|
98778
98777
|
) }),
|
|
98779
98778
|
error2 && /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { color: "red", paddingLeft: 15, paddingTop: 10, children: error2 })
|
|
98780
98779
|
] }) }),
|
|
98781
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { halign: "left", valign: "center", children:
|
|
98782
|
-
"div",
|
|
98783
|
-
{
|
|
98784
|
-
style: {
|
|
98785
|
-
width: "100%",
|
|
98786
|
-
maxWidth,
|
|
98787
|
-
height: "100%",
|
|
98788
|
-
maxHeight
|
|
98789
|
-
},
|
|
98790
|
-
children: propsString && api2.integration("plugin").component(params.componentKey, parsedProps)
|
|
98791
|
-
}
|
|
98792
|
-
) }) })
|
|
98780
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { halign: "left", valign: "center", style, children: propsString && api2.integration("plugin").component(params.componentKey, parsedProps) }) })
|
|
98793
98781
|
] }),
|
|
98794
98782
|
/* @__PURE__ */ jsxRuntimeExports.jsx($t2, { title: `Component View`, subtitle: params.componentKey })
|
|
98795
98783
|
] });
|
|
@@ -103039,7 +103027,7 @@ async function updatePlugins(email, password) {
|
|
|
103039
103027
|
{
|
|
103040
103028
|
key: "base",
|
|
103041
103029
|
pluginName: "base",
|
|
103042
|
-
pluginVersion: "0.
|
|
103030
|
+
pluginVersion: "0.31.0",
|
|
103043
103031
|
pluginConfig: []
|
|
103044
103032
|
}
|
|
103045
103033
|
],
|
|
@@ -104172,7 +104160,7 @@ const Router = ({ userConfig, transitionDelay: transitionDelay2 }) => {
|
|
|
104172
104160
|
if (!data) {
|
|
104173
104161
|
return null;
|
|
104174
104162
|
}
|
|
104175
|
-
const defaultBoard = data.boards.length > 0 ? data.boards[
|
|
104163
|
+
const defaultBoard = data.boards.length > 0 ? data.boards[data.boards.length - 1].key : "empty";
|
|
104176
104164
|
if (location2 === "/") {
|
|
104177
104165
|
setLocation(`/${defaultBoard}`);
|
|
104178
104166
|
} else {
|
|
@@ -104244,8 +104232,8 @@ const CommandGroup = ({ groupKey }) => {
|
|
|
104244
104232
|
return null;
|
|
104245
104233
|
}
|
|
104246
104234
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { children: group.commands.map((command, idx) => {
|
|
104247
|
-
const instance = api2.integration(command.
|
|
104248
|
-
command.
|
|
104235
|
+
const instance = api2.integration(command.integrationKey).component(
|
|
104236
|
+
command.componentKey,
|
|
104249
104237
|
parsePropsForComponent(api2, command.props)
|
|
104250
104238
|
);
|
|
104251
104239
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(CommandItem, { children: instance }, idx);
|
package/dist/index.umd.js
CHANGED
|
@@ -49828,8 +49828,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
49828
49828
|
if (zones.length > 1) {
|
|
49829
49829
|
const components = [];
|
|
49830
49830
|
zones.forEach((zone2) => {
|
|
49831
|
-
if (zone2.
|
|
49832
|
-
const component = api2.integration(zone2.
|
|
49831
|
+
if (zone2.integrationKey && zone2.componentKey) {
|
|
49832
|
+
const component = api2.integration(zone2.integrationKey).component(zone2.componentKey, {
|
|
49833
49833
|
...parsePropsForComponent(api2, zone2.props),
|
|
49834
49834
|
"aria-label": `zone-${props.id}`
|
|
49835
49835
|
});
|
|
@@ -49860,9 +49860,9 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
49860
49860
|
const zone = api2.board.zones.find(
|
|
49861
49861
|
(z) => z.key === props.id
|
|
49862
49862
|
);
|
|
49863
|
-
if (zone && zone.
|
|
49864
|
-
label = `${props.id}: ${zone.
|
|
49865
|
-
const component = api2.integration(zone.
|
|
49863
|
+
if (zone && zone.integrationKey && zone.componentKey) {
|
|
49864
|
+
label = `${props.id}: ${zone.integrationKey}/${zone.componentKey}`;
|
|
49865
|
+
const component = api2.integration(zone.integrationKey).component(zone.componentKey, {
|
|
49866
49866
|
...parsePropsForComponent(api2, zone.props),
|
|
49867
49867
|
"aria-label": `zone-${props.id}`
|
|
49868
49868
|
});
|
|
@@ -66287,11 +66287,11 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66287
66287
|
cache: new InMemoryCache()
|
|
66288
66288
|
});
|
|
66289
66289
|
}
|
|
66290
|
-
const UserDataDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "userData" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "location" } }, { "kind": "Field", "name": { "kind": "Name", "value": "avatar" } }, { "kind": "Field", "name": { "kind": "Name", "value": "boards" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "layout" } }, { "kind": "Field", "name": { "kind": "Name", "value": "base" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "zones" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "
|
|
66290
|
+
const UserDataDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "userData" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "email" } }, { "kind": "Field", "name": { "kind": "Name", "value": "location" } }, { "kind": "Field", "name": { "kind": "Name", "value": "avatar" } }, { "kind": "Field", "name": { "kind": "Name", "value": "boards" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "layout" } }, { "kind": "Field", "name": { "kind": "Name", "value": "base" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "zones" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "integrationKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "componentKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "props" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "containerProps" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "commandGroups" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "commands" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "title" } }, { "kind": "Field", "name": { "kind": "Name", "value": "integrationKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "componentKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "props" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "containerProps" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }] } }] } }] };
|
|
66291
66291
|
const UserPluginsAndIntegrationsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "userPluginsAndIntegrations" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentUser" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "plugins" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "code" } }, { "kind": "Field", "name": { "kind": "Name", "value": "version" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "integrations" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pluginName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pluginVersion" } }, { "kind": "Field", "name": { "kind": "Name", "value": "pluginConfig" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "value" } }] } }] } }] } }] } }] };
|
|
66292
66292
|
const UserChangeDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "subscription", "name": { "kind": "Name", "value": "userChange" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "userChange" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "user" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }] } }] } }] } }] };
|
|
66293
66293
|
const documents = {
|
|
66294
|
-
"\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n base {\n integration\n key\n }\n zones {\n key\n
|
|
66294
|
+
"\n query userData {\n currentUser {\n id\n name\n email\n location\n avatar\n boards {\n id\n title\n key\n layout\n base {\n integration\n key\n }\n zones {\n key\n integrationKey\n componentKey\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n commandGroups {\n title\n key\n commands {\n title\n integrationKey\n componentKey\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n }\n }\n": UserDataDocument,
|
|
66295
66295
|
"\n query userPluginsAndIntegrations {\n currentUser {\n plugins {\n name\n code\n version\n }\n integrations {\n key\n pluginName\n pluginVersion\n pluginConfig {\n key\n value\n }\n }\n }\n }\n": UserPluginsAndIntegrationsDocument,
|
|
66296
66296
|
"\n subscription userChange {\n userChange {\n user {\n id\n }\n }\n }\n": UserChangeDocument
|
|
66297
66297
|
};
|
|
@@ -66317,8 +66317,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66317
66317
|
}
|
|
66318
66318
|
zones {
|
|
66319
66319
|
key
|
|
66320
|
-
|
|
66321
|
-
|
|
66320
|
+
integrationKey
|
|
66321
|
+
componentKey
|
|
66322
66322
|
props {
|
|
66323
66323
|
key
|
|
66324
66324
|
value
|
|
@@ -66334,8 +66334,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66334
66334
|
key
|
|
66335
66335
|
commands {
|
|
66336
66336
|
title
|
|
66337
|
-
|
|
66338
|
-
|
|
66337
|
+
integrationKey
|
|
66338
|
+
componentKey
|
|
66339
66339
|
props {
|
|
66340
66340
|
key
|
|
66341
66341
|
value
|
|
@@ -66878,7 +66878,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66878
66878
|
result.integrations.push({
|
|
66879
66879
|
key: "base",
|
|
66880
66880
|
pluginName: "base",
|
|
66881
|
-
pluginVersion: "0.
|
|
66881
|
+
pluginVersion: "0.31.0",
|
|
66882
66882
|
pluginConfig: []
|
|
66883
66883
|
});
|
|
66884
66884
|
return result;
|
|
@@ -67053,7 +67053,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67053
67053
|
};
|
|
67054
67054
|
const About = () => {
|
|
67055
67055
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, direction: "vert", children: [
|
|
67056
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.
|
|
67056
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.31.0"}` }),
|
|
67057
67057
|
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
|
|
67058
67058
|
] });
|
|
67059
67059
|
};
|
|
@@ -98742,8 +98742,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
98742
98742
|
setPropsString(value);
|
|
98743
98743
|
};
|
|
98744
98744
|
const parsedProps = parsePropsForComponent(api2, propsArray);
|
|
98745
|
-
const
|
|
98746
|
-
const maxHeight = parsedProps && parsedProps["dev"] && parsedProps["dev"]["maxHeight"];
|
|
98745
|
+
const style = parsedProps && parsedProps["style"];
|
|
98747
98746
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wt2, { children: [
|
|
98748
98747
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Fq1, { fullscreen: true, cols: "40% 60%", children: [
|
|
98749
98748
|
/* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { direction: "vert", paddingTop: 100, children: [
|
|
@@ -98795,18 +98794,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
98795
98794
|
) }),
|
|
98796
98795
|
error2 && /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { color: "red", paddingLeft: 15, paddingTop: 10, children: error2 })
|
|
98797
98796
|
] }) }),
|
|
98798
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { halign: "left", valign: "center", children:
|
|
98799
|
-
"div",
|
|
98800
|
-
{
|
|
98801
|
-
style: {
|
|
98802
|
-
width: "100%",
|
|
98803
|
-
maxWidth,
|
|
98804
|
-
height: "100%",
|
|
98805
|
-
maxHeight
|
|
98806
|
-
},
|
|
98807
|
-
children: propsString && api2.integration("plugin").component(params.componentKey, parsedProps)
|
|
98808
|
-
}
|
|
98809
|
-
) }) })
|
|
98797
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { halign: "left", valign: "center", style, children: propsString && api2.integration("plugin").component(params.componentKey, parsedProps) }) })
|
|
98810
98798
|
] }),
|
|
98811
98799
|
/* @__PURE__ */ jsxRuntimeExports.jsx($t2, { title: `Component View`, subtitle: params.componentKey })
|
|
98812
98800
|
] });
|
|
@@ -103056,7 +103044,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
103056
103044
|
{
|
|
103057
103045
|
key: "base",
|
|
103058
103046
|
pluginName: "base",
|
|
103059
|
-
pluginVersion: "0.
|
|
103047
|
+
pluginVersion: "0.31.0",
|
|
103060
103048
|
pluginConfig: []
|
|
103061
103049
|
}
|
|
103062
103050
|
],
|
|
@@ -104189,7 +104177,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
104189
104177
|
if (!data) {
|
|
104190
104178
|
return null;
|
|
104191
104179
|
}
|
|
104192
|
-
const defaultBoard = data.boards.length > 0 ? data.boards[
|
|
104180
|
+
const defaultBoard = data.boards.length > 0 ? data.boards[data.boards.length - 1].key : "empty";
|
|
104193
104181
|
if (location2 === "/") {
|
|
104194
104182
|
setLocation(`/${defaultBoard}`);
|
|
104195
104183
|
} else {
|
|
@@ -104261,8 +104249,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
104261
104249
|
return null;
|
|
104262
104250
|
}
|
|
104263
104251
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { children: group.commands.map((command, idx) => {
|
|
104264
|
-
const instance = api2.integration(command.
|
|
104265
|
-
command.
|
|
104252
|
+
const instance = api2.integration(command.integrationKey).component(
|
|
104253
|
+
command.componentKey,
|
|
104266
104254
|
parsePropsForComponent(api2, command.props)
|
|
104267
104255
|
);
|
|
104268
104256
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(CommandItem, { children: instance }, idx);
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appkit/dek-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.31.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite --port 5173 --host",
|
|
8
8
|
"build": "tsc && vite build",
|
|
9
9
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
10
|
-
"
|
|
10
|
+
"generate": "graphql-codegen",
|
|
11
11
|
"preview": "vite preview"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|