nuxt-intlayer 6.1.6 → 7.0.0-canary.2

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 (268) hide show
  1. package/dist/cjs/_virtual/rolldown_runtime.cjs +40 -0
  2. package/dist/cjs/index.cjs +7 -25
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/cjs/module.cjs +73 -93
  5. package/dist/cjs/module.cjs.map +1 -1
  6. package/dist/cjs/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.cjs +12494 -0
  7. package/dist/cjs/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.cjs.map +1 -0
  8. package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs +2353 -0
  9. package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.cjs.map +1 -0
  10. package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs +4751 -0
  11. package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.cjs.map +1 -0
  12. package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.cjs +18 -0
  13. package/dist/cjs/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.cjs.map +1 -0
  14. package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs +660 -0
  15. package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.cjs.map +1 -0
  16. package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs +442 -0
  17. package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.cjs.map +1 -0
  18. package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.cjs +18 -0
  19. package/dist/cjs/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.cjs.map +1 -0
  20. package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.cjs +22 -0
  21. package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.cjs.map +1 -0
  22. package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.cjs +1457 -0
  23. package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.cjs.map +1 -0
  24. package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.cjs +18 -0
  25. package/dist/cjs/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.cjs.map +1 -0
  26. package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.cjs +870 -0
  27. package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.cjs.map +1 -0
  28. package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.cjs +4204 -0
  29. package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.cjs.map +1 -0
  30. package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.cjs +18 -0
  31. package/dist/cjs/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.cjs.map +1 -0
  32. package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.cjs +1373 -0
  33. package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.cjs.map +1 -0
  34. package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.cjs +1270 -0
  35. package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.cjs.map +1 -0
  36. package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.cjs +18 -0
  37. package/dist/cjs/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.cjs.map +1 -0
  38. package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.cjs +44 -0
  39. package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.cjs.map +1 -0
  40. package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.cjs +491 -0
  41. package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.cjs.map +1 -0
  42. package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.cjs +18 -0
  43. package/dist/cjs/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.cjs.map +1 -0
  44. package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.cjs +474 -0
  45. package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.cjs.map +1 -0
  46. package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.cjs +82 -0
  47. package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.cjs.map +1 -0
  48. package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.cjs +18 -0
  49. package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.cjs.map +1 -0
  50. package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.cjs +18 -0
  51. package/dist/cjs/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.cjs.map +1 -0
  52. package/dist/cjs/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.cjs +255 -0
  53. package/dist/cjs/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.cjs.map +1 -0
  54. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.cjs +103 -0
  55. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.cjs.map +1 -0
  56. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.cjs +76 -0
  57. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.cjs.map +1 -0
  58. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.cjs +44 -0
  59. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.cjs.map +1 -0
  60. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.cjs +71 -0
  61. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.cjs.map +1 -0
  62. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.cjs +80 -0
  63. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.cjs.map +1 -0
  64. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.cjs +92 -0
  65. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.cjs.map +1 -0
  66. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.cjs +791 -0
  67. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.cjs.map +1 -0
  68. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.cjs +298 -0
  69. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.cjs.map +1 -0
  70. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.cjs +296 -0
  71. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.cjs.map +1 -0
  72. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.cjs +355 -0
  73. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.cjs.map +1 -0
  74. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.cjs +20 -0
  75. package/dist/cjs/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.cjs.map +1 -0
  76. package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.cjs +10 -0
  77. package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.cjs.map +1 -0
  78. package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.cjs +18 -0
  79. package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.cjs.map +1 -0
  80. package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.cjs +11 -0
  81. package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.cjs.map +1 -0
  82. package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.cjs +28 -0
  83. package/dist/cjs/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.cjs.map +1 -0
  84. package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.cjs +65 -0
  85. package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.cjs.map +1 -0
  86. package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.cjs +55 -0
  87. package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.cjs.map +1 -0
  88. package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.cjs +18 -0
  89. package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.cjs.map +1 -0
  90. package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.cjs +15 -0
  91. package/dist/cjs/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.cjs.map +1 -0
  92. package/dist/cjs/packages/@intlayer/dictionaries-entry/dist/esm/index.cjs +25 -0
  93. package/dist/cjs/packages/@intlayer/dictionaries-entry/dist/esm/index.cjs.map +1 -0
  94. package/dist/cjs/packages/@intlayer/editor/dist/esm/compareUrls.cjs +36 -0
  95. package/dist/cjs/packages/@intlayer/editor/dist/esm/compareUrls.cjs.map +1 -0
  96. package/dist/cjs/packages/@intlayer/editor/dist/esm/messagesKeys.cjs +19 -0
  97. package/dist/cjs/packages/@intlayer/editor/dist/esm/messagesKeys.cjs.map +1 -0
  98. package/dist/cjs/packages/vue-intlayer/dist/esm/client/installIntlayer.cjs +31 -0
  99. package/dist/cjs/packages/vue-intlayer/dist/esm/client/installIntlayer.cjs.map +1 -0
  100. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/communicator.cjs +39 -0
  101. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/communicator.cjs.map +1 -0
  102. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/createSharedComposable.cjs +17 -0
  103. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/createSharedComposable.cjs.map +1 -0
  104. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/dictionariesRecord.cjs +38 -0
  105. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/dictionariesRecord.cjs.map +1 -0
  106. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/editedContent.cjs +46 -0
  107. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/editedContent.cjs.map +1 -0
  108. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/editorEnabled.cjs +44 -0
  109. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/editorEnabled.cjs.map +1 -0
  110. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/focusDictionary.cjs +38 -0
  111. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/focusDictionary.cjs.map +1 -0
  112. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/installIntlayerEditor.cjs +26 -0
  113. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/installIntlayerEditor.cjs.map +1 -0
  114. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/useCrossFrameMessageListener.cjs +35 -0
  115. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/useCrossFrameMessageListener.cjs.map +1 -0
  116. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/useCrossFrameState.cjs +57 -0
  117. package/dist/cjs/packages/vue-intlayer/dist/esm/editor/useCrossFrameState.cjs.map +1 -0
  118. package/dist/cjs/runtime/html-lang.cjs +18 -32
  119. package/dist/cjs/runtime/html-lang.cjs.map +1 -1
  120. package/dist/cjs/runtime/intlayer-plugin.cjs +34 -38
  121. package/dist/cjs/runtime/intlayer-plugin.cjs.map +1 -1
  122. package/dist/esm/_virtual/rolldown_runtime.mjs +38 -0
  123. package/dist/esm/index.mjs +6 -4
  124. package/dist/esm/index.mjs.map +1 -1
  125. package/dist/esm/module.mjs +62 -63
  126. package/dist/esm/module.mjs.map +1 -1
  127. package/dist/esm/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.mjs +12491 -0
  128. package/dist/esm/node_modules/.bun/@babel_parser@7.28.4/node_modules/@babel/parser/lib/index.mjs.map +1 -0
  129. package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.mjs +2350 -0
  130. package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.mjs.map +1 -0
  131. package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.mjs +4748 -0
  132. package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.mjs.map +1 -0
  133. package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.mjs +15 -0
  134. package/dist/esm/node_modules/.bun/@vue_compiler-core@3.5.22/node_modules/@vue/compiler-core/index.mjs.map +1 -0
  135. package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.mjs +657 -0
  136. package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.mjs.map +1 -0
  137. package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.mjs +439 -0
  138. package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.mjs.map +1 -0
  139. package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.mjs +15 -0
  140. package/dist/esm/node_modules/.bun/@vue_compiler-dom@3.5.22/node_modules/@vue/compiler-dom/index.mjs.map +1 -0
  141. package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.mjs +19 -0
  142. package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.mjs.map +1 -0
  143. package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.mjs +1454 -0
  144. package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.mjs.map +1 -0
  145. package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs +1312 -0
  146. package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs.map +1 -0
  147. package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.mjs +15 -0
  148. package/dist/esm/node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/index.mjs.map +1 -0
  149. package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.mjs +867 -0
  150. package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.mjs.map +1 -0
  151. package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.mjs +4201 -0
  152. package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.mjs.map +1 -0
  153. package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs +995 -0
  154. package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs.map +1 -0
  155. package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.mjs +15 -0
  156. package/dist/esm/node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/index.mjs.map +1 -0
  157. package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.mjs +1370 -0
  158. package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.mjs.map +1 -0
  159. package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.mjs +1267 -0
  160. package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.mjs.map +1 -0
  161. package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.mjs +15 -0
  162. package/dist/esm/node_modules/.bun/@vue_runtime-dom@3.5.22/node_modules/@vue/runtime-dom/index.mjs.map +1 -0
  163. package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.mjs +41 -0
  164. package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.mjs.map +1 -0
  165. package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.mjs +488 -0
  166. package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.cjs.prod.mjs.map +1 -0
  167. package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.esm-bundler.mjs +77 -0
  168. package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/dist/shared.esm-bundler.mjs.map +1 -0
  169. package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.mjs +15 -0
  170. package/dist/esm/node_modules/.bun/@vue_shared@3.5.22/node_modules/@vue/shared/index.mjs.map +1 -0
  171. package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.mjs +471 -0
  172. package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode.mjs.map +1 -0
  173. package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.mjs +79 -0
  174. package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/decode_codepoint.mjs.map +1 -0
  175. package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.mjs +15 -0
  176. package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.mjs.map +1 -0
  177. package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.mjs +15 -0
  178. package/dist/esm/node_modules/.bun/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.mjs.map +1 -0
  179. package/dist/esm/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.mjs +252 -0
  180. package/dist/esm/node_modules/.bun/estree-walker@2.0.2/node_modules/estree-walker/dist/umd/estree-walker.mjs.map +1 -0
  181. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.mjs +100 -0
  182. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/array-set.mjs.map +1 -0
  183. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.mjs +73 -0
  184. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64-vlq.mjs.map +1 -0
  185. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.mjs +41 -0
  186. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/base64.mjs.map +1 -0
  187. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.mjs +68 -0
  188. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/binary-search.mjs.map +1 -0
  189. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.mjs +77 -0
  190. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/mapping-list.mjs.map +1 -0
  191. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.mjs +89 -0
  192. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/quick-sort.mjs.map +1 -0
  193. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.mjs +788 -0
  194. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-consumer.mjs.map +1 -0
  195. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.mjs +295 -0
  196. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-map-generator.mjs.map +1 -0
  197. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.mjs +293 -0
  198. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/source-node.mjs.map +1 -0
  199. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.mjs +352 -0
  200. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/lib/util.mjs.map +1 -0
  201. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.mjs +17 -0
  202. package/dist/esm/node_modules/.bun/source-map-js@1.2.1/node_modules/source-map-js/source-map.mjs.map +1 -0
  203. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/native.mjs +7 -0
  204. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/native.mjs.map +1 -0
  205. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/rng.mjs +14 -0
  206. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/rng.mjs.map +1 -0
  207. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/stringify.mjs +10 -0
  208. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/stringify.mjs.map +1 -0
  209. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/v4.mjs +28 -0
  210. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/v4.mjs.map +1 -0
  211. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.mjs +8 -0
  212. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/native.mjs.map +1 -0
  213. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.mjs +16 -0
  214. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/rng.mjs.map +1 -0
  215. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.mjs +10 -0
  216. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/stringify.mjs.map +1 -0
  217. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.mjs +28 -0
  218. package/dist/esm/node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist-node/v4.mjs.map +1 -0
  219. package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.mjs +62 -0
  220. package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.mjs.map +1 -0
  221. package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.mjs +52 -0
  222. package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.cjs.prod.mjs.map +1 -0
  223. package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs +12 -0
  224. package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs.map +1 -0
  225. package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.mjs +15 -0
  226. package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index.mjs.map +1 -0
  227. package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.mjs +10 -0
  228. package/dist/esm/node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/index2.mjs.map +1 -0
  229. package/dist/esm/packages/@intlayer/dictionaries-entry/dist/esm/index.mjs +20 -0
  230. package/dist/esm/packages/@intlayer/dictionaries-entry/dist/esm/index.mjs.map +1 -0
  231. package/dist/esm/packages/@intlayer/editor/dist/esm/compareUrls.mjs +35 -0
  232. package/dist/esm/packages/@intlayer/editor/dist/esm/compareUrls.mjs.map +1 -0
  233. package/dist/esm/packages/@intlayer/editor/dist/esm/messagesKeys.mjs +18 -0
  234. package/dist/esm/packages/@intlayer/editor/dist/esm/messagesKeys.mjs.map +1 -0
  235. package/dist/esm/packages/vue-intlayer/dist/esm/client/installIntlayer.mjs +28 -0
  236. package/dist/esm/packages/vue-intlayer/dist/esm/client/installIntlayer.mjs.map +1 -0
  237. package/dist/esm/packages/vue-intlayer/dist/esm/editor/communicator.mjs +38 -0
  238. package/dist/esm/packages/vue-intlayer/dist/esm/editor/communicator.mjs.map +1 -0
  239. package/dist/esm/packages/vue-intlayer/dist/esm/editor/createSharedComposable.mjs +18 -0
  240. package/dist/esm/packages/vue-intlayer/dist/esm/editor/createSharedComposable.mjs.map +1 -0
  241. package/dist/esm/packages/vue-intlayer/dist/esm/editor/dictionariesRecord.mjs +40 -0
  242. package/dist/esm/packages/vue-intlayer/dist/esm/editor/dictionariesRecord.mjs.map +1 -0
  243. package/dist/esm/packages/vue-intlayer/dist/esm/editor/editedContent.mjs +46 -0
  244. package/dist/esm/packages/vue-intlayer/dist/esm/editor/editedContent.mjs.map +1 -0
  245. package/dist/esm/packages/vue-intlayer/dist/esm/editor/editorEnabled.mjs +44 -0
  246. package/dist/esm/packages/vue-intlayer/dist/esm/editor/editorEnabled.mjs.map +1 -0
  247. package/dist/esm/packages/vue-intlayer/dist/esm/editor/focusDictionary.mjs +40 -0
  248. package/dist/esm/packages/vue-intlayer/dist/esm/editor/focusDictionary.mjs.map +1 -0
  249. package/dist/esm/packages/vue-intlayer/dist/esm/editor/installIntlayerEditor.mjs +24 -0
  250. package/dist/esm/packages/vue-intlayer/dist/esm/editor/installIntlayerEditor.mjs.map +1 -0
  251. package/dist/esm/packages/vue-intlayer/dist/esm/editor/useCrossFrameMessageListener.mjs +37 -0
  252. package/dist/esm/packages/vue-intlayer/dist/esm/editor/useCrossFrameMessageListener.mjs.map +1 -0
  253. package/dist/esm/packages/vue-intlayer/dist/esm/editor/useCrossFrameState.mjs +59 -0
  254. package/dist/esm/packages/vue-intlayer/dist/esm/editor/useCrossFrameState.mjs.map +1 -0
  255. package/dist/esm/runtime/html-lang.mjs +11 -9
  256. package/dist/esm/runtime/html-lang.mjs.map +1 -1
  257. package/dist/esm/runtime/intlayer-plugin.mjs +28 -15
  258. package/dist/esm/runtime/intlayer-plugin.mjs.map +1 -1
  259. package/dist/types/index.d.ts +2 -3
  260. package/dist/types/module.d.ts +6 -2
  261. package/dist/types/module.d.ts.map +1 -1
  262. package/dist/types/runtime/html-lang.d.ts +3 -1
  263. package/dist/types/runtime/html-lang.d.ts.map +1 -1
  264. package/dist/types/runtime/intlayer-plugin.d.ts +3 -1
  265. package/dist/types/runtime/intlayer-plugin.d.ts.map +1 -1
  266. package/package.json +37 -43
  267. package/LICENSE +0 -202
  268. package/dist/types/index.d.ts.map +0 -1
