@ddd-qc/agent-directory 6.33.3 → 6.34.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentDirectory.fn.js","sourceRoot":"","sources":["../../src/bindings/agentDirectory.fn.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAK1D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,2BAA2B,GAAmB;IAC1D,YAAY;IACZ,eAAe;IACf,cAAc;IACd,uBAAuB;CACvB,CAAC;AAGF,iEAAiE;AACjE,MAAM,UAAU,wCAAwC,CAAC,QAAkB;IACxE,MAAM,GAAG,GAA+B,EAAE,CAAC;IAC3C,KAAK,MAAM,EAAE,IAAI,2BAA2B,EAAE;
|
|
1
|
+
{"version":3,"file":"agentDirectory.fn.js","sourceRoot":"","sources":["../../src/bindings/agentDirectory.fn.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAK1D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,2BAA2B,GAAmB;IAC1D,YAAY;IACZ,eAAe;IACf,cAAc;IACd,uBAAuB;CACvB,CAAC;AAGF,iEAAiE;AACjE,MAAM,UAAU,wCAAwC,CAAC,QAAkB;IACxE,MAAM,GAAG,GAA+B,EAAE,CAAC;IAC3C,KAAK,MAAM,EAAE,IAAI,2BAA2B,EAAE,CAAC;QAC5C,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;IAC5B,CAAC;IACD,OAAO,GAAG,CAAC;AACd,CAAC;AAGD,qFAAqF;AACrF,MAAM,CAAC,MAAM,2BAA2B,GAA+B,wCAAwC,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["/* This file is generated by zits. Do not edit manually */\n\nimport {ZomeName, FunctionName} from '@holochain/client';\n\n\n/** Array of all zome function names in \"agentDirectory\" */\nexport const agentDirectoryFunctionNames: FunctionName[] = [\n\t\"entry_defs\", \n\t\"get_zome_info\", \n\t\"get_dna_info\",\n\t\"get_registered_agents\",\n];\n\n\n/** Generate tuple array of function names with given zomeName */\nexport function generateAgentDirectoryZomeFunctionsArray(zomeName: ZomeName): [ZomeName, FunctionName][] {\n const fns: [ZomeName, FunctionName][] = [];\n for (const fn of agentDirectoryFunctionNames) {\n fns.push([zomeName, fn]);\n }\n return fns;\n}\n\n\n/** Tuple array of all zome function names with default zome name \"agentDirectory\" */\nexport const agentDirectoryZomeFunctions: [ZomeName, FunctionName][] = generateAgentDirectoryZomeFunctionsArray(\"agentDirectory\");\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-directory-list.js","sourceRoot":"","sources":["../../src/elements/agent-directory-list.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAC,KAAK,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAA4B,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D;;GAEG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,WAAyD;IAC/F,WAAW;IACX;QACE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;QAG7C,mBAAmB;QAEF,iBAAY,GAAG,KAAK,CAAC;IAJtC,CAAC;IAOD,oBAAoB;IAEpB,mCAAmC;IACnC,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IAGD,MAAM;IACN,KAAK,CAAC,OAAO,CAAC,EAAQ;QACpB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;IAGD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AG,CACvD,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE;YACpB,OAAO,IAAI,CAAC,cAAc,OAAO,CAAC,GAAG,KAAK,OAAO,CAAC,KAAK,OAAO,CAAA;QAChE,CAAC,CACJ,CAAA;QAED,iBAAiB;QACjB,OAAO,IAAI,CAAA,OAAO,OAAO,OAAO,CAAC;IACnC,CAAC;CACF,CAAA;AApCkB;IAAhB,KAAK,EAAE;wDAA8B;AAR3B,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CA4C9B","sourcesContent":["import {html} from \"lit\";\nimport {state, customElement} from \"lit/decorators.js\";\nimport {ZomeElement} from \"@ddd-qc/lit-happ\";\nimport {AgentDirectoryPerspective, AgentDirectoryZvm} from \"../agentDirectory.zvm\";\nimport {GetStrategy} from \"@holochain-open-dev/core-types\";\n\n/**\n * @element agent-directory-list\n */\n@customElement(\"agent-directory-list\")\nexport class AgentDirectoryList extends ZomeElement<AgentDirectoryPerspective, AgentDirectoryZvm> {\n /** Ctor */\n constructor() {\n super(AgentDirectoryZvm.DEFAULT_ZOME_NAME);\n }\n\n /** -- Fields -- */\n\n @state() private _initialized = false;\n\n\n /** -- Methods -- */\n\n /** After first call to render() */\n async firstUpdated() {\n await this.refresh();\n this._initialized = true;\n }\n\n\n /** */\n async refresh(_e?: any) {\n this._zvm.probeAll(GetStrategy.Network);\n }\n\n\n /** */\n render() {\n console.debug(\"agent-directory-list render()\");\n\n if (!this._initialized) {\n return html`<span>Loading...</span>`;\n }\n\n /* Agents */\n const agentLi = Object.entries(this.perspective.agents).map(\n ([_index, agentId]) => {\n return html `<li value=\"${agentId.b64}\">${agentId.short}</li>`\n }\n )\n\n /** render all */\n return html`<ul>${agentLi}</ul>`;\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-qc/agent-directory",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.34.0",
|
|
4
4
|
"license" : "CAL-1.0",
|
|
5
5
|
"keywords": ["holochain", "zome"],
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"lit-analyzer": "^1.2.1",
|
|
23
|
-
"@types/libsodium-wrappers" : "~0.7.
|
|
23
|
+
"@types/libsodium-wrappers" : "~0.7.14",
|
|
24
24
|
"watch-cli": "^0.2.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|