@narrat/plugin-counter 4.1.12 → 4.1.14

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.
@@ -40,7 +40,7 @@ class S extends d {
40
40
  customMenuTabs;
41
41
  constructor() {
42
42
  super();
43
- const o = "4.1.12", n = (/* @__PURE__ */ new Date("2026-04-03T16:39:36.019Z")).toLocaleString();
43
+ const o = "4.1.14", n = (/* @__PURE__ */ new Date("2026-05-19T17:47:23.129Z")).toLocaleString();
44
44
  console.log(
45
45
  `%c [Narrat plugin] [@narrat/plugin-counter] v${o} - Built at ${n}`,
46
46
  "background: #222; color: #bada55"
@@ -1 +1 @@
1
- (function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("pinia"),require("narrat")):typeof define=="function"&&define.amd?define(["exports","vue","pinia","narrat"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["narrat-plugin-counter"]={},n.Vue,n.pinia,n.narrat))})(this,function(n,t,a,s){"use strict";const c=a.defineStore("counter",{state:()=>({count:0}),actions:{save(){return{count:this.count}},load(e){this.count=e.count},reset(){this.count=0}}}),d=t.defineComponent({setup(){console.log("counter ui");const e=c();return{counter:t.computed(()=>e.count)}}}),m=(e,o)=>{const u=e.__vccOpts||e;for(const[i,r]of o)u[i]=r;return u};function p(e,o,u,i,r,g){return t.openBlock(),t.createElementBlock("h1",null,"Counter value: "+t.toDisplayString(e.counter),1)}const l=m(d,[["render",p]]);class f extends s.NarratPlugin{customStores;customCommands;customMenuTabs;constructor(){super();const o="4.1.12",u=new Date("2026-04-03T16:39:36.019Z").toLocaleString();console.log(`%c [Narrat plugin] [@narrat/plugin-counter] v${o} - Built at ${u}`,"background: #222; color: #bada55"),this.customStores={counter:c},this.customCommands=[new s.CommandPlugin("increase_counter",[],async r=>c().count++),new s.CommandPlugin("get_counter",[],async r=>c().count)],this.customMenuTabs=[{menuId:"menu",config:{id:"counter",text:"Counter",cssClass:"counter-menu-button",component:"CounterUi"},component:l}]}}n.CounterPlugin=f,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
1
+ (function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("pinia"),require("narrat")):typeof define=="function"&&define.amd?define(["exports","vue","pinia","narrat"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["narrat-plugin-counter"]={},n.Vue,n.pinia,n.narrat))})(this,function(n,t,a,s){"use strict";const c=a.defineStore("counter",{state:()=>({count:0}),actions:{save(){return{count:this.count}},load(e){this.count=e.count},reset(){this.count=0}}}),d=t.defineComponent({setup(){console.log("counter ui");const e=c();return{counter:t.computed(()=>e.count)}}}),m=(e,o)=>{const u=e.__vccOpts||e;for(const[i,r]of o)u[i]=r;return u};function p(e,o,u,i,r,g){return t.openBlock(),t.createElementBlock("h1",null,"Counter value: "+t.toDisplayString(e.counter),1)}const l=m(d,[["render",p]]);class f extends s.NarratPlugin{customStores;customCommands;customMenuTabs;constructor(){super();const o="4.1.14",u=new Date("2026-05-19T17:47:23.129Z").toLocaleString();console.log(`%c [Narrat plugin] [@narrat/plugin-counter] v${o} - Built at ${u}`,"background: #222; color: #bada55"),this.customStores={counter:c},this.customCommands=[new s.CommandPlugin("increase_counter",[],async r=>c().count++),new s.CommandPlugin("get_counter",[],async r=>c().count)],this.customMenuTabs=[{menuId:"menu",config:{id:"counter",text:"Counter",cssClass:"counter-menu-button",component:"CounterUi"},component:l}]}}n.CounterPlugin=f,Object.defineProperty(n,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": "4.1.12",
7
+ "version": "4.1.14",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git@github.com:liana-p/narrat-engine.git",