@picked/svelte 0.0.1-dev.1775004084041 → 0.0.1-dev.1775015576394
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/hooks/step.js +1 -1
- package/dist/plugins/devtools/screens/experiences/ExperienceDetailsScreen.svelte +0 -4
- package/dist/plugins/devtools/screens/experiences/ExperienceTreeScreen.svelte +6 -6
- package/dist/router/Step.svelte +4 -9
- package/dist/router/context.d.ts +0 -1
- package/package.json +2 -2
package/dist/hooks/step.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{STEP_CONTEXT_KEY as e}from"../context.js";import{getPicked as t}from"./client.js";import{getStepRouter as n}from"../router/context.js";import{
|
|
1
|
+
import{STEP_CONTEXT_KEY as e}from"../context.js";import{getPicked as t}from"./client.js";import{getStepRouter as n}from"../router/context.js";import{getContext as r,setContext as i}from"svelte";import{createForm as a}from"../form/create-form.svelte";function o(r){let o=t(),{activeStep:s}=n(),c=s.map(e=>e?.key===r),l=o.steps.listStore.map(e=>e.find(e=>e.key===r)??{id:r,key:r,name:``,fieldIds:[]});return i(e,{step:l,isActive:c,isActiveStep:c,...a(r,l.map(e=>e.name),l.map(e=>e.fieldIds))})}function s(){return r(e)}export{s as getStep,o as setStepContext};
|
|
@@ -247,8 +247,8 @@
|
|
|
247
247
|
const edge = d.source.data._originalEdges.find(
|
|
248
248
|
(e: ExperienceEdge) => e.destinationNodeId === targetId,
|
|
249
249
|
)
|
|
250
|
-
if (edge?.
|
|
251
|
-
if (edge?.
|
|
250
|
+
if (edge?.sourceHandle === 'true') return '#10b981'
|
|
251
|
+
if (edge?.sourceHandle === 'false') return '#ef4444'
|
|
252
252
|
return '#94a3b8'
|
|
253
253
|
})
|
|
254
254
|
.attr('stroke-width', 2)
|
|
@@ -276,8 +276,8 @@
|
|
|
276
276
|
const edge = d.source.data._originalEdges.find(
|
|
277
277
|
(e: ExperienceEdge) => e.destinationNodeId === targetId,
|
|
278
278
|
)
|
|
279
|
-
if (edge?.
|
|
280
|
-
if (edge?.
|
|
279
|
+
if (edge?.sourceHandle === 'true') return '#10b981'
|
|
280
|
+
if (edge?.sourceHandle === 'false') return '#ef4444'
|
|
281
281
|
return '#64748b'
|
|
282
282
|
})
|
|
283
283
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- D3 callback types are untyped
|
|
@@ -288,8 +288,8 @@
|
|
|
288
288
|
const edge = d.source.data._originalEdges.find(
|
|
289
289
|
(e: ExperienceEdge) => e.destinationNodeId === targetId,
|
|
290
290
|
)
|
|
291
|
-
if (edge?.
|
|
292
|
-
if (edge?.
|
|
291
|
+
if (edge?.sourceHandle === 'true') return 'Yes'
|
|
292
|
+
if (edge?.sourceHandle === 'false') return 'No'
|
|
293
293
|
return ''
|
|
294
294
|
})
|
|
295
295
|
|
package/dist/router/Step.svelte
CHANGED
|
@@ -5,26 +5,21 @@
|
|
|
5
5
|
import { getStepRouter } from './context'
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
8
|
-
|
|
9
|
-
key?: string
|
|
10
|
-
/** @deprecated Use `key` instead. Accepted for backwards compatibility. */
|
|
11
|
-
id?: string
|
|
8
|
+
key: string
|
|
12
9
|
component?: Component | Promise<Component> | Promise<{ default: Component }>
|
|
13
10
|
children?: Snippet
|
|
14
11
|
}
|
|
15
12
|
|
|
16
|
-
const { key,
|
|
13
|
+
const { key, component, children }: Props = $props()
|
|
17
14
|
|
|
18
|
-
const resolvedKey = key ?? id ?? ''
|
|
19
15
|
|
|
20
16
|
const step = {
|
|
21
|
-
|
|
22
|
-
key: resolvedKey,
|
|
17
|
+
key,
|
|
23
18
|
}
|
|
24
19
|
|
|
25
20
|
const { registerStep, unregisterStep } = getStepRouter()
|
|
26
21
|
|
|
27
|
-
setStepContext(
|
|
22
|
+
setStepContext(key)
|
|
28
23
|
|
|
29
24
|
$effect(() => {
|
|
30
25
|
registerStep(step)
|
package/dist/router/context.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@picked/svelte",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.1775015576394",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"d3": "^7.9.0"
|
|
6
6
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"module": "./dist/index.js",
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@picked/client": "0.0.1-dev.
|
|
91
|
+
"@picked/client": "0.0.1-dev.1775015576394",
|
|
92
92
|
"effector": "^23.3.0",
|
|
93
93
|
"svelte": "^5.46.4"
|
|
94
94
|
},
|