@torpor/view 0.4.10 → 0.4.12

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.
Files changed (225) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/compile.cjs +1 -1
  3. package/dist/compile.cjs.map +1 -1
  4. package/dist/compile.js +1 -1
  5. package/dist/compile.js.map +1 -1
  6. package/dist/formatText-A8G0kbCI.d.ts +11 -0
  7. package/dist/formatText-A8G0kbCI.d.ts.map +1 -0
  8. package/dist/formatText-Ck04q8_X.cjs.map +1 -1
  9. package/dist/formatText-DNPkZ1xY.d.cts +11 -0
  10. package/dist/formatText-DNPkZ1xY.d.cts.map +1 -0
  11. package/dist/formatText-OyD8MNAM.js.map +1 -1
  12. package/dist/index.d.cts +1 -1
  13. package/dist/index.d.ts +1 -1
  14. package/dist/ssr.d.cts +1 -1
  15. package/dist/ssr.d.ts +1 -1
  16. package/package.json +1 -1
  17. package/src/compile/build/client/buildCode.ts +1 -1
  18. package/src/render/buildClasses.ts +19 -4
  19. package/src/render/buildStyles.ts +3 -1
  20. package/test/attributes/components/output/Attributes-client.ts +0 -1
  21. package/test/attributes/components/output/Disappearing-client.ts +0 -1
  22. package/test/attributes/components/temp/{Attributes-client-63bd49fe97fb8d775ef291fa19b8f03075020f63.ts → Attributes-client-881ae1bc8de5b8b63c416dea9e11bffcf28b2e8e.ts} +0 -1
  23. package/test/attributes/components/temp/{Disappearing-client-63bd49fe97fb8d775ef291fa19b8f03075020f63.ts → Disappearing-client-881ae1bc8de5b8b63c416dea9e11bffcf28b2e8e.ts} +0 -1
  24. package/test/await/components/output/Await-client.ts +0 -1
  25. package/test/await/components/temp/{Await-client-5ad15bc135417fa095bb5c95c7407a02a444a272.ts → Await-client-973bd47c40dcbc9622a278e5519c341656505fc0.ts} +0 -1
  26. package/test/bind/components/output/BindComponent-client.ts +0 -1
  27. package/test/bind/components/output/BindText-client.ts +0 -1
  28. package/test/bind/components/temp/{BindComponent-client-44f487e4c31612483ff002a7dea91925dd37b96b.ts → BindComponent-client-45295d08bc4570c2d059d880dabc052656c80311.ts} +0 -1
  29. package/test/bind/components/temp/{BindText-client-74b797d8a10d8f18a71ef121dbb9eaec9c8dd67a.ts → BindText-client-228eeb9b0fccd8baf7aea4fb8e9678e0537fb506.ts} +0 -1
  30. package/test/child-component/components/output/ChildComponent-client.ts +0 -1
  31. package/test/child-component/components/temp/{ChildComponent-client-3f29b8db2e610cbcb200af36721456404ed29dca.ts → ChildComponent-client-b32ac4d5bd6791f3c2c44457880554b416574bd5.ts} +0 -1
  32. package/test/class/components/output/Class-client.ts +0 -1
  33. package/test/class/components/temp/{Class-client-0741f12141ba1e5d531ca6cc9becc0511ff0c502.ts → Class-client-d17977d356d8c8f964eaa1ac5a381814b33c22ba.ts} +0 -1
  34. package/test/component/components/output/Component-client.ts +0 -1
  35. package/test/component/components/temp/{Component-client-8255e6a16f9dc01f64b88808bc92003396794fa5.ts → Component-client-b96484e81ee8aaccbd0025155ff76a9b40d1b56a.ts} +0 -1
  36. package/test/console/components/output/Console-client.ts +0 -1
  37. package/test/console/components/temp/{Console-client-bf26a9f6c8785ce09608d36fae616de0724a2355.ts → Console-client-8714c492e9017b582573e22b9be515bb7c70b2d9.ts} +0 -1
  38. package/test/const/components/output/Const-client.ts +0 -1
  39. package/test/const/components/temp/{Const-client-111aef0ff3a14c98eed9dba0a6205bd4509ccf29.ts → Const-client-0d9518b180ca43f6cf66e1a8467286ed5fed8e09.ts} +0 -1
  40. package/test/context/components/output/Context-client.ts +0 -1
  41. package/test/context/components/temp/{Context-client-a4b608a96e3a3763ad9d660e1bc0836a105b9ea3.ts → Context-client-a07d9fff7f94993f639a12247527016d150e9b0f.ts} +0 -1
  42. package/test/effects/components/output/ForEffect-client.ts +0 -1
  43. package/test/effects/components/output/IfEffect-client.ts +0 -1
  44. package/test/effects/components/output/NestedIfEffect-client.ts +0 -1
  45. package/test/effects/components/temp/{ForEffect-client-15144e8e55d99b6495affdb158cf95b301713f1a.ts → ForEffect-client-317189ae9a2569c0f4b9243ccfc3f580ad03c5e1.ts} +0 -1
  46. package/test/effects/components/temp/{IfEffect-client-792e4b6c568e2cffad16c0b64ffd39928566c534.ts → IfEffect-client-5cac9165b868c2c3738c2aa498e754975baf7b3d.ts} +0 -1
  47. package/test/effects/components/temp/{NestedIfEffect-client-724b09d88afd0eb4df459082ada91ac041825f7a.ts → NestedIfEffect-client-6d34eb573b43fc480ccbad626ebf3c6c3e8a29e8.ts} +0 -1
  48. package/test/events/components/output/Events-client.ts +0 -1
  49. package/test/events/components/temp/{Events-client-3224d5bbbc6d4188c566cfa86659e546a886877a.ts → Events-client-ccab6c0f3bda2d4f18336c27aaa8ade40ea63a43.ts} +0 -1
  50. package/test/for/components/output/For-client.ts +0 -1
  51. package/test/for/components/output/ForAfterFor-client.ts +0 -1
  52. package/test/for/components/output/ForContainingFor-client.ts +0 -1
  53. package/test/for/components/output/ForContainingFunction-client.ts +0 -1
  54. package/test/for/components/output/ForContainingIf-client.ts +0 -1
  55. package/test/for/components/output/ForEscape-client.ts +0 -1
  56. package/test/for/components/output/ForIn-client.ts +0 -1
  57. package/test/for/components/output/ForOf-client.ts +0 -1
  58. package/test/for/components/temp/{For-client-287e5695f24f6700158d2c689fdce1916031b4d7.ts → For-client-6ef77eb2784d244c6591436da31b40c47ddde004.ts} +0 -1
  59. package/test/for/components/temp/{ForAfterFor-client-bc375829d736a62ee760f32a5a90df78426c8534.ts → ForAfterFor-client-af52b59320b4e67714548b747f8aae7a5a15c93b.ts} +0 -1
  60. package/test/for/components/temp/{ForContainingFor-client-d80aba5977a7cef8263f0fdaf6216e19bb8b0625.ts → ForContainingFor-client-361995d2d1a09c06265b6951b5577fc421a1ddcf.ts} +0 -1
  61. package/test/for/components/temp/{ForContainingFunction-client-bcb91a1c7ad2fd4e227fc40f28f01e7fdc495bdc.ts → ForContainingFunction-client-0e704cc69989fb9da72c0528cbf5d0f66bcea224.ts} +0 -1
  62. package/test/for/components/temp/{ForContainingIf-client-8911d18357f7c81f97d64773442275c802292ae7.ts → ForContainingIf-client-97a42fb914e0a3c13509114d0c0cac135f303f16.ts} +0 -1
  63. package/test/for/components/temp/{ForEscape-client-13038740272dd6b7fa9f228ae852e3d1b2725f88.ts → ForEscape-client-af763615c118e3cfd0b3f4008e9a3c209ffbb2dd.ts} +0 -1
  64. package/test/for/components/temp/{ForIn-client-9f244dfd10d0439f14719e724aefc908174fe4e3.ts → ForIn-client-06be96d11abe3408aa72519b9eba9ea590327093.ts} +0 -1
  65. package/test/for/components/temp/{ForOf-client-b0e33a686f4183a88aa06af7f2255e7210438fce.ts → ForOf-client-cc2563ccd0d1b08dfc1b4ee3e1d5a66516009059.ts} +0 -1
  66. package/test/function/components/output/Function-client.ts +0 -1
  67. package/test/function/components/temp/{Function-client-a2603b20a7f8763ba9713b04c42da56c2ee2056e.ts → Function-client-a386620409f1dd3658c357fc574c96aa8dd9b9be.ts} +0 -1
  68. package/test/html/components/output/Html-client.ts +0 -1
  69. package/test/html/components/temp/{Html-client-da930140bd62a34408887d13aafebbe856065bef.ts → Html-client-956231afa11be99d3fdc19a37817333b0d17e356.ts} +0 -1
  70. package/test/if/components/output/ElseIfTrue-client.ts +0 -1
  71. package/test/if/components/output/ElseTrue-client.ts +0 -1
  72. package/test/if/components/output/IfAfterIf-client.ts +0 -1
  73. package/test/if/components/output/IfCache-client.ts +0 -1
  74. package/test/if/components/output/IfContainingFor-client.ts +0 -1
  75. package/test/if/components/output/IfContainingFunction-client.ts +0 -1
  76. package/test/if/components/output/IfContainingIf-client.ts +0 -1
  77. package/test/if/components/output/IfElseFalse-client.ts +0 -1
  78. package/test/if/components/output/IfElseTrue-client.ts +0 -1
  79. package/test/if/components/output/IfFalse-client.ts +0 -1
  80. package/test/if/components/output/IfNested-client.ts +0 -1
  81. package/test/if/components/temp/{ElseIfTrue-client-b9fc7dd83aae7205745ae376e2081befa33e320c.ts → ElseIfTrue-client-d16eee5a11582717355deb9781b3ba9695f496c0.ts} +0 -1
  82. package/test/if/components/temp/{ElseTrue-client-b9fc7dd83aae7205745ae376e2081befa33e320c.ts → ElseTrue-client-d16eee5a11582717355deb9781b3ba9695f496c0.ts} +0 -1
  83. package/test/if/components/temp/{IfAfterIf-client-e463e4db80127acc2ed0c4da349ecaa4c5b0ce1a.ts → IfAfterIf-client-70712848820e1bb593ee7c5f5d333d82a58f6a97.ts} +0 -1
  84. package/test/if/components/temp/{IfCache-client-e892165cad33a1052bb248fe10e1b3aa9dffbf01.ts → IfCache-client-470e5e1f0c2111d5756e55f3dcc0f5404a70bade.ts} +0 -1
  85. package/test/if/components/temp/{IfContainingFor-client-0835d2155fd73b40d06b77d9f5af380a1d209e4e.ts → IfContainingFor-client-500dab2db4653b0fc121a16f74b2cab8335c72f1.ts} +0 -1
  86. package/test/if/components/temp/{IfContainingFunction-client-2c1a9e5da9fb9a85cae8123f30c23ccc851c9803.ts → IfContainingFunction-client-3dbc7f995da90672bbbdaaecab3f6ce8e05830af.ts} +0 -1
  87. package/test/if/components/temp/{IfContainingIf-client-517b94a34195618e4e58cabdfdb402288379b075.ts → IfContainingIf-client-37ab307b4f6e316d79681b42f37649eeb7136798.ts} +0 -1
  88. package/test/if/components/temp/{IfElseTrue-client-6003c6c731c1bad239bdcea789d136bc8cd6090a.ts → IfElseFalse-client-b2d08e03aee434b3758134b5cfb72bd2f18fa22e.ts} +0 -1
  89. package/test/if/components/temp/{IfElseFalse-client-6003c6c731c1bad239bdcea789d136bc8cd6090a.ts → IfElseTrue-client-b2d08e03aee434b3758134b5cfb72bd2f18fa22e.ts} +0 -1
  90. package/test/if/components/temp/{IfFalse-client-8ef85fba04e1e6c3f2b95d9d957bffea5ba593ae.ts → IfFalse-client-fbccb762d70b201b676b58c28e9c932e86c705cf.ts} +0 -1
  91. package/test/if/components/temp/{IfNested-client-5be29838cfd71602d781e744ebd1eb9968eb825c.ts → IfNested-client-8e7f7c3e3ea0058b3b4cbe702bd10a7f2a1fe5cd.ts} +0 -1
  92. package/test/mount/components/output/Mount-client.ts +0 -1
  93. package/test/mount/components/temp/{Mount-client-00351e81e77561213a14c8eea534acae3c5eb692.ts → Mount-client-411fc5e02f2d296627d26b3b5004dcbae0d176d9.ts} +0 -1
  94. package/test/on-mount/components/output/OnMount-client.ts +0 -1
  95. package/test/on-mount/components/temp/{OnMount-client-0a63fc37b0f617ee0b4de2619590a2562a3e2f92.ts → OnMount-client-7fb23d48f5c93e7026b0aefe1488e678b5f91042.ts} +0 -1
  96. package/test/party/components/output/ComputedState-client.ts +0 -1
  97. package/test/party/components/output/Conditional-client.ts +0 -1
  98. package/test/party/components/output/Context-client.ts +0 -1
  99. package/test/party/components/output/DeclareState-client.ts +0 -1
  100. package/test/party/components/output/DomRef-client.ts +0 -1
  101. package/test/party/components/output/EmitToParent-client.ts +0 -1
  102. package/test/party/components/output/EventClick-client.ts +0 -1
  103. package/test/party/components/output/InputCheckbox-client.ts +0 -1
  104. package/test/party/components/output/InputRadio-client.ts +0 -1
  105. package/test/party/components/output/InputSelect-client.ts +0 -1
  106. package/test/party/components/output/InputText-client.ts +0 -1
  107. package/test/party/components/output/Loop-client.ts +0 -1
  108. package/test/party/components/output/MinimalTemplate-client.ts +0 -1
  109. package/test/party/components/output/OnMount-client.ts +0 -1
  110. package/test/party/components/output/Props-client.ts +0 -1
  111. package/test/party/components/output/Slot-client.ts +0 -1
  112. package/test/party/components/output/SlotFallback-client.ts +0 -1
  113. package/test/party/components/output/Styling-client.ts +0 -1
  114. package/test/party/components/output/UpdateState-client.ts +0 -1
  115. package/test/party/components/temp/{ComputedState-client-512a35be46f600ab9b9cf9da0e3c0c90b377d7fa.ts → ComputedState-client-473e1fa90e27365be8f5ea1432977ac16c5ed586.ts} +0 -1
  116. package/test/party/components/temp/{Conditional-client-2c5f759b41ce567a51589af001bf0fc6feb47b4b.ts → Conditional-client-5c7921202718284dba4d3236219532564351ae43.ts} +0 -1
  117. package/test/party/components/temp/{Context-client-88246cfda3671dd5ac8919d95c2f65a8dce81f18.ts → Context-client-d38e35d2f851fa88938cc1758fd8820fa47dfe8e.ts} +0 -1
  118. package/test/party/components/temp/{DeclareState-client-cc45b93b34f4c34c965c765e0f53f78ea416b1ca.ts → DeclareState-client-44648d7db561c7e88021e076335475511b2d37fe.ts} +0 -1
  119. package/test/party/components/temp/{DomRef-client-4c28338d9ea7a2c3d273970161181d82076ed19e.ts → DomRef-client-cae57e146fc33eb104a6ada0476c07a434a65562.ts} +0 -1
  120. package/test/party/components/temp/{EmitToParent-client-fcf3d690b10871aad884099e078d5c98d7b8503d.ts → EmitToParent-client-d5379e6fa015e1e591f061852f5bcc35a80c584c.ts} +0 -1
  121. package/test/party/components/temp/{EventClick-client-dcb9b191808f7f0f9d009b725da046ba241cb44b.ts → EventClick-client-c7584b79c09e2545c81553e76233b9d07f286d06.ts} +0 -1
  122. package/test/party/components/temp/{InputCheckbox-client-f0af6d8f86c4f80673dea1599a6f2deaf54fe576.ts → InputCheckbox-client-97f354e60679541174229d2b0ac71663023b008a.ts} +0 -1
  123. package/test/party/components/temp/{InputRadio-client-1472838ddbfe003a85779e1ccb7b57cb66333e90.ts → InputRadio-client-ba6fa665a594ba2ea291eaa211aa236be3ae1999.ts} +0 -1
  124. package/test/party/components/temp/{InputSelect-client-9881943682735888d6b62612d93577ba51593678.ts → InputSelect-client-531d91c6bd0ef17dad8b40f0903138be3631025a.ts} +0 -1
  125. package/test/party/components/temp/{InputText-client-7b37e856f97c863e120a4aa6c02757e489ad6591.ts → InputText-client-08763044ae40897bd697e9a62a23660853abd829.ts} +0 -1
  126. package/test/party/components/temp/{Loop-client-5e5694bc158fcd5f06cd1037e920c657032d7b90.ts → Loop-client-4f033ac051223f80ce4e8c82bd61641b6da94178.ts} +0 -1
  127. package/test/party/components/temp/{MinimalTemplate-client-079892cc885b1f25863c13b93c83e0554a22a2c3.ts → MinimalTemplate-client-8163ab942acd62118fcbc955b14965fcccffdb4b.ts} +0 -1
  128. package/test/party/components/temp/{OnMount-client-1900436fa5a6d56cb98df953de89e0f662d821e8.ts → OnMount-client-aa37e9cedf6353d464c0ed9d87d2edceb83069d3.ts} +0 -1
  129. package/test/party/components/temp/{Props-client-b94724d04965006c1c89776bac2fa10694280c44.ts → Props-client-760a5da0a852aea0c4d0f07a977e1a0e1b892782.ts} +0 -1
  130. package/test/party/components/temp/{Slot-client-5793cdf8a5f28b5009ae17435cfd146ed6c8a1f8.ts → Slot-client-e353ce6d73839cf111973dbd731ca0166f6d2c5c.ts} +0 -1
  131. package/test/party/components/temp/{SlotFallback-client-5793cdf8a5f28b5009ae17435cfd146ed6c8a1f8.ts → SlotFallback-client-e353ce6d73839cf111973dbd731ca0166f6d2c5c.ts} +0 -1
  132. package/test/party/components/temp/{Styling-client-a1c7082740471fead2feb331c9ba0864ff0c5566.ts → Styling-client-a85514d860d10fb97b83eea979c11aa7bef7dc23.ts} +0 -1
  133. package/test/party/components/temp/{UpdateState-client-c6c785a6d35693ba1b9c36dbd59bf28163718c00.ts → UpdateState-client-10e1582a52dd50d99cd0c48a76910ce9d5ae3fd1.ts} +0 -1
  134. package/test/props/components/output/Reactive-client.ts +0 -1
  135. package/test/props/components/temp/{Reactive-client-26a5294eda35e924911bcc99acda58cc98baee7c.ts → Reactive-client-f827f9bee0043cea318d45af4882792c2f5f0514.ts} +0 -1
  136. package/test/replace/components/output/Replace-client.ts +0 -1
  137. package/test/replace/components/temp/{Replace-client-872de024cd2c5c6c95a3eb4e29642e8e48e69a27.ts → Replace-client-00856a163c5bf2c42ddda4f856461d1ac4d47bf9.ts} +0 -1
  138. package/test/slots/components/output/BasicSlot-client.ts +0 -1
  139. package/test/slots/components/output/LetSlot-client.ts +0 -1
  140. package/test/slots/components/output/NamedSlot-client.ts +0 -1
  141. package/test/slots/components/output/UnusedSlot-client.ts +0 -1
  142. package/test/slots/components/temp/{BasicSlot-client-39a9a3170fd51582b023b805d597eb729bb6b02b.ts → BasicSlot-client-fb283dc3759b543cb0b4b5561a9c79b29d520fb9.ts} +0 -1
  143. package/test/slots/components/temp/{LetSlot-client-63980e54259324855b573e87efb1d7a1ac9abd9c.ts → LetSlot-client-484681cc8921276d4f499153715954dbd1b5db33.ts} +0 -1
  144. package/test/slots/components/temp/{NamedSlot-client-426018f63a360e6d4208400b25bfadd2727eadcf.ts → NamedSlot-client-dbd42fb0e05da85cc4e5933adac770e63bcdf0e5.ts} +0 -1
  145. package/test/slots/components/temp/{UnusedSlot-client-5819c279d1f8c2d808651505171a5b20a41998ef.ts → UnusedSlot-client-eba6314df240becf0b8144e8a728c9c300311c97.ts} +0 -1
  146. package/test/special-component/components/output/SpecialComponent-client.ts +0 -1
  147. package/test/special-component/components/temp/{SpecialComponent-client-752f0be79a322e8f75bfdd5adfec996d4ab35281.ts → SpecialComponent-client-87b33f7abbaa5821348ac63491021bd8a994da07.ts} +0 -1
  148. package/test/special-element/components/output/SpecialElement-client.ts +0 -1
  149. package/test/special-element/components/temp/{SpecialElement-client-f6239c04736a49add9278edfaea7804dd186e665.ts → SpecialElement-client-6c11102dc76f11f2d437d78936651fe50b8ec97e.ts} +0 -1
  150. package/test/special-head/components/output/SpecialHead-client.ts +0 -1
  151. package/test/special-head/components/temp/{SpecialHead-client-cda50f56454f7c7f0147352e53d50c4060ed2e3b.ts → SpecialHead-client-39c4f86e998309da6125f563bd4d45d89250f108.ts} +0 -1
  152. package/test/special-self/components/output/SpecialSelf-client.ts +0 -1
  153. package/test/special-self/components/temp/{SpecialSelf-client-09e93618a2318d3873b201557e2f32d5bf5e4100.ts → SpecialSelf-client-088aa4e2721c30b8be1538630250aee43fe5bd0d.ts} +0 -1
  154. package/test/style/components/output/Style-client.ts +0 -1
  155. package/test/style/components/temp/{Style-client-8ca877392f5610bc527c5577d948f5782c40bf96.ts → Style-client-1a7f59c1a65f59b76e8c196d9ebd6524a9c88b59.ts} +0 -1
  156. package/test/svg/components/output/Svg-client.ts +0 -1
  157. package/test/svg/components/temp/{Svg-client-6a213daf6df5c361de9e1c9aa7cc581bcb6356be.ts → Svg-client-822c22abd8dc029cd16551cfaad5a5b996d6d90a.ts} +0 -1
  158. package/test/switch/components/output/Switch-client.ts +0 -1
  159. package/test/switch/components/temp/{Switch-client-4cab689c9914c62d461e6aaf6beb68d15275c68f.ts → Switch-client-b818bdff1d68b371a4ddb02f2c980e2e076dbbcf.ts} +0 -1
  160. package/test/text/components/output/Text-client.ts +0 -1
  161. package/test/text/components/temp/{Text-client-4288bc38b436a5b486c1fd5a4805bd206dbff27c.ts → Text-client-5ae847f527793bc47cdc979746910e215fab7475.ts} +0 -1
  162. package/test/watch-array/components/output/ArrayAllFunctions-client.ts +0 -1
  163. package/test/watch-array/components/output/ArrayAllFunctionsUnkeyed-client.ts +0 -1
  164. package/test/watch-array/components/output/ArrayEmpty-client.ts +0 -1
  165. package/test/watch-array/components/output/ArrayEntries-client.ts +0 -1
  166. package/test/watch-array/components/output/ArrayIndexes-client.ts +0 -1
  167. package/test/watch-array/components/output/ArrayPop-client.ts +0 -1
  168. package/test/watch-array/components/output/ArrayPush-client.ts +0 -1
  169. package/test/watch-array/components/output/ArrayReassign-client.ts +0 -1
  170. package/test/watch-array/components/output/ArrayReverse-client.ts +0 -1
  171. package/test/watch-array/components/output/ArraySetObject-client.ts +0 -1
  172. package/test/watch-array/components/output/ArraySetProperty-client.ts +0 -1
  173. package/test/watch-array/components/output/ArrayShift-client.ts +0 -1
  174. package/test/watch-array/components/output/ArraySort-client.ts +0 -1
  175. package/test/watch-array/components/output/ArraySpliceAdd-client.ts +0 -1
  176. package/test/watch-array/components/output/ArraySpliceDelete-client.ts +0 -1
  177. package/test/watch-array/components/output/ArraySpliceDeleteAll-client.ts +0 -1
  178. package/test/watch-array/components/output/ArraySpliceDeleteAndAdd-client.ts +0 -1
  179. package/test/watch-array/components/output/ArraySpliceDeleteEnd-client.ts +0 -1
  180. package/test/watch-array/components/output/ArraySwap-client.ts +0 -1
  181. package/test/watch-array/components/output/ArrayUnshift-client.ts +0 -1
  182. package/test/watch-array/components/output/ArrayUpdateAssignment-client.ts +0 -1
  183. package/test/watch-array/components/temp/{ArrayPush-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts → ArrayAllFunctions-client-544d5ee7280f204fab57094bc41652d4656104aa.ts} +0 -1
  184. package/test/watch-array/components/temp/{ArrayAllFunctionsUnkeyed-client-513455af417adc9807393dbb58da507c66dde885.ts → ArrayAllFunctionsUnkeyed-client-cdea644623ae3b5c005a990d70cc22864a81b4d7.ts} +0 -1
  185. package/test/watch-array/components/temp/{ArrayEmpty-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts → ArrayEmpty-client-544d5ee7280f204fab57094bc41652d4656104aa.ts} +0 -1
  186. package/test/watch-array/components/temp/{ArrayEntries-client-cf9fe0738861c78fbd576d7f74b38c713363ee31.ts → ArrayEntries-client-c34e4ebcafc19fd07331a6637b1a21702c6b7e4c.ts} +0 -1
  187. package/test/watch-array/components/temp/{ArrayIndexes-client-2c12fa2b6d0992423b57ddb6f363b9c4c5bf525a.ts → ArrayIndexes-client-d6f07960e57bd1308a7923dc5e4b35c459c500ad.ts} +0 -1
  188. package/test/watch-array/components/temp/{ArrayPop-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts → ArrayPop-client-544d5ee7280f204fab57094bc41652d4656104aa.ts} +0 -1
  189. package/test/watch-array/components/temp/{ArrayAllFunctions-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts → ArrayPush-client-544d5ee7280f204fab57094bc41652d4656104aa.ts} +0 -1
  190. package/test/watch-array/components/temp/ArrayReassign-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  191. package/test/watch-array/components/temp/ArrayReverse-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  192. package/test/watch-array/components/temp/ArraySetObject-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  193. package/test/watch-array/components/temp/ArraySetProperty-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  194. package/test/watch-array/components/temp/ArrayShift-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  195. package/test/watch-array/components/temp/ArraySort-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  196. package/test/watch-array/components/temp/ArraySpliceAdd-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  197. package/test/watch-array/components/temp/ArraySpliceDelete-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  198. package/test/watch-array/components/temp/ArraySpliceDeleteAll-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  199. package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  200. package/test/watch-array/components/temp/ArraySpliceDeleteEnd-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  201. package/test/watch-array/components/temp/ArraySwap-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  202. package/test/watch-array/components/temp/ArrayUnshift-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  203. package/test/watch-array/components/temp/ArrayUpdateAssignment-client-544d5ee7280f204fab57094bc41652d4656104aa.ts +80 -0
  204. package/test/watch-object/components/output/WatchObject-client.ts +0 -1
  205. package/test/watch-object/components/output/WatchUndefinedPropertyChange-client.ts +0 -1
  206. package/test/watch-object/components/temp/{WatchObject-client-8f906f7d7613370e70c55a122774e122cdd55bff.ts → WatchObject-client-7068d8e33606a7a3e55a957fcab43bbc6e52d9ce.ts} +0 -1
  207. package/test/watch-object/components/temp/{WatchUndefinedPropertyChange-client-bce2c42e17dedce203b71228966e20056b82baba.ts → WatchUndefinedPropertyChange-client-6c9b07c9055c68e1123a0ca0e34ffaf0bcfe0095.ts} +0 -1
  208. package/dist/formatText-CsMp2ujg.d.cts +0 -11
  209. package/dist/formatText-CsMp2ujg.d.cts.map +0 -1
  210. package/dist/formatText-nmPEE0iI.d.ts +0 -11
  211. package/dist/formatText-nmPEE0iI.d.ts.map +0 -1
  212. package/test/watch-array/components/temp/ArrayReassign-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  213. package/test/watch-array/components/temp/ArrayReverse-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  214. package/test/watch-array/components/temp/ArraySetObject-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  215. package/test/watch-array/components/temp/ArraySetProperty-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  216. package/test/watch-array/components/temp/ArrayShift-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  217. package/test/watch-array/components/temp/ArraySort-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  218. package/test/watch-array/components/temp/ArraySpliceAdd-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  219. package/test/watch-array/components/temp/ArraySpliceDelete-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  220. package/test/watch-array/components/temp/ArraySpliceDeleteAll-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  221. package/test/watch-array/components/temp/ArraySpliceDeleteAndAdd-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  222. package/test/watch-array/components/temp/ArraySpliceDeleteEnd-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  223. package/test/watch-array/components/temp/ArraySwap-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  224. package/test/watch-array/components/temp/ArrayUnshift-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
  225. package/test/watch-array/components/temp/ArrayUpdateAssignment-client-83720b9fb76de7976be6cdb86d122cb097f16821.ts +0 -81
