svelte-intlayer 7.1.8 → 7.1.9

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 (144) hide show
  1. package/dist/IntlayerNodeWrapper.svelte +10 -0
  2. package/dist/IntlayerNodeWrapper.svelte.d.ts +22 -0
  3. package/dist/client/IntlayerProvider.svelte +24 -0
  4. package/dist/client/IntlayerProvider.svelte.d.ts +30 -0
  5. package/dist/{types/client → client}/getBrowserLocale.d.ts +1 -1
  6. package/dist/client/getBrowserLocale.js +17 -0
  7. package/dist/client/index.js +12 -0
  8. package/dist/{types/client → client}/intlayerContext.d.ts +1 -1
  9. package/dist/client/intlayerContext.js +8 -0
  10. package/dist/client/intlayerStore.d.ts +11 -0
  11. package/dist/client/intlayerStore.js +19 -0
  12. package/dist/{types/client → client}/useDictionary.d.ts +3 -3
  13. package/dist/client/useDictionary.js +18 -0
  14. package/dist/{types/client → client}/useDictionaryAsync.d.ts +2 -2
  15. package/dist/client/useDictionaryAsync.js +38 -0
  16. package/dist/{types/client → client}/useDictionaryDynamic.d.ts +2 -2
  17. package/dist/client/useDictionaryDynamic.js +38 -0
  18. package/dist/{types/client → client}/useIntlayer.d.ts +3 -3
  19. package/dist/client/useIntlayer.js +18 -0
  20. package/dist/{types/client → client}/useLocale.d.ts +4 -4
  21. package/dist/client/useLocale.js +33 -0
  22. package/dist/client/useLocaleStorage.d.ts +39 -0
  23. package/dist/client/useLocaleStorage.js +52 -0
  24. package/dist/editor/ContentSelector.svelte +125 -0
  25. package/dist/editor/ContentSelector.svelte.d.ts +35 -0
  26. package/dist/editor/ContentSelectorWrapper.svelte +69 -0
  27. package/dist/editor/ContentSelectorWrapper.svelte.d.ts +31 -0
  28. package/dist/{types/editor → editor}/communicator.d.ts +1 -1
  29. package/dist/editor/communicator.js +54 -0
  30. package/dist/{types/editor → editor}/dictionariesRecord.d.ts +2 -2
  31. package/dist/editor/dictionariesRecord.js +16 -0
  32. package/dist/{types/editor → editor}/editorEnabled.d.ts +1 -1
  33. package/dist/editor/editorEnabled.js +41 -0
  34. package/dist/{types/editor → editor}/focusDictionary.d.ts +2 -2
  35. package/dist/editor/focusDictionary.js +22 -0
  36. package/dist/editor/index.js +9 -0
  37. package/dist/{types/editor → editor}/useCrossFrameMessageListener.d.ts +1 -1
  38. package/dist/editor/useCrossFrameMessageListener.js +65 -0
  39. package/dist/{types/editor → editor}/useCrossFrameState.d.ts +2 -2
  40. package/dist/editor/useCrossFrameState.js +82 -0
  41. package/dist/editor/useEditor.js +46 -0
  42. package/dist/editor/useIframeClickInterceptor.js +29 -0
  43. package/dist/{types/getDictionary.d.ts → getDictionary.d.ts} +3 -3
  44. package/dist/getDictionary.js +18 -0
  45. package/dist/{types/getIntlayer.d.ts → getIntlayer.d.ts} +3 -3
  46. package/dist/getIntlayer.js +18 -0
  47. package/dist/{types/index.d.ts → index.d.ts} +3 -3
  48. package/dist/index.js +7 -0
  49. package/dist/index.test.d.ts +1 -0
  50. package/dist/index.test.js +6 -0
  51. package/dist/markdown/MarkdownMetadataRenderer.svelte +21 -0
  52. package/dist/markdown/MarkdownMetadataRenderer.svelte.d.ts +25 -0
  53. package/dist/markdown/MarkdownMetadataWithSelector.svelte +21 -0
  54. package/dist/markdown/MarkdownMetadataWithSelector.svelte.d.ts +24 -0
  55. package/dist/markdown/MarkdownProvider.svelte +9 -0
  56. package/dist/markdown/MarkdownProvider.svelte.d.ts +29 -0
  57. package/dist/markdown/MarkdownRenderer.svelte +11 -0
  58. package/dist/markdown/MarkdownRenderer.svelte.d.ts +20 -0
  59. package/dist/markdown/MarkdownWithSelector.svelte +15 -0
  60. package/dist/markdown/MarkdownWithSelector.svelte.d.ts +23 -0
  61. package/dist/markdown/context.js +10 -0
  62. package/dist/markdown/index.js +4 -0
  63. package/dist/{types/plugins.d.ts → plugins.d.ts} +3 -3
  64. package/dist/plugins.js +87 -0
  65. package/dist/renderIntlayerNode.js +44 -0
  66. package/dist/setIntlayerMarkdown.d.ts +1 -0
  67. package/dist/setIntlayerMarkdown.js +2 -0
  68. package/package.json +22 -30
  69. package/dist/ContentSelectorWrapper-Ct4vOl_g.js +0 -163
  70. package/dist/ContentSelectorWrapper-DMEqv3vE.cjs +0 -10
  71. package/dist/MarkdownRenderer-BFrmuaFN.js +0 -47
  72. package/dist/MarkdownRenderer-DyK7SeHa.cjs +0 -1
  73. package/dist/cjs/client/getBrowserLocale.cjs +0 -1
  74. package/dist/cjs/client/index.cjs +0 -1
  75. package/dist/cjs/client/intlayerContext.cjs +0 -1
  76. package/dist/cjs/client/intlayerStore.cjs +0 -1
  77. package/dist/cjs/client/useDictionary.cjs +0 -1
  78. package/dist/cjs/client/useDictionaryAsync.cjs +0 -1
  79. package/dist/cjs/client/useDictionaryDynamic.cjs +0 -1
  80. package/dist/cjs/client/useIntlayer.cjs +0 -1
  81. package/dist/cjs/client/useLocale.cjs +0 -1
  82. package/dist/cjs/client/useLocaleStorage.cjs +0 -1
  83. package/dist/cjs/editor/communicator.cjs +0 -1
  84. package/dist/cjs/editor/dictionariesRecord.cjs +0 -1
  85. package/dist/cjs/editor/editorEnabled.cjs +0 -1
  86. package/dist/cjs/editor/focusDictionary.cjs +0 -1
  87. package/dist/cjs/editor/index.cjs +0 -1
  88. package/dist/cjs/editor/useCrossFrameMessageListener.cjs +0 -1
  89. package/dist/cjs/editor/useCrossFrameState.cjs +0 -1
  90. package/dist/cjs/editor/useEditor.cjs +0 -1
  91. package/dist/cjs/editor/useIframeClickInterceptor.cjs +0 -1
  92. package/dist/cjs/getDictionary.cjs +0 -1
  93. package/dist/cjs/getIntlayer.cjs +0 -1
  94. package/dist/cjs/index.cjs +0 -1
  95. package/dist/cjs/markdown/context.cjs +0 -1
  96. package/dist/cjs/markdown/index.cjs +0 -1
  97. package/dist/cjs/plugins.cjs +0 -1
  98. package/dist/cjs/renderIntlayerNode.cjs +0 -1
  99. package/dist/cjs/setIntlayerMarkdown.cjs +0 -1
  100. package/dist/esm/client/getBrowserLocale.mjs +0 -9
  101. package/dist/esm/client/index.mjs +0 -19
  102. package/dist/esm/client/intlayerContext.mjs +0 -8
  103. package/dist/esm/client/intlayerStore.mjs +0 -16
  104. package/dist/esm/client/useDictionary.mjs +0 -14
  105. package/dist/esm/client/useDictionaryAsync.mjs +0 -27
  106. package/dist/esm/client/useDictionaryDynamic.mjs +0 -27
  107. package/dist/esm/client/useIntlayer.mjs +0 -14
  108. package/dist/esm/client/useLocale.mjs +0 -33
  109. package/dist/esm/client/useLocaleStorage.mjs +0 -29
  110. package/dist/esm/editor/communicator.mjs +0 -31
  111. package/dist/esm/editor/dictionariesRecord.mjs +0 -20
  112. package/dist/esm/editor/editorEnabled.mjs +0 -28
  113. package/dist/esm/editor/focusDictionary.mjs +0 -21
  114. package/dist/esm/editor/index.mjs +0 -23
  115. package/dist/esm/editor/useCrossFrameMessageListener.mjs +0 -37
  116. package/dist/esm/editor/useCrossFrameState.mjs +0 -53
  117. package/dist/esm/editor/useEditor.mjs +0 -38
  118. package/dist/esm/editor/useIframeClickInterceptor.mjs +0 -26
  119. package/dist/esm/getDictionary.mjs +0 -18
  120. package/dist/esm/getIntlayer.mjs +0 -14
  121. package/dist/esm/index.mjs +0 -37
  122. package/dist/esm/markdown/context.mjs +0 -11
  123. package/dist/esm/markdown/index.mjs +0 -21
  124. package/dist/esm/plugins.mjs +0 -133
  125. package/dist/esm/renderIntlayerNode.mjs +0 -51
  126. package/dist/esm/setIntlayerMarkdown.mjs +0 -5
  127. package/dist/types/IntlayerNodeWrapper.svelte.d.ts +0 -1
  128. package/dist/types/client/intlayerStore.d.ts +0 -11
  129. package/dist/types/client/useLocaleStorage.d.ts +0 -39
  130. package/dist/types/editor/ContentSelector.svelte.d.ts +0 -1
  131. package/dist/types/editor/ContentSelectorWrapper.svelte.d.ts +0 -1
  132. package/dist/types/markdown/MarkdownMetadataRenderer.svelte.d.ts +0 -1
  133. package/dist/types/markdown/MarkdownMetadataWithSelector.svelte.d.ts +0 -1
  134. package/dist/types/markdown/MarkdownProvider.svelte.d.ts +0 -1
  135. package/dist/types/markdown/MarkdownRenderer.svelte.d.ts +0 -1
  136. package/dist/types/markdown/MarkdownWithSelector.svelte.d.ts +0 -1
  137. package/dist/types/setIntlayerMarkdown.d.ts +0 -1
  138. /package/dist/{types/client → client}/index.d.ts +0 -0
  139. /package/dist/{types/editor → editor}/index.d.ts +0 -0
  140. /package/dist/{types/editor → editor}/useEditor.d.ts +0 -0
  141. /package/dist/{types/editor → editor}/useIframeClickInterceptor.d.ts +0 -0
  142. /package/dist/{types/markdown → markdown}/context.d.ts +0 -0
  143. /package/dist/{types/markdown → markdown}/index.d.ts +0 -0
  144. /package/dist/{types/renderIntlayerNode.d.ts → renderIntlayerNode.d.ts} +0 -0
