@novely/core 0.46.1 → 0.46.3

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/index.js CHANGED
@@ -688,10 +688,8 @@ var createUseStackFunction = (renderer) => {
688
688
  stack[stack.length - 1] = value;
689
689
  },
690
690
  back() {
691
- if (stack.length > 1) {
692
- stack.previous = stack.pop();
693
- ctx.meta.goingBack = true;
694
- }
691
+ stack.previous = stack.length > 1 ? stack.pop() : this.value;
692
+ ctx.meta.goingBack = true;
695
693
  },
696
694
  push(value) {
697
695
  stack.push(value);
@@ -2381,6 +2379,18 @@ var assetPrivate = memoize4(
2381
2379
  var asset = (...variants) => {
2382
2380
  return assetPrivate(variants);
2383
2381
  };
2382
+ asset.image = (source) => {
2383
+ return {
2384
+ type: "image",
2385
+ source
2386
+ };
2387
+ };
2388
+ asset.audio = (source) => {
2389
+ return {
2390
+ type: "audio",
2391
+ source
2392
+ };
2393
+ };
2384
2394
  export {
2385
2395
  EN,
2386
2396
  JP,