@appkit/dek-lib 0.30.0 → 0.32.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.
@@ -1,5 +1,8 @@
1
+ import { CommandGroupAlignment } from './CommandGroup.styled';
1
2
  type Props = {
2
3
  groupKey: string;
4
+ title?: string;
5
+ align?: CommandGroupAlignment;
3
6
  };
4
- declare const CommandGroup: ({ groupKey }: Props) => import("react/jsx-runtime").JSX.Element | null;
7
+ declare const CommandGroup: ({ groupKey, title, align }: Props) => import("react/jsx-runtime").JSX.Element | null;
5
8
  export default CommandGroup;
@@ -1,3 +1,9 @@
1
1
  /// <reference types="react" />
2
- export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("../../../../ui/dist/components/View/View").ViewProps, never>> & Omit<({ label, direction, collapse, valign, halign, vscroll, hscroll, padding, paddingVert, paddingHorz, paddingRight, paddingLeft, paddingTop, paddingBottom, width, height, fixed, backColor, backColorHover, borderRadius, wrap, gap, gapRow, gapCol, className, onClick, style, children, }: import("../../../../ui/dist/components/View/View").ViewProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
3
- export declare const CommandItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
2
+ export type CommandGroupAlignment = 'left' | 'right';
3
+ type ContainerProps = {
4
+ $align: CommandGroupAlignment;
5
+ };
6
+ export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("../../../../ui/dist/components/View/View").ViewProps, ContainerProps>> & Omit<({ label, direction, collapse, valign, halign, vscroll, hscroll, padding, paddingVert, paddingHorz, paddingRight, paddingLeft, paddingTop, paddingBottom, width, height, fixed, backColor, backColorHover, borderRadius, wrap, gap, gapRow, gapCol, className, onClick, style, children, }: import("../../../../ui/dist/components/View/View").ViewProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
7
+ export declare const Group: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("../../../../ui/dist/components/View/View").ViewProps, ContainerProps>> & Omit<({ label, direction, collapse, valign, halign, vscroll, hscroll, padding, paddingVert, paddingHorz, paddingRight, paddingLeft, paddingTop, paddingBottom, width, height, fixed, backColor, backColorHover, borderRadius, wrap, gap, gapRow, gapCol, className, onClick, style, children, }: import("../../../../ui/dist/components/View/View").ViewProps) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
8
+ export declare const CommandItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>>;
9
+ export {};
@@ -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 integration\n component\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 integration\n component\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n }\n }\n": DocumentNode<types.UserDataQuery, types.Exact<{
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 integration\n component\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 integration\n component\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 integration\n component\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 integration\n component\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n }\n }\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
- component: Scalars['String']['input'];
94
+ componentKey: Scalars['String']['input'];
95
95
  containerProps?: InputMaybe<Array<CommandPropInput>>;
96
- integration: Scalars['String']['input'];
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
- component: Scalars['String']['input'];
175
+ componentKey: Scalars['String']['input'];
176
176
  containerProps?: InputMaybe<Array<ZonePropInput>>;
177
- integration: Scalars['String']['input'];
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
- component: Scalars['String']['output'];
328
+ componentKey: Scalars['String']['output'];
329
329
  containerProps: Array<CommandProp>;
330
330
  createdAt: Scalars['DateTime']['output'];
331
331
  id: Scalars['ID']['output'];
332
- integration: Scalars['String']['output'];
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
- component?: InputMaybe<Scalars['String']['input']>;
994
+ componentKey?: InputMaybe<Scalars['String']['input']>;
995
995
  containerProps?: InputMaybe<Array<CommandPropInput>>;
996
- integration?: InputMaybe<Scalars['String']['input']>;
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
- component?: InputMaybe<Scalars['String']['input']>;
1070
+ componentKey?: InputMaybe<Scalars['String']['input']>;
1071
1071
  containerProps?: InputMaybe<Array<ZonePropInput>>;
1072
- integration?: InputMaybe<Scalars['String']['input']>;
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
- component: Scalars['String']['output'];
1156
+ componentKey: Scalars['String']['output'];
1157
1157
  containerProps: Array<ZoneProp>;
1158
1158
  createdAt: Scalars['DateTime']['output'];
1159
1159
  id: Scalars['ID']['output'];
