native-document 1.0.135 → 1.0.136

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.
@@ -12418,6 +12418,11 @@ var NativeComponents = (function (exports) {
12418
12418
  }
12419
12419
  BaseComponent.extends(VStack, Stack);
12420
12420
 
12421
+ VStack.defaultTemplate = null;
12422
+ VStack.use = function(template) {
12423
+ VStack.defaultTemplate = template;
12424
+ };
12425
+
12421
12426
  VStack.preset = function(name, callback) {
12422
12427
  if (VStack.prototype[name] || VStack[name]) {
12423
12428
  DebugManager$1.warn(`Warning: the ${name} method already exists in VStack.`);
@@ -12447,6 +12452,11 @@ var NativeComponents = (function (exports) {
12447
12452
 
12448
12453
  BaseComponent.extends(ZStack);
12449
12454
 
12455
+ ZStack.defaultTemplate = null;
12456
+ ZStack.use = function(template) {
12457
+ ZStack.defaultTemplate = template;
12458
+ };
12459
+
12450
12460
  ZStack.preset = function(name, callback) {
12451
12461
  if (ZStack.prototype[name] || ZStack[name]) {
12452
12462
  DebugManager$1.warn(`Warning: the ${name} method already exists in ZStack.`);
@@ -12477,6 +12487,11 @@ var NativeComponents = (function (exports) {
12477
12487
 
12478
12488
  BaseComponent.extends(HStack, Stack);
12479
12489
 
12490
+ HStack.defaultTemplate = null;
12491
+ HStack.use = function(template) {
12492
+ HStack.defaultTemplate = template;
12493
+ };
12494
+
12480
12495
  HStack.preset = function(name, callback) {
12481
12496
  if (HStack.prototype[name] || HStack[name]) {
12482
12497
  DebugManager$1.warn(`Warning: the ${name} method already exists in HStack.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-document",
3
- "version": "1.0.135",
3
+ "version": "1.0.136",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -13,6 +13,11 @@ export default function HStack(content, props = {}) {
13
13
 
14
14
  BaseComponent.extends(HStack, Stack);
15
15
 
16
+ HStack.defaultTemplate = null;
17
+ HStack.use = function(template) {
18
+ HStack.defaultTemplate = template;
19
+ };
20
+
16
21
  HStack.preset = function(name, callback) {
17
22
  if (HStack.prototype[name] || HStack[name]) {
18
23
  DebugManager.warn(`Warning: the ${name} method already exists in HStack.`);
@@ -15,6 +15,11 @@ export default function VStack(content, props = {}) {
15
15
  }
16
16
  BaseComponent.extends(VStack, Stack);
17
17
 
18
+ VStack.defaultTemplate = null;
19
+ VStack.use = function(template) {
20
+ VStack.defaultTemplate = template;
21
+ };
22
+
18
23
  VStack.preset = function(name, callback) {
19
24
  if (VStack.prototype[name] || VStack[name]) {
20
25
  DebugManager.warn(`Warning: the ${name} method already exists in VStack.`);
@@ -16,6 +16,11 @@ export default function ZStack(content, props = {}) {
16
16
 
17
17
  BaseComponent.extends(ZStack);
18
18
 
19
+ ZStack.defaultTemplate = null;
20
+ ZStack.use = function(template) {
21
+ ZStack.defaultTemplate = template;
22
+ };
23
+
19
24
  ZStack.preset = function(name, callback) {
20
25
  if (ZStack.prototype[name] || ZStack[name]) {
21
26
  DebugManager.warn(`Warning: the ${name} method already exists in ZStack.`);