@@ -0,0 +1,38 @@
1
+ import { reactive } from "../../../../../node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
2
+ import { inject } from "../../../../../node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
3
+ import "../../../../../node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
4
+ import v4_default from "../../../../../node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/v4.mjs";
5
+ import a from "@intlayer/config/built";
6
+
7
+ //#region ../vue-intlayer/dist/esm/editor/communicator.mjs
8
+ const { editor: n } = a, o = {
9
+ postMessage: () => null,
10
+ allowedOrigins: [
11
+ n?.applicationURL,
12
+ n?.editorURL,
13
+ n?.cmsURL
14
+ ],
15
+ senderId: ""
16
+ };
17
+ let t = null;
18
+ const r = Symbol("Communicator"), m = (e = { postMessage: () => null }) => t || (t = reactive({
19
+ ...o,
20
+ ...e,
21
+ senderId: v4_default()
22
+ }), t), g = (e, s = { postMessage: () => null }) => {
23
+ const c = m(s);
24
+ e.provide(r, c);
25
+ }, C = () => {
26
+ try {
27
+ return inject(r, o);
28
+ } catch {
29
+ return console.warn("useCommunicator: inject can only be used in setup(). Returning default communicator."), {
30
+ postMessage: () => null,
31
+ senderId: ""
32
+ };
33
+ }
34
+ };
35
+
36
+ //#endregion
37
+ export { C, g };
38
+ //# sourceMappingURL=communicator.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"communicator.mjs","names":["i","l","a","u"],"sources":["../../../../../../../../vue-intlayer/dist/esm/editor/communicator.mjs"],"sourcesContent":["import i from \"@intlayer/config/built\";\nimport { v4 as a } from \"uuid\";\nimport { inject as u, reactive as l } from \"vue\";\nconst { editor: n } = i, o = {\n postMessage: () => null,\n allowedOrigins: [\n n?.applicationURL,\n n?.editorURL,\n n?.cmsURL\n ],\n senderId: \"\"\n};\nlet t = null;\nconst r = Symbol(\"Communicator\"), m = (e = { postMessage: () => null }) => t || (t = l({\n ...o,\n ...e,\n senderId: a()\n}), t), g = (e, s = { postMessage: () => null }) => {\n const c = m(s);\n e.provide(r, c);\n}, C = () => {\n try {\n return u(r, o);\n } catch {\n return console.warn(\n \"useCommunicator: inject can only be used in setup(). Returning default communicator.\"\n ), {\n postMessage: () => null,\n senderId: \"\"\n };\n }\n};\nexport {\n m as createCommunicator,\n g as installCommunicator,\n C as useCommunicator\n};\n"],"mappings":";;;;;;;AAGA,MAAM,EAAE,QAAQ,MAAMA,GAAG,IAAI;CAC3B,mBAAmB;CACnB,gBAAgB;EACd,GAAG;EACH,GAAG;EACH,GAAG;EACJ;CACD,UAAU;CACX;AACD,IAAI,IAAI;AACR,MAAM,IAAI,OAAO,eAAe,EAAE,KAAK,IAAI,EAAE,mBAAmB,MAAM,KAAK,MAAM,IAAIC,SAAE;CACrF,GAAG;CACH,GAAG;CACH,UAAUC,YAAG;CACd,CAAC,EAAE,IAAI,KAAK,GAAG,IAAI,EAAE,mBAAmB,MAAM,KAAK;CAClD,MAAM,IAAI,EAAE,EAAE;AACd,GAAE,QAAQ,GAAG,EAAE;GACd,UAAU;AACX,KAAI;AACF,SAAOC,OAAE,GAAG,EAAE;SACR;AACN,SAAO,QAAQ,KACb,uFACD,EAAE;GACD,mBAAmB;GACnB,UAAU;GACX"}
@@ -0,0 +1,18 @@
1
+ import { effectScope, getCurrentScope, onScopeDispose } from "../../../../../node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
2
+ import "../../../../../node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
3
+
4
+ //#region ../vue-intlayer/dist/esm/editor/createSharedComposable.mjs
5
+ function u(t) {
6
+ return getCurrentScope() ? (onScopeDispose(t), !0) : !1;
7
+ }
8
+ const a = (t) => {
9
+ let r = 0, o, e;
10
+ const s = () => {
11
+ r -= 1, e && r <= 0 && (e.stop(), o = void 0, e = void 0);
12
+ };
13
+ return ((...n) => (r += 1, e || (e = effectScope(!0), o = e.run(() => t(...n))), u(s), o));
14
+ };
15
+
16
+ //#endregion
17
+ export { a };
18
+ //# sourceMappingURL=createSharedComposable.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSharedComposable.mjs","names":["c","i","p"],"sources":["../../../../../../../../vue-intlayer/dist/esm/editor/createSharedComposable.mjs"],"sourcesContent":["import { effectScope as p, getCurrentScope as c, onScopeDispose as i } from \"vue\";\nfunction u(t) {\n return c() ? (i(t), !0) : !1;\n}\nconst a = (t) => {\n let r = 0, o, e;\n const s = () => {\n r -= 1, e && r <= 0 && (e.stop(), o = void 0, e = void 0);\n };\n return ((...n) => (r += 1, e || (e = p(!0), o = e.run(() => t(...n))), u(s), o));\n};\nexport {\n a as createSharedComposable,\n u as tryOnScopeDispose\n};\n"],"mappings":";;;;AACA,SAAS,EAAE,GAAG;AACZ,QAAOA,iBAAG,IAAIC,eAAE,EAAE,EAAE,CAAC,KAAK,CAAC;;AAE7B,MAAM,KAAK,MAAM;CACf,IAAI,IAAI,GAAG,GAAG;CACd,MAAM,UAAU;AACd,OAAK,GAAG,KAAK,KAAK,MAAM,EAAE,MAAM,EAAE,IAAI,KAAK,GAAG,IAAI,KAAK;;AAEzD,UAAS,GAAG,OAAO,KAAK,GAAG,MAAM,IAAIC,YAAE,CAAC,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE"}
@@ -0,0 +1,40 @@
1
+ import { readonly, ref } from "../../../../../node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
2
+ import { inject, watch } from "../../../../../node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
3
+ import "../../../../../node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
4
+ import { MessageKey } from "../../../../@intlayer/editor/dist/esm/messagesKeys.mjs";
5
+ import { getDictionaries } from "../../../../@intlayer/dictionaries-entry/dist/esm/index.mjs";
6
+ import { a } from "./createSharedComposable.mjs";
7
+ import { I } from "./useCrossFrameState.mjs";
8
+
9
+ //#region ../vue-intlayer/dist/esm/editor/dictionariesRecord.mjs
10
+ let t = null;
11
+ const r = Symbol("intlayerDictionariesRecord"), u = () => {
12
+ if (t) return t;
13
+ const e = ref(getDictionaries());
14
+ return t = {
15
+ localeDictionaries: readonly(e),
16
+ setLocaleDictionaries: (o) => {
17
+ e.value = o ?? {};
18
+ },
19
+ setLocaleDictionary(o) {
20
+ e.value = {
21
+ ...e.value,
22
+ [o.key]: o
23
+ };
24
+ }
25
+ }, t;
26
+ }, L = (i) => {
27
+ const e = u();
28
+ i.provide(r, e);
29
+ }, _ = a(() => {
30
+ const i = inject(r);
31
+ if (!i) throw new Error("DictionariesRecord state not found");
32
+ const [e, o] = I(MessageKey.INTLAYER_LOCALE_DICTIONARIES_CHANGED, void 0);
33
+ watch(i.localeDictionaries, (c) => {
34
+ o(c);
35
+ }, { immediate: !0 });
36
+ });
37
+
38
+ //#endregion
39
+ export { L };
40
+ //# sourceMappingURL=dictionariesRecord.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionariesRecord.mjs","names":["s","n","l","d","D","R","a"],"sources":["../../../../../../../../vue-intlayer/dist/esm/editor/dictionariesRecord.mjs"],"sourcesContent":["import { getDictionaries as n } from \"@intlayer/dictionaries-entry\";\nimport { MessageKey as a } from \"@intlayer/editor\";\nimport { ref as s, readonly as l, inject as D, watch as m } from \"vue\";\nimport { createSharedComposable as d } from \"./createSharedComposable.mjs\";\nimport { useCrossFrameState as R } from \"./useCrossFrameState.mjs\";\nlet t = null;\nconst r = Symbol(\n \"intlayerDictionariesRecord\"\n), u = () => {\n if (t) return t;\n const i = n(), e = s(i);\n return t = {\n localeDictionaries: l(e),\n setLocaleDictionaries: (o) => {\n e.value = o ?? {};\n },\n setLocaleDictionary(o) {\n e.value = {\n ...e.value,\n [o.key]: o\n };\n }\n }, t;\n}, L = (i) => {\n const e = u();\n i.provide(r, e);\n}, _ = d(() => {\n const i = D(\n r\n );\n if (!i)\n throw new Error(\"DictionariesRecord state not found\");\n const [e, o] = R(\n a.INTLAYER_LOCALE_DICTIONARIES_CHANGED,\n void 0\n );\n m(\n i.localeDictionaries,\n (c) => {\n o(c);\n },\n { immediate: !0 }\n );\n});\nexport {\n u as createDictionaryRecordClient,\n L as installDictionariesRecord,\n _ as useDictionariesRecord\n};\n"],"mappings":";;;;;;;;;AAKA,IAAI,IAAI;AACR,MAAM,IAAI,OACR,6BACD,EAAE,UAAU;AACX,KAAI,EAAG,QAAO;CACd,MAAe,IAAIA,IAATC,iBAAG,CAAU;AACvB,QAAO,IAAI;EACT,oBAAoBC,SAAE,EAAE;EACxB,wBAAwB,MAAM;AAC5B,KAAE,QAAQ,KAAK,EAAE;;EAEnB,oBAAoB,GAAG;AACrB,KAAE,QAAQ;IACR,GAAG,EAAE;KACJ,EAAE,MAAM;IACV;;EAEJ,EAAE;GACF,KAAK,MAAM;CACZ,MAAM,IAAI,GAAG;AACb,GAAE,QAAQ,GAAG,EAAE;GACd,IAAIC,QAAQ;CACb,MAAM,IAAIC,OACR,EACD;AACD,KAAI,CAAC,EACH,OAAM,IAAI,MAAM,qCAAqC;CACvD,MAAM,CAAC,GAAG,KAAKC,EACbC,WAAE,sCACF,KAAK,EACN;AACD,OACE,EAAE,qBACD,MAAM;AACL,IAAE,EAAE;IAEN,EAAE,WAAW,CAAC,GAAG,CAClB;EACD"}
@@ -0,0 +1,46 @@
1
+ import { readonly, ref } from "../../../../../node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
2
+ import { inject, watch } from "../../../../../node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
3
+ import "../../../../../node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
4
+ import { MessageKey } from "../../../../@intlayer/editor/dist/esm/messagesKeys.mjs";
5
+ import { a } from "./createSharedComposable.mjs";
6
+ import { I } from "./useCrossFrameState.mjs";
7
+ import { getContentNodeByKeyPath } from "@intlayer/core";
8
+
9
+ //#region ../vue-intlayer/dist/esm/editor/editedContent.mjs
10
+ let i = null;
11
+ const u = Symbol("EditedContent"), T = () => {
12
+ if (i) return i;
13
+ const t = ref({});
14
+ return i = {
15
+ editedContent: readonly(t),
16
+ getEditedContentValue: (e, r) => {
17
+ const n = t.value;
18
+ if (!n) return;
19
+ if (e.includes(":local:") || e.includes(":remote:")) return getContentNodeByKeyPath(n?.[e]?.content ?? {}, r);
20
+ const a$1 = Object.keys(n).filter((o) => o.startsWith(`${e}:`));
21
+ for (const o of a$1) {
22
+ const s = getContentNodeByKeyPath(n?.[o]?.content ?? {}, r);
23
+ if (s) return s;
24
+ }
25
+ },
26
+ setEditedContent: (e) => {
27
+ t.value = e;
28
+ }
29
+ }, i;
30
+ }, S = (t) => {
31
+ const e = T();
32
+ t.provide(u, e);
33
+ }, b = a(() => {
34
+ const t = inject(u);
35
+ if (!t) throw new Error("EditedContent state not found");
36
+ const [e, r] = I(MessageKey.INTLAYER_EDITED_CONTENT_CHANGED, {});
37
+ return watch(e, (n) => {
38
+ t.editedContent.value = n ?? {};
39
+ }), watch(t, (n) => {
40
+ r(n.editedContent.value);
41
+ }), t;
42
+ });
43
+
44
+ //#endregion
45
+ export { S };
46
+ //# sourceMappingURL=editedContent.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editedContent.mjs","names":["E","f","c","a","N","m","p","l","C"],"sources":["../../../../../../../../vue-intlayer/dist/esm/editor/editedContent.mjs"],"sourcesContent":["import { getContentNodeByKeyPath as c } from \"@intlayer/core\";\nimport { MessageKey as l } from \"@intlayer/editor\";\nimport { ref as E, readonly as f, inject as m, watch as C } from \"vue\";\nimport { createSharedComposable as N } from \"./createSharedComposable.mjs\";\nimport { useCrossFrameState as p } from \"./useCrossFrameState.mjs\";\nlet i = null;\nconst u = Symbol(\"EditedContent\"), T = () => {\n if (i) return i;\n const t = E({});\n return i = {\n editedContent: f(t),\n getEditedContentValue: (e, r) => {\n const n = t.value;\n if (!n) return;\n if (e.includes(\":local:\") || e.includes(\":remote:\")) {\n const o = n?.[e]?.content ?? {};\n return c(o, r);\n }\n const a = Object.keys(n).filter(\n (o) => o.startsWith(`${e}:`)\n );\n for (const o of a) {\n const d = n?.[o]?.content ?? {}, s = c(d, r);\n if (s) return s;\n }\n },\n setEditedContent: (e) => {\n t.value = e;\n }\n }, i;\n}, S = (t) => {\n const e = T();\n t.provide(u, e);\n}, b = N(() => {\n const t = m(u);\n if (!t)\n throw new Error(\"EditedContent state not found\");\n const [e, r] = p(\n l.INTLAYER_EDITED_CONTENT_CHANGED,\n {}\n );\n return C(e, (n) => {\n t.editedContent.value = n ?? {};\n }), C(t, (n) => {\n r(n.editedContent.value);\n }), t;\n});\nexport {\n T as createEditedContentClient,\n S as installEditedContent,\n b as useEditedContent\n};\n"],"mappings":";;;;;;;;;AAKA,IAAI,IAAI;AACR,MAAM,IAAI,OAAO,gBAAgB,EAAE,UAAU;AAC3C,KAAI,EAAG,QAAO;CACd,MAAM,IAAIA,IAAE,EAAE,CAAC;AACf,QAAO,IAAI;EACT,eAAeC,SAAE,EAAE;EACnB,wBAAwB,GAAG,MAAM;GAC/B,MAAM,IAAI,EAAE;AACZ,OAAI,CAAC,EAAG;AACR,OAAI,EAAE,SAAS,UAAU,IAAI,EAAE,SAAS,WAAW,CAEjD,QAAOC,wBADG,IAAI,IAAI,WAAW,EAAE,EACnB,EAAE;GAEhB,MAAMC,MAAI,OAAO,KAAK,EAAE,CAAC,QACtB,MAAM,EAAE,WAAW,GAAG,EAAE,GAAG,CAC7B;AACD,QAAK,MAAM,KAAKA,KAAG;IACjB,MAAiC,IAAID,wBAA3B,IAAI,IAAI,WAAW,EAAE,EAAW,EAAE;AAC5C,QAAI,EAAG,QAAO;;;EAGlB,mBAAmB,MAAM;AACvB,KAAE,QAAQ;;EAEb,EAAE;GACF,KAAK,MAAM;CACZ,MAAM,IAAI,GAAG;AACb,GAAE,QAAQ,GAAG,EAAE;GACd,IAAIE,QAAQ;CACb,MAAM,IAAIC,OAAE,EAAE;AACd,KAAI,CAAC,EACH,OAAM,IAAI,MAAM,gCAAgC;CAClD,MAAM,CAAC,GAAG,KAAKC,EACbC,WAAE,iCACF,EAAE,CACH;AACD,QAAOC,MAAE,IAAI,MAAM;AACjB,IAAE,cAAc,QAAQ,KAAK,EAAE;GAC/B,EAAEA,MAAE,IAAI,MAAM;AACd,IAAE,EAAE,cAAc,MAAM;GACxB,EAAE;EACJ"}
@@ -0,0 +1,44 @@
1
+ import { ref } from "../../../../../node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
2
+ import { computed, inject, nextTick, onMounted, watch } from "../../../../../node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
3
+ import "../../../../../node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
4
+ import { MessageKey } from "../../../../@intlayer/editor/dist/esm/messagesKeys.mjs";
5
+ import { a as a$1 } from "./createSharedComposable.mjs";
6
+ import { L } from "./useCrossFrameMessageListener.mjs";
7
+ import a from "@intlayer/config/built";
8
+
9
+ //#region ../vue-intlayer/dist/esm/editor/editorEnabled.mjs
10
+ let r = null;
11
+ const s = Symbol("EditorEnabled"), l = () => typeof window > "u" ? !1 : window.self !== window.top, b = () => {
12
+ if (r) return r;
13
+ const e = ref(a.editor.enabled), n = ref(!1), t = ref(!1);
14
+ return r = {
15
+ settingEnabled: e,
16
+ wrapperEnabled: n,
17
+ isInIframe: t,
18
+ enabled: computed(() => e.value && n.value && t.value)
19
+ }, r;
20
+ }, T = (e) => {
21
+ const n = b();
22
+ typeof window < "u" && (n.isInIframe.value = l()), e.provide(s, n);
23
+ }, A = a$1(() => {
24
+ const e = inject(s);
25
+ if (!e) throw new Error("EditorEnabled state not found");
26
+ L(`${MessageKey.INTLAYER_EDITOR_ENABLED}/post`, (t) => {
27
+ e.wrapperEnabled.value = t;
28
+ });
29
+ const n = L(`${MessageKey.INTLAYER_EDITOR_ENABLED}/get`, (t) => {
30
+ e.wrapperEnabled.value = t;
31
+ });
32
+ return watch(() => e.isInIframe.value && e.settingEnabled.value, (t) => {
33
+ n();
34
+ }, { immediate: !0 }), onMounted(() => {
35
+ nextTick(() => {
36
+ const t = l();
37
+ e.isInIframe.value = t;
38
+ });
39
+ }), e;
40
+ });
41
+
42
+ //#endregion
43
+ export { T };
44
+ //# sourceMappingURL=editorEnabled.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editorEnabled.mjs","names":["o","E","p","I","f","a","i","u","c"],"sources":["../../../../../../../../vue-intlayer/dist/esm/editor/editorEnabled.mjs"],"sourcesContent":["import E from \"@intlayer/config/built\";\nimport { MessageKey as a } from \"@intlayer/editor\";\nimport { inject as f, watch as u, onMounted as c, nextTick as m, ref as o, computed as p } from \"vue\";\nimport { createSharedComposable as I } from \"./createSharedComposable.mjs\";\nimport { useCrossFrameMessageListener as i } from \"./useCrossFrameMessageListener.mjs\";\nlet r = null;\nconst s = Symbol(\"EditorEnabled\"), l = () => typeof window > \"u\" ? !1 : window.self !== window.top, b = () => {\n if (r) return r;\n const e = o(E.editor.enabled), n = o(!1), t = o(!1), d = p(\n () => e.value && n.value && t.value\n );\n return r = {\n settingEnabled: e,\n wrapperEnabled: n,\n isInIframe: t,\n enabled: d\n }, r;\n}, T = (e) => {\n const n = b();\n typeof window < \"u\" && (n.isInIframe.value = l()), e.provide(s, n);\n}, A = I(() => {\n const e = f(\n s\n );\n if (!e)\n throw new Error(\"EditorEnabled state not found\");\n i(\n `${a.INTLAYER_EDITOR_ENABLED}/post`,\n (t) => {\n e.wrapperEnabled.value = t;\n }\n );\n const n = i(\n `${a.INTLAYER_EDITOR_ENABLED}/get`,\n (t) => {\n e.wrapperEnabled.value = t;\n }\n );\n return u(\n () => e.isInIframe.value && e.settingEnabled.value,\n (t) => {\n n();\n },\n { immediate: !0 }\n ), c(() => {\n m(() => {\n const t = l();\n e.isInIframe.value = t;\n });\n }), e;\n});\nexport {\n b as createEditorEnabledClient,\n T as installEditorEnabled,\n A as useEditorEnabled\n};\n"],"mappings":";;;;;;;;;AAKA,IAAI,IAAI;AACR,MAAM,IAAI,OAAO,gBAAgB,EAAE,UAAU,OAAO,SAAS,MAAM,CAAC,IAAI,OAAO,SAAS,OAAO,KAAK,UAAU;AAC5G,KAAI,EAAG,QAAO;CACd,MAAM,IAAIA,IAAEC,EAAE,OAAO,QAAQ,EAAE,IAAID,IAAE,CAAC,EAAE,EAAE,IAAIA,IAAE,CAAC,EAAE;AAGnD,QAAO,IAAI;EACT,gBAAgB;EAChB,gBAAgB;EAChB,YAAY;EACZ,SAPuDE,eACjD,EAAE,SAAS,EAAE,SAAS,EAAE,MAC/B;EAMA,EAAE;GACF,KAAK,MAAM;CACZ,MAAM,IAAI,GAAG;AACb,QAAO,SAAS,QAAQ,EAAE,WAAW,QAAQ,GAAG,GAAG,EAAE,QAAQ,GAAG,EAAE;GACjE,IAAIC,UAAQ;CACb,MAAM,IAAIC,OACR,EACD;AACD,KAAI,CAAC,EACH,OAAM,IAAI,MAAM,gCAAgC;AAClD,GACE,GAAGC,WAAE,wBAAwB,SAC5B,MAAM;AACL,IAAE,eAAe,QAAQ;GAE5B;CACD,MAAM,IAAIC,EACR,GAAGD,WAAE,wBAAwB,QAC5B,MAAM;AACL,IAAE,eAAe,QAAQ;GAE5B;AACD,QAAOE,YACC,EAAE,WAAW,SAAS,EAAE,eAAe,QAC5C,MAAM;AACL,KAAG;IAEL,EAAE,WAAW,CAAC,GAAG,CAClB,EAAEC,gBAAQ;AACT,iBAAQ;GACN,MAAM,IAAI,GAAG;AACb,KAAE,WAAW,QAAQ;IACrB;GACF,EAAE;EACJ"}
@@ -0,0 +1,40 @@
1
+ import { readonly, ref } from "../../../../../node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
2
+ import { inject, watch } from "../../../../../node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
3
+ import "../../../../../node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
4
+ import { MessageKey } from "../../../../@intlayer/editor/dist/esm/messagesKeys.mjs";
5
+ import { a } from "./createSharedComposable.mjs";
6
+ import { I } from "./useCrossFrameState.mjs";
7
+
8
+ //#region ../vue-intlayer/dist/esm/editor/focusDictionary.mjs
9
+ let n = null;
10
+ const c = Symbol("FocusDictionary"), d = () => {
11
+ if (n) return n;
12
+ const t = ref(null), e = (o) => {
13
+ t.value = o;
14
+ }, s = (o) => {
15
+ t.value && e({
16
+ ...t.value,
17
+ keyPath: o
18
+ });
19
+ };
20
+ return n = {
21
+ focusedContent: readonly(t),
22
+ setFocusedContent: e,
23
+ setFocusedContentKeyPath: s
24
+ }, n;
25
+ }, S = (t) => {
26
+ const e = d();
27
+ t.provide(c, e);
28
+ }, O = a(() => {
29
+ const t = inject(c), [e, s] = I(MessageKey.INTLAYER_FOCUSED_CONTENT_CHANGED);
30
+ if (!t) throw new Error("FocusDictionary state not found");
31
+ return watch(t.focusedContent, (o) => {
32
+ JSON.stringify(o) !== JSON.stringify(e.value) && s(o);
33
+ }), watch(e, (o) => {
34
+ JSON.stringify(o) !== JSON.stringify(t.focusedContent.value) && t.setFocusedContent(o ?? null);
35
+ }), t;
36
+ });
37
+
38
+ //#endregion
39
+ export { S };
40
+ //# sourceMappingURL=focusDictionary.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusDictionary.mjs","names":["u","a","l","f","C","i","r"],"sources":["../../../../../../../../vue-intlayer/dist/esm/editor/focusDictionary.mjs"],"sourcesContent":["import { MessageKey as i } from \"@intlayer/editor\";\nimport { ref as u, readonly as a, inject as f, watch as r } from \"vue\";\nimport { createSharedComposable as l } from \"./createSharedComposable.mjs\";\nimport { useCrossFrameState as C } from \"./useCrossFrameState.mjs\";\nlet n = null;\nconst c = Symbol(\"FocusDictionary\"), d = () => {\n if (n) return n;\n const t = u(null), e = (o) => {\n t.value = o;\n }, s = (o) => {\n t.value && e({ ...t.value, keyPath: o });\n };\n return n = {\n focusedContent: a(t),\n setFocusedContent: e,\n setFocusedContentKeyPath: s\n }, n;\n}, S = (t) => {\n const e = d();\n t.provide(c, e);\n}, O = l(() => {\n const t = f(\n c\n ), [e, s] = C(\n i.INTLAYER_FOCUSED_CONTENT_CHANGED\n );\n if (!t)\n throw new Error(\"FocusDictionary state not found\");\n return r(t.focusedContent, (o) => {\n JSON.stringify(o) !== JSON.stringify(e.value) && s(o);\n }), r(e, (o) => {\n JSON.stringify(o) !== JSON.stringify(t.focusedContent.value) && t.setFocusedContent(o ?? null);\n }), t;\n});\nexport {\n d as createFocusDictionaryClient,\n S as installFocusDictionary,\n O as useFocusDictionary\n};\n"],"mappings":";;;;;;;;AAIA,IAAI,IAAI;AACR,MAAM,IAAI,OAAO,kBAAkB,EAAE,UAAU;AAC7C,KAAI,EAAG,QAAO;CACd,MAAM,IAAIA,IAAE,KAAK,EAAE,KAAK,MAAM;AAC5B,IAAE,QAAQ;IACT,KAAK,MAAM;AACZ,IAAE,SAAS,EAAE;GAAE,GAAG,EAAE;GAAO,SAAS;GAAG,CAAC;;AAE1C,QAAO,IAAI;EACT,gBAAgBC,SAAE,EAAE;EACpB,mBAAmB;EACnB,0BAA0B;EAC3B,EAAE;GACF,KAAK,MAAM;CACZ,MAAM,IAAI,GAAG;AACb,GAAE,QAAQ,GAAG,EAAE;GACd,IAAIC,QAAQ;CACb,MAAM,IAAIC,OACR,EACD,EAAE,CAAC,GAAG,KAAKC,EACVC,WAAE,iCACH;AACD,KAAI,CAAC,EACH,OAAM,IAAI,MAAM,kCAAkC;AACpD,QAAOC,MAAE,EAAE,iBAAiB,MAAM;AAChC,OAAK,UAAU,EAAE,KAAK,KAAK,UAAU,EAAE,MAAM,IAAI,EAAE,EAAE;GACrD,EAAEA,MAAE,IAAI,MAAM;AACd,OAAK,UAAU,EAAE,KAAK,KAAK,UAAU,EAAE,eAAe,MAAM,IAAI,EAAE,kBAAkB,KAAK,KAAK;GAC9F,EAAE;EACJ"}
@@ -0,0 +1,24 @@
1
+ import { g } from "./communicator.mjs";
2
+ import { L } from "./dictionariesRecord.mjs";
3
+ import { S } from "./editedContent.mjs";
4
+ import { T } from "./editorEnabled.mjs";
5
+ import { S as S$1 } from "./focusDictionary.mjs";
6
+ import a from "@intlayer/config/built";
7
+
8
+ //#region ../vue-intlayer/dist/esm/editor/installIntlayerEditor.mjs
9
+ const { editor: o } = a, { applicationURL: a$1, editorURL: m, cmsURL: c } = o ?? {}, d = (i) => {
10
+ typeof window > "u" || !(window.self !== window.top) || (o.applicationURL.length > 0 && window.postMessage(i, o.applicationURL), o.editorURL.length > 0 && window.parent.postMessage(i, o.editorURL), o.cmsURL.length > 0 && window.parent.postMessage(i, o.cmsURL));
11
+ }, u = (i) => {
12
+ g(i, {
13
+ postMessage: d,
14
+ allowedOrigins: [
15
+ a$1,
16
+ m,
17
+ c
18
+ ]
19
+ }), T(i), L(i), S(i), S$1(i);
20
+ };
21
+
22
+ //#endregion
23
+ export { u };
24
+ //# sourceMappingURL=installIntlayerEditor.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installIntlayerEditor.mjs","names":["t","a","s","r","e","l"],"sources":["../../../../../../../../vue-intlayer/dist/esm/editor/installIntlayerEditor.mjs"],"sourcesContent":["import t from \"@intlayer/config/built\";\nimport { installCommunicator as n } from \"./communicator.mjs\";\nimport { installDictionariesRecord as r } from \"./dictionariesRecord.mjs\";\nimport { installEditedContent as e } from \"./editedContent.mjs\";\nimport { installEditorEnabled as s } from \"./editorEnabled.mjs\";\nimport { installFocusDictionary as l } from \"./focusDictionary.mjs\";\nconst { editor: o } = t, { applicationURL: a, editorURL: m, cmsURL: c } = o ?? {}, d = (i) => {\n typeof window > \"u\" || !(window.self !== window.top) || (o.applicationURL.length > 0 && window.postMessage(i, o.applicationURL), o.editorURL.length > 0 && window.parent.postMessage(i, o.editorURL), o.cmsURL.length > 0 && window.parent.postMessage(i, o.cmsURL));\n}, u = (i) => {\n n(i, {\n postMessage: d,\n allowedOrigins: [a, m, c]\n }), s(i), r(i), e(i), l(i);\n};\nexport {\n u as installIntlayerEditor\n};\n"],"mappings":";;;;;;;;AAMA,MAAM,EAAE,QAAQ,MAAMA,GAAG,EAAE,gBAAgBC,KAAG,WAAW,GAAG,QAAQ,MAAM,KAAK,EAAE,EAAE,KAAK,MAAM;AAC5F,QAAO,SAAS,OAAO,EAAE,OAAO,SAAS,OAAO,SAAS,EAAE,eAAe,SAAS,KAAK,OAAO,YAAY,GAAG,EAAE,eAAe,EAAE,EAAE,UAAU,SAAS,KAAK,OAAO,OAAO,YAAY,GAAG,EAAE,UAAU,EAAE,EAAE,OAAO,SAAS,KAAK,OAAO,OAAO,YAAY,GAAG,EAAE,OAAO;GAClQ,KAAK,MAAM;AACZ,GAAE,GAAG;EACH,aAAa;EACb,gBAAgB;GAACA;GAAG;GAAG;GAAE;EAC1B,CAAC,EAAEC,EAAE,EAAE,EAAEC,EAAE,EAAE,EAAEC,EAAE,EAAE,EAAEC,IAAE,EAAE"}
@@ -0,0 +1,37 @@
1
+ import { onScopeDispose } from "../../../../../node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
2
+ import { getCurrentInstance } from "../../../../../node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
3
+ import "../../../../../node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
4
+ import { compareUrls } from "../../../../@intlayer/editor/dist/esm/compareUrls.mjs";
5
+ import { C } from "./communicator.mjs";
6
+
7
+ //#region ../vue-intlayer/dist/esm/editor/useCrossFrameMessageListener.mjs
8
+ const o = /* @__PURE__ */ new Map();
9
+ let c = !1;
10
+ function m(e, t) {
11
+ let s = o.get(e);
12
+ s || (s = /* @__PURE__ */ new Set(), o.set(e, s)), s.add(t);
13
+ }
14
+ function l(e, t) {
15
+ const s = o.get(e);
16
+ s && (s.delete(t), s.size === 0 && o.delete(e));
17
+ }
18
+ function w(e, t) {
19
+ c || window && (window.addEventListener("message", (s) => {
20
+ const { type: n, data: i, senderId: a } = s.data ?? {};
21
+ n && a !== t && (!e || e.includes("*") || e.some((r) => compareUrls(r, s.origin))) && o.get(n)?.forEach((r) => r(i));
22
+ }), c = !0);
23
+ }
24
+ const L = (e, t) => {
25
+ const { allowedOrigins: s, postMessage: n, senderId: i } = C();
26
+ return w(s, i), t ? (m(e, t), onScopeDispose(() => l(e, t))) : getCurrentInstance() || console.warn("useCrossFrameMessageListener called outside a component without a callback; nothing to listen for."), (r) => {
27
+ n({
28
+ type: e,
29
+ data: r,
30
+ senderId: i
31
+ });
32
+ };
33
+ };
34
+
35
+ //#endregion
36
+ export { L };
37
+ //# sourceMappingURL=useCrossFrameMessageListener.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCrossFrameMessageListener.mjs","names":["u","p","f","d"],"sources":["../../../../../../../../vue-intlayer/dist/esm/editor/useCrossFrameMessageListener.mjs"],"sourcesContent":["import { compareUrls as u } from \"@intlayer/editor\";\nimport { onScopeDispose as f, getCurrentInstance as d } from \"vue\";\nimport { useCommunicator as p } from \"./communicator.mjs\";\nconst o = /* @__PURE__ */ new Map();\nlet c = !1;\nfunction m(e, t) {\n let s = o.get(e);\n s || (s = /* @__PURE__ */ new Set(), o.set(e, s)), s.add(t);\n}\nfunction l(e, t) {\n const s = o.get(e);\n s && (s.delete(t), s.size === 0 && o.delete(e));\n}\nfunction w(e, t) {\n c || window && (window.addEventListener(\"message\", (s) => {\n const { type: n, data: i, senderId: a } = s.data ?? {};\n n && a !== t && (!e || e.includes(\"*\") || e.some((r) => u(r, s.origin))) && o.get(n)?.forEach((r) => r(i));\n }), c = !0);\n}\nconst L = (e, t) => {\n const { allowedOrigins: s, postMessage: n, senderId: i } = p();\n return w(s, i), t ? (m(e, t), f(() => l(e, t))) : d() || console.warn(\n \"useCrossFrameMessageListener called outside a component without a callback; nothing to listen for.\"\n ), (r) => {\n n({ type: e, data: r, senderId: i });\n };\n};\nexport {\n L as useCrossFrameMessageListener\n};\n"],"mappings":";;;;;;;AAGA,MAAM,oBAAoB,IAAI,KAAK;AACnC,IAAI,IAAI,CAAC;AACT,SAAS,EAAE,GAAG,GAAG;CACf,IAAI,IAAI,EAAE,IAAI,EAAE;AAChB,OAAM,oBAAoB,IAAI,KAAK,EAAE,EAAE,IAAI,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE;;AAE7D,SAAS,EAAE,GAAG,GAAG;CACf,MAAM,IAAI,EAAE,IAAI,EAAE;AAClB,OAAM,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,KAAK,EAAE,OAAO,EAAE;;AAEhD,SAAS,EAAE,GAAG,GAAG;AACf,MAAK,WAAW,OAAO,iBAAiB,YAAY,MAAM;EACxD,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,MAAM,EAAE,QAAQ,EAAE;AACtD,OAAK,MAAM,MAAM,CAAC,KAAK,EAAE,SAAS,IAAI,IAAI,EAAE,MAAM,MAAMA,YAAE,GAAG,EAAE,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,SAAS,MAAM,EAAE,EAAE,CAAC;GAC1G,EAAE,IAAI,CAAC;;AAEX,MAAM,KAAK,GAAG,MAAM;CAClB,MAAM,EAAE,gBAAgB,GAAG,aAAa,GAAG,UAAU,MAAMC,GAAG;AAC9D,QAAO,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAEC,qBAAQ,EAAE,GAAG,EAAE,CAAC,IAAIC,oBAAG,IAAI,QAAQ,KAC/D,qGACD,GAAG,MAAM;AACR,IAAE;GAAE,MAAM;GAAG,MAAM;GAAG,UAAU;GAAG,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { ref } from "../../../../../node_modules/.bun/@vue_reactivity@3.5.22/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
2
+ import { getCurrentInstance } from "../../../../../node_modules/.bun/@vue_runtime-core@3.5.22/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
3
+ import "../../../../../node_modules/.bun/vue@3.5.22_e72aefb0f8d0b841/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
4
+ import { C } from "./communicator.mjs";
5
+ import { L } from "./useCrossFrameMessageListener.mjs";
6
+
7
+ //#region ../vue-intlayer/dist/esm/editor/useCrossFrameState.mjs
8
+ const f = /* @__PURE__ */ new Map(), S = (t, i) => typeof t == "function" ? t(i) : t, F = (t) => t == null ? t : JSON.parse(JSON.stringify(t)), I = (t, i, v = {
9
+ emit: !0,
10
+ receive: !0
11
+ }) => {
12
+ if (f.has(t)) {
13
+ const { state: s, setState: r, postState: a } = f.get(t);
14
+ return [
15
+ s,
16
+ r,
17
+ a
18
+ ];
19
+ }
20
+ getCurrentInstance() || console.warn("useCrossFrameState called outside a component setup function - reactivity may be limited");
21
+ const { emit: u = !0, receive: p = !0 } = v, e = ref(S(i)), { postMessage: n, senderId: o } = C(), c = (s) => {
22
+ !u || typeof n != "function" || typeof s > "u" || n({
23
+ type: `${t}/post`,
24
+ data: s,
25
+ senderId: o
26
+ });
27
+ }, d = (s) => {
28
+ const a = F(S(s, e.value));
29
+ e.value = a, c(a);
30
+ }, l = () => {
31
+ typeof n == "function" && n({
32
+ type: `${t}/post`,
33
+ data: e.value,
34
+ senderId: o
35
+ });
36
+ };
37
+ c(e.value), p && typeof n == "function" && typeof e.value > "u" && n({
38
+ type: `${t}/get`,
39
+ senderId: o
40
+ }), L(`${t}/post`, p ? (s) => {
41
+ e.value = s;
42
+ } : void 0);
43
+ const g = (s, r) => {
44
+ u && r !== o && c(e.value);
45
+ };
46
+ return L(`${t}/get`, u ? g : void 0), f.set(t, {
47
+ state: e,
48
+ setState: d,
49
+ postState: l
50
+ }), [
51
+ e,
52
+ d,
53
+ l
54
+ ];
55
+ };
56
+
57
+ //#endregion
58
+ export { I };
59
+ //# sourceMappingURL=useCrossFrameState.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCrossFrameState.mjs","names":["y","$","m"],"sources":["../../../../../../../../vue-intlayer/dist/esm/editor/useCrossFrameState.mjs"],"sourcesContent":["import { getCurrentInstance as C, ref as y } from \"vue\";\nimport { useCommunicator as $ } from \"./communicator.mjs\";\nimport { useCrossFrameMessageListener as m } from \"./useCrossFrameMessageListener.mjs\";\nconst f = /* @__PURE__ */ new Map(), S = (t, i) => typeof t == \"function\" ? t(i) : t, F = (t) => t == null ? t : JSON.parse(JSON.stringify(t)), I = (t, i, v = { emit: !0, receive: !0 }) => {\n if (f.has(t)) {\n const { state: s, setState: r, postState: a } = f.get(t);\n return [s, r, a];\n }\n C() || console.warn(\n \"useCrossFrameState called outside a component setup function - reactivity may be limited\"\n );\n const { emit: u = !0, receive: p = !0 } = v, e = y(S(i)), { postMessage: n, senderId: o } = $(), c = (s) => {\n !u || typeof n != \"function\" || typeof s > \"u\" || n({\n type: `${t}/post`,\n data: s,\n senderId: o\n });\n }, d = (s) => {\n const r = S(s, e.value), a = F(r);\n e.value = a, c(a);\n }, l = () => {\n typeof n == \"function\" && n({\n type: `${t}/post`,\n data: e.value,\n senderId: o\n });\n };\n c(e.value), p && typeof n == \"function\" && typeof e.value > \"u\" && n({ type: `${t}/get`, senderId: o }), m(\n `${t}/post`,\n p ? (s) => {\n e.value = s;\n } : void 0\n );\n const g = (s, r) => {\n u && r !== o && c(e.value);\n };\n return m(\n `${t}/get`,\n u ? g : void 0\n ), f.set(t, { state: e, setState: d, postState: l }), [e, d, l];\n};\nexport {\n I as useCrossFrameState\n};\n"],"mappings":";;;;;;;AAGA,MAAM,oBAAoB,IAAI,KAAK,EAAE,KAAK,GAAG,MAAM,OAAO,KAAK,aAAa,EAAE,EAAE,GAAG,GAAG,KAAK,MAAM,KAAK,OAAO,IAAI,KAAK,MAAM,KAAK,UAAU,EAAE,CAAC,EAAE,KAAK,GAAG,GAAG,IAAI;CAAE,MAAM,CAAC;CAAG,SAAS,CAAC;CAAG,KAAK;AAC3L,KAAI,EAAE,IAAI,EAAE,EAAE;EACZ,MAAM,EAAE,OAAO,GAAG,UAAU,GAAG,WAAW,MAAM,EAAE,IAAI,EAAE;AACxD,SAAO;GAAC;GAAG;GAAG;GAAE;;AAElB,qBAAG,IAAI,QAAQ,KACb,2FACD;CACD,MAAM,EAAE,MAAM,IAAI,CAAC,GAAG,SAAS,IAAI,CAAC,MAAM,GAAG,IAAIA,IAAE,EAAE,EAAE,CAAC,EAAE,EAAE,aAAa,GAAG,UAAU,MAAMC,GAAG,EAAE,KAAK,MAAM;AAC1G,GAAC,KAAK,OAAO,KAAK,cAAc,OAAO,IAAI,OAAO,EAAE;GAClD,MAAM,GAAG,EAAE;GACX,MAAM;GACN,UAAU;GACX,CAAC;IACD,KAAK,MAAM;EACZ,MAAyB,IAAI,EAAnB,EAAE,GAAG,EAAE,MAAM,CAAU;AACjC,IAAE,QAAQ,GAAG,EAAE,EAAE;IAChB,UAAU;AACX,SAAO,KAAK,cAAc,EAAE;GAC1B,MAAM,GAAG,EAAE;GACX,MAAM,EAAE;GACR,UAAU;GACX,CAAC;;AAEJ,GAAE,EAAE,MAAM,EAAE,KAAK,OAAO,KAAK,cAAc,OAAO,EAAE,QAAQ,OAAO,EAAE;EAAE,MAAM,GAAG,EAAE;EAAO,UAAU;EAAG,CAAC,EAAEC,EACvG,GAAG,EAAE,QACL,KAAK,MAAM;AACT,IAAE,QAAQ;KACR,KAAK,EACV;CACD,MAAM,KAAK,GAAG,MAAM;AAClB,OAAK,MAAM,KAAK,EAAE,EAAE,MAAM;;AAE5B,QAAOA,EACL,GAAG,EAAE,OACL,IAAI,IAAI,KAAK,EACd,EAAE,EAAE,IAAI,GAAG;EAAE,OAAO;EAAG,UAAU;EAAG,WAAW;EAAG,CAAC,EAAE;EAAC;EAAG;EAAG;EAAE"}
@@ -1,14 +1,16 @@
1
+ import { getHTMLTextDir } from "@intlayer/core";
1
2
  import { defineNuxtPlugin } from "#app";