1160
- integration: Scalars['String']['output'];
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
- integration: string;
1219
- component: string;
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
- integration: string;
1240
- component: string;
1240
+ integrationKey: string;
1241
+ componentKey: string;
1241
1242
  props: Array<{
1242
1243
  __typename?: 'CommandProp';
1243
1244
  key: string;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  export { default as Board } from './components/Board/Board';
2
2
  export { default as BoardProvider } from './components/BoardProvider/BoardProvider';
3
3
  export { default as CommandGroup } from './components/CommandGroup/CommandGroup';
4
- export { default as RouteResolver } from './components/RouteResolver/RouteResolver';
5
4
  export { default as Router } from './components/Router/Router';
5
+ export { default as RouteResolver } from './components/RouteResolver/RouteResolver';
6
6
  export { default as Zone } from './components/Zone/Zone';
7
7
  export { default as loadCustomDekPlugin } from './lib/utils/loadCustomPlugin';
8
+ export { default as useUserConfig } from './lib/hooks/useUserConfig';
9
+ export { default as getPluginApi } from './lib/utils/getPluginApi';
10
+ export { default as parsePropsForComponent } from './lib/utils/parsePropsForComponent';
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.integration && zone2.component) {
49815
- const component = api2.integration(zone2.integration).component(zone2.component, {
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.integration && zone.component) {
49847
- label = `${props.id}: ${zone.integration}/${zone.component}`;
49848
- const component = api2.integration(zone.integration).component(zone.component, {
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": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "component" } }, { "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": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "component" } }, { "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" } }] } }] } }] } }] } }] } }] };
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 integration\n component\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 integration\n component\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n }\n }\n": UserDataDocument,
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
- integration
66304
- component
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
- integration
66321
- component
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.30.0",
66864
+ pluginVersion: "0.32.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.30.0"}` }),
67039
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.32.0"}` }),
67040
67040
  /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
67041
67041
  ] });
67042
67042
  };
@@ -103027,7 +103027,7 @@ async function updatePlugins(email, password) {
103027
103027
  {
103028
103028
  key: "base",
103029
103029
  pluginName: "base",
103030
- pluginVersion: "0.30.0",
103030
+ pluginVersion: "0.32.0",
103031
103031
  pluginConfig: []
103032
103032
  }
103033
103033
  ],
@@ -104160,7 +104160,7 @@ const Router = ({ userConfig, transitionDelay: transitionDelay2 }) => {
104160
104160
  if (!data) {
104161
104161
  return null;
104162
104162
  }
104163
- const defaultBoard = data.boards.length > 0 ? data.boards[0].key : "empty";
104163
+ const defaultBoard = data.boards.length > 0 ? data.boards[data.boards.length - 1].key : "empty";
104164
104164
  if (location2 === "/") {
104165
104165
  setLocation(`/${defaultBoard}`);
104166
104166
  } else {
@@ -104215,15 +104215,22 @@ const BoardProvider = ({ email, password, plugin, pluginConfig }) => {
104215
104215
  ] });
104216
104216
  };
104217
104217
  const Container = styled(u0)`
104218
+ display: flex;
104219
+ flex-direction: column;
104220
+ ${({ $align }) => $align === "right" ? `align-items: flex-end;` : ""}
104221
+ `;
104222
+ const Group = styled(u0)`
104218
104223
  display: flex;
104219
104224
  flex-direction: row;
104220
104225
  flex-wrap: wrap;
104226
+ align-content: flex-start;
104227
+ ${({ $align }) => $align === "right" ? `justify-content: flex-end;` : ""}
104221
104228
  `;
104222
104229
  const CommandItem = styled.div`
104223
- margin-left: 10px;
104224
104230
  margin-top: 10px;
104231
+ ${({ $align }) => $align === "right" ? "margin-right: 10px;" : "margin-left: 10px;"}
104225
104232
  `;
104226
- const CommandGroup = ({ groupKey }) => {
104233
+ const CommandGroup = ({ groupKey, title, align = "left" }) => {
104227
104234
  const api2 = getPluginApi();
104228
104235
  const group = api2.commandGroups.find(
104229
104236
  (g) => g.key == groupKey
@@ -104231,13 +104238,27 @@ const CommandGroup = ({ groupKey }) => {
104231
104238
  if (!group) {
104232
104239
  return null;
104233
104240
  }
104234
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { children: group.commands.map((command, idx) => {
104235
- const instance = api2.integration(command.integration).component(
104236
- command.component,
104237
- parsePropsForComponent(api2, command.props)
104238
- );
104239
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CommandItem, { children: instance }, idx);
104240
- }) });
104241
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { $align: align, children: [
104242
+ title && /* @__PURE__ */ jsxRuntimeExports.jsx(
104243
+ h4,
104244
+ {
104245
+ size: "large",
104246
+ weight: "bold",
104247
+ family: "heading",
104248
+ paddingLeft: 14,
104249
+ paddingTop: 10,
104250
+ paddingRight: 10,
104251
+ children: title
104252
+ }
104253
+ ),
104254
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Group, { $align: align, children: group.commands.map((command, idx) => {
104255
+ const instance = api2.integration(command.integrationKey).component(
104256
+ command.componentKey,
104257
+ parsePropsForComponent(api2, command.props)
104258
+ );
104259
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CommandItem, { $align: align, children: instance }, idx);
104260
+ }) })
104261
+ ] });
104241
104262
  };
104242
104263
  const CommandGroup$1 = CommandGroup;