@@ -0,0 +1,11 @@
1
+ //#region src/render/buildClasses.d.ts
2
+ declare function buildClasses(value: string | Record<string, string> | Array<string | Record<string, string> | undefined> | undefined, styleHash?: string): string;
3
+ //#endregion
4
+ //#region src/render/buildStyles.d.ts
5
+ declare function buildStyles(value: string | Record<string, string> | Array<string> | undefined): string;
6
+ //#endregion
7
+ //#region src/render/formatText.d.ts
8
+ declare function formatText(value: any): string;
9
+ //#endregion
10
+ export { buildStyles as n, buildClasses as r, formatText as t };
11
+ //# sourceMappingURL=formatText-A8G0kbCI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatText-A8G0kbCI.d.ts","names":[],"sources":["../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/formatText.ts"],"sourcesContent":[],"mappings":";iBAAwB,YAAA,iBAGpB,yBACA,eAAe;;;iBCJK,WAAA,iBACP,yBAAyB;;;iBCDlB,UAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"formatText-Ck04q8_X.cjs","names":["classes: string[]","styles: string[]"],"sources":["../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/formatText.ts"],"sourcesContent":["export default function buildClasses(value: unknown, styleHash?: string): string {\n\tif (typeof value === \"string\") {\n\t\tif (styleHash !== undefined) {\n\t\t\tvalue += \" \" + styleHash;\n\t\t}\n\t\treturn value;\n\t} else {\n\t\tlet classes: string[] = [];\n\t\tgatherNames(\"\", value, classes);\n\t\tif (styleHash !== undefined) {\n\t\t\tclasses.push(styleHash);\n\t\t}\n\t\treturn classes.join(\" \");\n\t}\n}\n\nfunction gatherNames(name: unknown, value: unknown, classes: string[]) {\n\tif (value) {\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (let v of value) {\n\t\t\t\tgatherNames(v, v, classes);\n\t\t\t}\n\t\t} else if (typeof value === \"object\") {\n\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\tgatherNames(n, v, classes);\n\t\t\t}\n\t\t} else {\n\t\t\tclasses.push(name as string);\n\t\t}\n\t}\n}\n","export default function buildStyles(value: unknown): string {\n\tif (typeof value === \"string\") {\n\t\treturn value;\n\t} else {\n\t\tlet styles: string[] = [];\n\t\tif (value) {\n\t\t\tif (Array.isArray(value)) {\n\t\t\t\tfor (let v of value) {\n\t\t\t\t\tstyles.push(v);\n\t\t\t\t}\n\t\t\t} else if (typeof value === \"object\") {\n\t\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\t\tstyles.push(`${n}: ${v}`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn styles.join(\"; \");\n\t}\n}\n","export default function formatText(value: any): string {\n\treturn value ?? \"\";\n}\n"],"mappings":";;AAAA,SAAwB,aAAa,OAAgB,WAA4B;AAChF,KAAI,OAAO,UAAU,UAAU;AAC9B,MAAI,cAAc,OACjB,UAAS,MAAM;AAEhB,SAAO;QACD;EACN,IAAIA,UAAoB,EAAE;AAC1B,cAAY,IAAI,OAAO,QAAQ;AAC/B,MAAI,cAAc,OACjB,SAAQ,KAAK,UAAU;AAExB,SAAO,QAAQ,KAAK,IAAI;;;AAI1B,SAAS,YAAY,MAAe,OAAgB,SAAmB;AACtE,KAAI,MACH,KAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,IAAI,KAAK,MACb,aAAY,GAAG,GAAG,QAAQ;UAEjB,OAAO,UAAU,SAC3B,MAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,MAAM,CACvC,aAAY,GAAG,GAAG,QAAQ;KAG3B,SAAQ,KAAK,KAAe;;;;;AC3B/B,SAAwB,YAAY,OAAwB;AAC3D,KAAI,OAAO,UAAU,SACpB,QAAO;MACD;EACN,IAAIC,SAAmB,EAAE;AACzB,MAAI,OACH;OAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,IAAI,KAAK,MACb,QAAO,KAAK,EAAE;YAEL,OAAO,UAAU,SAC3B,MAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,MAAM,CACvC,QAAO,KAAK,GAAG,EAAE,IAAI,IAAI;;AAI5B,SAAO,OAAO,KAAK,KAAK;;;;;;AChB1B,SAAwB,WAAW,OAAoB;AACtD,QAAO,SAAS"}
1
+ {"version":3,"file":"formatText-Ck04q8_X.cjs","names":["classes: string[]","styles: string[]"],"sources":["../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/formatText.ts"],"sourcesContent":["export default function buildClasses(\n\tvalue:\n\t\t| string\n\t\t| Record<string, string>\n\t\t| Array<string | Record<string, string> | undefined>\n\t\t| undefined,\n\tstyleHash?: string,\n): string {\n\tif (typeof value === \"string\") {\n\t\tif (styleHash !== undefined) {\n\t\t\tvalue += \" \" + styleHash;\n\t\t}\n\t\treturn value;\n\t} else {\n\t\tlet classes: string[] = [];\n\t\tgatherNames(\"\", value, classes);\n\t\tif (styleHash !== undefined) {\n\t\t\tclasses.push(styleHash);\n\t\t}\n\t\treturn classes.join(\" \");\n\t}\n}\n\nfunction gatherNames(\n\tname: string,\n\tvalue:\n\t\t| string\n\t\t| Record<string, string>\n\t\t| Array<string | Record<string, string> | undefined>\n\t\t| undefined,\n\tclasses: string[],\n) {\n\tif (value) {\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (let v of value) {\n\t\t\t\tgatherNames(v as string, v, classes);\n\t\t\t}\n\t\t} else if (typeof value === \"object\") {\n\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\tgatherNames(n, v, classes);\n\t\t\t}\n\t\t} else {\n\t\t\tclasses.push(name);\n\t\t}\n\t}\n}\n","export default function buildStyles(\n\tvalue: string | Record<string, string> | Array<string> | undefined,\n): string {\n\tif (typeof value === \"string\") {\n\t\treturn value;\n\t} else {\n\t\tlet styles: string[] = [];\n\t\tif (value) {\n\t\t\tif (Array.isArray(value)) {\n\t\t\t\tfor (let v of value) {\n\t\t\t\t\tstyles.push(v);\n\t\t\t\t}\n\t\t\t} else if (typeof value === \"object\") {\n\t\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\t\tstyles.push(`${n}: ${v}`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn styles.join(\"; \");\n\t}\n}\n","export default function formatText(value: any): string {\n\treturn value ?? \"\";\n}\n"],"mappings":";;AAAA,SAAwB,aACvB,OAKA,WACS;AACT,KAAI,OAAO,UAAU,UAAU;AAC9B,MAAI,cAAc,OACjB,UAAS,MAAM;AAEhB,SAAO;QACD;EACN,IAAIA,UAAoB,EAAE;AAC1B,cAAY,IAAI,OAAO,QAAQ;AAC/B,MAAI,cAAc,OACjB,SAAQ,KAAK,UAAU;AAExB,SAAO,QAAQ,KAAK,IAAI;;;AAI1B,SAAS,YACR,MACA,OAKA,SACC;AACD,KAAI,MACH,KAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,IAAI,KAAK,MACb,aAAY,GAAa,GAAG,QAAQ;UAE3B,OAAO,UAAU,SAC3B,MAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,MAAM,CACvC,aAAY,GAAG,GAAG,QAAQ;KAG3B,SAAQ,KAAK,KAAK;;;;;AC1CrB,SAAwB,YACvB,OACS;AACT,KAAI,OAAO,UAAU,SACpB,QAAO;MACD;EACN,IAAIC,SAAmB,EAAE;AACzB,MAAI,OACH;OAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,IAAI,KAAK,MACb,QAAO,KAAK,EAAE;YAEL,OAAO,UAAU,SAC3B,MAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,MAAM,CACvC,QAAO,KAAK,GAAG,EAAE,IAAI,IAAI;;AAI5B,SAAO,OAAO,KAAK,KAAK;;;;;;AClB1B,SAAwB,WAAW,OAAoB;AACtD,QAAO,SAAS"}
@@ -0,0 +1,11 @@
1
+ //#region src/render/buildClasses.d.ts
2
+ declare function buildClasses(value: string | Record<string, string> | Array<string | Record<string, string> | undefined> | undefined, styleHash?: string): string;
3
+ //#endregion
4
+ //#region src/render/buildStyles.d.ts
5
+ declare function buildStyles(value: string | Record<string, string> | Array<string> | undefined): string;
6
+ //#endregion
7
+ //#region src/render/formatText.d.ts
8
+ declare function formatText(value: any): string;
9
+ //#endregion
10
+ export { buildStyles as n, buildClasses as r, formatText as t };
11
+ //# sourceMappingURL=formatText-DNPkZ1xY.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatText-DNPkZ1xY.d.cts","names":[],"sources":["../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/formatText.ts"],"sourcesContent":[],"mappings":";iBAAwB,YAAA,iBAGpB,yBACA,eAAe;;;iBCJK,WAAA,iBACP,yBAAyB;;;iBCDlB,UAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"formatText-OyD8MNAM.js","names":["classes: string[]","styles: string[]"],"sources":["../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/formatText.ts"],"sourcesContent":["export default function buildClasses(value: unknown, styleHash?: string): string {\n\tif (typeof value === \"string\") {\n\t\tif (styleHash !== undefined) {\n\t\t\tvalue += \" \" + styleHash;\n\t\t}\n\t\treturn value;\n\t} else {\n\t\tlet classes: string[] = [];\n\t\tgatherNames(\"\", value, classes);\n\t\tif (styleHash !== undefined) {\n\t\t\tclasses.push(styleHash);\n\t\t}\n\t\treturn classes.join(\" \");\n\t}\n}\n\nfunction gatherNames(name: unknown, value: unknown, classes: string[]) {\n\tif (value) {\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (let v of value) {\n\t\t\t\tgatherNames(v, v, classes);\n\t\t\t}\n\t\t} else if (typeof value === \"object\") {\n\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\tgatherNames(n, v, classes);\n\t\t\t}\n\t\t} else {\n\t\t\tclasses.push(name as string);\n\t\t}\n\t}\n}\n","export default function buildStyles(value: unknown): string {\n\tif (typeof value === \"string\") {\n\t\treturn value;\n\t} else {\n\t\tlet styles: string[] = [];\n\t\tif (value) {\n\t\t\tif (Array.isArray(value)) {\n\t\t\t\tfor (let v of value) {\n\t\t\t\t\tstyles.push(v);\n\t\t\t\t}\n\t\t\t} else if (typeof value === \"object\") {\n\t\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\t\tstyles.push(`${n}: ${v}`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn styles.join(\"; \");\n\t}\n}\n","export default function formatText(value: any): string {\n\treturn value ?? \"\";\n}\n"],"mappings":";AAAA,SAAwB,aAAa,OAAgB,WAA4B;AAChF,KAAI,OAAO,UAAU,UAAU;AAC9B,MAAI,cAAc,OACjB,UAAS,MAAM;AAEhB,SAAO;QACD;EACN,IAAIA,UAAoB,EAAE;AAC1B,cAAY,IAAI,OAAO,QAAQ;AAC/B,MAAI,cAAc,OACjB,SAAQ,KAAK,UAAU;AAExB,SAAO,QAAQ,KAAK,IAAI;;;AAI1B,SAAS,YAAY,MAAe,OAAgB,SAAmB;AACtE,KAAI,MACH,KAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,IAAI,KAAK,MACb,aAAY,GAAG,GAAG,QAAQ;UAEjB,OAAO,UAAU,SAC3B,MAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,MAAM,CACvC,aAAY,GAAG,GAAG,QAAQ;KAG3B,SAAQ,KAAK,KAAe;;;;;AC3B/B,SAAwB,YAAY,OAAwB;AAC3D,KAAI,OAAO,UAAU,SACpB,QAAO;MACD;EACN,IAAIC,SAAmB,EAAE;AACzB,MAAI,OACH;OAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,IAAI,KAAK,MACb,QAAO,KAAK,EAAE;YAEL,OAAO,UAAU,SAC3B,MAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,MAAM,CACvC,QAAO,KAAK,GAAG,EAAE,IAAI,IAAI;;AAI5B,SAAO,OAAO,KAAK,KAAK;;;;;;AChB1B,SAAwB,WAAW,OAAoB;AACtD,QAAO,SAAS"}
1
+ {"version":3,"file":"formatText-OyD8MNAM.js","names":["classes: string[]","styles: string[]"],"sources":["../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/formatText.ts"],"sourcesContent":["export default function buildClasses(\n\tvalue:\n\t\t| string\n\t\t| Record<string, string>\n\t\t| Array<string | Record<string, string> | undefined>\n\t\t| undefined,\n\tstyleHash?: string,\n): string {\n\tif (typeof value === \"string\") {\n\t\tif (styleHash !== undefined) {\n\t\t\tvalue += \" \" + styleHash;\n\t\t}\n\t\treturn value;\n\t} else {\n\t\tlet classes: string[] = [];\n\t\tgatherNames(\"\", value, classes);\n\t\tif (styleHash !== undefined) {\n\t\t\tclasses.push(styleHash);\n\t\t}\n\t\treturn classes.join(\" \");\n\t}\n}\n\nfunction gatherNames(\n\tname: string,\n\tvalue:\n\t\t| string\n\t\t| Record<string, string>\n\t\t| Array<string | Record<string, string> | undefined>\n\t\t| undefined,\n\tclasses: string[],\n) {\n\tif (value) {\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (let v of value) {\n\t\t\t\tgatherNames(v as string, v, classes);\n\t\t\t}\n\t\t} else if (typeof value === \"object\") {\n\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\tgatherNames(n, v, classes);\n\t\t\t}\n\t\t} else {\n\t\t\tclasses.push(name);\n\t\t}\n\t}\n}\n","export default function buildStyles(\n\tvalue: string | Record<string, string> | Array<string> | undefined,\n): string {\n\tif (typeof value === \"string\") {\n\t\treturn value;\n\t} else {\n\t\tlet styles: string[] = [];\n\t\tif (value) {\n\t\t\tif (Array.isArray(value)) {\n\t\t\t\tfor (let v of value) {\n\t\t\t\t\tstyles.push(v);\n\t\t\t\t}\n\t\t\t} else if (typeof value === \"object\") {\n\t\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\t\tstyles.push(`${n}: ${v}`);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn styles.join(\"; \");\n\t}\n}\n","export default function formatText(value: any): string {\n\treturn value ?? \"\";\n}\n"],"mappings":";AAAA,SAAwB,aACvB,OAKA,WACS;AACT,KAAI,OAAO,UAAU,UAAU;AAC9B,MAAI,cAAc,OACjB,UAAS,MAAM;AAEhB,SAAO;QACD;EACN,IAAIA,UAAoB,EAAE;AAC1B,cAAY,IAAI,OAAO,QAAQ;AAC/B,MAAI,cAAc,OACjB,SAAQ,KAAK,UAAU;AAExB,SAAO,QAAQ,KAAK,IAAI;;;AAI1B,SAAS,YACR,MACA,OAKA,SACC;AACD,KAAI,MACH,KAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,IAAI,KAAK,MACb,aAAY,GAAa,GAAG,QAAQ;UAE3B,OAAO,UAAU,SAC3B,MAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,MAAM,CACvC,aAAY,GAAG,GAAG,QAAQ;KAG3B,SAAQ,KAAK,KAAK;;;;;AC1CrB,SAAwB,YACvB,OACS;AACT,KAAI,OAAO,UAAU,SACpB,QAAO;MACD;EACN,IAAIC,SAAmB,EAAE;AACzB,MAAI,OACH;OAAI,MAAM,QAAQ,MAAM,CACvB,MAAK,IAAI,KAAK,MACb,QAAO,KAAK,EAAE;YAEL,OAAO,UAAU,SAC3B,MAAK,IAAI,CAAC,GAAG,MAAM,OAAO,QAAQ,MAAM,CACvC,QAAO,KAAK,GAAG,EAAE,IAAI,IAAI;;AAI5B,SAAO,OAAO,KAAK,KAAK;;;;;;AClB1B,SAAwB,WAAW,OAAoB;AACtD,QAAO,SAAS"}
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as SlotRender, t as Component } from "./Component-BDUCwkBQ.cjs";
2
2
  import { t as Cleanup } from "./Cleanup-BGQ5zaxE.cjs";
