@lankajs/svelte 0.1.0 → 0.1.1
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/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/testing.js +5 -12802
- package/dist/testing.js.map +1 -1
- package/package.json +4 -3
- package/skills/lanka-svelte/SKILL.md +1 -1
- package/skills/lanka-svelte/reference.md +1 -1
- package/dist/chunk-5WRI5ZAA.js +0 -31
- package/dist/chunk-5WRI5ZAA.js.map +0 -1
- package/dist/wrapper-scaffold-3RO7M4FF.js +0 -39
- package/dist/wrapper-scaffold-3RO7M4FF.js.map +0 -1
- package/dist/wrapper-scaffold-legacy-UQDPD4HL.js +0 -48
- package/dist/wrapper-scaffold-legacy-UQDPD4HL.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lankajs/svelte",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "module: One function — `useLankaVM` — over `createSubscriber`, and the access tracking core already does.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,14 +30,15 @@
|
|
|
30
30
|
"skills"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"lanka": "^2.0.
|
|
33
|
+
"lanka": "^2.0.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@testing-library/svelte": "^5.4.2",
|
|
37
37
|
"@lankajs/tool-testing": "^2.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"svelte": "^5.7.0"
|
|
40
|
+
"svelte": "^5.7.0",
|
|
41
|
+
"@testing-library/svelte": "^5.4.2"
|
|
41
42
|
},
|
|
42
43
|
"peerDependenciesMeta": {
|
|
43
44
|
"@testing-library/svelte": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Generated from modules/bindings/svelte/GUIDE.md by scripts/skills.mjs. Edit the guide. -->
|
|
2
2
|
|
|
3
|
-
> **`@lankajs/svelte@0.1.
|
|
3
|
+
> **`@lankajs/svelte@0.1.1`** — this document describes that version.
|
|
4
4
|
>
|
|
5
5
|
> Install: `npm install @lankajs/svelte svelte zustand` (the peers are not optional; only npm adds a missing one for you).
|
|
6
6
|
>
|
package/dist/chunk-5WRI5ZAA.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
-
mod
|
|
25
|
-
));
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
__commonJS,
|
|
29
|
-
__toESM
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=chunk-5WRI5ZAA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import "./chunk-5WRI5ZAA.js";
|
|
2
|
-
|
|
3
|
-
// ../../../node_modules/.pnpm/@testing-library+svelte-cor_4dd48ea7741982ca29c6e300d35ac45b/node_modules/@testing-library/svelte-core/src/wrapper-scaffold.svelte
|
|
4
|
-
import "svelte/internal/disclose-version";
|
|
5
|
-
import * as $ from "svelte/internal/client";
|
|
6
|
-
function Wrapper_scaffold($$anchor, $$props) {
|
|
7
|
-
$.push($$props, true);
|
|
8
|
-
let wrapperInstance = $.state(void 0);
|
|
9
|
-
let componentInstance = $.state(void 0);
|
|
10
|
-
const getWrapper = () => $.get(wrapperInstance);
|
|
11
|
-
const getComponent = () => $.get(componentInstance);
|
|
12
|
-
const getComponentProps = () => $$props.componentProps;
|
|
13
|
-
var $$exports = { getWrapper, getComponent, getComponentProps };
|
|
14
|
-
var fragment = $.comment();
|
|
15
|
-
var node = $.first_child(fragment);
|
|
16
|
-
$.component(node, () => $$props.wrapper, ($$anchor2, Wrapper_1) => {
|
|
17
|
-
$.bind_this(
|
|
18
|
-
Wrapper_1($$anchor2, $.spread_props(() => $$props.wrapperProps, {
|
|
19
|
-
children: ($$anchor3, $$slotProps) => {
|
|
20
|
-
var fragment_1 = $.comment();
|
|
21
|
-
var node_1 = $.first_child(fragment_1);
|
|
22
|
-
$.component(node_1, () => $$props.component, ($$anchor4, Component_1) => {
|
|
23
|
-
$.bind_this(Component_1($$anchor4, $.spread_props(() => $$props.componentProps)), ($$value) => $.set(componentInstance, $$value, true), () => $.get(componentInstance));
|
|
24
|
-
});
|
|
25
|
-
$.append($$anchor3, fragment_1);
|
|
26
|
-
},
|
|
27
|
-
$$slots: { default: true }
|
|
28
|
-
})),
|
|
29
|
-
($$value) => $.set(wrapperInstance, $$value, true),
|
|
30
|
-
() => $.get(wrapperInstance)
|
|
31
|
-
);
|
|
32
|
-
});
|
|
33
|
-
$.append($$anchor, fragment);
|
|
34
|
-
return $.pop($$exports);
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
Wrapper_scaffold as default
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=wrapper-scaffold-3RO7M4FF.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../node_modules/.pnpm/@testing-library+svelte-cor_4dd48ea7741982ca29c6e300d35ac45b/node_modules/@testing-library/svelte-core/src/wrapper-scaffold.svelte"],"sourcesContent":["import 'svelte/internal/disclose-version';\nimport * as $ from 'svelte/internal/client';\n\nexport default function Wrapper_scaffold($$anchor, $$props) {\n\t$.push($$props, true);\n\n\tlet wrapperInstance = $.state(void 0);\n\tlet componentInstance = $.state(void 0);\n\tconst getWrapper = () => $.get(wrapperInstance);\n\tconst getComponent = () => $.get(componentInstance);\n\tconst getComponentProps = () => $$props.componentProps;\n\tvar $$exports = { getWrapper, getComponent, getComponentProps };\n\tvar fragment = $.comment();\n\tvar node = $.first_child(fragment);\n\n\t$.component(node, () => $$props.wrapper, ($$anchor, Wrapper_1) => {\n\t\t$.bind_this(\n\t\t\tWrapper_1($$anchor, $.spread_props(() => $$props.wrapperProps, {\n\t\t\t\tchildren: ($$anchor, $$slotProps) => {\n\t\t\t\t\tvar fragment_1 = $.comment();\n\t\t\t\t\tvar node_1 = $.first_child(fragment_1);\n\n\t\t\t\t\t$.component(node_1, () => $$props.component, ($$anchor, Component_1) => {\n\t\t\t\t\t\t$.bind_this(Component_1($$anchor, $.spread_props(() => $$props.componentProps)), ($$value) => $.set(componentInstance, $$value, true), () => $.get(componentInstance));\n\t\t\t\t\t});\n\n\t\t\t\t\t$.append($$anchor, fragment_1);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true }\n\t\t\t})),\n\t\t\t($$value) => $.set(wrapperInstance, $$value, true),\n\t\t\t() => $.get(wrapperInstance)\n\t\t);\n\t});\n\n\t$.append($$anchor, fragment);\n\n\treturn $.pop($$exports);\n}"],"mappings":";;;AAAA,OAAO;AACP,YAAY,OAAO;AAEJ,SAAR,iBAAkC,UAAU,SAAS;AAC3D,EAAE,OAAK,SAAS,IAAI;AAEpB,MAAI,kBAAoB,QAAM,MAAM;AACpC,MAAI,oBAAsB,QAAM,MAAM;AACtC,QAAM,aAAa,MAAQ,MAAI,eAAe;AAC9C,QAAM,eAAe,MAAQ,MAAI,iBAAiB;AAClD,QAAM,oBAAoB,MAAM,QAAQ;AACxC,MAAI,YAAY,EAAE,YAAY,cAAc,kBAAkB;AAC9D,MAAI,WAAa,UAAQ;AACzB,MAAI,OAAS,cAAY,QAAQ;AAEjC,EAAE,YAAU,MAAM,MAAM,QAAQ,SAAS,CAACA,WAAU,cAAc;AACjE,IAAE;AAAA,MACD,UAAUA,WAAY,eAAa,MAAM,QAAQ,cAAc;AAAA,QAC9D,UAAU,CAACA,WAAU,gBAAgB;AACpC,cAAI,aAAe,UAAQ;AAC3B,cAAI,SAAW,cAAY,UAAU;AAErC,UAAE,YAAU,QAAQ,MAAM,QAAQ,WAAW,CAACA,WAAU,gBAAgB;AACvE,YAAE,YAAU,YAAYA,WAAY,eAAa,MAAM,QAAQ,cAAc,CAAC,GAAG,CAAC,YAAc,MAAI,mBAAmB,SAAS,IAAI,GAAG,MAAQ,MAAI,iBAAiB,CAAC;AAAA,UACtK,CAAC;AAED,UAAE,SAAOA,WAAU,UAAU;AAAA,QAC9B;AAAA,QACA,SAAS,EAAE,SAAS,KAAK;AAAA,MAC1B,CAAC,CAAC;AAAA,MACF,CAAC,YAAc,MAAI,iBAAiB,SAAS,IAAI;AAAA,MACjD,MAAQ,MAAI,eAAe;AAAA,IAC5B;AAAA,EACD,CAAC;AAED,EAAE,SAAO,UAAU,QAAQ;AAE3B,SAAS,MAAI,SAAS;AACvB;","names":["$$anchor"]}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import "./chunk-5WRI5ZAA.js";
|
|
2
|
-
|
|
3
|
-
// ../../../node_modules/.pnpm/@testing-library+svelte-cor_4dd48ea7741982ca29c6e300d35ac45b/node_modules/@testing-library/svelte-core/src/wrapper-scaffold-legacy.svelte
|
|
4
|
-
import "svelte/internal/disclose-version";
|
|
5
|
-
import "svelte/internal/flags/legacy";
|
|
6
|
-
import * as $ from "svelte/internal/client";
|
|
7
|
-
function Wrapper_scaffold_legacy($$anchor, $$props) {
|
|
8
|
-
$.push($$props, false);
|
|
9
|
-
let wrapper = $.prop($$props, "wrapper", 8);
|
|
10
|
-
let wrapperProps = $.prop($$props, "wrapperProps", 8);
|
|
11
|
-
let component2 = $.prop($$props, "component", 8);
|
|
12
|
-
let componentProps = $.prop($$props, "componentProps", 8);
|
|
13
|
-
let wrapperInstance = $.mutable_source();
|
|
14
|
-
let componentInstance = $.mutable_source();
|
|
15
|
-
const getWrapper = () => $.get(wrapperInstance);
|
|
16
|
-
const getComponent = () => $.get(componentInstance);
|
|
17
|
-
const getComponentProps = () => componentProps();
|
|
18
|
-
var $$exports = { getWrapper, getComponent, getComponentProps };
|
|
19
|
-
var fragment = $.comment();
|
|
20
|
-
var node = $.first_child(fragment);
|
|
21
|
-
$.component(node, wrapper, ($$anchor2, $$component) => {
|
|
22
|
-
$.bind_this(
|
|
23
|
-
$$component($$anchor2, $.spread_props(wrapperProps, {
|
|
24
|
-
children: ($$anchor3, $$slotProps) => {
|
|
25
|
-
var fragment_1 = $.comment();
|
|
26
|
-
var node_1 = $.first_child(fragment_1);
|
|
27
|
-
$.component(node_1, component2, ($$anchor4, $$component2) => {
|
|
28
|
-
$.bind_this($$component2($$anchor4, $.spread_props(componentProps, { $$legacy: true })), ($$value) => $.set(componentInstance, $$value), () => $.get(componentInstance));
|
|
29
|
-
});
|
|
30
|
-
$.append($$anchor3, fragment_1);
|
|
31
|
-
},
|
|
32
|
-
$$slots: { default: true },
|
|
33
|
-
$$legacy: true
|
|
34
|
-
})),
|
|
35
|
-
($$value) => $.set(wrapperInstance, $$value),
|
|
36
|
-
() => $.get(wrapperInstance)
|
|
37
|
-
);
|
|
38
|
-
});
|
|
39
|
-
$.append($$anchor, fragment);
|
|
40
|
-
$.bind_prop($$props, "getWrapper", getWrapper);
|
|
41
|
-
$.bind_prop($$props, "getComponent", getComponent);
|
|
42
|
-
$.bind_prop($$props, "getComponentProps", getComponentProps);
|
|
43
|
-
return $.pop($$exports);
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
Wrapper_scaffold_legacy as default
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=wrapper-scaffold-legacy-UQDPD4HL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../node_modules/.pnpm/@testing-library+svelte-cor_4dd48ea7741982ca29c6e300d35ac45b/node_modules/@testing-library/svelte-core/src/wrapper-scaffold-legacy.svelte"],"sourcesContent":["import 'svelte/internal/disclose-version';\nimport 'svelte/internal/flags/legacy';\nimport * as $ from 'svelte/internal/client';\n\nexport default function Wrapper_scaffold_legacy($$anchor, $$props) {\n\t$.push($$props, false);\n\n\tlet wrapper = $.prop($$props, 'wrapper', 8);\n\tlet wrapperProps = $.prop($$props, 'wrapperProps', 8);\n\tlet component = $.prop($$props, 'component', 8);\n\tlet componentProps = $.prop($$props, 'componentProps', 8);\n\tlet wrapperInstance = $.mutable_source();\n\tlet componentInstance = $.mutable_source();\n\tconst getWrapper = () => $.get(wrapperInstance);\n\tconst getComponent = () => $.get(componentInstance);\n\tconst getComponentProps = () => componentProps();\n\tvar $$exports = { getWrapper, getComponent, getComponentProps };\n\tvar fragment = $.comment();\n\tvar node = $.first_child(fragment);\n\n\t$.component(node, wrapper, ($$anchor, $$component) => {\n\t\t$.bind_this(\n\t\t\t$$component($$anchor, $.spread_props(wrapperProps, {\n\t\t\t\tchildren: ($$anchor, $$slotProps) => {\n\t\t\t\t\tvar fragment_1 = $.comment();\n\t\t\t\t\tvar node_1 = $.first_child(fragment_1);\n\n\t\t\t\t\t$.component(node_1, component, ($$anchor, $$component) => {\n\t\t\t\t\t\t$.bind_this($$component($$anchor, $.spread_props(componentProps, { $$legacy: true })), ($$value) => $.set(componentInstance, $$value), () => $.get(componentInstance));\n\t\t\t\t\t});\n\n\t\t\t\t\t$.append($$anchor, fragment_1);\n\t\t\t\t},\n\t\t\t\t$$slots: { default: true },\n\t\t\t\t$$legacy: true\n\t\t\t})),\n\t\t\t($$value) => $.set(wrapperInstance, $$value),\n\t\t\t() => $.get(wrapperInstance)\n\t\t);\n\t});\n\n\t$.append($$anchor, fragment);\n\t$.bind_prop($$props, 'getWrapper', getWrapper);\n\t$.bind_prop($$props, 'getComponent', getComponent);\n\t$.bind_prop($$props, 'getComponentProps', getComponentProps);\n\n\treturn $.pop($$exports);\n}"],"mappings":";;;AAAA,OAAO;AACP,OAAO;AACP,YAAY,OAAO;AAEJ,SAAR,wBAAyC,UAAU,SAAS;AAClE,EAAE,OAAK,SAAS,KAAK;AAErB,MAAI,UAAY,OAAK,SAAS,WAAW,CAAC;AAC1C,MAAI,eAAiB,OAAK,SAAS,gBAAgB,CAAC;AACpD,MAAIA,aAAc,OAAK,SAAS,aAAa,CAAC;AAC9C,MAAI,iBAAmB,OAAK,SAAS,kBAAkB,CAAC;AACxD,MAAI,kBAAoB,iBAAe;AACvC,MAAI,oBAAsB,iBAAe;AACzC,QAAM,aAAa,MAAQ,MAAI,eAAe;AAC9C,QAAM,eAAe,MAAQ,MAAI,iBAAiB;AAClD,QAAM,oBAAoB,MAAM,eAAe;AAC/C,MAAI,YAAY,EAAE,YAAY,cAAc,kBAAkB;AAC9D,MAAI,WAAa,UAAQ;AACzB,MAAI,OAAS,cAAY,QAAQ;AAEjC,EAAE,YAAU,MAAM,SAAS,CAACC,WAAU,gBAAgB;AACrD,IAAE;AAAA,MACD,YAAYA,WAAY,eAAa,cAAc;AAAA,QAClD,UAAU,CAACA,WAAU,gBAAgB;AACpC,cAAI,aAAe,UAAQ;AAC3B,cAAI,SAAW,cAAY,UAAU;AAErC,UAAE,YAAU,QAAQD,YAAW,CAACC,WAAUC,iBAAgB;AACzD,YAAE,YAAUA,aAAYD,WAAY,eAAa,gBAAgB,EAAE,UAAU,KAAK,CAAC,CAAC,GAAG,CAAC,YAAc,MAAI,mBAAmB,OAAO,GAAG,MAAQ,MAAI,iBAAiB,CAAC;AAAA,UACtK,CAAC;AAED,UAAE,SAAOA,WAAU,UAAU;AAAA,QAC9B;AAAA,QACA,SAAS,EAAE,SAAS,KAAK;AAAA,QACzB,UAAU;AAAA,MACX,CAAC,CAAC;AAAA,MACF,CAAC,YAAc,MAAI,iBAAiB,OAAO;AAAA,MAC3C,MAAQ,MAAI,eAAe;AAAA,IAC5B;AAAA,EACD,CAAC;AAED,EAAE,SAAO,UAAU,QAAQ;AAC3B,EAAE,YAAU,SAAS,cAAc,UAAU;AAC7C,EAAE,YAAU,SAAS,gBAAgB,YAAY;AACjD,EAAE,YAAU,SAAS,qBAAqB,iBAAiB;AAE3D,SAAS,MAAI,SAAS;AACvB;","names":["component","$$anchor","$$component"]}
|