@blokkli/editor 2.0.0-alpha.64 → 2.0.0-alpha.66

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 (52) hide show
  1. package/dist/module.d.mts +2 -2
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +48 -2
  4. package/dist/modules/agent/index.d.mts +1 -1
  5. package/dist/modules/agent/runtime/app/helpers/mutationResult.d.ts +12 -0
  6. package/dist/modules/agent/runtime/app/helpers/mutationResult.js +34 -0
  7. package/dist/modules/agent/runtime/app/providers/toolsProvider.js +13 -7
  8. package/dist/modules/agent/runtime/app/tools/.nuxt/app.config.d.mts +4 -0
  9. package/dist/modules/agent/runtime/app/tools/.nuxt/app.config.js +21 -0
  10. package/dist/modules/agent/runtime/app/tools/.nuxt/components.d.ts +66 -0
  11. package/dist/modules/agent/runtime/app/tools/.nuxt/imports.d.ts +30 -0
  12. package/dist/modules/agent/runtime/app/tools/.nuxt/manifest/meta/test.json +1 -0
  13. package/dist/modules/agent/runtime/app/tools/.nuxt/types/app.config.d.ts +35 -0
  14. package/dist/modules/agent/runtime/app/tools/.nuxt/types/build.d.ts +23 -0
  15. package/dist/modules/agent/runtime/app/tools/.nuxt/types/builder-env.d.ts +1 -0
  16. package/dist/modules/agent/runtime/app/tools/.nuxt/types/components.d.ts +71 -0
  17. package/dist/modules/agent/runtime/app/tools/.nuxt/types/imports.d.ts +386 -0
  18. package/dist/modules/agent/runtime/app/tools/.nuxt/types/middleware.d.ts +11 -0
  19. package/dist/modules/agent/runtime/app/tools/.nuxt/types/modules.d.ts +79 -0
  20. package/dist/modules/agent/runtime/app/tools/.nuxt/types/nitro-layouts.d.ts +17 -0
  21. package/dist/modules/agent/runtime/app/tools/.nuxt/types/nitro-nuxt.d.ts +64 -0
  22. package/dist/modules/agent/runtime/app/tools/.nuxt/types/plugins.d.ts +29 -0
  23. package/dist/modules/agent/runtime/app/tools/.nuxt/types/runtime-config.d.ts +32 -0
  24. package/dist/modules/agent/runtime/app/tools/.nuxt/types/shared-imports.d.ts +10 -0
  25. package/dist/modules/agent/runtime/app/tools/.nuxt/types/vue-shim.d.ts +0 -0
  26. package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.d.ts +15 -4
  27. package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.js +43 -15
  28. package/dist/modules/agent/runtime/server/server-tools/load_tools/index.d.ts +1 -3
  29. package/dist/modules/agent/runtime/server/server-tools/load_tools/index.js +3 -1
  30. package/dist/modules/charts/index.d.mts +1 -1
  31. package/dist/modules/drupal/graphql/base/query.pbConfig.graphql +2 -2
  32. package/dist/modules/drupal/index.d.mts +1 -1
  33. package/dist/modules/iframes/index.d.mts +1 -1
  34. package/dist/modules/index.d.mts +1 -1
  35. package/dist/modules/readability/index.d.mts +1 -1
  36. package/dist/modules/table-of-contents/index.d.mts +1 -1
  37. package/dist/runtime/css/output.css +1 -0
  38. package/dist/runtime/editor/components/FlexTextarea/index.d.vue.ts +1 -1
  39. package/dist/runtime/editor/components/FlexTextarea/index.vue.d.ts +1 -1
  40. package/dist/runtime/editor/css/output.css +1 -1
  41. package/dist/runtime/editor/features/changelog/changelog.json +0 -32
  42. package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +1 -1
  43. package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +1 -1
  44. package/dist/runtime/editor/plugins/Sidebar/Detached/index.d.vue.ts +1 -1
  45. package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue.d.ts +1 -1
  46. package/dist/runtime/editor/plugins/Sidebar/index.d.vue.ts +2 -2
  47. package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +2 -2
  48. package/dist/runtime/editor/providers/state.d.ts +17 -1
  49. package/dist/runtime/editor/providers/state.js +14 -0
  50. package/dist/shared/{editor.BDyiQvbV.d.mts → editor.S5sA3rij.d.mts} +19 -1
  51. package/dist/types.d.mts +1 -1
  52. package/package.json +6 -6