@@ -1,38 +0,0 @@
1
- import { MessageKey as o } from "@intlayer/editor";
2
- import { onDestroy as l } from "svelte";
3
- import { get as n } from "svelte/store";
4
- import { useDictionariesRecord as E } from "./dictionariesRecord.mjs";
5
- import { useEditorEnabled as d } from "./editorEnabled.mjs";
6
- import { useCrossFrameMessageListener as a } from "./useCrossFrameMessageListener.mjs";
7
- import { useIframeClickMerger as u } from "./useIframeClickInterceptor.mjs";
8
- let i = !1, s = null;
9
- const R = () => {
10
- if (typeof window > "u" || i) return;
11
- i = !0;
12
- const e = d();
13
- E(), u(), a(
14
- `${o.INTLAYER_EDITOR_ENABLED}/post`,
15
- (r) => {
16
- e.wrapperEnabled.set(r);
17
- },
18
- !1
19
- );
20
- const f = a(
21
- `${o.INTLAYER_EDITOR_ENABLED}/get`,
22
- (r) => {
23
- e.wrapperEnabled.set(r);
24
- },
25
- !1
26
- ), t = () => {
27
- const r = n(e.isInIframe), m = n(e.settingEnabled);
28
- r && m && f();
29
- };
30
- t(), e.isInIframe.subscribe(() => t()), s = e.isInIframe.subscribe(
31
- () => t()
32
- ), l(() => {
33
- i = !1, s && (s(), s = null);
34
- });
35
- };
36
- export {
37
- R as useEditor
38
- };
@@ -1,26 +0,0 @@
1
- import { MessageKey as n, mergeIframeClick as s } from "@intlayer/editor";
2
- import { onMount as t, onDestroy as i } from "svelte";
3
- import { useCrossFrameMessageListener as r } from "./useCrossFrameMessageListener.mjs";
4
- const m = () => {
5
- const e = r(
6
- n.INTLAYER_IFRAME_CLICKED
7
- ), o = () => {
8
- e();
9
- };
10
- t(() => {
11
- typeof window < "u" && window.addEventListener("mousedown", o);
12
- }), i(() => {
13
- typeof window < "u" && window.removeEventListener("mousedown", o);
14
- });
15
- }, I = () => {
16
- m(), r(
17
- n.INTLAYER_IFRAME_CLICKED,
18
- (e) => {
19
- s(e);
20
- }
21
- );
22
- };
23
- export {
24
- m as useIframeClickInterceptor,
25
- I as useIframeClickMerger
26
- };
@@ -1,18 +0,0 @@
1
- import { getDictionary as r } from "@intlayer/core";
2
- import { intlayerNodePlugins as e, svelteNodePlugins as g, markdownPlugin as s } from "./plugins.mjs";
3
- const c = (t, i, o) => {
4
- const n = [
5
- e,
6
- g,
7
- s,
8
- ...o ?? []
9
- ];
10
- return r(
11
- t,
12
- i,
13
- n
14
- );
15
- };
16
- export {
17
- c as getDictionary
18
- };
@@ -1,14 +0,0 @@
1
- import { getIntlayer as o } from "@intlayer/core";
2
- import { intlayerNodePlugins as l, svelteNodePlugins as g, markdownPlugin as i } from "./plugins.mjs";
3
- const m = (t, e, n) => {
4
- const r = [
5
- l,
6
- g,
7
- i,
8
- ...n ?? []
9
- ];
10
- return o(t, e, r);
11
- };
12
- export {
13
- m as getIntlayer
14
- };
@@ -1,37 +0,0 @@
1
- import { getBrowserLocale as m } from "./client/getBrowserLocale.mjs";
2
- import { getIntlayerContext as s, setIntlayerContext as x } from "./client/intlayerContext.mjs";
3
- import { intlayerStore as y } from "./client/intlayerStore.mjs";
4
- import { useDictionary as u } from "./client/useDictionary.mjs";
5
- import { useDictionaryAsync as c } from "./client/useDictionaryAsync.mjs";
6
- import { useDictionaryDynamic as I } from "./client/useDictionaryDynamic.mjs";
7
- import { useIntlayer as D } from "./client/useIntlayer.mjs";
8
- import { useLocale as P } from "./client/useLocale.mjs";
9
- import { getDictionary as E } from "./getDictionary.mjs";
10
- import { getIntlayer as M } from "./getIntlayer.mjs";
11
- import { intlayerNodePlugins as S, markdownPlugin as v, markdownStringPlugin as A, svelteNodePlugins as B } from "./plugins.mjs";
12
- import "./editor/communicator.mjs";
13
- import "@intlayer/config/built";
14
- import "svelte";
15
- import "svelte/store";
16
- import "@intlayer/editor";
17
- import { useEditor as h } from "./editor/useEditor.mjs";
18
- import { setMarkdownContext as q } from "./markdown/context.mjs";
19
- export {
20
- m as getBrowserLocale,
21
- E as getDictionary,
22
- M as getIntlayer,
23
- s as getIntlayerContext,
24
- S as intlayerNodePlugins,
25
- y as intlayerStore,
26
- v as markdownPlugin,
27
- A as markdownStringPlugin,
28
- x as setIntlayerContext,
29
- q as setIntlayerMarkdown,
30
- B as svelteNodePlugins,
31
- u as useDictionary,
32
- c as useDictionaryAsync,
33
- I as useDictionaryDynamic,
34
- D as useIntlayer,
35
- h as useIntlayerEditor,
36
- P as useLocale
37
- };
@@ -1,11 +0,0 @@
1
- import { setContext as e, getContext as n } from "svelte";
2
- const o = Symbol("INTLAYER_MARKDOWN_CONTEXT"), C = () => n(o) || {
3
- renderMarkdown: (t) => t
4
- }, s = (t) => {
5
- e(o, t);
6
- };
7
- export {
8
- o as MARKDOWN_CONTEXT_KEY,
9
- C as getMarkdownContext,
10
- s as setMarkdownContext
11
- };
@@ -1,21 +0,0 @@
1
- import { setMarkdownContext as m } from "./context.mjs";
2
- import { MARKDOWN_CONTEXT_KEY as l, getMarkdownContext as s } from "./context.mjs";
3
- import { M as u, a as c } from "../../MarkdownRenderer-BFrmuaFN.js";
4
- import "svelte/internal/disclose-version";
5
- import "svelte/internal/flags/legacy";
6
- import * as r from "svelte/internal/client";
7
- function f(n, e) {
8
- r.push(e, !1);
9
- let t = r.prop(e, "renderMarkdown", 8, (d) => d);
10
- m({ renderMarkdown: t() }), r.init();
11
- var o = r.comment(), a = r.first_child(o);
12
- r.slot(a, e, "default", {}, null), r.append(n, o), r.pop();
13
- }
14
- export {
15
- l as MARKDOWN_CONTEXT_KEY,
16
- u as MarkdownMetadataRenderer,
17
- f as MarkdownProvider,
18
- c as MarkdownRenderer,
19
- s as getMarkdownContext,
20
- m as setMarkdownContext
21
- };
@@ -1,133 +0,0 @@
1
- import { getMarkdownMetadata as s } from "@intlayer/core";
2
- import { NodeType as d } from "@intlayer/types";
3
- import { a as u } from "../ContentSelectorWrapper-Ct4vOl_g.js";
4
- import "./editor/communicator.mjs";
5
- import "@intlayer/config/built";
6
- import "svelte";
7
- import "svelte/store";
8
- import "@intlayer/editor";
9
- import "@intlayer/unmerged-dictionaries-entry";
10
- import "svelte/internal/disclose-version";
11
- import "svelte/internal/flags/legacy";
12
- import * as i from "svelte/internal/client";
13
- import { M as c, a as g } from "../MarkdownRenderer-BFrmuaFN.js";
14
- import { renderIntlayerNode as p } from "./renderIntlayerNode.mjs";
15
- function P(t, e) {
16
- let r = i.prop(e, "dictionaryKey", 8), a = i.prop(e, "keyPath", 8), n = i.prop(e, "value", 8), l = i.prop(e, "metadataKeyPath", 8);
17
- u(t, {
18
- get dictionaryKey() {
19
- return r();
20
- },
21
- get keyPath() {
22
- return a();
23
- },
24
- children: (y, o) => {
25
- c(y, {
26
- get dictionaryKey() {
27
- return r();
28
- },
29
- get keyPath() {
30
- return a();
31
- },
32
- get value() {
33
- return n();
34
- },
35
- get metadataKeyPath() {
36
- return l();
37
- }
38
- });
39
- },
40
- $$slots: { default: !0 }
41
- });
42
- }
43
- function k(t, e) {
44
- let r = i.prop(e, "dictionaryKey", 8), a = i.prop(e, "keyPath", 8), n = i.prop(e, "value", 8);
45
- u(t, {
46
- get dictionaryKey() {
47
- return r();
48
- },
49
- get keyPath() {
50
- return a();
51
- },
52
- children: (l, y) => {
53
- g(l, {
54
- get dictionaryKey() {
55
- return r();
56
- },
57
- get keyPath() {
58
- return a();
59
- },
60
- get value() {
61
- return n();
62
- }
63
- });
64
- },
65
- $$slots: { default: !0 }
66
- });
67
- }
68
- const f = {
69
- id: "intlayer-node-plugin",
70
- canHandle: (t) => typeof t == "bigint" || typeof t == "string" || typeof t == "number",
71
- transform: (t, { children: e, ...r }) => p({
72
- value: e ?? t,
73
- component: u,
74
- props: r
75
- })
76
- }, C = f, h = {
77
- id: "markdown-string-plugin",
78
- canHandle: (t) => typeof t == "string",
79
- transform: (t, e, r) => {
80
- const { ...a } = e, n = s(t) ?? {}, y = r(n, {
81
- plugins: [{
82
- id: "markdown-metadata-plugin",
83
- canHandle: (o) => typeof o == "string" || typeof o == "number" || typeof o == "boolean" || !o,
84
- transform: (o, m) => p({
85
- value: o,
86
- component: P,
87
- props: {
88
- ...a,
89
- value: t,
90
- // The full markdown string
91
- metadataKeyPath: m.keyPath
92
- }
93
- })
94
- }],
95
- dictionaryKey: a.dictionaryKey,
96
- keyPath: []
97
- }) ?? {};
98
- return p({
99
- value: t,
100
- component: k,
101
- props: {
102
- ...a,
103
- value: t
104
- },
105
- additionalProps: {
106
- metadata: y
107
- }
108
- });
109
- }
110
- }, I = {
111
- id: "markdown-plugin",
112
- canHandle: (t) => typeof t == "object" && t?.nodeType === d.Markdown,
113
- transform: (t, e, r) => {
114
- const a = [
115
- ...e.keyPath,
116
- {
117
- type: d.Markdown
118
- }
119
- ], n = t[d.Markdown];
120
- return r(n, {
121
- ...e,
122
- children: n,
123
- keyPath: a,
124
- plugins: [h, ...e.plugins ?? []]
125
- });
126
- }
127
- };
128
- export {
129
- f as intlayerNodePlugins,
130
- I as markdownPlugin,
131
- h as markdownStringPlugin,
132
- C as svelteNodePlugins
133
- };
@@ -1,51 +0,0 @@
1
- import "svelte/internal/disclose-version";
2
- import "svelte/internal/flags/legacy";
3
- import * as e from "svelte/internal/client";
4
- function d(r, n) {
5
- let t = e.prop(n, "Renderer", 8), o = e.prop(n, "rendererProps", 8), l = e.prop(n, "value", 8);
6
- var p = e.comment(), s = e.first_child(p);
7
- e.component(s, t, (i, u) => {
8
- u(i, e.spread_props(o, {
9
- children: (c, v) => {
10
- e.next();
11
- var a = e.text();
12
- e.template_effect(() => e.set_text(a, l())), e.append(c, a);
13
- },
14
- $$slots: { default: !0 }
15
- }));
16
- }), e.append(r, p);
17
- }
18
- const P = (r) => {
19
- const n = !!d.prototype?.$destroy;
20
- let t;
21
- return n ? t = class extends d {
22
- constructor(o) {
23
- super({
24
- ...o,
25
- props: {
26
- ...o.props,
27
- Renderer: r.component,
28
- rendererProps: r.props,
29
- value: r.value
30
- }
31
- });
32
- }
33
- } : t = (o, l) => {
34
- const p = {
35
- ...l,
36
- Renderer: r.component,
37
- rendererProps: r.props,
38
- value: r.value
39
- };
40
- return d(o, p);
41
- }, Object.defineProperty(t, "value", {
42
- value: r.value,
43
- writable: !1
44
- }), Object.defineProperty(t, "toString", {
45
- value: () => r.value?.toString() ?? "",
46
- writable: !1
47
- }), r.additionalProps && Object.assign(t, r.additionalProps), t;
48
- };
49
- export {
50
- P as renderIntlayerNode
51
- };
@@ -1,5 +0,0 @@
1
- import { setMarkdownContext as t } from "./markdown/context.mjs";
2
- const r = t;
3
- export {
4
- r as setIntlayerMarkdown
5
- };
@@ -1 +0,0 @@
1
- export { SvelteComponent as default } from 'svelte';
@@ -1,11 +0,0 @@
1
- import { LocalesValues } from '@intlayer/types';
2
- import { Readable } from 'svelte/store';
3
- export interface IntlayerStoreType {
4
- locale: LocalesValues;
5
- }
6
- export declare const intlayerStore: {
7
- subscribe: (this: void, run: import('svelte/store').Subscriber<IntlayerStoreType>, invalidate?: () => void) => import('svelte/store').Unsubscriber;
8
- setLocale: (locale: LocalesValues) => void;
9
- getLocale: () => Readable<LocalesValues>;
10
- reset: () => void;
11
- };
@@ -1,39 +0,0 @@
1
- import { LocalesValues } from '@intlayer/types';
2
- /**
3
- * Get the locale cookie
4
- */
5
- export declare const localeInStorage: import('@intlayer/types').Locale | undefined;
6
- /**
7
- * @deprecated Use localeInStorage instead
8
- *
9
- * Get the locale cookie
10
- */
11
- export declare const localeCookie: import('@intlayer/types').Locale | undefined;
12
- /**
13
- * Set the locale cookie
14
- */
15
- export declare const setLocaleInStorage: (locale: LocalesValues, isCookieEnabled: boolean) => void;
16
- /**
17
- * @deprecated Use setLocaleInStorage instead
18
- *
19
- * Set the locale cookie
20
- */
21
- export declare const setLocaleCookie: (locale: LocalesValues, isCookieEnabled: boolean) => void;
22
- /**
23
- * Composable that provides the locale storage and a function to set it
24
- */
25
- export declare const useLocaleStorage: (isCookieEnabled?: boolean) => {
26
- localeStorage: import('svelte/store').Readable<"af" | "af-ZA" | "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-OM" | "ar-QA" | "ar-SA" | "ar-SY" | "ar-TN" | "ar-YE" | "az" | "az-AZ" | "be" | "be-BY" | "bg" | "bg-BG" | "bs" | "bs-BA" | "ca" | "ca-ES" | "cs" | "cs-CZ" | "cy" | "cy-GB" | "da" | "da-DK" | "de" | "de-AT" | "de-CH" | "de-DE" | "de-LI" | "de-LU" | "dv" | "dv-MV" | "el" | "el-GR" | "en" | "en-AU" | "en-BZ" | "en-CA" | "en-CB" | "en-GB" | "en-IE" | "en-JM" | "en-NZ" | "en-PH" | "en-TT" | "en-US" | "en-ZA" | "en-ZW" | "eo" | "es" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-ES" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PE" | "es-PR" | "es-PY" | "es-SV" | "es-UY" | "es-VE" | "et" | "et-EE" | "eu" | "eu-ES" | "fa" | "fa-IR" | "fi" | "fi-FI" | "fo" | "fo-FO" | "fr" | "fr-BE" | "fr-CA" | "fr-CH" | "fr-FR" | "fr-LU" | "fr-MC" | "gl" | "gl-ES" | "gu" | "gu-IN" | "he" | "he-IL" | "hi" | "hi-IN" | "hr" | "hr-BA" | "hr-HR" | "hu" | "hu-HU" | "hy" | "hy-AM" | "id" | "id-ID" | "is" | "is-IS" | "it" | "it-CH" | "it-IT" | "ja" | "ja-JP" | "ka" | "ka-GE" | "kk" | "kk-KZ" | "kn" | "kn-IN" | "ko" | "ko-KR" | "kok" | "kok-IN" | "ky" | "ky-KG" | "lt" | "lt-LT" | "lv" | "lv-LV" | "mi" | "mi-NZ" | "mk" | "mk-MK" | "mn" | "mn-MN" | "mr" | "mr-IN" | "ms" | "ms-BN" | "ms-MY" | "mt" | "mt-MT" | "nb" | "nb-NO" | "nl" | "nl-BE" | "nl-NL" | "nn-NO" | "ns" | "ns-ZA" | "pa" | "pa-IN" | "pl" | "pl-PL" | "ps" | "ps-AR" | "pt" | "pt-BR" | "pt-PT" | "qu" | "qu-BO" | "qu-EC" | "qu-PE" | "ro" | "ro-RO" | "ru" | "ru-RU" | "sa" | "sa-IN" | "se" | "se-FI" | "se-NO" | "se-SE" | "sk" | "sk-SK" | "sl" | "sl-SI" | "sq" | "sq-AL" | "sr" | "sr-BA" | "sr-SP" | "sv" | "sv-FI" | "sv-SE" | "sw" | "sw-KE" | "syr" | "syr-SY" | "ta" | "ta-IN" | "te" | "te-IN" | "th" | "th-TH" | "tl" | "tl-PH" | "tn" | "tn-ZA" | "tr" | "tr-TR" | "tt" | "tt-RU" | "ts" | "uk" | "uk-UA" | "ur" | "ur-PK" | "uz" | "uz-UZ" | "vi" | "vi-VN" | "xh" | "xh-ZA" | "zh" | "zh-Hans" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-Hant" | "zu" | "zu-ZA" | "bn" | "bn-BD" | "bn-IN" | "bn-MM" | "my" | "my-MM" | "km" | "km-KH" | "lo" | "lo-LA" | "yo" | "yo-NG" | "am" | "am-ET" | "ne" | "ne-NP" | "si" | "si-LK" | "sr-Cyrl" | "sr-RS" | "en-IN" | "en-SG" | "en-HK" | "en-NG" | "en-PK" | "en-MY" | "en-BW" | "en-KE" | "en-TZ" | "en-GH" | "en-UG" | "es-CU" | "es-US" | "pt-GW" | "pt-MZ" | "pt-ST" | "pt-CV" | "pt-TL" | "pt-MO" | "zh-TW" | "ar-MR" | "ar-PS" | "ar-SD" | "ar-DJ" | "ar-SO" | "ar-TD" | "ar-KM">;
27
- setLocaleStorage: (locale: LocalesValues) => void;
28
- };
29
- /**
30
- * @deprecated Use useLocaleStorage instead
31
- *
32
- * For GDPR compliance, use useLocaleStorage instead
33
- *
34
- * Composable that provides the locale cookie and a function to set it
35
- */
36
- export declare const useLocaleCookie: (isCookieEnabled?: boolean) => {
37
- localeCookie: import('svelte/store').Readable<"af" | "af-ZA" | "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-OM" | "ar-QA" | "ar-SA" | "ar-SY" | "ar-TN" | "ar-YE" | "az" | "az-AZ" | "be" | "be-BY" | "bg" | "bg-BG" | "bs" | "bs-BA" | "ca" | "ca-ES" | "cs" | "cs-CZ" | "cy" | "cy-GB" | "da" | "da-DK" | "de" | "de-AT" | "de-CH" | "de-DE" | "de-LI" | "de-LU" | "dv" | "dv-MV" | "el" | "el-GR" | "en" | "en-AU" | "en-BZ" | "en-CA" | "en-CB" | "en-GB" | "en-IE" | "en-JM" | "en-NZ" | "en-PH" | "en-TT" | "en-US" | "en-ZA" | "en-ZW" | "eo" | "es" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-ES" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PE" | "es-PR" | "es-PY" | "es-SV" | "es-UY" | "es-VE" | "et" | "et-EE" | "eu" | "eu-ES" | "fa" | "fa-IR" | "fi" | "fi-FI" | "fo" | "fo-FO" | "fr" | "fr-BE" | "fr-CA" | "fr-CH" | "fr-FR" | "fr-LU" | "fr-MC" | "gl" | "gl-ES" | "gu" | "gu-IN" | "he" | "he-IL" | "hi" | "hi-IN" | "hr" | "hr-BA" | "hr-HR" | "hu" | "hu-HU" | "hy" | "hy-AM" | "id" | "id-ID" | "is" | "is-IS" | "it" | "it-CH" | "it-IT" | "ja" | "ja-JP" | "ka" | "ka-GE" | "kk" | "kk-KZ" | "kn" | "kn-IN" | "ko" | "ko-KR" | "kok" | "kok-IN" | "ky" | "ky-KG" | "lt" | "lt-LT" | "lv" | "lv-LV" | "mi" | "mi-NZ" | "mk" | "mk-MK" | "mn" | "mn-MN" | "mr" | "mr-IN" | "ms" | "ms-BN" | "ms-MY" | "mt" | "mt-MT" | "nb" | "nb-NO" | "nl" | "nl-BE" | "nl-NL" | "nn-NO" | "ns" | "ns-ZA" | "pa" | "pa-IN" | "pl" | "pl-PL" | "ps" | "ps-AR" | "pt" | "pt-BR" | "pt-PT" | "qu" | "qu-BO" | "qu-EC" | "qu-PE" | "ro" | "ro-RO" | "ru" | "ru-RU" | "sa" | "sa-IN" | "se" | "se-FI" | "se-NO" | "se-SE" | "sk" | "sk-SK" | "sl" | "sl-SI" | "sq" | "sq-AL" | "sr" | "sr-BA" | "sr-SP" | "sv" | "sv-FI" | "sv-SE" | "sw" | "sw-KE" | "syr" | "syr-SY" | "ta" | "ta-IN" | "te" | "te-IN" | "th" | "th-TH" | "tl" | "tl-PH" | "tn" | "tn-ZA" | "tr" | "tr-TR" | "tt" | "tt-RU" | "ts" | "uk" | "uk-UA" | "ur" | "ur-PK" | "uz" | "uz-UZ" | "vi" | "vi-VN" | "xh" | "xh-ZA" | "zh" | "zh-Hans" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-Hant" | "zu" | "zu-ZA" | "bn" | "bn-BD" | "bn-IN" | "bn-MM" | "my" | "my-MM" | "km" | "km-KH" | "lo" | "lo-LA" | "yo" | "yo-NG" | "am" | "am-ET" | "ne" | "ne-NP" | "si" | "si-LK" | "sr-Cyrl" | "sr-RS" | "en-IN" | "en-SG" | "en-HK" | "en-NG" | "en-PK" | "en-MY" | "en-BW" | "en-KE" | "en-TZ" | "en-GH" | "en-UG" | "es-CU" | "es-US" | "pt-GW" | "pt-MZ" | "pt-ST" | "pt-CV" | "pt-TL" | "pt-MO" | "zh-TW" | "ar-MR" | "ar-PS" | "ar-SD" | "ar-DJ" | "ar-SO" | "ar-TD" | "ar-KM">;
38
- setLocaleCookie: (locale: LocalesValues) => void;
39
- };
@@ -1 +0,0 @@
1
- export { SvelteComponent as default } from 'svelte';
@@ -1 +0,0 @@
1
- export { SvelteComponent as default } from 'svelte';
@@ -1 +0,0 @@
1
- export { SvelteComponent as default } from 'svelte';
@@ -1 +0,0 @@
1
- export { SvelteComponent as default } from 'svelte';
@@ -1 +0,0 @@
1
- export { SvelteComponent as default } from 'svelte';
@@ -1 +0,0 @@
1
- export { SvelteComponent as default } from 'svelte';
@@ -1 +0,0 @@
1
- export { SvelteComponent as default } from 'svelte';
@@ -1 +0,0 @@
1
- export declare const setIntlayerMarkdown: (context: import('./markdown').MarkdownContext) => void;
File without changes
File without changes
File without changes
File without changes
File without changes