2
3
  import { useRoute } from "#imports";
3
- import { getHTMLTextDir } from "intlayer";
4
+
5
+ //#region src/runtime/html-lang.ts
4
6
  var html_lang_default = defineNuxtPlugin((nuxtApp) => {
5
- nuxtApp.hook("page:finish", () => {
6
- const locale = useRoute().params.locale;
7
- document.documentElement.lang = locale;
8
- document.documentElement.dir = getHTMLTextDir(locale);
9
- });
7
+ nuxtApp.hook("page:finish", () => {
8
+ const locale = useRoute().params.locale;
9
+ document.documentElement.lang = locale;
10
+ document.documentElement.dir = getHTMLTextDir(locale);
11
+ });
10
12
  });
11
- export {
12
- html_lang_default as default
13
- };
13
+
14
+ //#endregion
15
+ export { html_lang_default as default };
14
16
  //# sourceMappingURL=html-lang.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/runtime/html-lang.ts"],"sourcesContent":["// @ts-nocheck -- Nuxt runtime types are provided at application level\nimport { defineNuxtPlugin } from '#app';\nimport { useRoute } from '#imports';\nimport { getHTMLTextDir, type Locales } from 'intlayer';\n\nexport default defineNuxtPlugin((nuxtApp) => {\n nuxtApp.hook('page:finish', () => {\n const locale = useRoute().params.locale as Locales;\n document.documentElement.lang = locale;\n document.documentElement.dir = getHTMLTextDir(locale);\n });\n});\n"],"mappings":"AACA,SAAS,wBAAwB;AACjC,SAAS,gBAAgB;AACzB,SAAS,sBAAoC;AAE7C,IAAO,oBAAQ,iBAAiB,CAAC,YAAY;AAC3C,UAAQ,KAAK,eAAe,MAAM;AAChC,UAAM,SAAS,SAAS,EAAE,OAAO;AACjC,aAAS,gBAAgB,OAAO;AAChC,aAAS,gBAAgB,MAAM,eAAe,MAAM;AAAA,EACtD,CAAC;AACH,CAAC;","names":[]}