package/dist/module.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NuxtModule } from 'nuxt/schema';
2
- import { M as ModuleOptions } from './shared/editor.BDyiQvbV.mjs';
3
- export { a as ModuleHooks } from './shared/editor.BDyiQvbV.mjs';
2
+ import { M as ModuleOptions } from './shared/editor.S5sA3rij.mjs';
3
+ export { a as ModuleHooks } from './shared/editor.S5sA3rij.mjs';
4
4
  import 'consola';
5
5
  import '../dist/global/types/definitions.js';
6
6
  import '../dist/global/types/theme.js';
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@blokkli/editor",
3
3
  "configKey": "blokkli",
4
- "version": "2.0.0-alpha.64",
4
+ "version": "2.0.0-alpha.66",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.15.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -19,7 +19,7 @@ import 'typescript';
19
19
  import 'oxc-walker';
20
20
 
21
21
  const name = "@blokkli/editor";
22
- const version = "2.0.0-alpha.64";
22
+ const version = "2.0.0-alpha.66";
23
23
 
24
24
  function validateOption(optionKey, option, icons) {
25
25
  const errors = [];
@@ -1203,6 +1203,11 @@ class ModuleHelper {
1203
1203
  * module and enabled sub-modules. Flushed by {@link applyBuildConfig}.
1204
1204
  */
1205
1205
  packageDependencies = /* @__PURE__ */ new Set();
1206
+ /**
1207
+ * npm packages that must resolve to a single copy across the whole app.
1208
+ * Flushed to Vite's resolve.dedupe by {@link applyBuildConfig}.
1209
+ */
1210
+ dedupedPackages = /* @__PURE__ */ new Set();
1206
1211
  isDev;
1207
1212
  isModuleBuild;
1208
1213
  isPrepare;
@@ -1279,11 +1284,28 @@ class ModuleHelper {
1279
1284
  this.packageDependencies.add(name);
1280
1285
  }
1281
1286
  }
1287
+ /**
1288
+ * Declare packages that must only ever exist once in the module graph.
1289
+ *
1290
+ * Libraries that rely on `instanceof` checks or module-level registries break
1291
+ * when a project's install tree ends up with two copies (e.g. a hoisted
1292
+ * version plus an older one nested under a transitive dependency). Forcing
1293
+ * resolution to a single copy makes the editor work regardless of how the
1294
+ * host project's package manager arranged node_modules.
1295
+ *
1296
+ * @param names - Bare package specifiers (e.g. 'prosemirror-model').
1297
+ */
1298
+ addDedupedPackage(...names) {
1299
+ for (const name of names) {
1300
+ this.dedupedPackages.add(name);
1301
+ }
1302
+ }
1282
1303
  /**
1283
1304
  * Apply collected build configuration to the Nuxt/Vite config.
1284
1305
  *
1285
1306
  * Called once by the core module after every module's setup has run, so it
1286
- * sees the full set of {@link addPackageDependency} registrations.
1307
+ * sees the full set of {@link addPackageDependency} and
1308
+ * {@link addDedupedPackage} registrations.
1287
1309
  */
1288
1310
  applyBuildConfig() {
1289
1311
  this.nuxt.options.vite.optimizeDeps ??= {};
@@ -1295,6 +1317,13 @@ class ModuleHelper {
1295
1317
  }
1296
1318
  include.push(name);
1297
1319
  }
1320
+ this.nuxt.options.vite.resolve ??= {};
1321
+ const dedupe = this.nuxt.options.vite.resolve.dedupe ??= [];
1322
+ for (const name of this.dedupedPackages) {
1323
+ if (!dedupe.includes(name)) {
1324
+ dedupe.push(name);
1325
+ }
1326
+ }
1298
1327
  }
