@juspay/svelte-ui-components 4.31.2 → 4.31.3

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.
@@ -1 +1 @@
1
- export {};
1
+ export { createRawSnippet } from 'svelte';
package/dist-wc/index.js CHANGED
@@ -140,6 +140,9 @@ function hydration_html_changed(e) {
140
140
  function hydration_mismatch(e) {
141
141
  console.warn("https://svelte.dev/e/hydration_mismatch");
142
142
  }
143
+ function invalid_raw_snippet_render() {
144
+ console.warn("https://svelte.dev/e/invalid_raw_snippet_render");
145
+ }
143
146
  function lifecycle_double_unmount() {
144
147
  console.warn("https://svelte.dev/e/lifecycle_double_unmount");
145
148
  }
@@ -2297,6 +2300,14 @@ function snippet(e, t, ...n) {
2297
2300
  i.ensure(e, e && ((t) => e(t, ...n)));
2298
2301
  }, EFFECT_TRANSPARENT);
2299
2302
  }
2303
+ function createRawSnippet(e) {
2304
+ return (t, ...n) => {
2305
+ var i = e(...n), a;
2306
+ hydrating ? (a = hydrate_node, hydrate_next()) : (a = /* @__PURE__ */ get_first_child(create_fragment_from_html(i.render().trim())), t.before(a));
2307
+ let o = i.setup?.(a);
2308
+ assign_nodes(a, a), typeof o == "function" && teardown(o);
2309
+ };
2310
+ }
2300
2311
  function onMount(e) {
2301
2312
  component_context === null && lifecycle_outside_component("onMount"), legacy_mode_flag && component_context.l !== null ? init_update_callbacks(component_context).m.push(e) : user_effect(() => {
2302
2313
  let t = untrack(e);
@@ -56338,3 +56349,4 @@ customElements.define("sui-rating-group", create_custom_element(RatingGroup_wc,
56338
56349
  onchange: { type: "Object" }
56339
56350
  }, [], [], { mode: "open" }, formAssociated({})));
56340
56351
  //#endregion
56352
+ export { createRawSnippet };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "4.31.2",
3
+ "version": "4.31.3",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",
@@ -22,7 +22,7 @@
22
22
  "scripts": {
23
23
  "dev": "vite dev --host",
24
24
  "build": "vite build && npm run build:wc && npm run build:codemod && npm run package",
25
- "build:wc": "vite build --config vite.config.wc.ts && echo 'export {};' > dist-wc/index.d.ts",
25
+ "build:wc": "vite build --config vite.config.wc.ts && echo \"export { createRawSnippet } from 'svelte';\" > dist-wc/index.d.ts",
26
26
  "build:codemod": "rm -rf dist-codemod && tsc -p scripts/codemod/tsconfig.build.json && node --experimental-strip-types scripts/codemod/generate-migration-assets.ts",
27
27
  "preview": "vite preview",
28
28
  "package": "svelte-kit sync && svelte-package && publint",