1
+ {"version":3,"file":"html-lang.mjs","names":[],"sources":["../../../src/runtime/html-lang.ts"],"sourcesContent":["// @ts-nocheck -- Nuxt runtime types are provided at application level\n\nimport { getHTMLTextDir } from '@intlayer/core';\nimport type { Locale } from '@intlayer/types';\nimport { defineNuxtPlugin } from '#app';\nimport { useRoute } from '#imports';\n\nexport default defineNuxtPlugin((nuxtApp) => {\n nuxtApp.hook('page:finish', () => {\n const locale = useRoute().params.locale as Locale;\n document.documentElement.lang = locale;\n document.documentElement.dir = getHTMLTextDir(locale);\n });\n});\n"],"mappings":";;;;;AAOA,wBAAe,kBAAkB,YAAY;AAC3C,SAAQ,KAAK,qBAAqB;EAChC,MAAM,SAAS,UAAU,CAAC,OAAO;AACjC,WAAS,gBAAgB,OAAO;AAChC,WAAS,gBAAgB,MAAM,eAAe,OAAO;GACrD;EACF"}
@@ -1,20 +1,33 @@
1
+ import { Y, u } from "../packages/vue-intlayer/dist/esm/client/installIntlayer.mjs";
1
2
  import { defineNuxtPlugin } from "#app";