1299
1328
  addAlias(name, path) {
1300
1329
  this.nuxt.options.alias[name] = path;
@@ -4695,6 +4724,23 @@ const module$1 = defineNuxtModule({
4695
4724
  "qrcode.vue",
4696
4725
  "twgl.js"
4697
4726
  );
4727
+ helper.addDedupedPackage(
4728
+ "@tiptap/core",
4729
+ "@tiptap/pm",
4730
+ "prosemirror-changeset",
4731
+ "prosemirror-commands",
4732
+ "prosemirror-dropcursor",
4733
+ "prosemirror-gapcursor",
4734
+ "prosemirror-history",
4735
+ "prosemirror-inputrules",
4736
+ "prosemirror-keymap",
4737
+ "prosemirror-model",
4738
+ "prosemirror-schema-list",
4739
+ "prosemirror-state",
4740
+ "prosemirror-tables",
4741
+ "prosemirror-transform",
4742
+ "prosemirror-view"
4743
+ );
4698
4744
  helper.applyBuildConfig();
4699
4745
  helper.addComponent("BlokkliField");
4700
4746
  helper.addComponent("BlokkliEditable");
@@ -1,4 +1,4 @@
1
- import { B as BlokkliModule } from '../../shared/editor.BDyiQvbV.mjs';
1
+ import { B as BlokkliModule } from '../../shared/editor.S5sA3rij.mjs';
2
2
  import 'nuxt/schema';
3
3
  import 'consola';
4
4
  import '../../../dist/global/types/definitions.js';
@@ -1,4 +1,5 @@
1
1
  import type { BlokkliApp } from '#blokkli/editor/types/app';
2
+ import type { MutationResponseLike } from '#blokkli/editor/adapter';
2
3
  /**
3
4
  * Tree-shaped entry in the `newParagraphs` payload returned by mutation tools.
4
5
  *
@@ -27,6 +28,17 @@ export type NewParagraphNode = {
27
28
  * round-trips are needed.
28
29
  */
29
30
  export declare function buildNewParagraphsTree(newUuids: string[], app: BlokkliApp, itemEntityType: string): NewParagraphNode[];
31
+ /**
32
+ * Compose an agent-facing error message from a rejected mutation response.
33
+ *
34
+ * Backends return structured `violations` (field-level constraint failures)
35
+ * and/or plain `errors`. Violations carry the useful context (which field on
36
+ * which entity failed and why), so they're preferred; the generic `errors`
37
+ * list (e.g. Drupal's catch-all "Entity Violations") is only used as a
38
+ * fallback when no violations are present. The result is surfaced to the LLM
39
+ * so it can correct the mutation (e.g. supply the missing required field).
40
+ */
41
+ export declare function formatMutationFailure(response: MutationResponseLike<any> | undefined): string;
30
42
  /**
31
43
  * Count every node in a `newParagraphs` tree, including nested children.
32
44
  *
@@ -35,6 +35,40 @@ export function buildNewParagraphsTree(newUuids, app, itemEntityType) {
35
35
  }
36
36
  return roots;
37
37
  }
38
+ function violationLocation(violation) {
39
+ const parts = [];
40
+ if (violation.propertyPath) {
41
+ parts.push(violation.propertyPath);
42
+ }
43
+ if (violation.entityUuid) {
44
+ const entity = violation.entityType ?? "entity";
45
+ parts.push(
46
+ violation.propertyPath ? `(${entity} ${violation.entityUuid})` : `${entity} ${violation.entityUuid}`
47
+ );
48
+ }
49
+ return parts.join(" ");
50
+ }
51
+ export function formatMutationFailure(response) {
52
+ if (!response) {
53
+ return "The mutation failed: the backend returned no response.";
54
+ }
55
+ const violations = response.violations ?? [];
56
+ if (violations.length) {
57
+ const lines = violations.map((violation) => {
58
+ const location = violationLocation(violation);
59
+ return location ? `- ${location}: ${violation.message}` : `- ${violation.message}`;
60
+ });
61
+ return `The mutation was rejected by the backend:
62
+ ${lines.join("\n")}`;
63
+ }
64
+ const errors = (response.errors ?? []).filter(Boolean);
65
+ if (errors.length) {
66
+ const lines = errors.map((error) => `- ${error}`);
67
+ return `The mutation was rejected by the backend:
68
+ ${lines.join("\n")}`;
69
+ }
70
+ return "The mutation was rejected by the backend.";
71
+ }
38
72
  export function countNewParagraphs(nodes) {
39
73
  let total = 0;
40
74
  for (const node of nodes) {
@@ -11,7 +11,10 @@ import {
11
11
  asRecord,
12
12
  splitMeta
13
13
  } from "#blokkli/agent/app/helpers";
14
- import { buildNewParagraphsTree } from "#blokkli/agent/app/helpers/mutationResult";
14
+ import {
15
+ buildNewParagraphsTree,
16
+ formatMutationFailure
17
+ } from "#blokkli/agent/app/helpers/mutationResult";
15
18
  import { mcpTools } from "#blokkli-build/agent-client";
16
19
  import { itemEntityType } from "#blokkli-build/config";
17
20
  import { generateId } from "#blokkli/agent/app/helpers/id";
@@ -95,14 +98,19 @@ export default function toolsProvider({
95
98
  if (setLabel) setLabel(action.label);
96
99
  async function applyMutation() {
97
100
  const uuidsBefore = state.getAllUuids();
98
- await state.mutateWithLoadingState(() => action.apply(adapter));
101
+ const response = await state.applyMutationSilently(
102
+ () => action.apply(adapter)
103
+ );
104
+ if (!response || !response.success) {
105
+ return { ok: false, error: formatMutationFailure(response) };
106
+ }
99
107
  const newUuids = state.getAllUuids().filter((uuid) => !uuidsBefore.includes(uuid));
100
108
  const selectUuids = newUuids.length ? newUuids : action.affectedUuids || [];
101
109
  if (selectUuids.length) {
102
110
  app.eventBus.emit("select", selectUuids);
103
111
  app.eventBus.emit("scrollSelectionIntoView", {});
104
112
  }
105
- return newUuids;
113
+ return { ok: true, result: buildMutationResult(newUuids), meta: {} };
106
114
  }
107
115
  function buildMutationResult(newUuids) {
108
116
  const newParagraphs = action.type === "add" ? buildNewParagraphsTree(newUuids, app, itemEntityType) : [];
@@ -114,13 +122,11 @@ export default function toolsProvider({
114
122
  };
115
123
  }
116
124
  if (autoApprove.value || !toolDef.requiresApproval) {
117
- const newUuids = await applyMutation();
118
- return { ok: true, result: buildMutationResult(newUuids), meta: {} };
125
+ return applyMutation();
119
126
  }
120
127
  const approved = await waitForApproval(action);
121
128
  if (approved) {
122
- const newUuids = await applyMutation();
123
- return { ok: true, result: buildMutationResult(newUuids), meta: {} };
129
+ return applyMutation();
124
130
  }
125
131
  if (action.revert) action.revert();
126
132
  return { ok: true, result: { success: false, rejected: true }, meta: {} };
@@ -0,0 +1,4 @@
1
+ declare namespace _default {
2
+ let nuxt: {};
3
+ }
4
+ export default _default;
@@ -0,0 +1,21 @@
1
+
2
+ import { defuFn } from 'defu'
3
+
4
+ const inlineConfig = {
5
+ "nuxt": {}
6
+ }
7
+
8
+ /** client **/
9
+ import { _replaceAppConfig } from '#app/config'
10
+
11
+ // Vite - webpack is handled directly in #app/config
12
+ if (import.meta.dev && !import.meta.nitro && import.meta.hot) {
13
+ import.meta.hot.accept((newModule) => {
14
+ _replaceAppConfig(newModule.default)
15
+ })
16
+ }
17
+ /** client-end **/
18
+
19
+
20
+
21
+ export default /*@__PURE__*/ defuFn(inlineConfig)
@@ -0,0 +1,66 @@
1
+
2
+ import type { DefineComponent, SlotsType } from 'vue'
3
+ type IslandComponent<T> = DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>> & T
4
+
5
+ type HydrationStrategies = {
6
+ hydrateOnVisible?: IntersectionObserverInit | true
7
+ hydrateOnIdle?: number | true
8
+ hydrateOnInteraction?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap> | true
9
+ hydrateOnMediaQuery?: string
10
+ hydrateAfter?: number
11
+ hydrateWhen?: boolean
12
+ hydrateNever?: true
13
+ }
14
+ type LazyComponent<T> = DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }> & T
15
+
16
+
17
+ export const NuxtWelcome: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/welcome.vue")['default']
18
+ export const NuxtLayout: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-layout")['default']
19
+ export const NuxtErrorBoundary: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue")['default']
20
+ export const ClientOnly: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/client-only")['default']
21
+ export const DevOnly: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/dev-only")['default']
22
+ export const ServerPlaceholder: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/server-placeholder")['default']
23
+ export const NuxtLink: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-link")['default']
24
+ export const NuxtLoadingIndicator: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default']
25
+ export const NuxtTime: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-time.vue")['default']
26
+ export const NuxtRouteAnnouncer: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default']
27
+ export const NuxtAnnouncer: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-announcer")['default']
28
+ export const NuxtImg: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg']
29
+ export const NuxtPicture: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture']
30
+ export const NuxtPage: typeof import("../../../../../../../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default']
31
+ export const NoScript: typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['NoScript']
32
+ export const Link: typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Link']
33
+ export const Base: typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Base']
34
+ export const Title: typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Title']
35
+ export const Meta: typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Meta']
36
+ export const Style: typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Style']
37
+ export const Head: typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Head']
38
+ export const Html: typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Html']
39
+ export const Body: typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Body']
40
+ export const NuxtIsland: typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-island")['default']
41
+ export const LazyNuxtWelcome: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/welcome.vue")['default']>
42
+ export const LazyNuxtLayout: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-layout")['default']>
43
+ export const LazyNuxtErrorBoundary: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue")['default']>
44
+ export const LazyClientOnly: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/client-only")['default']>
45
+ export const LazyDevOnly: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/dev-only")['default']>
46
+ export const LazyServerPlaceholder: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/server-placeholder")['default']>
47
+ export const LazyNuxtLink: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-link")['default']>
48
+ export const LazyNuxtLoadingIndicator: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default']>
49
+ export const LazyNuxtTime: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-time.vue")['default']>
50
+ export const LazyNuxtRouteAnnouncer: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default']>
51
+ export const LazyNuxtAnnouncer: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-announcer")['default']>
52
+ export const LazyNuxtImg: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg']>
53
+ export const LazyNuxtPicture: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture']>
54
+ export const LazyNuxtPage: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default']>
55
+ export const LazyNoScript: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['NoScript']>
56
+ export const LazyLink: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Link']>
57
+ export const LazyBase: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Base']>
58
+ export const LazyTitle: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Title']>
59
+ export const LazyMeta: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Meta']>
60
+ export const LazyStyle: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Style']>
61
+ export const LazyHead: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Head']>
62
+ export const LazyHtml: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Html']>
63
+ export const LazyBody: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Body']>
64
+ export const LazyNuxtIsland: LazyComponent<typeof import("../../../../../../../node_modules/nuxt/dist/app/components/nuxt-island")['default']>
65
+
66
+ export const componentNames: string[]
@@ -0,0 +1,30 @@
1
+ export { useScriptTriggerConsent, useScriptEventPage, useScriptTriggerElement, useScript, useScriptGoogleAnalytics, useScriptPlausibleAnalytics, useScriptCrisp, useScriptClarity, useScriptCloudflareWebAnalytics, useScriptVercelAnalytics, useScriptPostHog, useScriptFathomAnalytics, useScriptMatomoAnalytics, useScriptMixpanelAnalytics, useScriptBingUet, useScriptGoogleTagManager, useScriptGoogleAdsense, useScriptGoogleRecaptcha, useScriptGoogleSignIn, useScriptSegment, useScriptMetaPixel, useScriptXPixel, useScriptTikTokPixel, useScriptIntercom, useScriptHotjar, useScriptStripe, useScriptLemonSqueezy, useScriptVimeoPlayer, useScriptYouTubePlayer, useScriptGoogleMaps, useScriptNpm, useScriptUmamiAnalytics, useScriptSnapchatPixel, useScriptRybbitAnalytics, useScriptDatabuddyAnalytics, useScriptRedditPixel, useScriptPayPal, useScriptGravatar, useScriptAhrefsAnalytics, useScriptLinkedInInsight, useScriptCalendly, useScriptUsercentrics } from '#app/composables/script-stubs';
2
+ export { isVue2, isVue3 } from 'vue-demi';
3
+ export { defineNuxtLink } from '#app/components/nuxt-link';
4
+ export { useNuxtApp, tryUseNuxtApp, defineNuxtPlugin, definePayloadPlugin, useRuntimeConfig, defineAppConfig } from '#app/nuxt';
5
+ export { useAppConfig, updateAppConfig } from '#app/config';
6
+ export { defineNuxtComponent } from '#app/composables/component';
7
+ export { useAsyncData, useLazyAsyncData, useNuxtData, refreshNuxtData, clearNuxtData, createUseAsyncData } from '#app/composables/asyncData';
8
+ export { useHydration } from '#app/composables/hydrate';
9
+ export { callOnce } from '#app/composables/once';
10
+ export { useState, clearNuxtState } from '#app/composables/state';
11
+ export { clearError, createError, isNuxtError, showError, useError } from '#app/composables/error';
12
+ export { useFetch, useLazyFetch, createUseFetch } from '#app/composables/fetch';
13
+ export { useCookie, refreshCookie } from '#app/composables/cookie';
14
+ export { onPrehydrate, prerenderRoutes, useRequestHeader, useRequestHeaders, useResponseHeader, useRequestEvent, useRequestFetch, setResponseStatus } from '#app/composables/ssr';
15
+ export { onNuxtReady } from '#app/composables/ready';
16
+ export { preloadComponents, prefetchComponents, preloadRouteComponents } from '#app/composables/preload';
17
+ export { abortNavigation, addRouteMiddleware, defineNuxtRouteMiddleware, setPageLayout, navigateTo, useRoute, useRouter, onBeforeRouteLeave, onBeforeRouteUpdate } from '#app/composables/router';
18
+ export { isPrerendered, loadPayload, preloadPayload, definePayloadReducer, definePayloadReviver } from '#app/composables/payload';
19
+ export { useLoadingIndicator } from '#app/composables/loading-indicator';
20
+ export { getAppManifest, getRouteRules } from '#app/composables/manifest';
21
+ export { reloadNuxtApp } from '#app/composables/chunk';
22
+ export { useRequestURL } from '#app/composables/url';
23
+ export { usePreviewMode } from '#app/composables/preview';
24
+ export { useRouteAnnouncer } from '#app/composables/route-announcer';
25
+ export { useAnnouncer } from '#app/composables/announcer';
26
+ export { useRuntimeHook } from '#app/composables/runtime-hook';
27
+ export { useHead, useHeadSafe, useServerHeadSafe, useServerHead, useSeoMeta, useServerSeoMeta, injectHead } from '#app/composables/head';
28
+ export { withCtx, withDirectives, withKeys, withMemo, withModifiers, withScopeId, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onServerPrefetch, onUnmounted, onUpdated, computed, customRef, isProxy, isReactive, isReadonly, isRef, markRaw, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, watch, watchEffect, watchPostEffect, watchSyncEffect, onWatcherCleanup, isShallow, effect, effectScope, getCurrentScope, onScopeDispose, defineComponent, defineAsyncComponent, resolveComponent, getCurrentInstance, h, inject, hasInjectionContext, nextTick, provide, toValue, useModel, useAttrs, useCssModule, useSlots, useTransitionState, useId, useTemplateRef, useShadowRoot, useCssVars, Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue';
29
+ export { requestIdleCallback, cancelIdleCallback } from '#app/compat/idle-callback';
30
+ export { defineLazyHydrationComponent } from '#app/composables/lazy-hydration';
@@ -0,0 +1,35 @@
1
+
2
+ import type { AppConfigInput, CustomAppConfig } from 'nuxt/schema'
3
+ import type { Defu } from 'defu'
4
+
5
+
6
+ declare global {
7
+ const defineAppConfig: <C extends AppConfigInput> (config: C) => C
8
+ }
9
+
10
+ declare const inlineConfig = {
11
+ "nuxt": {}
12
+ }
13
+ type ResolvedAppConfig = Defu<typeof inlineConfig, []>
14
+ type IsAny<T> = 0 extends 1 & T ? true : false
15
+
16
+ type MergedAppConfig<Resolved extends Record<string, unknown>, Custom extends Record<string, unknown>> = {
17
+ [K in keyof (Resolved & Custom)]: K extends keyof Custom
18
+ ? unknown extends Custom[K]
19
+ ? Resolved[K]
20
+ : IsAny<Custom[K]> extends true
21
+ ? Resolved[K]
22
+ : Custom[K] extends Record<string, any>
23
+ ? Resolved[K] extends Record<string, any>
24
+ ? MergedAppConfig<Resolved[K], Custom[K]>
25
+ : Exclude<Custom[K], undefined>
26
+ : Exclude<Custom[K], undefined>
27
+ : Resolved[K]
28
+ }
29
+
30
+ declare module 'nuxt/schema' {
31
+ interface AppConfig extends MergedAppConfig<ResolvedAppConfig, CustomAppConfig> { }
32
+ }
33
+ declare module '@nuxt/schema' {
34
+ interface AppConfig extends MergedAppConfig<ResolvedAppConfig, CustomAppConfig> { }
35
+ }
@@ -0,0 +1,23 @@
1
+ declare module "#build/app-component.mjs";
2
+ declare module "#build/nitro.client.mjs";
3
+ declare module "#build/plugins.client.mjs";
4
+ declare module "#build/css.mjs";
5
+ declare module "#build/fetch.mjs";
6
+ declare module "#build/error-component.mjs";
7
+ declare module "#build/global-polyfills.mjs";
8
+ declare module "#build/layouts.mjs";
9
+ declare module "#build/middleware.mjs";
10
+ declare module "#build/nuxt.config.mjs";
11
+ declare module "#build/paths.mjs";
12
+ declare module "#build/root-component.mjs";
13
+ declare module "#build/plugins.server.mjs";
14
+ declare module "#build/test-component-wrapper.mjs";
15
+ declare module "#build/pages.mjs";
16
+ declare module "#build/router.options.mjs";
17
+ declare module "#build/unhead-options.mjs";
18
+ declare module "#build/unhead.config.mjs";
19
+ declare module "#build/components.plugin.mjs";
20
+ declare module "#build/component-names.mjs";
21
+ declare module "#build/components.islands.mjs";
22
+ declare module "#build/component-chunk.mjs";
23
+ declare module "#build/route-rules.mjs";
@@ -0,0 +1 @@
1
+ import "vite/client";
@@ -0,0 +1,71 @@
1
+
2
+ import type { DefineComponent, SlotsType } from 'vue'
3
+ type IslandComponent<T> = DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>> & T
4
+
5
+ type HydrationStrategies = {
6
+ hydrateOnVisible?: IntersectionObserverInit | true
7
+ hydrateOnIdle?: number | true
8
+ hydrateOnInteraction?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap> | true
9
+ hydrateOnMediaQuery?: string
10
+ hydrateAfter?: number
11
+ hydrateWhen?: boolean
12
+ hydrateNever?: true
13
+ }
14
+ type LazyComponent<T> = DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }> & T
15
+
16
+ interface _GlobalComponents {
17
+ NuxtWelcome: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/welcome.vue")['default']
18
+ NuxtLayout: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-layout")['default']
19
+ NuxtErrorBoundary: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue")['default']
20
+ ClientOnly: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/client-only")['default']
21
+ DevOnly: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/dev-only")['default']
22
+ ServerPlaceholder: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/server-placeholder")['default']
23
+ NuxtLink: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-link")['default']
24
+ NuxtLoadingIndicator: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default']
25
+ NuxtTime: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-time.vue")['default']
26
+ NuxtRouteAnnouncer: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default']
27
+ NuxtAnnouncer: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-announcer")['default']
28
+ NuxtImg: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg']
29
+ NuxtPicture: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture']
30
+ NuxtPage: typeof import("../../../../../../../../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default']
31
+ NoScript: typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['NoScript']
32
+ Link: typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Link']
33
+ Base: typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Base']
34
+ Title: typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Title']
35
+ Meta: typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Meta']
36
+ Style: typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Style']
37
+ Head: typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Head']
38
+ Html: typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Html']
39
+ Body: typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Body']
40
+ NuxtIsland: typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-island")['default']
41
+ LazyNuxtWelcome: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/welcome.vue")['default']>
42
+ LazyNuxtLayout: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-layout")['default']>
43
+ LazyNuxtErrorBoundary: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue")['default']>
44
+ LazyClientOnly: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/client-only")['default']>
45
+ LazyDevOnly: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/dev-only")['default']>
46
+ LazyServerPlaceholder: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/server-placeholder")['default']>
47
+ LazyNuxtLink: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-link")['default']>
48
+ LazyNuxtLoadingIndicator: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-loading-indicator")['default']>
49
+ LazyNuxtTime: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-time.vue")['default']>
50
+ LazyNuxtRouteAnnouncer: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-route-announcer")['default']>
51
+ LazyNuxtAnnouncer: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-announcer")['default']>
52
+ LazyNuxtImg: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtImg']>
53
+ LazyNuxtPicture: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-stubs")['NuxtPicture']>
54
+ LazyNuxtPage: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/pages/runtime/page-placeholder")['default']>
55
+ LazyNoScript: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['NoScript']>
56
+ LazyLink: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Link']>
57
+ LazyBase: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Base']>
58
+ LazyTitle: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Title']>
59
+ LazyMeta: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Meta']>
60
+ LazyStyle: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Style']>
61
+ LazyHead: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Head']>
62
+ LazyHtml: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Html']>
63
+ LazyBody: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/head/runtime/components")['Body']>
64
+ LazyNuxtIsland: LazyComponent<typeof import("../../../../../../../../node_modules/nuxt/dist/app/components/nuxt-island")['default']>
65
+ }
66
+
67
+ declare module 'vue' {
68
+ export interface GlobalComponents extends _GlobalComponents { }
69
+ }
70
+
71
+ export {}