@picked/svelte 0.0.1-dev.1783575114714 → 0.0.1-dev.1783642866820
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/client.d.ts +4 -16
- package/dist/plugins/devtools/screens/experiences/ExperienceTreeScreen.svelte +1 -1
- package/dist/plugins/devtools/screens/history/HistoryEntriesTable.svelte +2 -3
- package/dist/plugins/devtools/screens/history/HistoryEntryListItem.svelte +2 -2
- package/package.json +2 -2
package/dist/hooks/client.d.ts
CHANGED
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
import { Picked, ExperienceInstance } from '@picked/client';
|
|
2
2
|
/**
|
|
3
|
-
* Retrieves the Picked Client for the Experience Instance
|
|
3
|
+
* Retrieves the Picked Client for the Experience Instance
|
|
4
4
|
*
|
|
5
|
-
* @returns The Picked client instance that provides access to experiences, steps, and other Picked functionality
|
|
6
|
-
* @example
|
|
7
|
-
* const client = getPicked()
|
|
5
|
+
* @returns The Picked client instance that provides access to experiences, steps, and other Picked functionality
|
|
8
6
|
*/
|
|
9
7
|
export declare function getPicked(): Picked;
|
|
10
8
|
/**
|
|
11
|
-
* Retrieves the Experience Store for the current Experience Instance
|
|
9
|
+
* Retrieves the Experience Store for the current Experience Instance
|
|
12
10
|
*
|
|
13
|
-
* The
|
|
14
|
-
* resume/restart flows: call `instance.restart()` to clear this instance's history and
|
|
15
|
-
* the experience's owned responses, and subscribe to `instance.isResumableStore` (via the
|
|
16
|
-
* `$` prefix) to render a "continue / start over" prompt once the user has progressed past
|
|
17
|
-
* the first step (it stays `false` on the first step, even with a saved answer).
|
|
18
|
-
*
|
|
19
|
-
* @returns The Experience store instance that provides access to experience configuration and state.
|
|
20
|
-
* @example
|
|
21
|
-
* const experience = getExperience()
|
|
22
|
-
* const canResume = experience.isResumableStore
|
|
23
|
-
* // in markup: {#if $canResume}…{/if}
|
|
11
|
+
* @returns The Experience store instance that provides access to experience configuration and state
|
|
24
12
|
*/
|
|
25
13
|
export declare function getExperience(): ExperienceInstance;
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
const g = svg.append('g').attr('transform', `translate(${margin.left},${margin.top})`)
|
|
245
245
|
|
|
246
246
|
const linkGenerator = d3
|
|
247
|
-
.linkHorizontal<d3.HierarchyPointLink<ProcessedNode>, ProcessedNode
|
|
247
|
+
.linkHorizontal<d3.HierarchyPointLink<ProcessedNode>, d3.HierarchyPointNode<ProcessedNode>>()
|
|
248
248
|
.x((d) => d.y)
|
|
249
249
|
.y((d) => d.x)
|
|
250
250
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
<script lang="ts"
|
|
1
|
+
<script lang="ts">
|
|
2
2
|
import type { HistoryEntry } from '@picked/client'
|
|
3
|
-
import { Card, DataTable, EmptyState, Stack } from '../../ui'
|
|
4
3
|
import HistoryEntryListItem from './HistoryEntryListItem.svelte'
|
|
4
|
+
import { Card, DataTable, EmptyState, Stack } from '../../ui'
|
|
5
5
|
|
|
6
6
|
export let historyEntries: HistoryEntry[]
|
|
7
7
|
|
|
8
8
|
const columns = [
|
|
9
9
|
{ key: 'id', header: 'ID' },
|
|
10
|
-
{ key: 'instanceId', header: 'Instance ID' },
|
|
11
10
|
{ key: 'experienceId', header: 'Experience ID' },
|
|
12
11
|
{ key: 'nodeId', header: 'Node ID' },
|
|
13
12
|
{ key: 'nodeType', header: 'Node Type' },
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
<script lang="ts"
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
/** @file List item row displaying a navigation history entry in the devtools history screen. */
|
|
2
3
|
import type { HistoryEntry } from '@picked/client'
|
|
3
4
|
import { getPicked } from '../../../../hooks'
|
|
4
5
|
|
|
@@ -11,7 +12,6 @@
|
|
|
11
12
|
|
|
12
13
|
<tr>
|
|
13
14
|
<td>{historyEntry.id}</td>
|
|
14
|
-
<td>{historyEntry.instanceId}</td>
|
|
15
15
|
<td>{experienceName}</td>
|
|
16
16
|
<td>{historyEntry.node.id}</td>
|
|
17
17
|
<td>{historyEntry.node.type}</td>
|
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.1783642866820",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"d3": "^7.9.0"
|
|
6
6
|
},
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
},
|
|
107
107
|
"module": "./dist/index.js",
|
|
108
108
|
"peerDependencies": {
|
|
109
|
-
"@picked/client": "0.0.1-dev.
|
|
109
|
+
"@picked/client": "0.0.1-dev.1783642866820",
|
|
110
110
|
"effector": "^23.3.0",
|
|
111
111
|
"svelte": "^5.46.4"
|
|
112
112
|
},
|