@servicetitan/toolbelt-shared-registry 1.6.0 → 1.7.1
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/comm-hub-left-panel-registry.js.map +1 -1
- package/dist/comm-hub-notifications-registry.js.map +1 -1
- package/dist/comm-hub-registry.d.ts +1 -0
- package/dist/comm-hub-registry.d.ts.map +1 -1
- package/dist/comm-hub-registry.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/comm-hub-registry.ts +1 -0
- package/src/index.ts +0 -1
- package/dist/comm-hub-task-hub-registry.d.ts +0 -24
- package/dist/comm-hub-task-hub-registry.d.ts.map +0 -1
- package/dist/comm-hub-task-hub-registry.js +0 -66
- package/dist/comm-hub-task-hub-registry.js.map +0 -1
- package/src/comm-hub-task-hub-registry.ts +0 -57
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/comm-hub-left-panel-registry.ts"],"sourcesContent":["import { injectable, provide, useDependencies } from '@servicetitan/react-ioc';\nimport {\n RegistryReader,\n RegistryService,\n RegistryWriter,\n} from '@servicetitan/shared-data-registry';\nimport { RegistryStore } from '@servicetitan/shared-data-registry/mobx';\n\nexport const commHubLeftPanelRegistryId = 'toolbelt:comm-hub-left-panel-registry-id';\nexport const CommHubLeftPanelStateItemId = 'left-panel-state';\n\nexport interface CommHubLeftPanelState {\n isOpen: boolean;\n}\n\n@injectable()\nexport class CommHubLeftPanelRegistry extends RegistryService<CommHubLeftPanelState> {\n constructor() {\n super(commHubLeftPanelRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubLeftPanelRegistryReader extends RegistryReader<CommHubLeftPanelState> {\n constructor() {\n super(commHubLeftPanelRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubLeftPanelRegistryWriter extends RegistryWriter<CommHubLeftPanelState> {\n constructor() {\n super(commHubLeftPanelRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubLeftPanelRegistryStore extends RegistryStore<CommHubLeftPanelState> {\n constructor() {\n super(commHubLeftPanelRegistryId);\n }\n}\n\nexport const CommHubLeftPanelRegistryProvider = provide({\n singletons: [\n CommHubLeftPanelRegistry,\n CommHubLeftPanelRegistryWriter,\n CommHubLeftPanelRegistryReader,\n ],\n})(({ children }) => {\n useDependencies(CommHubLeftPanelRegistry);\n\n return children;\n});\n"],"names":["injectable","provide","useDependencies","RegistryReader","RegistryService","RegistryWriter","RegistryStore","commHubLeftPanelRegistryId","CommHubLeftPanelStateItemId","CommHubLeftPanelRegistry","
|
|
1
|
+
{"version":3,"sources":["../src/comm-hub-left-panel-registry.ts"],"sourcesContent":["import { injectable, provide, useDependencies } from '@servicetitan/react-ioc';\nimport {\n RegistryReader,\n RegistryService,\n RegistryWriter,\n} from '@servicetitan/shared-data-registry';\nimport { RegistryStore } from '@servicetitan/shared-data-registry/mobx';\n\nexport const commHubLeftPanelRegistryId = 'toolbelt:comm-hub-left-panel-registry-id';\nexport const CommHubLeftPanelStateItemId = 'left-panel-state';\n\nexport interface CommHubLeftPanelState {\n isOpen: boolean;\n}\n\n@injectable()\nexport class CommHubLeftPanelRegistry extends RegistryService<CommHubLeftPanelState> {\n constructor() {\n super(commHubLeftPanelRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubLeftPanelRegistryReader extends RegistryReader<CommHubLeftPanelState> {\n constructor() {\n super(commHubLeftPanelRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubLeftPanelRegistryWriter extends RegistryWriter<CommHubLeftPanelState> {\n constructor() {\n super(commHubLeftPanelRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubLeftPanelRegistryStore extends RegistryStore<CommHubLeftPanelState> {\n constructor() {\n super(commHubLeftPanelRegistryId);\n }\n}\n\nexport const CommHubLeftPanelRegistryProvider = provide({\n singletons: [\n CommHubLeftPanelRegistry,\n CommHubLeftPanelRegistryWriter,\n CommHubLeftPanelRegistryReader,\n ],\n})(({ children }) => {\n useDependencies(CommHubLeftPanelRegistry);\n\n return children;\n});\n"],"names":["injectable","provide","useDependencies","RegistryReader","RegistryService","RegistryWriter","RegistryStore","commHubLeftPanelRegistryId","CommHubLeftPanelStateItemId","CommHubLeftPanelRegistry","CommHubLeftPanelRegistryReader","CommHubLeftPanelRegistryWriter","CommHubLeftPanelRegistryStore","CommHubLeftPanelRegistryProvider","singletons","children"],"mappings":";;;;;;;;;AAAA,SAASA,UAAU,EAAEC,OAAO,EAAEC,eAAe,QAAQ,0BAA0B;AAC/E,SACIC,cAAc,EACdC,eAAe,EACfC,cAAc,QACX,qCAAqC;AAC5C,SAASC,aAAa,QAAQ,0CAA0C;AAExE,OAAO,MAAMC,6BAA6B,2CAA2C;AACrF,OAAO,MAAMC,8BAA8B,mBAAmB;AAO9D,OAAO,MAAMC,iCAAiCL;IAC1C,aAAc;QACV,KAAK,CAACG;IACV;AACJ;;;;;;AAGA,OAAO,MAAMG,uCAAuCP;IAChD,aAAc;QACV,KAAK,CAACI;IACV;AACJ;;;;;;AAGA,OAAO,MAAMI,uCAAuCN;IAChD,aAAc;QACV,KAAK,CAACE;IACV;AACJ;;;;;;AAGA,OAAO,MAAMK,sCAAsCN;IAC/C,aAAc;QACV,KAAK,CAACC;IACV;AACJ;;;;;;AAEA,OAAO,MAAMM,mCAAmCZ,QAAQ;IACpDa,YAAY;QACRL;QACAE;QACAD;KACH;AACL,GAAG,CAAC,EAAEK,QAAQ,EAAE;IACZb,gBAAgBO;IAEhB,OAAOM;AACX,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/comm-hub-notifications-registry.ts"],"sourcesContent":["import { injectable, provide, useDependencies } from '@servicetitan/react-ioc';\nimport {\n RegistryReader,\n RegistryService,\n RegistryWriter,\n} from '@servicetitan/shared-data-registry';\nimport { RegistryStore } from '@servicetitan/shared-data-registry/mobx';\n\nexport const commHubNotificationsRegistryId = 'toolbelt:comm-hub-notif-registry-id';\nexport const CommHubNotificationsItemId = 'notifications-count';\n\nexport interface CommHubNotificationsRegistryItem {\n count: number;\n}\n\n@injectable()\nexport class CommHubNotificationsRegistry extends RegistryService<CommHubNotificationsRegistryItem> {\n constructor() {\n super(commHubNotificationsRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubNotificationsRegistryReader extends RegistryReader<CommHubNotificationsRegistryItem> {\n constructor() {\n super(commHubNotificationsRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubNotificationsRegistryWriter extends RegistryWriter<CommHubNotificationsRegistryItem> {\n constructor() {\n super(commHubNotificationsRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubNotificationsRegistryStore extends RegistryStore<CommHubNotificationsRegistryItem> {\n constructor() {\n super(commHubNotificationsRegistryId);\n }\n}\n\nexport const CommHubNotificationsRegistryProvider = provide({\n singletons: [\n CommHubNotificationsRegistry,\n CommHubNotificationsRegistryWriter,\n CommHubNotificationsRegistryReader,\n ],\n})(({ children }) => {\n useDependencies(CommHubNotificationsRegistry);\n\n return children;\n});\n"],"names":["injectable","provide","useDependencies","RegistryReader","RegistryService","RegistryWriter","RegistryStore","commHubNotificationsRegistryId","CommHubNotificationsItemId","CommHubNotificationsRegistry","
|
|
1
|
+
{"version":3,"sources":["../src/comm-hub-notifications-registry.ts"],"sourcesContent":["import { injectable, provide, useDependencies } from '@servicetitan/react-ioc';\nimport {\n RegistryReader,\n RegistryService,\n RegistryWriter,\n} from '@servicetitan/shared-data-registry';\nimport { RegistryStore } from '@servicetitan/shared-data-registry/mobx';\n\nexport const commHubNotificationsRegistryId = 'toolbelt:comm-hub-notif-registry-id';\nexport const CommHubNotificationsItemId = 'notifications-count';\n\nexport interface CommHubNotificationsRegistryItem {\n count: number;\n}\n\n@injectable()\nexport class CommHubNotificationsRegistry extends RegistryService<CommHubNotificationsRegistryItem> {\n constructor() {\n super(commHubNotificationsRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubNotificationsRegistryReader extends RegistryReader<CommHubNotificationsRegistryItem> {\n constructor() {\n super(commHubNotificationsRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubNotificationsRegistryWriter extends RegistryWriter<CommHubNotificationsRegistryItem> {\n constructor() {\n super(commHubNotificationsRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubNotificationsRegistryStore extends RegistryStore<CommHubNotificationsRegistryItem> {\n constructor() {\n super(commHubNotificationsRegistryId);\n }\n}\n\nexport const CommHubNotificationsRegistryProvider = provide({\n singletons: [\n CommHubNotificationsRegistry,\n CommHubNotificationsRegistryWriter,\n CommHubNotificationsRegistryReader,\n ],\n})(({ children }) => {\n useDependencies(CommHubNotificationsRegistry);\n\n return children;\n});\n"],"names":["injectable","provide","useDependencies","RegistryReader","RegistryService","RegistryWriter","RegistryStore","commHubNotificationsRegistryId","CommHubNotificationsItemId","CommHubNotificationsRegistry","CommHubNotificationsRegistryReader","CommHubNotificationsRegistryWriter","CommHubNotificationsRegistryStore","CommHubNotificationsRegistryProvider","singletons","children"],"mappings":";;;;;;;;;AAAA,SAASA,UAAU,EAAEC,OAAO,EAAEC,eAAe,QAAQ,0BAA0B;AAC/E,SACIC,cAAc,EACdC,eAAe,EACfC,cAAc,QACX,qCAAqC;AAC5C,SAASC,aAAa,QAAQ,0CAA0C;AAExE,OAAO,MAAMC,iCAAiC,sCAAsC;AACpF,OAAO,MAAMC,6BAA6B,sBAAsB;AAOhE,OAAO,MAAMC,qCAAqCL;IAC9C,aAAc;QACV,KAAK,CAACG;IACV;AACJ;;;;;;AAGA,OAAO,MAAMG,2CAA2CP;IACpD,aAAc;QACV,KAAK,CAACI;IACV;AACJ;;;;;;AAGA,OAAO,MAAMI,2CAA2CN;IACpD,aAAc;QACV,KAAK,CAACE;IACV;AACJ;;;;;;AAGA,OAAO,MAAMK,0CAA0CN;IACnD,aAAc;QACV,KAAK,CAACC;IACV;AACJ;;;;;;AAEA,OAAO,MAAMM,uCAAuCZ,QAAQ;IACxDa,YAAY;QACRL;Q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,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,UAAU,cAAc;IACpB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,sBAAsB;IACjE,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,EAAE,CAAC,SAAS,cAAc,GACxB,oBAAoB,GACpB,CAAC,SAAS,aAAa,GACrB,mBAAmB,GACnB,CAAC,SAAS,cAAc,GACtB,oBAAoB,GACpB,CAAC,SAAS,aAAa,GACrB,eAAe,GACf,CAAC,SAAS,cAAc,GACtB,eAAe,GACf,cAAc,CAAC;CAChC;AAED,qBACa,eAAe,CAAC,CAAC,SAAS,sBAAsB,CAAE,SAAQ,eAAe,CAClF,mBAAmB,CAAC,CAAC,CAAC,CACzB;;CAIA;AAED,qBACa,qBAAqB,CAAC,CAAC,SAAS,sBAAsB,CAAE,SAAQ,cAAc,CACvF,mBAAmB,CAAC,CAAC,CAAC,CACzB;;CAIA;AAED,qBACa,qBAAqB,CAAC,CAAC,SAAS,sBAAsB,CAAE,SAAQ,cAAc,CACvF,mBAAmB,CAAC,CAAC,CAAC,CACzB;;CAIA;AAED,qBACa,oBAAoB,CAAC,CAAC,SAAS,sBAAsB,CAAE,SAAQ,aAAa,CACrF,mBAAmB,CAAC,CAAC,CAAC,CACzB;;CAIA;AAED,eAAO,MAAM,uBAAuB,4HAMlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/comm-hub-registry.ts"],"sourcesContent":["import { injectable, provide, useDependencies } from '@servicetitan/react-ioc';\nimport {\n RegistryReader,\n RegistryService,\n RegistryWriter,\n} from '@servicetitan/shared-data-registry';\nimport { RegistryStore } from '@servicetitan/shared-data-registry/mobx';\n\nexport const commHubRegistryId = 'toolbelt:comm-hub-registry-id';\n\nexport const CommHubActivePanelItemId = 'active-panel';\n\nexport type CommHubActivePanelType =\n | 'chat:channel'\n | 'chat:thread'\n | 'chat:mention'\n | 'chat:entity'\n | 'email:entity'\n | 'email';\n\ninterface ChatPanelChannelData {\n conversationId: string;\n}\n\ninterface ChatPanelThreadData {\n conversationId: string;\n parentConversation: {\n conversationId: string;\n conversationThreadId: string;\n };\n chatMessageId: string;\n}\n\ninterface ChatPanelMentionData {\n conversationId: string;\n mentionMessageChatId: string;\n parentConversation?: {\n conversationId: string;\n conversationThreadId: string;\n };\n parentMessageChatId?: string;\n}\n\n/**\n * Data structure for entity panel information in the communication hub.\n * Used for both chat and email entity panels.\n */\ninterface PanelEntityData {\n /** Unique identifier for the entity */\n id: string;\n /** Display name of the entity */\n name: string;\n /** Entity type identifier */\n type: string;\n /** Human-readable type name */\n typeName: string;\n /** Panel title text (including id, type name and name) */\n title: string;\n /** Optional URL link to the entity */\n link?: string;\n}\n\ninterface EmailPanelData {\n conversationId: string;\n}\n\nexport interface CommHubRegistryItem<T extends CommHubActivePanelType> {\n type: T;\n data: T extends 'chat:channel'\n ? ChatPanelChannelData\n : T extends 'chat:thread'\n ? ChatPanelThreadData\n : T extends 'chat:mention'\n ? ChatPanelMentionData\n : T extends 'chat:entity'\n ? PanelEntityData\n : T extends 'email:entity'\n ? PanelEntityData\n : EmailPanelData;\n}\n\n@injectable()\nexport class CommHubRegistry<T extends CommHubActivePanelType> extends RegistryService<\n CommHubRegistryItem<T>\n> {\n constructor() {\n super(commHubRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubRegistryReader<T extends CommHubActivePanelType> extends RegistryReader<\n CommHubRegistryItem<T>\n> {\n constructor() {\n super(commHubRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubRegistryWriter<T extends CommHubActivePanelType> extends RegistryWriter<\n CommHubRegistryItem<T>\n> {\n constructor() {\n super(commHubRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubRegistryStore<T extends CommHubActivePanelType> extends RegistryStore<\n CommHubRegistryItem<T>\n> {\n constructor() {\n super(commHubRegistryId);\n }\n}\n\nexport const CommHubRegistryProvider = provide({\n singletons: [CommHubRegistry, CommHubRegistryWriter, CommHubRegistryReader],\n})(({ children }) => {\n useDependencies(CommHubRegistry);\n\n return children;\n});\n"],"names":["injectable","provide","useDependencies","RegistryReader","RegistryService","RegistryWriter","RegistryStore","commHubRegistryId","CommHubActivePanelItemId","CommHubRegistry","
|
|
1
|
+
{"version":3,"sources":["../src/comm-hub-registry.ts"],"sourcesContent":["import { injectable, provide, useDependencies } from '@servicetitan/react-ioc';\nimport {\n RegistryReader,\n RegistryService,\n RegistryWriter,\n} from '@servicetitan/shared-data-registry';\nimport { RegistryStore } from '@servicetitan/shared-data-registry/mobx';\n\nexport const commHubRegistryId = 'toolbelt:comm-hub-registry-id';\n\nexport const CommHubActivePanelItemId = 'active-panel';\n\nexport type CommHubActivePanelType =\n | 'chat:channel'\n | 'chat:thread'\n | 'chat:mention'\n | 'chat:entity'\n | 'email:entity'\n | 'email';\n\ninterface ChatPanelChannelData {\n conversationId: string;\n}\n\ninterface ChatPanelThreadData {\n conversationId: string;\n parentConversation: {\n conversationId: string;\n conversationThreadId: string;\n };\n chatMessageId: string;\n}\n\ninterface ChatPanelMentionData {\n conversationId: string;\n mentionMessageChatId: string;\n parentConversation?: {\n conversationId: string;\n conversationThreadId: string;\n };\n parentMessageChatId?: string;\n}\n\n/**\n * Data structure for entity panel information in the communication hub.\n * Used for both chat and email entity panels.\n */\ninterface PanelEntityData {\n /** Unique identifier for the entity */\n id: string;\n /** Display name of the entity */\n name: string;\n /** Entity type identifier */\n type: string;\n /** Human-readable type name */\n typeName: string;\n /** Panel title text (including id, type name and name) */\n title: string;\n /** Optional URL link to the entity */\n link?: string;\n data?: Record<string, any>;\n}\n\ninterface EmailPanelData {\n conversationId: string;\n}\n\nexport interface CommHubRegistryItem<T extends CommHubActivePanelType> {\n type: T;\n data: T extends 'chat:channel'\n ? ChatPanelChannelData\n : T extends 'chat:thread'\n ? ChatPanelThreadData\n : T extends 'chat:mention'\n ? ChatPanelMentionData\n : T extends 'chat:entity'\n ? PanelEntityData\n : T extends 'email:entity'\n ? PanelEntityData\n : EmailPanelData;\n}\n\n@injectable()\nexport class CommHubRegistry<T extends CommHubActivePanelType> extends RegistryService<\n CommHubRegistryItem<T>\n> {\n constructor() {\n super(commHubRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubRegistryReader<T extends CommHubActivePanelType> extends RegistryReader<\n CommHubRegistryItem<T>\n> {\n constructor() {\n super(commHubRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubRegistryWriter<T extends CommHubActivePanelType> extends RegistryWriter<\n CommHubRegistryItem<T>\n> {\n constructor() {\n super(commHubRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubRegistryStore<T extends CommHubActivePanelType> extends RegistryStore<\n CommHubRegistryItem<T>\n> {\n constructor() {\n super(commHubRegistryId);\n }\n}\n\nexport const CommHubRegistryProvider = provide({\n singletons: [CommHubRegistry, CommHubRegistryWriter, CommHubRegistryReader],\n})(({ children }) => {\n useDependencies(CommHubRegistry);\n\n return children;\n});\n"],"names":["injectable","provide","useDependencies","RegistryReader","RegistryService","RegistryWriter","RegistryStore","commHubRegistryId","CommHubActivePanelItemId","CommHubRegistry","CommHubRegistryReader","CommHubRegistryWriter","CommHubRegistryStore","CommHubRegistryProvider","singletons","children"],"mappings":";;;;;;;;;AAAA,SAASA,UAAU,EAAEC,OAAO,EAAEC,eAAe,QAAQ,0BAA0B;AAC/E,SACIC,cAAc,EACdC,eAAe,EACfC,cAAc,QACX,qCAAqC;AAC5C,SAASC,aAAa,QAAQ,0CAA0C;AAExE,OAAO,MAAMC,oBAAoB,gCAAgC;AAEjE,OAAO,MAAMC,2BAA2B,eAAe;AAyEvD,OAAO,MAAMC,wBAA0DL;IAGnE,aAAc;QACV,KAAK,CAACG;IACV;AACJ;;;;;;AAGA,OAAO,MAAMG,8BAAgEP;IAGzE,aAAc;QACV,KAAK,CAACI;IACV;AACJ;;;;;;AAGA,OAAO,MAAMI,8BAAgEN;IAGzE,aAAc;QACV,KAAK,CAACE;IACV;AACJ;;;;;;AAGA,OAAO,MAAMK,6BAA+DN;IAGxE,aAAc;QACV,KAAK,CAACC;IACV;AACJ;;;;;;AAEA,OAAO,MAAMM,0BAA0BZ,QAAQ;IAC3Ca,YAAY;QAACL;QAAiBE;QAAuBD;KAAsB;AAC/E,GAAG,CAAC,EAAEK,QAAQ,EAAE;IACZb,gBAAgBO;IAEhB,OAAOM;AACX,GAAG"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './comm-hub-registry';\nexport * from './comm-hub-notifications-registry';\nexport * from './comm-hub-left-panel-registry';\
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './comm-hub-registry';\nexport * from './comm-hub-notifications-registry';\nexport * from './comm-hub-left-panel-registry';\n"],"names":[],"mappings":"AAAA,cAAc,sBAAsB;AACpC,cAAc,oCAAoC;AAClD,cAAc,iCAAiC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/toolbelt-shared-registry",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"cli": {
|
|
25
25
|
"webpack": false
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "c52b9809d7f13ab6a75290f065becb97eea88bed"
|
|
28
28
|
}
|
package/src/comm-hub-registry.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { RegistryReader, RegistryService, RegistryWriter } from '@servicetitan/shared-data-registry';
|
|
2
|
-
import { RegistryStore } from '@servicetitan/shared-data-registry/mobx';
|
|
3
|
-
export declare const commHubTaskHubRegistryId = "toolbelt:comm-hub-task-hub-registry-id";
|
|
4
|
-
export declare const CommHubTaskHubStateItemId = "task-hub-state";
|
|
5
|
-
export interface CommHubTaskHubState {
|
|
6
|
-
openDrawer: {
|
|
7
|
-
boardKey: string;
|
|
8
|
-
taskId: string;
|
|
9
|
-
} | null;
|
|
10
|
-
}
|
|
11
|
-
export declare class CommHubTaskHubRegistry extends RegistryService<CommHubTaskHubState> {
|
|
12
|
-
constructor();
|
|
13
|
-
}
|
|
14
|
-
export declare class CommHubTaskHubRegistryReader extends RegistryReader<CommHubTaskHubState> {
|
|
15
|
-
constructor();
|
|
16
|
-
}
|
|
17
|
-
export declare class CommHubTaskHubRegistryWriter extends RegistryWriter<CommHubTaskHubState> {
|
|
18
|
-
constructor();
|
|
19
|
-
}
|
|
20
|
-
export declare class CommHubTaskHubRegistryStore extends RegistryStore<CommHubTaskHubState> {
|
|
21
|
-
constructor();
|
|
22
|
-
}
|
|
23
|
-
export declare const CommHubTaskHubRegistryProvider: (({ children }: any) => any) & import("@servicetitan/react-ioc/dist/provide").WrappedComponent<({ children }: any) => any>;
|
|
24
|
-
//# sourceMappingURL=comm-hub-task-hub-registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comm-hub-task-hub-registry.d.ts","sourceRoot":"","sources":["../src/comm-hub-task-hub-registry.ts"],"names":[],"mappings":"AACA,OAAO,EACH,cAAc,EACd,eAAe,EACf,cAAc,EACjB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAExE,eAAO,MAAM,wBAAwB,2CAA2C,CAAC;AACjF,eAAO,MAAM,yBAAyB,mBAAmB,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAClB,GAAG,IAAI,CAAC;CACZ;AAED,qBACa,sBAAuB,SAAQ,eAAe,CAAC,mBAAmB,CAAC;;CAI/E;AAED,qBACa,4BAA6B,SAAQ,cAAc,CAAC,mBAAmB,CAAC;;CAIpF;AAED,qBACa,4BAA6B,SAAQ,cAAc,CAAC,mBAAmB,CAAC;;CAIpF;AAED,qBACa,2BAA4B,SAAQ,aAAa,CAAC,mBAAmB,CAAC;;CAIlF;AAED,eAAO,MAAM,8BAA8B,4HAUzC,CAAC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
}
|
|
7
|
-
function _ts_metadata(k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
}
|
|
10
|
-
import { injectable, provide, useDependencies } from '@servicetitan/react-ioc';
|
|
11
|
-
import { RegistryReader, RegistryService, RegistryWriter } from '@servicetitan/shared-data-registry';
|
|
12
|
-
import { RegistryStore } from '@servicetitan/shared-data-registry/mobx';
|
|
13
|
-
export const commHubTaskHubRegistryId = 'toolbelt:comm-hub-task-hub-registry-id';
|
|
14
|
-
export const CommHubTaskHubStateItemId = 'task-hub-state';
|
|
15
|
-
export class CommHubTaskHubRegistry extends RegistryService {
|
|
16
|
-
constructor(){
|
|
17
|
-
super(commHubTaskHubRegistryId);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
CommHubTaskHubRegistry = _ts_decorate([
|
|
21
|
-
injectable(),
|
|
22
|
-
_ts_metadata("design:type", Function),
|
|
23
|
-
_ts_metadata("design:paramtypes", [])
|
|
24
|
-
], CommHubTaskHubRegistry);
|
|
25
|
-
export class CommHubTaskHubRegistryReader extends RegistryReader {
|
|
26
|
-
constructor(){
|
|
27
|
-
super(commHubTaskHubRegistryId);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
CommHubTaskHubRegistryReader = _ts_decorate([
|
|
31
|
-
injectable(),
|
|
32
|
-
_ts_metadata("design:type", Function),
|
|
33
|
-
_ts_metadata("design:paramtypes", [])
|
|
34
|
-
], CommHubTaskHubRegistryReader);
|
|
35
|
-
export class CommHubTaskHubRegistryWriter extends RegistryWriter {
|
|
36
|
-
constructor(){
|
|
37
|
-
super(commHubTaskHubRegistryId);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
CommHubTaskHubRegistryWriter = _ts_decorate([
|
|
41
|
-
injectable(),
|
|
42
|
-
_ts_metadata("design:type", Function),
|
|
43
|
-
_ts_metadata("design:paramtypes", [])
|
|
44
|
-
], CommHubTaskHubRegistryWriter);
|
|
45
|
-
export class CommHubTaskHubRegistryStore extends RegistryStore {
|
|
46
|
-
constructor(){
|
|
47
|
-
super(commHubTaskHubRegistryId);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
CommHubTaskHubRegistryStore = _ts_decorate([
|
|
51
|
-
injectable(),
|
|
52
|
-
_ts_metadata("design:type", Function),
|
|
53
|
-
_ts_metadata("design:paramtypes", [])
|
|
54
|
-
], CommHubTaskHubRegistryStore);
|
|
55
|
-
export const CommHubTaskHubRegistryProvider = provide({
|
|
56
|
-
singletons: [
|
|
57
|
-
CommHubTaskHubRegistry,
|
|
58
|
-
CommHubTaskHubRegistryWriter,
|
|
59
|
-
CommHubTaskHubRegistryReader
|
|
60
|
-
]
|
|
61
|
-
})(({ children })=>{
|
|
62
|
-
useDependencies(CommHubTaskHubRegistry);
|
|
63
|
-
return children;
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=comm-hub-task-hub-registry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/comm-hub-task-hub-registry.ts"],"sourcesContent":["import { injectable, provide, useDependencies } from '@servicetitan/react-ioc';\nimport {\n RegistryReader,\n RegistryService,\n RegistryWriter,\n} from '@servicetitan/shared-data-registry';\nimport { RegistryStore } from '@servicetitan/shared-data-registry/mobx';\n\nexport const commHubTaskHubRegistryId = 'toolbelt:comm-hub-task-hub-registry-id';\nexport const CommHubTaskHubStateItemId = 'task-hub-state';\n\nexport interface CommHubTaskHubState {\n openDrawer: {\n boardKey: string;\n taskId: string;\n } | null;\n}\n\n@injectable()\nexport class CommHubTaskHubRegistry extends RegistryService<CommHubTaskHubState> {\n constructor() {\n super(commHubTaskHubRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubTaskHubRegistryReader extends RegistryReader<CommHubTaskHubState> {\n constructor() {\n super(commHubTaskHubRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubTaskHubRegistryWriter extends RegistryWriter<CommHubTaskHubState> {\n constructor() {\n super(commHubTaskHubRegistryId);\n }\n}\n\n@injectable()\nexport class CommHubTaskHubRegistryStore extends RegistryStore<CommHubTaskHubState> {\n constructor() {\n super(commHubTaskHubRegistryId);\n }\n}\n\nexport const CommHubTaskHubRegistryProvider = provide({\n singletons: [\n CommHubTaskHubRegistry,\n CommHubTaskHubRegistryWriter,\n CommHubTaskHubRegistryReader,\n ],\n})(({ children }) => {\n useDependencies(CommHubTaskHubRegistry);\n\n return children;\n});\n"],"names":["injectable","provide","useDependencies","RegistryReader","RegistryService","RegistryWriter","RegistryStore","commHubTaskHubRegistryId","CommHubTaskHubStateItemId","CommHubTaskHubRegistry","constructor","CommHubTaskHubRegistryReader","CommHubTaskHubRegistryWriter","CommHubTaskHubRegistryStore","CommHubTaskHubRegistryProvider","singletons","children"],"mappings":";;;;;;;;;AAAA,SAASA,UAAU,EAAEC,OAAO,EAAEC,eAAe,QAAQ,0BAA0B;AAC/E,SACIC,cAAc,EACdC,eAAe,EACfC,cAAc,QACX,qCAAqC;AAC5C,SAASC,aAAa,QAAQ,0CAA0C;AAExE,OAAO,MAAMC,2BAA2B,yCAAyC;AACjF,OAAO,MAAMC,4BAA4B,iBAAiB;AAU1D,OAAO,MAAMC,+BAA+BL;IACxCM,aAAc;QACV,KAAK,CAACH;IACV;AACJ;;;;;;AAGA,OAAO,MAAMI,qCAAqCR;IAC9CO,aAAc;QACV,KAAK,CAACH;IACV;AACJ;;;;;;AAGA,OAAO,MAAMK,qCAAqCP;IAC9CK,aAAc;QACV,KAAK,CAACH;IACV;AACJ;;;;;;AAGA,OAAO,MAAMM,oCAAoCP;IAC7CI,aAAc;QACV,KAAK,CAACH;IACV;AACJ;;;;;;AAEA,OAAO,MAAMO,iCAAiCb,QAAQ;IAClDc,YAAY;QACRN;QACAG;QACAD;KACH;AACL,GAAG,CAAC,EAAEK,QAAQ,EAAE;IACZd,gBAAgBO;IAEhB,OAAOO;AACX,GAAG"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { injectable, provide, useDependencies } from '@servicetitan/react-ioc';
|
|
2
|
-
import {
|
|
3
|
-
RegistryReader,
|
|
4
|
-
RegistryService,
|
|
5
|
-
RegistryWriter,
|
|
6
|
-
} from '@servicetitan/shared-data-registry';
|
|
7
|
-
import { RegistryStore } from '@servicetitan/shared-data-registry/mobx';
|
|
8
|
-
|
|
9
|
-
export const commHubTaskHubRegistryId = 'toolbelt:comm-hub-task-hub-registry-id';
|
|
10
|
-
export const CommHubTaskHubStateItemId = 'task-hub-state';
|
|
11
|
-
|
|
12
|
-
export interface CommHubTaskHubState {
|
|
13
|
-
openDrawer: {
|
|
14
|
-
boardKey: string;
|
|
15
|
-
taskId: string;
|
|
16
|
-
} | null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@injectable()
|
|
20
|
-
export class CommHubTaskHubRegistry extends RegistryService<CommHubTaskHubState> {
|
|
21
|
-
constructor() {
|
|
22
|
-
super(commHubTaskHubRegistryId);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@injectable()
|
|
27
|
-
export class CommHubTaskHubRegistryReader extends RegistryReader<CommHubTaskHubState> {
|
|
28
|
-
constructor() {
|
|
29
|
-
super(commHubTaskHubRegistryId);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@injectable()
|
|
34
|
-
export class CommHubTaskHubRegistryWriter extends RegistryWriter<CommHubTaskHubState> {
|
|
35
|
-
constructor() {
|
|
36
|
-
super(commHubTaskHubRegistryId);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@injectable()
|
|
41
|
-
export class CommHubTaskHubRegistryStore extends RegistryStore<CommHubTaskHubState> {
|
|
42
|
-
constructor() {
|
|
43
|
-
super(commHubTaskHubRegistryId);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export const CommHubTaskHubRegistryProvider = provide({
|
|
48
|
-
singletons: [
|
|
49
|
-
CommHubTaskHubRegistry,
|
|
50
|
-
CommHubTaskHubRegistryWriter,
|
|
51
|
-
CommHubTaskHubRegistryReader,
|
|
52
|
-
],
|
|
53
|
-
})(({ children }) => {
|
|
54
|
-
useDependencies(CommHubTaskHubRegistry);
|
|
55
|
-
|
|
56
|
-
return children;
|
|
57
|
-
});
|