104243
104264
  async function loadCustomPlugin(code) {
@@ -104263,5 +104284,8 @@ export {
104263
104284
  RouteResolver,
104264
104285
  Router,
104265
104286
  Zone,
104266
- loadCustomPlugin as loadCustomDekPlugin
104287
+ getPluginApi,
104288
+ loadCustomPlugin as loadCustomDekPlugin,
104289
+ parsePropsForComponent,
104290
+ useUserConfig
104267
104291
  };
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.integration && zone2.component) {
49832
- const component = api2.integration(zone2.integration).component(zone2.component, {
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.integration && zone.component) {
49864
- label = `${props.id}: ${zone.integration}/${zone.component}`;
49865
- const component = api2.integration(zone.integration).component(zone.component, {
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": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "component" } }, { "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": "integration" } }, { "kind": "Field", "name": { "kind": "Name", "value": "component" } }, { "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" } }] } }] } }] } }] } }] } }] };
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 integration\n component\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 integration\n component\n props {\n key\n value\n }\n containerProps {\n key\n value\n }\n }\n }\n }\n }\n": UserDataDocument,
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
- integration
66321
- component
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
- integration
66338
- component
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.30.0",
66881
+ pluginVersion: "0.32.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.30.0"}` }),
67056
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.32.0"}` }),
67057
67057
  /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
67058
67058
  ] });
67059
67059
  };
@@ -103044,7 +103044,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
103044
103044
  {
103045
103045
  key: "base",
103046
103046
  pluginName: "base",
103047
- pluginVersion: "0.30.0",
103047
+ pluginVersion: "0.32.0",
103048
103048
  pluginConfig: []
103049
103049
  }
103050
103050
  ],
@@ -104177,7 +104177,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
104177
104177
  if (!data) {
104178
104178
  return null;
104179
104179
  }
104180
- const defaultBoard = data.boards.length > 0 ? data.boards[0].key : "empty";
104180
+ const defaultBoard = data.boards.length > 0 ? data.boards[data.boards.length - 1].key : "empty";
104181
104181
  if (location2 === "/") {
104182
104182
  setLocation(`/${defaultBoard}`);
104183
104183
  } else {
@@ -104233,14 +104233,21 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
104233
104233
  };
104234
104234
  const Container = styled(u0)`
104235
104235
  display: flex;
104236
+ flex-direction: column;
104237
+ ${({ $align }) => $align === "right" ? `align-items: flex-end;` : ""}
104238
+ `;
104239
+ const Group = styled(u0)`
104240
+ display: flex;
104236
104241
  flex-direction: row;
104237
104242
  flex-wrap: wrap;
104243
+ align-content: flex-start;
104244
+ ${({ $align }) => $align === "right" ? `justify-content: flex-end;` : ""}
104238
104245
  `;
104239
104246
  const CommandItem = styled.div`
104240
- margin-left: 10px;
104241
104247
  margin-top: 10px;
104248
+ ${({ $align }) => $align === "right" ? "margin-right: 10px;" : "margin-left: 10px;"}
104242
104249
  `;
104243
- const CommandGroup = ({ groupKey }) => {
104250
+ const CommandGroup = ({ groupKey, title, align = "left" }) => {
104244
104251
  const api2 = getPluginApi();
104245
104252
  const group = api2.commandGroups.find(
104246
104253
  (g) => g.key == groupKey
@@ -104248,13 +104255,27 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
104248
104255
  if (!group) {
104249
104256
  return null;
104250
104257
  }
104251
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { children: group.commands.map((command, idx) => {
104252
- const instance = api2.integration(command.integration).component(
104253
- command.component,
104254
- parsePropsForComponent(api2, command.props)
104255
- );
104256
- return /* @__PURE__ */ jsxRuntimeExports.jsx(CommandItem, { children: instance }, idx);
104257
- }) });
104258
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { $align: align, children: [
104259
+ title && /* @__PURE__ */ jsxRuntimeExports.jsx(
104260
+ h4,
104261
+ {
104262
+ size: "large",
104263
+ weight: "bold",
104264
+ family: "heading",
104265
+ paddingLeft: 14,
104266
+ paddingTop: 10,
104267
+ paddingRight: 10,
104268
+ children: title
104269
+ }
104270
+ ),
104271
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Group, { $align: align, children: group.commands.map((command, idx) => {
104272
+ const instance = api2.integration(command.integrationKey).component(
104273
+ command.componentKey,
104274
+ parsePropsForComponent(api2, command.props)
104275
+ );
104276
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(CommandItem, { $align: align, children: instance }, idx);
104277
+ }) })
104278
+ ] });
104258
104279
  };
104259
104280
  const CommandGroup$1 = CommandGroup;
104260
104281
  async function loadCustomPlugin(code) {
@@ -104279,6 +104300,9 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
104279
104300
  exports2.RouteResolver = RouteResolver;
104280
104301
  exports2.Router = Router;
104281
104302
  exports2.Zone = Zone;
104303
+ exports2.getPluginApi = getPluginApi;
104282
104304
  exports2.loadCustomDekPlugin = loadCustomPlugin;
104305
+ exports2.parsePropsForComponent = parsePropsForComponent;
104306
+ exports2.useUserConfig = useUserConfig;
104283
104307
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
104284
104308
  });
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@appkit/dek-lib",
3
3
  "private": false,
4
- "version": "0.30.0",
4
+ "version": "0.32.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
- "codegen": "graphql-codegen",
10
+ "generate": "graphql-codegen",
11
11
  "preview": "vite preview"
12
12
  },
13
13
  "dependencies": {