2
3
  import { useRoute } from "#imports";
3
- import { createIntlayerClient, installIntlayer } from "vue-intlayer";
4
+
5
+ //#region src/runtime/intlayer-plugin.ts
6
+ /**
7
+ * Nuxt client plugin injected by `nuxt-intlayer` module.
8
+ * It installs the Intlayer Vue composables in the current Nuxt application and keeps
9
+ * the active locale in sync with the current route (e.g. `/fr/about` → `fr`).
10
+ */
4
11
  var intlayer_plugin_default = defineNuxtPlugin((nuxtApp) => {
5
- installIntlayer(nuxtApp.vueApp);
6
- const { setLocale } = createIntlayerClient();
7
- const route = useRoute();
8
- const syncLocale = () => {
9
- const localeParam = route.params.locale;
10
- if (localeParam) setLocale(localeParam);
11
- };
12
- syncLocale();
13
- nuxtApp.hook("page:start", () => {
14
- syncLocale();
15
- });
12
+ /**
13
+ * Register the Intlayer provider. We don't pass an explicit locale here so it
14
+ * will fallback to the `defaultLocale` defined in the user configuration.
15
+ * We will synchronise the active locale afterwards, once the current route
16
+ * information is reliably available.
17
+ */
18
+ Y(nuxtApp.vueApp);
19
+ const { setLocale } = u();
20
+ const route = useRoute();
21
+ const syncLocale = () => {
22
+ const localeParam = route.params.locale;
23
+ if (localeParam) setLocale(localeParam);
24
+ };
25
+ syncLocale();
26
+ nuxtApp.hook("page:start", () => {
27
+ syncLocale();
28
+ });
16
29
  });
