@meistrari/minuta-nuxt 1.1.0 → 1.2.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -0
- package/dist/runtime/components/MinutaChromeCanvas.vue +1 -1
- package/dist/runtime/components/MinutaChromeEditor.vue +1 -1
- package/dist/runtime/components/MinutaDocumentViewer.vue +8 -0
- package/dist/runtime/components/MinutaDocxEditor.vue +64 -1302
- package/dist/runtime/components/MinutaEmbed.vue +3 -2
- package/dist/runtime/components/MinutaTemplateEditor.vue +2 -2
- package/dist/runtime/composables/useMinutaApi.d.ts +2 -2
- package/dist/runtime/composables/useMinutaApi.js +1 -1
- package/dist/runtime/composables/vaultImages.d.ts +1 -5
- package/dist/runtime/composables/vaultImages.js +2 -12
- package/package.json +6 -3
- package/dist/runtime/components/MinutaVariablePicker.vue +0 -149
- package/dist/runtime/composables/docxExport.d.ts +0 -24
- package/dist/runtime/composables/docxExport.js +0 -1304
- package/dist/runtime/composables/editorExtensions.d.ts +0 -93
- package/dist/runtime/composables/editorExtensions.js +0 -548
- package/dist/runtime/composables/paginationPlugin.d.ts +0 -139
- package/dist/runtime/composables/paginationPlugin.js +0 -505
- package/dist/runtime/utils/footnoteHtml.d.ts +0 -26
- package/dist/runtime/utils/footnoteHtml.js +0 -117
- package/dist/runtime/utils/pocKeepWithNext.d.ts +0 -44
- package/dist/runtime/utils/pocKeepWithNext.js +0 -9
- package/dist/runtime/utils/sanitizeRichHtml.d.ts +0 -10
- package/dist/runtime/utils/sanitizeRichHtml.js +0 -73
- package/dist/runtime/utils/templateVariables.d.ts +0 -49
- package/dist/runtime/utils/templateVariables.js +0 -36
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -12,6 +12,9 @@ const module = defineNuxtModule({
|
|
|
12
12
|
},
|
|
13
13
|
setup(options, nuxt) {
|
|
14
14
|
const resolver = createResolver(import.meta.url);
|
|
15
|
+
nuxt.options.build.transpile = nuxt.options.build.transpile || [];
|
|
16
|
+
if (!nuxt.options.build.transpile.includes("@meistrari/tela-build"))
|
|
17
|
+
nuxt.options.build.transpile.push("@meistrari/tela-build");
|
|
15
18
|
nuxt.options.css = nuxt.options.css || [];
|
|
16
19
|
if (!nuxt.options.css.includes("@fontsource-variable/inter"))
|
|
17
20
|
nuxt.options.css.push("@fontsource-variable/inter");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, nextTick, onMounted, reactive, ref, shallowRef, watch } from 'vue'
|
|
3
|
-
import { sanitizeRichHtml } from '
|
|
3
|
+
import { sanitizeRichHtml } from '@meistrari/minuta-editor'
|
|
4
4
|
import MinutaIcon from './MinutaIcon.vue'
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, ref } from 'vue'
|
|
3
|
-
import { sanitizeRichHtml } from '
|
|
3
|
+
import { sanitizeRichHtml } from '@meistrari/minuta-editor'
|
|
4
4
|
import MinutaChromeCanvas from './MinutaChromeCanvas.vue'
|
|
5
5
|
import MinutaIcon from './MinutaIcon.vue'
|
|
6
6
|
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, ref, watch } from 'vue'
|
|
3
|
+
// Import explícito, e não auto-import do Nuxt: o auto-import é uma transformação
|
|
4
|
+
// de build que roda nos arquivos DO APP. Este componente é publicado em
|
|
5
|
+
// node_modules e não passa por ela — em produção `usePdfLoader` chegava como
|
|
6
|
+
// ReferenceError. Vale para composable; componente resolve em runtime pelo
|
|
7
|
+
// registro global, mas importar também os dois tira a dúvida.
|
|
8
|
+
import TelaButton from '@meistrari/tela-build/components/tela/button/button.vue'
|
|
9
|
+
import TelaPreview from '@meistrari/tela-build/components/tela/preview/preview.vue'
|
|
10
|
+
import { usePdfLoader } from '@meistrari/tela-build/composables/use-pdf-loader'
|
|
3
11
|
import type { MinutaFile } from '../composables/useMinutaApi'
|
|
4
12
|
import { useMinutaApi } from '../composables/useMinutaApi'
|
|
5
13
|
|