3
3
  import { n as Effect, t as Region } from "./Region-Cf7OeBIQ.cjs";
4
- import { n as buildStyles, r as buildClasses, t as formatText } from "./formatText-CsMp2ujg.cjs";
4
+ import { n as buildStyles, r as buildClasses, t as formatText } from "./formatText-DNPkZ1xY.cjs";
5
5
 
6
6
  //#region src/types/Animation.d.ts
7
7
  interface Animation {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as SlotRender, t as Component } from "./Component-JVwSemf-.js";
2
2
  import { t as Cleanup } from "./Cleanup-Ca8IspaG.js";
3
3
  import { n as Effect, t as Region } from "./Region-BrsZLZUe.js";
4
- import { n as buildStyles, r as buildClasses, t as formatText } from "./formatText-nmPEE0iI.js";
4
+ import { n as buildStyles, r as buildClasses, t as formatText } from "./formatText-A8G0kbCI.js";
5
5
 
6
6
  //#region src/types/Animation.d.ts
7
7
  interface Animation {
package/dist/ssr.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as Cleanup } from "./Cleanup-BGQ5zaxE.cjs";
2
- import { n as buildStyles, r as buildClasses, t as formatText } from "./formatText-CsMp2ujg.cjs";
2
+ import { n as buildStyles, r as buildClasses, t as formatText } from "./formatText-DNPkZ1xY.cjs";
3
3
 