17
- export {
18
- intlayer_plugin_default as default
19
- };
30
+
31
+ //#endregion
32
+ export { intlayer_plugin_default as default };
20
33
  //# sourceMappingURL=intlayer-plugin.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/runtime/intlayer-plugin.ts"],"sourcesContent":["// @ts-nocheck -- Nuxt runtime types are provided at application level\nimport { defineNuxtPlugin } from '#app';\nimport { useRoute } from '#imports';\nimport { Locales } from '@intlayer/config';\nimport { createIntlayerClient, installIntlayer } from 'vue-intlayer';\n\n/**\n * Nuxt client plugin injected by `nuxt-intlayer` module.\n * It installs the Intlayer Vue composables in the current Nuxt application and keeps\n * the active locale in sync with the current route (e.g. `/fr/about` → `fr`).\n */\nexport default defineNuxtPlugin((nuxtApp) => {\n /**\n * Register the Intlayer provider. We don't pass an explicit locale here so it\n * will fallback to the `defaultLocale` defined in the user configuration.\n * We will synchronise the active locale afterwards, once the current route\n * information is reliably available.\n */\n installIntlayer(nuxtApp.vueApp);\n\n // Obtain a reference to the singleton Intlayer client so we can update the\n // locale reactively whenever the route changes.\n const { setLocale } = createIntlayerClient();\n\n const route = useRoute();\n\n // Helper that applies the `:locale` route param (if any) to Intlayer.\n const syncLocale = () => {\n const localeParam = route.params.locale as Locales | undefined;\n if (localeParam) setLocale(localeParam);\n };\n\n // Initial sync (client & server) once the plugin is executed.\n syncLocale();\n\n // Keep Intlayer locale in sync on every navigation.\n nuxtApp.hook('page:start', () => {\n syncLocale();\n });\n});\n"],"mappings":"AACA,SAAS,wBAAwB;AACjC,SAAS,gBAAgB;AAEzB,SAAS,sBAAsB,uBAAuB;AAOtD,IAAO,0BAAQ,iBAAiB,CAAC,YAAY;AAO3C,kBAAgB,QAAQ,MAAM;AAI9B,QAAM,EAAE,UAAU,IAAI,qBAAqB;AAE3C,QAAM,QAAQ,SAAS;AAGvB,QAAM,aAAa,MAAM;AACvB,UAAM,cAAc,MAAM,OAAO;AACjC,QAAI,YAAa,WAAU,WAAW;AAAA,EACxC;AAGA,aAAW;AAGX,UAAQ,KAAK,cAAc,MAAM;AAC/B,eAAW;AAAA,EACb,CAAC;AACH,CAAC;","names":[]}
