@juspay/svelte-ui-components 4.31.1 → 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.
- package/dist-wc/index.d.ts +1 -1
- package/dist-wc/index.js +12 -0
- package/package.json +4 -3
package/dist-wc/index.d.ts
CHANGED
|
@@ -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.
|
|
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
|
|
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",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"codemod": "node scripts/codemod/cli.ts",
|
|
34
34
|
"check:wc": "svelte-check --tsconfig ./tsconfig.wc.json --compiler-warnings \"options_missing_custom_element:ignore\"",
|
|
35
35
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
36
|
-
"lint": "prettier --check src scripts tests && eslint src scripts tests && npm run lint:event-casing && npm run lint:shadow-safety && npm run lint:css-contract && npm run lint:docs-contract && npm run lint:wc-contract && npm run lint:test-focus && npm run lint:focus-visible",
|
|
36
|
+
"lint": "prettier --check src scripts tests && eslint src scripts tests && npm run lint:wc-unused && npm run lint:event-casing && npm run lint:shadow-safety && npm run lint:css-contract && npm run lint:docs-contract && npm run lint:wc-contract && npm run lint:test-focus && npm run lint:focus-visible",
|
|
37
37
|
"lint:event-casing": "node scripts/check-event-casing.js",
|
|
38
38
|
"format": "prettier --write src scripts tests",
|
|
39
39
|
"test:integration": "playwright test",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"lint:css-contract": "node scripts/check-css-contract.js",
|
|
51
51
|
"lint:docs-contract": "node scripts/check-docs-contract.js",
|
|
52
52
|
"lint:wc-contract": "node scripts/check-wc-contract.js",
|
|
53
|
+
"lint:wc-unused": "eslint --config eslint.wc.config.js src/wc",
|
|
53
54
|
"lint:test-focus": "node scripts/check-test-focus.js",
|
|
54
55
|
"lint:focus-visible": "node scripts/check-focus-visible.js",
|
|
55
56
|
"test:walkthrough": "playwright test --config playwright.walkthrough.config.ts"
|