@narrat/plugin-counter 2.15.0 → 2.17.0-alpha.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/data/scripts.yaml
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
---
|
|
2
|
-
- data/game.
|
|
2
|
+
- data/game.narrat
|
|
@@ -44,7 +44,7 @@ class w extends C {
|
|
|
44
44
|
c(this, "customStores");
|
|
45
45
|
c(this, "customCommands");
|
|
46
46
|
c(this, "customMenuTabs");
|
|
47
|
-
const o = "2.
|
|
47
|
+
const o = "2.17.0-alpha.1", e = new Date("2023-06-21T20:57:52.306Z").toLocaleString();
|
|
48
48
|
console.log(
|
|
49
49
|
`%c [Narrat plugin] [@narrat/plugin-counter] v${o} - Built at ${e}`,
|
|
50
50
|
"background: #222; color: #bada55"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia"),require("narrat")):typeof define=="function"&&define.amd?define(["exports","vue","pinia","narrat"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["narrat-plugin-counter"]={},n.Vue,n.pinia,n.narrat))})(this,function(n,e,o,a){"use strict";var C=Object.defineProperty;var h=(n,e,o)=>e in n?C(n,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[e]=o;var i=(n,e,o)=>(h(n,typeof e!="symbol"?e+"":e,o),o);const c=o.defineStore("counter",{state:()=>({count:0}),actions:{save(){return{count:this.count}},load(t){this.count=t.count},reset(){this.count=0}}}),
|
|
1
|
+
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("pinia"),require("narrat")):typeof define=="function"&&define.amd?define(["exports","vue","pinia","narrat"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["narrat-plugin-counter"]={},n.Vue,n.pinia,n.narrat))})(this,function(n,e,o,a){"use strict";var C=Object.defineProperty;var h=(n,e,o)=>e in n?C(n,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[e]=o;var i=(n,e,o)=>(h(n,typeof e!="symbol"?e+"":e,o),o);const c=o.defineStore("counter",{state:()=>({count:0}),actions:{save(){return{count:this.count}},load(t){this.count=t.count},reset(){this.count=0}}}),p=e.defineComponent({setup(){console.log("counter ui");const t=c();return{counter:e.computed(()=>t.count)}}}),y="",m=(t,r)=>{const u=t.__vccOpts||t;for(const[s,d]of r)u[s]=d;return u};function f(t,r,u,s,d,l){return e.openBlock(),e.createElementBlock("h1",null,"Counter value: "+e.toDisplayString(t.counter),1)}const _=m(p,[["render",f]]);class g extends a.NarratPlugin{constructor(){super();i(this,"customStores");i(this,"customCommands");i(this,"customMenuTabs");const u="2.17.0-alpha.1",s=new Date("2023-06-21T20:57:52.306Z").toLocaleString();console.log(`%c [Narrat plugin] [@narrat/plugin-counter] v${u} - Built at ${s}`,"background: #222; color: #bada55"),this.customStores={counter:c},this.customCommands=[new a.CommandPlugin("increase_counter",[],async l=>c().count++),new a.CommandPlugin("get_counter",[],async l=>c().count)],this.customMenuTabs=[{menuId:"menu",config:{id:"counter",text:"Counter",cssClass:"counter-menu-button",component:"CounterUi"},component:_}]}}n.CounterPlugin=g,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "dist/narrat-plugin-counter.es.js",
|
|
5
5
|
"module": "dist/narrat-plugin-counter.es.js",
|
|
6
6
|
"types": "dist/plugin.d.ts",
|
|
7
|
-
"version": "2.
|
|
7
|
+
"version": "2.17.0-alpha.1",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git@github.com:liana-p/narrat-engine.git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"node": ">=16"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
|
-
"homepage": "https://
|
|
17
|
+
"homepage": "https://narrat.dev",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "vite",
|
|
20
20
|
"generate-types": "vue-tsc --emitDeclarationOnly --outDir dist && pnpm run fix-type-aliases",
|
package/public/data/scripts.yaml
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
---
|
|
2
|
-
- data/game.
|
|
2
|
+
- data/game.narrat
|
|
File without changes
|
|
File without changes
|