1
+ {"version":3,"file":"intlayer-plugin.mjs","names":["createIntlayerClient"],"sources":["../../../src/runtime/intlayer-plugin.ts"],"sourcesContent":["// @ts-nocheck -- Nuxt runtime types are provided at application level\n\nimport type { Locale } from '@intlayer/config';\nimport { createIntlayerClient, installIntlayer } from 'vue-intlayer';\nimport { defineNuxtPlugin } from '#app';\nimport { useRoute } from '#imports';\n\n/**\n * Nuxt client plugin injected by `nuxt-intlayer` module.\n * It installs the Intlayer Vue composables in the current Nuxt application and keeps\n * the active locale in sync with the current route (e.g. `/fr/about` → `fr`).\n */\nexport default defineNuxtPlugin((nuxtApp) => {\n /**\n * Register the Intlayer provider. We don't pass an explicit locale here so it\n * will fallback to the `defaultLocale` defined in the user configuration.\n * We will synchronise the active locale afterwards, once the current route\n * information is reliably available.\n */\n installIntlayer(nuxtApp.vueApp);\n\n // Obtain a reference to the singleton Intlayer client so we can update the\n // locale reactively whenever the route changes.\n const { setLocale } = createIntlayerClient();\n\n const route = useRoute();\n\n // Helper that applies the `:locale` route param (if any) to Intlayer.\n const syncLocale = () => {\n const localeParam = route.params.locale as Locale | undefined;\n if (localeParam) setLocale(localeParam);\n };\n\n // Initial sync (client & server) once the plugin is executed.\n syncLocale();\n\n // Keep Intlayer locale in sync on every navigation.\n nuxtApp.hook('page:start', () => {\n syncLocale();\n });\n});\n"],"mappings":";;;;;;;;;;AAYA,8BAAe,kBAAkB,YAAY;;;;;;;AAO3C,GAAgB,QAAQ,OAAO;CAI/B,MAAM,EAAE,cAAcA,GAAsB;CAE5C,MAAM,QAAQ,UAAU;CAGxB,MAAM,mBAAmB;EACvB,MAAM,cAAc,MAAM,OAAO;AACjC,MAAI,YAAa,WAAU,YAAY;;AAIzC,aAAY;AAGZ,SAAQ,KAAK,oBAAoB;AAC/B,cAAY;GACZ;EACF"}
@@ -1,3 +1,2 @@
1
- import { module } from './module';
2
- export default module;
3
- //# sourceMappingURL=index.d.ts.map
1
+ import { module } from "./module.js";
2
+ export { module as default };
@@ -1,3 +1,7 @@
1
- import type { NuxtModule } from '@nuxt/schema';
2
- export declare const module: NuxtModule;
1
+ import { NuxtModule } from "@nuxt/schema";
2
+
3
+ //#region src/module.d.ts
4
+ declare const module: NuxtModule;
5
+ //#endregion
6
+ export { module };
3
7
  //# sourceMappingURL=module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/module.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK/C,eAAO,MAAM,MAAM,EAAE,UA4GnB,CAAC"}