4
4
  //#region src/render/formatAttributeText.d.ts
5
5
  declare function formatAttributeText(value: any): string;
package/dist/ssr.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as Cleanup } from "./Cleanup-Ca8IspaG.js";
2
- import { n as buildStyles, r as buildClasses, t as formatText } from "./formatText-nmPEE0iI.js";
2
+ import { n as buildStyles, r as buildClasses, t as formatText } from "./formatText-A8G0kbCI.js";
3
3
 
4
4
  //#region src/render/formatAttributeText.d.ts
5
5
  declare function formatAttributeText(value: any): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@torpor/view",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "Torpor's view library, for writing and mounting components",
5
5
  "type": "module",
6
6
  "exports": {
@@ -108,7 +108,7 @@ function buildTemplate(
108
108
  if (/\$run\b/.test(script)) imports.add("$run");
109
109
  if (/\$mount\b/.test(script)) imports.add("$mount");
110
110
  if (/\$unwrap\b/.test(script)) imports.add("$unwrap");
111
- /*if (/\$peek\b/.test(script))*/ imports.add("$peek");
111
+ if (/\$peek\b/.test(script)) imports.add("$peek");
112
112
  if (/\$batch\b/.test(script)) imports.add("$batch");
113
113
 
114
114
  let currentIndex = 0;
@@ -1,4 +1,11 @@
1
- export default function buildClasses(value: unknown, styleHash?: string): string {
1
+ export default function buildClasses(
2
+ value:
3
+ | string
4
+ | Record<string, string>
5
+ | Array<string | Record<string, string> | undefined>
6
+ | undefined,
7
+ styleHash?: string,
8
+ ): string {
2
9
  if (typeof value === "string") {
3
10
  if (styleHash !== undefined) {
4
11
  value += " " + styleHash;
@@ -14,18 +21,26 @@ export default function buildClasses(value: unknown, styleHash?: string): string
14
21
  }
15
22
  }
16
23
 
17
- function gatherNames(name: unknown, value: unknown, classes: string[]) {
24
+ function gatherNames(
25
+ name: string,
26
+ value:
27
+ | string
28
+ | Record<string, string>
29
+ | Array<string | Record<string, string> | undefined>
30
+ | undefined,
31
+ classes: string[],
32
+ ) {
18
33
  if (value) {
19
34
  if (Array.isArray(value)) {
20
35
  for (let v of value) {
21
- gatherNames(v, v, classes);
36
+ gatherNames(v as string, v, classes);
22
37
  }
23
38
  } else if (typeof value === "object") {
24
39
  for (let [n, v] of Object.entries(value)) {
25
40
  gatherNames(n, v, classes);
26
41
  }
27
42
  } else {
28
- classes.push(name as string);
43
+ classes.push(name);
29
44
  }
30
45
  }
31
46
  }
@@ -1,4 +1,6 @@
1
- export default function buildStyles(value: unknown): string {
1
+ export default function buildStyles(
2
+ value: string | Record<string, string> | Array<string> | undefined,
3
+ ): string {
2
4
  if (typeof value === "string") {
3
5
  return value;
4
6
  } else {
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type SlotRender from "../../../../src/types/SlotRender";
4
3
  import t_add_fragment from "../../../../src/render/addFragment";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type SlotRender from "../../../../src/types/SlotRender";
4
3
  import t_add_fragment from "../../../../src/render/addFragment";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type SlotRender from "../../../../src/types/SlotRender";
4
3
  import t_add_fragment from "../../../../src/render/addFragment";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type SlotRender from "../../../../src/types/SlotRender";
4
3
  import t_add_fragment from "../../../../src/render/addFragment";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_fragment from "../../../../src/render/getFragment";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_fragment from "../../../../src/render/getFragment";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type SlotRender from "../../../../src/types/SlotRender";
4
3
  import t_add_fragment from "../../../../src/render/addFragment";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type SlotRender from "../../../../src/types/SlotRender";
4
3
  import t_add_fragment from "../../../../src/render/addFragment";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type SlotRender from "../../../../src/types/SlotRender";
4
3
  import t_add_fragment from "../../../../src/render/addFragment";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type SlotRender from "../../../../src/types/SlotRender";
4
3
  import t_add_fragment from "../../../../src/render/addFragment";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import $watch from "../../../../src/watch/$watch";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,5 +1,4 @@
1
1
  import $mount from "../../../../src/watch/$mount";
2
- import $peek from "../../../../src/watch/$peek";
3
2
  import type SlotRender from "../../../../src/types/SlotRender";
4
3
  import t_add_fragment from "../../../../src/render/addFragment";
5
4
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import $run from "../../../../src/watch/$run";
3
2
  import type ListItem from "../../../../src/types/ListItem";
4
3
  import type SlotRender from "../../../../src/types/SlotRender";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";
@@ -1,4 +1,3 @@
1
- import $peek from "../../../../src/watch/$peek";
2
1
  import type SlotRender from "../../../../src/types/SlotRender";
3
2
  import t_add_fragment from "../../../../src/render/addFragment";
4
3
  import t_anchor from "../../../../src/render/nodeAnchor";