@appkit/dek-lib 0.25.0 → 0.26.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 +24 -8
- package/dist/index.es.js +163 -143
- package/dist/index.umd.js +163 -143
- package/dist/lib/globals.d.ts +4 -4
- package/dist/lib/state.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -45217,6 +45217,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
45217
45217
|
View: u0,
|
|
45218
45218
|
formatDateTime: Yt2,
|
|
45219
45219
|
formatFromNow: Gt2,
|
|
45220
|
+
getImageAsBase64: uG1,
|
|
45220
45221
|
theme: C1,
|
|
45221
45222
|
useDateTime: qt2,
|
|
45222
45223
|
useInterval: Ut2
|
|
@@ -49815,8 +49816,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
49815
49816
|
if (zones.length > 1) {
|
|
49816
49817
|
const components = [];
|
|
49817
49818
|
zones.forEach((zone2) => {
|
|
49818
|
-
if (zone2.
|
|
49819
|
-
const component = api2.
|
|
49819
|
+
if (zone2.integration && zone2.component) {
|
|
49820
|
+
const component = api2.integration(zone2.integration).component(zone2.component, {
|
|
49820
49821
|
...parsePropsForComponent(api2, zone2.props),
|
|
49821
49822
|
"aria-label": `zone-${props.id}`
|
|
49822
49823
|
});
|
|
@@ -49847,9 +49848,9 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
49847
49848
|
const zone = api2.board.zones.find(
|
|
49848
49849
|
(z) => z.key === props.id
|
|
49849
49850
|
);
|
|
49850
|
-
if (zone && zone.
|
|
49851
|
-
label = `${props.id}: ${zone.
|
|
49852
|
-
const component = api2.
|
|
49851
|
+
if (zone && zone.integration && zone.component) {
|
|
49852
|
+
label = `${props.id}: ${zone.integration}/${zone.component}`;
|
|
49853
|
+
const component = api2.integration(zone.integration).component(zone.component, {
|
|
49853
49854
|
...parsePropsForComponent(api2, zone.props),
|
|
49854
49855
|
"aria-label": `zone-${props.id}`
|
|
49855
49856
|
});
|
|
@@ -50633,10 +50634,10 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
50633
50634
|
}
|
|
50634
50635
|
const registry = new Registry();
|
|
50635
50636
|
const globals = {
|
|
50636
|
-
boards:
|
|
50637
|
-
commandGroups:
|
|
50637
|
+
boards: [],
|
|
50638
|
+
commandGroups: [],
|
|
50638
50639
|
plugins: {},
|
|
50639
|
-
|
|
50640
|
+
integrationInstances: {},
|
|
50640
50641
|
setLocation: () => {
|
|
50641
50642
|
},
|
|
50642
50643
|
registry,
|
|
@@ -66274,11 +66275,11 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66274
66275
|
cache: new InMemoryCache()
|
|
66275
66276
|
});
|
|
66276
66277
|
}
|
|
66277
|
-
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": "zones" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "key" } }, { "kind": "Field", "name": { "kind": "Name", "value": "
|
|
66278
|
+
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" } }] } }] } }] } }] } }] } }] };
|
|
66278
66279
|
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" } }] } }] } }] } }] } }] };
|
|
66279
66280
|
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" } }] } }] } }] } }] };
|
|
66280
66281
|
const documents = {
|
|
66281
|
-
"\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 zones {\n key\n
|
|
66282
|
+
"\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,
|
|
66282
66283
|
"\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,
|
|
66283
66284
|
"\n subscription userChange {\n userChange {\n user {\n id\n }\n }\n }\n": UserChangeDocument
|
|
66284
66285
|
};
|
|
@@ -66298,9 +66299,13 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66298
66299
|
title
|
|
66299
66300
|
key
|
|
66300
66301
|
layout
|
|
66302
|
+
base {
|
|
66303
|
+
integration
|
|
66304
|
+
key
|
|
66305
|
+
}
|
|
66301
66306
|
zones {
|
|
66302
66307
|
key
|
|
66303
|
-
|
|
66308
|
+
integration
|
|
66304
66309
|
component
|
|
66305
66310
|
props {
|
|
66306
66311
|
key
|
|
@@ -66317,12 +66322,16 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66317
66322
|
key
|
|
66318
66323
|
commands {
|
|
66319
66324
|
title
|
|
66320
|
-
|
|
66325
|
+
integration
|
|
66321
66326
|
component
|
|
66322
66327
|
props {
|
|
66323
66328
|
key
|
|
66324
66329
|
value
|
|
66325
66330
|
}
|
|
66331
|
+
containerProps {
|
|
66332
|
+
key
|
|
66333
|
+
value
|
|
66334
|
+
}
|
|
66326
66335
|
}
|
|
66327
66336
|
}
|
|
66328
66337
|
}
|
|
@@ -66363,13 +66372,13 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66363
66372
|
data: null,
|
|
66364
66373
|
loading: false
|
|
66365
66374
|
});
|
|
66366
|
-
let
|
|
66367
|
-
function
|
|
66368
|
-
return
|
|
66375
|
+
let globalIntegrationInstances = {};
|
|
66376
|
+
function getIntegrationInstances() {
|
|
66377
|
+
return globalIntegrationInstances;
|
|
66369
66378
|
}
|
|
66370
|
-
function updateStatePlugins(
|
|
66371
|
-
|
|
66372
|
-
state$1.plugins =
|
|
66379
|
+
function updateStatePlugins(pluginFactories, integrationInstances2) {
|
|
66380
|
+
globalIntegrationInstances = integrationInstances2;
|
|
66381
|
+
state$1.plugins = pluginFactories;
|
|
66373
66382
|
}
|
|
66374
66383
|
function updateStateData(data) {
|
|
66375
66384
|
state$1.data = data;
|
|
@@ -66399,7 +66408,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66399
66408
|
key: "dev",
|
|
66400
66409
|
title: "Test Board",
|
|
66401
66410
|
base: {
|
|
66402
|
-
|
|
66411
|
+
integration: "base",
|
|
66403
66412
|
key: "dev"
|
|
66404
66413
|
},
|
|
66405
66414
|
zones: []
|
|
@@ -66550,8 +66559,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66550
66559
|
messages() {
|
|
66551
66560
|
return this.internal.messages();
|
|
66552
66561
|
}
|
|
66553
|
-
|
|
66554
|
-
return this.internal.
|
|
66562
|
+
integration(key) {
|
|
66563
|
+
return this.internal.integration(key);
|
|
66555
66564
|
}
|
|
66556
66565
|
get registry() {
|
|
66557
66566
|
return this.internal.registry;
|
|
@@ -66583,26 +66592,26 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66583
66592
|
open(boardKey) {
|
|
66584
66593
|
this.internal.open(boardKey);
|
|
66585
66594
|
}
|
|
66586
|
-
get
|
|
66587
|
-
return this.internal.
|
|
66595
|
+
get integrations() {
|
|
66596
|
+
return this.internal.integrations;
|
|
66588
66597
|
}
|
|
66589
66598
|
get api() {
|
|
66590
|
-
return this.
|
|
66599
|
+
return this.integration(this.integrationKey).api;
|
|
66591
66600
|
}
|
|
66592
66601
|
get state() {
|
|
66593
|
-
return this.
|
|
66602
|
+
return this.integration(this.integrationKey).state;
|
|
66594
66603
|
}
|
|
66595
66604
|
get info() {
|
|
66596
|
-
return this.
|
|
66605
|
+
return this.integration(this.integrationKey).info;
|
|
66597
66606
|
}
|
|
66598
66607
|
component(key, props) {
|
|
66599
|
-
return this.
|
|
66608
|
+
return this.integration(this.integrationKey).component(key, props);
|
|
66600
66609
|
}
|
|
66601
66610
|
componentSchema(key) {
|
|
66602
|
-
return this.
|
|
66611
|
+
return this.integration(this.integrationKey).componentSchema(key);
|
|
66603
66612
|
}
|
|
66604
66613
|
screen(path) {
|
|
66605
|
-
return this.
|
|
66614
|
+
return this.integration(this.integrationKey).screen(path);
|
|
66606
66615
|
}
|
|
66607
66616
|
}
|
|
66608
66617
|
class ApiInternal {
|
|
@@ -66636,8 +66645,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66636
66645
|
messages() {
|
|
66637
66646
|
return this.globals.messages;
|
|
66638
66647
|
}
|
|
66639
|
-
|
|
66640
|
-
return this.
|
|
66648
|
+
integration(key) {
|
|
66649
|
+
return this.createIntegrationWrapper(key);
|
|
66641
66650
|
}
|
|
66642
66651
|
get registry() {
|
|
66643
66652
|
return this.globals.registry;
|
|
@@ -66650,6 +66659,8 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66650
66659
|
}
|
|
66651
66660
|
get board() {
|
|
66652
66661
|
return this.boards.find((board) => board.key === this.boardKey) || {
|
|
66662
|
+
title: "Missing board",
|
|
66663
|
+
key: "#error",
|
|
66653
66664
|
zones: []
|
|
66654
66665
|
};
|
|
66655
66666
|
}
|
|
@@ -66671,20 +66682,20 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66671
66682
|
open(boardKey) {
|
|
66672
66683
|
this.globals.setLocation(`/${boardKey}`);
|
|
66673
66684
|
}
|
|
66674
|
-
|
|
66675
|
-
const
|
|
66676
|
-
const available = !!
|
|
66685
|
+
createIntegrationWrapper(integrationKey) {
|
|
66686
|
+
const integration = this.getIntegrationInstance(integrationKey);
|
|
66687
|
+
const available = !!integration;
|
|
66677
66688
|
return {
|
|
66678
66689
|
available,
|
|
66679
66690
|
info: {
|
|
66680
|
-
components: (
|
|
66681
|
-
screens: (
|
|
66691
|
+
components: (integration == null ? void 0 : integration.components) ? integration.components.map((component) => component.key) : [],
|
|
66692
|
+
screens: (integration == null ? void 0 : integration.screens) ? integration.screens.map((screen) => screen.path) : []
|
|
66682
66693
|
},
|
|
66683
66694
|
component: (key, props) => this.getComponent(integrationKey, key, props),
|
|
66684
66695
|
componentSchema: (key) => this.getComponentSchema(integrationKey, key),
|
|
66685
66696
|
screen: (path) => this.getScreen(integrationKey, path),
|
|
66686
66697
|
board: (key) => this.getBoard(integrationKey, key),
|
|
66687
|
-
api: (
|
|
66698
|
+
api: (integration == null ? void 0 : integration.api) || {},
|
|
66688
66699
|
state: {
|
|
66689
66700
|
get: (key, defaultValue) => {
|
|
66690
66701
|
if (!available) {
|
|
@@ -66704,20 +66715,20 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66704
66715
|
get globals() {
|
|
66705
66716
|
return window.__dek_globals;
|
|
66706
66717
|
}
|
|
66707
|
-
get
|
|
66708
|
-
const
|
|
66709
|
-
Object.keys(this.globals.
|
|
66710
|
-
|
|
66718
|
+
get integrations() {
|
|
66719
|
+
const integrations = {};
|
|
66720
|
+
Object.keys(this.globals.integrationInstances).forEach((key) => {
|
|
66721
|
+
integrations[key] = this.createIntegrationWrapper(key);
|
|
66711
66722
|
});
|
|
66712
|
-
return
|
|
66723
|
+
return integrations;
|
|
66713
66724
|
}
|
|
66714
|
-
|
|
66715
|
-
return this.globals.
|
|
66725
|
+
getIntegrationInstance(integrationKey) {
|
|
66726
|
+
return this.globals.integrationInstances[integrationKey];
|
|
66716
66727
|
}
|
|
66717
66728
|
getComponent(integrationKey, componentKey, props) {
|
|
66718
|
-
const
|
|
66719
|
-
if (
|
|
66720
|
-
const component =
|
|
66729
|
+
const integration = this.getIntegrationInstance(integrationKey);
|
|
66730
|
+
if (integration) {
|
|
66731
|
+
const component = integration.components && integration.components.find(
|
|
66721
66732
|
(c2) => c2.key.toLowerCase() === componentKey.toLowerCase()
|
|
66722
66733
|
);
|
|
66723
66734
|
if (!component) {
|
|
@@ -66725,15 +66736,15 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66725
66736
|
}
|
|
66726
66737
|
return component.element({
|
|
66727
66738
|
...props,
|
|
66728
|
-
plugin,
|
|
66739
|
+
plugin: integration,
|
|
66729
66740
|
api: new Api(integrationKey)
|
|
66730
66741
|
});
|
|
66731
66742
|
}
|
|
66732
66743
|
}
|
|
66733
66744
|
getComponentSchema(integrationKey, componentKey) {
|
|
66734
|
-
const
|
|
66735
|
-
if (
|
|
66736
|
-
const component =
|
|
66745
|
+
const integration = this.getIntegrationInstance(integrationKey);
|
|
66746
|
+
if (integration) {
|
|
66747
|
+
const component = integration.components && integration.components.find(
|
|
66737
66748
|
(c2) => c2.key.toLowerCase() === componentKey.toLowerCase()
|
|
66738
66749
|
);
|
|
66739
66750
|
if (component) {
|
|
@@ -66744,29 +66755,35 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66744
66755
|
}
|
|
66745
66756
|
getScreen(integrationKey, screenPath) {
|
|
66746
66757
|
if (integrationKey) {
|
|
66747
|
-
const
|
|
66748
|
-
if (
|
|
66749
|
-
const component =
|
|
66758
|
+
const integration = this.getIntegrationInstance(integrationKey);
|
|
66759
|
+
if (integration) {
|
|
66760
|
+
const component = integration.screens && integration.screens.find(
|
|
66750
66761
|
(s4) => s4.path.toLowerCase() === screenPath.toLowerCase()
|
|
66751
66762
|
);
|
|
66752
66763
|
if (!component) {
|
|
66753
66764
|
return;
|
|
66754
66765
|
}
|
|
66755
|
-
return component.element({
|
|
66766
|
+
return component.element({
|
|
66767
|
+
plugin: integration,
|
|
66768
|
+
api: new Api(integrationKey)
|
|
66769
|
+
});
|
|
66756
66770
|
}
|
|
66757
66771
|
}
|
|
66758
66772
|
}
|
|
66759
66773
|
getBoard(integrationKey, boardKey) {
|
|
66760
66774
|
if (integrationKey) {
|
|
66761
|
-
const
|
|
66762
|
-
if (
|
|
66763
|
-
const component =
|
|
66775
|
+
const integration = this.getIntegrationInstance(integrationKey);
|
|
66776
|
+
if (integration) {
|
|
66777
|
+
const component = integration.boards && integration.boards.find(
|
|
66764
66778
|
(c2) => c2.key.toLowerCase() === boardKey.toLowerCase()
|
|
66765
66779
|
);
|
|
66766
66780
|
if (!component) {
|
|
66767
66781
|
return;
|
|
66768
66782
|
}
|
|
66769
|
-
return component.element({
|
|
66783
|
+
return component.element({
|
|
66784
|
+
plugin: integration,
|
|
66785
|
+
api: new Api(integrationKey)
|
|
66786
|
+
});
|
|
66770
66787
|
}
|
|
66771
66788
|
}
|
|
66772
66789
|
}
|
|
@@ -66849,7 +66866,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
66849
66866
|
result.integrations.push({
|
|
66850
66867
|
key: "base",
|
|
66851
66868
|
pluginName: "base",
|
|
66852
|
-
pluginVersion: "0.
|
|
66869
|
+
pluginVersion: "0.26.0",
|
|
66853
66870
|
pluginConfig: []
|
|
66854
66871
|
});
|
|
66855
66872
|
return result;
|
|
@@ -67024,7 +67041,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67024
67041
|
};
|
|
67025
67042
|
const About = () => {
|
|
67026
67043
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, direction: "vert", children: [
|
|
67027
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.
|
|
67044
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.26.0"}` }),
|
|
67028
67045
|
/* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
|
|
67029
67046
|
] });
|
|
67030
67047
|
};
|
|
@@ -67039,7 +67056,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67039
67056
|
const handleSelection = (key) => {
|
|
67040
67057
|
setSelectedKey(key);
|
|
67041
67058
|
console.log("handleSelection", { key });
|
|
67042
|
-
api2.
|
|
67059
|
+
api2.integration("base").state.set("backgroundKey", key);
|
|
67043
67060
|
};
|
|
67044
67061
|
const menuItems = Object.keys(backgroundItems).map((key) => {
|
|
67045
67062
|
const item = backgroundItems[key];
|
|
@@ -67074,7 +67091,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67074
67091
|
value: backgroundProps[key] || prop.default,
|
|
67075
67092
|
onChange: (value) => {
|
|
67076
67093
|
backgroundProps[key] = value;
|
|
67077
|
-
api2.
|
|
67094
|
+
api2.integration("base").state.set(propsKey, JSON.stringify(backgroundProps));
|
|
67078
67095
|
}
|
|
67079
67096
|
}
|
|
67080
67097
|
) });
|
|
@@ -67091,7 +67108,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67091
67108
|
value: backgroundProps[key],
|
|
67092
67109
|
onChange: (option) => {
|
|
67093
67110
|
backgroundProps[key] = option.value;
|
|
67094
|
-
api2.
|
|
67111
|
+
api2.integration("base").state.set(propsKey, JSON.stringify(backgroundProps));
|
|
67095
67112
|
}
|
|
67096
67113
|
}
|
|
67097
67114
|
) });
|
|
@@ -67106,7 +67123,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67106
67123
|
color: backgroundProps[key] || prop.default,
|
|
67107
67124
|
onChange: (color) => {
|
|
67108
67125
|
backgroundProps[key] = color;
|
|
67109
|
-
api2.
|
|
67126
|
+
api2.integration("base").state.set(propsKey, JSON.stringify(backgroundProps));
|
|
67110
67127
|
}
|
|
67111
67128
|
}
|
|
67112
67129
|
);
|
|
@@ -67160,11 +67177,11 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67160
67177
|
)) });
|
|
67161
67178
|
};
|
|
67162
67179
|
const PluginDev = ({ api: api2 }) => {
|
|
67163
|
-
const
|
|
67180
|
+
const integration = api2.integration("plugin");
|
|
67164
67181
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { children: [
|
|
67165
67182
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(u0, { padding: 20, collapse: true, direction: "vert", children: [
|
|
67166
67183
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, children: "Components" }),
|
|
67167
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children:
|
|
67184
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children: integration && integration.info.components.map((component) => /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { collapse: true, paddingRight: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67168
67185
|
yt2,
|
|
67169
67186
|
{
|
|
67170
67187
|
title: component,
|
|
@@ -67173,7 +67190,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67173
67190
|
}
|
|
67174
67191
|
) }, component)) }),
|
|
67175
67192
|
/* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { paddingBottom: 15, paddingTop: 50, children: "Screens" }),
|
|
67176
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children:
|
|
67193
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(u0, { direction: "horz", collapse: true, children: integration && integration.info.screens.map((screen) => /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { collapse: true, paddingRight: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67177
67194
|
yt2,
|
|
67178
67195
|
{
|
|
67179
67196
|
title: screen,
|
|
@@ -67425,7 +67442,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
67425
67442
|
] });
|
|
67426
67443
|
};
|
|
67427
67444
|
const SettingsScreen = ({ api: api2, isPluginDev }) => {
|
|
67428
|
-
const isPrivatePluginDev = !isPluginDev && api2.
|
|
67445
|
+
const isPrivatePluginDev = !isPluginDev && api2.integration("plugin").available;
|
|
67429
67446
|
const [selectedKey, setSelectedKey] = usePluginState(
|
|
67430
67447
|
api2,
|
|
67431
67448
|
"settings-screen-key",
|
|
@@ -71470,7 +71487,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
71470
71487
|
]
|
|
71471
71488
|
};
|
|
71472
71489
|
const Greeting = ({ api: api2 }) => {
|
|
71473
|
-
const calendarPlugin = api2.
|
|
71490
|
+
const calendarPlugin = api2.integration("calendar");
|
|
71474
71491
|
const events2 = calendarPlugin.api.useEvents();
|
|
71475
71492
|
const getGreeting = () => {
|
|
71476
71493
|
const d = /* @__PURE__ */ new Date();
|
|
@@ -98487,7 +98504,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
98487
98504
|
const [error2, setError] = React$3.useState(void 0);
|
|
98488
98505
|
React$3.useEffect(() => {
|
|
98489
98506
|
if (propsString === "") {
|
|
98490
|
-
const plugin = api2.
|
|
98507
|
+
const plugin = api2.integration("plugin");
|
|
98491
98508
|
setPropsString(
|
|
98492
98509
|
JSON.stringify(
|
|
98493
98510
|
schemaToProps(plugin.componentSchema(params.componentKey)),
|
|
@@ -98529,7 +98546,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
98529
98546
|
}
|
|
98530
98547
|
};
|
|
98531
98548
|
const handleReset = () => {
|
|
98532
|
-
const plugin = api2.
|
|
98549
|
+
const plugin = api2.integration("plugin");
|
|
98533
98550
|
setPropsString(
|
|
98534
98551
|
JSON.stringify(
|
|
98535
98552
|
schemaToProps(plugin.componentSchema(params.componentKey)),
|
|
@@ -98592,7 +98609,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
98592
98609
|
) }),
|
|
98593
98610
|
error2 && /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { color: "red", paddingLeft: 15, paddingTop: 10, children: error2 })
|
|
98594
98611
|
] }) }),
|
|
98595
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { halign: "left", valign: "center", children: propsString && api2.
|
|
98612
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(St2, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(u0, { halign: "left", valign: "center", children: propsString && api2.integration("plugin").component(
|
|
98596
98613
|
params.componentKey,
|
|
98597
98614
|
parsePropsForComponent(api2, propsArray)
|
|
98598
98615
|
) }) })
|
|
@@ -102572,16 +102589,16 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102572
102589
|
];
|
|
102573
102590
|
}
|
|
102574
102591
|
}
|
|
102575
|
-
const
|
|
102592
|
+
const builtinPluginFactories = {
|
|
102576
102593
|
base: Plugin$2,
|
|
102577
102594
|
calendar: Plugin$1,
|
|
102578
102595
|
"home-assistant": Plugin
|
|
102579
102596
|
};
|
|
102580
102597
|
const pluginVersions = {};
|
|
102581
|
-
const
|
|
102582
|
-
const
|
|
102583
|
-
let
|
|
102584
|
-
let
|
|
102598
|
+
const userPluginFactories = {};
|
|
102599
|
+
const integrationInstances = {};
|
|
102600
|
+
let localPluginFactory;
|
|
102601
|
+
let localIntegrationInstance;
|
|
102585
102602
|
async function loadUserPlugin(name, version2, code) {
|
|
102586
102603
|
try {
|
|
102587
102604
|
const module2 = {};
|
|
@@ -102612,7 +102629,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102612
102629
|
return null;
|
|
102613
102630
|
}
|
|
102614
102631
|
}
|
|
102615
|
-
function
|
|
102632
|
+
function constructIntegrationInstance(integration, plugin, pluginConfig = {}) {
|
|
102616
102633
|
const pluginConfigMerged = {
|
|
102617
102634
|
plugin: integration.pluginName,
|
|
102618
102635
|
version: integration.pluginVersion || pluginVersions[integration.pluginName] || "latest",
|
|
@@ -102624,14 +102641,14 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102624
102641
|
}
|
|
102625
102642
|
return new plugin(pluginConfigMerged, registry);
|
|
102626
102643
|
}
|
|
102627
|
-
async function
|
|
102628
|
-
if (
|
|
102629
|
-
await
|
|
102644
|
+
async function initializeIntegrationInstance(integrationInstance, integrationKey) {
|
|
102645
|
+
if (integrationInstance && integrationInstance.load) {
|
|
102646
|
+
await integrationInstance.load(getPluginApi(integrationKey));
|
|
102630
102647
|
}
|
|
102631
102648
|
}
|
|
102632
|
-
async function
|
|
102633
|
-
for (const key of Object.keys(
|
|
102634
|
-
await
|
|
102649
|
+
async function initializeIntegrationInstances() {
|
|
102650
|
+
for (const key of Object.keys(integrationInstances)) {
|
|
102651
|
+
await initializeIntegrationInstance(integrationInstances[key], key);
|
|
102635
102652
|
}
|
|
102636
102653
|
}
|
|
102637
102654
|
async function loadPlugins({
|
|
@@ -102640,59 +102657,62 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102640
102657
|
}) {
|
|
102641
102658
|
if (plugins) {
|
|
102642
102659
|
for (const plugin of plugins) {
|
|
102643
|
-
const
|
|
102660
|
+
const userPluginFactory = await loadUserPlugin(
|
|
102644
102661
|
plugin.name,
|
|
102645
102662
|
plugin.version,
|
|
102646
102663
|
plugin.code
|
|
102647
102664
|
);
|
|
102648
|
-
if (
|
|
102649
|
-
|
|
102665
|
+
if (userPluginFactory) {
|
|
102666
|
+
userPluginFactories[plugin.name] = userPluginFactory;
|
|
102650
102667
|
}
|
|
102651
102668
|
}
|
|
102652
102669
|
}
|
|
102653
102670
|
if (integrations) {
|
|
102654
102671
|
for (const integration of integrations) {
|
|
102655
|
-
const
|
|
102656
|
-
if (
|
|
102657
|
-
const
|
|
102658
|
-
|
|
102672
|
+
const plugin = builtinPluginFactories[integration.pluginName] || userPluginFactories[integration.pluginName];
|
|
102673
|
+
if (plugin) {
|
|
102674
|
+
const integrationInstance = constructIntegrationInstance(
|
|
102675
|
+
integration,
|
|
102676
|
+
plugin
|
|
102677
|
+
);
|
|
102678
|
+
integrationInstances[integration.key] = integrationInstance;
|
|
102659
102679
|
}
|
|
102660
102680
|
}
|
|
102661
|
-
await
|
|
102681
|
+
await initializeIntegrationInstances();
|
|
102662
102682
|
}
|
|
102663
102683
|
}
|
|
102664
102684
|
async function unloadAllPlugins() {
|
|
102665
|
-
while (Object.keys(
|
|
102666
|
-
const key = Object.keys(
|
|
102667
|
-
const plugin =
|
|
102685
|
+
while (Object.keys(integrationInstances).length > 0) {
|
|
102686
|
+
const key = Object.keys(integrationInstances)[0];
|
|
102687
|
+
const plugin = integrationInstances[key];
|
|
102668
102688
|
if (plugin && plugin.unload) {
|
|
102669
102689
|
await plugin.unload();
|
|
102670
102690
|
}
|
|
102671
|
-
delete
|
|
102691
|
+
delete integrationInstances[key];
|
|
102672
102692
|
}
|
|
102673
|
-
while (Object.keys(
|
|
102674
|
-
const key = Object.keys(
|
|
102675
|
-
delete
|
|
102693
|
+
while (Object.keys(userPluginFactories).length > 0) {
|
|
102694
|
+
const key = Object.keys(userPluginFactories)[0];
|
|
102695
|
+
delete userPluginFactories[key];
|
|
102676
102696
|
}
|
|
102677
102697
|
}
|
|
102678
|
-
function
|
|
102679
|
-
const
|
|
102680
|
-
...
|
|
102681
|
-
...
|
|
102698
|
+
function getAllPluginFactories() {
|
|
102699
|
+
const results = {
|
|
102700
|
+
...builtinPluginFactories,
|
|
102701
|
+
...userPluginFactories
|
|
102682
102702
|
};
|
|
102683
|
-
if (
|
|
102684
|
-
|
|
102703
|
+
if (localPluginFactory) {
|
|
102704
|
+
results.plugin = localPluginFactory;
|
|
102685
102705
|
}
|
|
102686
|
-
return
|
|
102706
|
+
return results;
|
|
102687
102707
|
}
|
|
102688
|
-
function
|
|
102689
|
-
const
|
|
102690
|
-
...
|
|
102708
|
+
function getAllIntegrationInstances() {
|
|
102709
|
+
const results = {
|
|
102710
|
+
...integrationInstances
|
|
102691
102711
|
};
|
|
102692
|
-
if (
|
|
102693
|
-
|
|
102712
|
+
if (localIntegrationInstance) {
|
|
102713
|
+
results.plugin = localIntegrationInstance;
|
|
102694
102714
|
}
|
|
102695
|
-
return
|
|
102715
|
+
return results;
|
|
102696
102716
|
}
|
|
102697
102717
|
async function updatePlugins(email, password) {
|
|
102698
102718
|
updateStateLoading(true);
|
|
@@ -102706,7 +102726,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102706
102726
|
{
|
|
102707
102727
|
key: "base",
|
|
102708
102728
|
pluginName: "base",
|
|
102709
|
-
pluginVersion: "0.
|
|
102729
|
+
pluginVersion: "0.26.0",
|
|
102710
102730
|
pluginConfig: []
|
|
102711
102731
|
}
|
|
102712
102732
|
],
|
|
@@ -102717,12 +102737,12 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102717
102737
|
pluginVersions[plugin.name] = plugin.version;
|
|
102718
102738
|
});
|
|
102719
102739
|
await loadPlugins(integrationsAndPlugins);
|
|
102720
|
-
updateStatePlugins(
|
|
102740
|
+
updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
|
|
102721
102741
|
updateStateLoading(false);
|
|
102722
102742
|
}
|
|
102723
102743
|
async function unloadPlugins() {
|
|
102724
102744
|
await unloadAllPlugins();
|
|
102725
|
-
updateStatePlugins(
|
|
102745
|
+
updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
|
|
102726
102746
|
}
|
|
102727
102747
|
async function updateLocalPlugin(plugin, pluginConfig) {
|
|
102728
102748
|
updateStateLoading(true);
|
|
@@ -102732,25 +102752,25 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102732
102752
|
key: "plugin",
|
|
102733
102753
|
pluginConfig: []
|
|
102734
102754
|
};
|
|
102735
|
-
|
|
102736
|
-
|
|
102755
|
+
localPluginFactory = plugin;
|
|
102756
|
+
localIntegrationInstance = constructIntegrationInstance(
|
|
102737
102757
|
integration,
|
|
102738
102758
|
plugin,
|
|
102739
102759
|
pluginConfig
|
|
102740
102760
|
);
|
|
102741
|
-
if (
|
|
102742
|
-
await
|
|
102761
|
+
if (localIntegrationInstance && localIntegrationInstance.load) {
|
|
102762
|
+
await localIntegrationInstance.load(getPluginApi("plugin"));
|
|
102743
102763
|
}
|
|
102744
|
-
updateStatePlugins(
|
|
102764
|
+
updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
|
|
102745
102765
|
updateStateLoading(false);
|
|
102746
102766
|
}
|
|
102747
102767
|
async function unloadLocalPlugin() {
|
|
102748
|
-
if (
|
|
102749
|
-
await
|
|
102768
|
+
if (localIntegrationInstance && localIntegrationInstance.unload) {
|
|
102769
|
+
await localIntegrationInstance.unload();
|
|
102750
102770
|
}
|
|
102751
|
-
|
|
102752
|
-
|
|
102753
|
-
updateStatePlugins(
|
|
102771
|
+
localIntegrationInstance = void 0;
|
|
102772
|
+
localPluginFactory = void 0;
|
|
102773
|
+
updateStatePlugins(getAllPluginFactories(), getAllIntegrationInstances());
|
|
102754
102774
|
}
|
|
102755
102775
|
function useUserConfig(email, password, plugin, pluginConfig) {
|
|
102756
102776
|
const userConfig = useSnapshot(state$1);
|
|
@@ -102779,7 +102799,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
102779
102799
|
globals.commandGroups = userConfig.data.commandGroups;
|
|
102780
102800
|
}
|
|
102781
102801
|
globals.plugins = userConfig.plugins;
|
|
102782
|
-
globals.
|
|
102802
|
+
globals.integrationInstances = getIntegrationInstances();
|
|
102783
102803
|
return userConfig;
|
|
102784
102804
|
}
|
|
102785
102805
|
const Background = () => {
|
|
@@ -103732,10 +103752,10 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
103732
103752
|
const api2 = getPluginApi();
|
|
103733
103753
|
const resolveRouteElement = (route2) => {
|
|
103734
103754
|
if (route2.type === "screen") {
|
|
103735
|
-
return api2.
|
|
103755
|
+
return api2.integration(route2.plugin).screen(route2.path);
|
|
103736
103756
|
} else {
|
|
103737
103757
|
const defaultBase = {
|
|
103738
|
-
|
|
103758
|
+
integration: "base",
|
|
103739
103759
|
key: "main"
|
|
103740
103760
|
};
|
|
103741
103761
|
const board = api2.boards.find(
|
|
@@ -103743,19 +103763,19 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
103743
103763
|
);
|
|
103744
103764
|
if (board) {
|
|
103745
103765
|
if (board.base) {
|
|
103746
|
-
const boardElement = api2.
|
|
103766
|
+
const boardElement = api2.integration(board.base.integration).board(board.base.key);
|
|
103747
103767
|
if (boardElement) {
|
|
103748
103768
|
return boardElement;
|
|
103749
103769
|
}
|
|
103750
103770
|
} else {
|
|
103751
|
-
return api2.
|
|
103771
|
+
return api2.integration(defaultBase.integration).board(defaultBase.key);
|
|
103752
103772
|
}
|
|
103753
103773
|
}
|
|
103754
|
-
const devBoard = api2.
|
|
103774
|
+
const devBoard = api2.integration("plugin").board(api2.boardKey);
|
|
103755
103775
|
if (devBoard) {
|
|
103756
103776
|
return devBoard;
|
|
103757
103777
|
}
|
|
103758
|
-
return api2.
|
|
103778
|
+
return api2.integration(defaultBase.integration).board(api2.boardKey);
|
|
103759
103779
|
}
|
|
103760
103780
|
};
|
|
103761
103781
|
console.log("### ROUTE", route);
|
|
@@ -103779,15 +103799,15 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
103779
103799
|
const [container, setContainer] = React$3.useState(null);
|
|
103780
103800
|
const [containerNodeRef, setContainerNodeRef] = React$3.useState(null);
|
|
103781
103801
|
const { data } = userConfig;
|
|
103782
|
-
const
|
|
103802
|
+
const pluginInstances = getIntegrationInstances();
|
|
103783
103803
|
React$3.useEffect(() => {
|
|
103784
103804
|
const loadRoutes = async () => {
|
|
103785
103805
|
var _a2, _b2;
|
|
103786
103806
|
const newRoutes = [];
|
|
103787
103807
|
const newBoardKeys = [];
|
|
103788
|
-
if (
|
|
103789
|
-
for (const key in
|
|
103790
|
-
(_a2 =
|
|
103808
|
+
if (pluginInstances) {
|
|
103809
|
+
for (const key in pluginInstances) {
|
|
103810
|
+
(_a2 = pluginInstances[key].screens) == null ? void 0 : _a2.forEach((screen) => {
|
|
103791
103811
|
newRoutes.push({
|
|
103792
103812
|
type: "screen",
|
|
103793
103813
|
plugin: key,
|
|
@@ -103796,7 +103816,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
103796
103816
|
nodeRef: React$3.createRef()
|
|
103797
103817
|
});
|
|
103798
103818
|
});
|
|
103799
|
-
(_b2 =
|
|
103819
|
+
(_b2 = pluginInstances[key].boards) == null ? void 0 : _b2.forEach((board) => {
|
|
103800
103820
|
newBoardKeys.push("/" + board.key);
|
|
103801
103821
|
});
|
|
103802
103822
|
}
|
|
@@ -103814,7 +103834,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
103814
103834
|
setBoardKeys(newBoardKeys);
|
|
103815
103835
|
};
|
|
103816
103836
|
loadRoutes();
|
|
103817
|
-
}, [
|
|
103837
|
+
}, [pluginInstances, data == null ? void 0 : data.boards]);
|
|
103818
103838
|
React$3.useEffect(() => {
|
|
103819
103839
|
const { nodeRef } = routes.find((route) => {
|
|
103820
103840
|
let path = "/:boardKey";
|
|
@@ -103910,10 +103930,10 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
|
|
|
103910
103930
|
if (!group) {
|
|
103911
103931
|
return null;
|
|
103912
103932
|
}
|
|
103913
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { children: group.commands.map((
|
|
103914
|
-
const instance = api2.
|
|
103915
|
-
|
|
103916
|
-
parsePropsForComponent(api2,
|
|
103933
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { children: group.commands.map((command, idx) => {
|
|
103934
|
+
const instance = api2.integration(command.integration).component(
|
|
103935
|
+
command.component,
|
|
103936
|
+
parsePropsForComponent(api2, command.props)
|
|
103917
103937
|
);
|
|
103918
103938
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(CommandItem, { children: instance }, idx);
|
|
103919
103939
|
}) });
|