1
+ {"version":3,"file":"module.d.ts","names":[],"sources":["../../src/module.ts"],"sourcesContent":[],"mappings":";;;cAQa,QAAQ"}
@@ -1,3 +1,5 @@
1
+ //#region src/runtime/html-lang.d.ts
1
2
  declare const _default: any;
2
- export default _default;
3
+ //#endregion
4
+ export { _default as default };
3
5
  //# sourceMappingURL=html-lang.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"html-lang.d.ts","sourceRoot":"","sources":["../../../src/runtime/html-lang.ts"],"names":[],"mappings":";AAKA,wBAMG"}
1
+ {"version":3,"file":"html-lang.d.ts","names":[],"sources":["../../../src/runtime/html-lang.ts"],"sourcesContent":[],"mappings":""}
@@ -1,8 +1,10 @@
1
+ //#region src/runtime/intlayer-plugin.d.ts
1
2
  /**
2
3
  * Nuxt client plugin injected by `nuxt-intlayer` module.
3
4
  * It installs the Intlayer Vue composables in the current Nuxt application and keeps
4
5
  * the active locale in sync with the current route (e.g. `/fr/about` → `fr`).
5
6
  */
6
7
  declare const _default: any;
7
- export default _default;
8
+ //#endregion
9
+ export { _default as default };
8
10
  //# sourceMappingURL=intlayer-plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"intlayer-plugin.d.ts","sourceRoot":"","sources":["../../../src/runtime/intlayer-plugin.ts"],"names":[],"mappings":"AAMA;;;;GAIG;;AACH,wBA4BG"}
1
+ {"version":3,"file":"intlayer-plugin.d.ts","names":[],"sources":["../../../src/runtime/intlayer-plugin.ts"],"sourcesContent":[],"mappings":""}