@api-client/ui 0.1.7 → 0.1.8
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/.vscode/settings.json +1 -0
- package/build/src/core/Activity.d.ts +2 -2
- package/build/src/core/Activity.d.ts.map +1 -1
- package/build/src/core/Activity.js +2 -2
- package/build/src/core/Activity.js.map +1 -1
- package/build/src/core/ActivityManager.d.ts +29 -1
- package/build/src/core/ActivityManager.d.ts.map +1 -1
- package/build/src/core/ActivityManager.js +69 -45
- package/build/src/core/ActivityManager.js.map +1 -1
- package/build/src/core/Application.d.ts.map +1 -1
- package/build/src/core/Application.js +2 -2
- package/build/src/core/Application.js.map +1 -1
- package/build/src/core/ModalActivity.js +1 -1
- package/build/src/core/ModalActivity.js.map +1 -1
- package/eslint.config.js +3 -0
- package/package.json +1 -1
- package/src/core/Activity.ts +2 -2
- package/src/core/ActivityManager.ts +60 -36
- package/src/core/Application.ts +2 -2
- package/src/core/ModalActivity.ts +1 -1
- package/test/core/activity.spec.ts +2 -2
- package/test/core/activity_manager.spec.ts +25 -25
- package/test/core/application.spec.ts +3 -3
- package/test/core/fragment.spec.ts +2 -2
|
@@ -5,7 +5,7 @@ import { Fragment } from '../../src/core/Fragment.js'
|
|
|
5
5
|
import { Activity } from '../../src/core/Activity.js'
|
|
6
6
|
import { Application } from '../../src/core/Application.js'
|
|
7
7
|
import { FragmentState, FragmentManager } from '../../src/core/FragmentManager.js'
|
|
8
|
-
import { IntentResult, type Intent,
|
|
8
|
+
import { IntentResult, type Intent, ActivityLifecycle } from '../../src/core/ActivityManager.js'
|
|
9
9
|
import { FragmentRenderer } from '../../src/core/renderer/FragmentRenderer.js'
|
|
10
10
|
import { EventTypes } from '../../src/events/EventTypes.js'
|
|
11
11
|
import { nothing } from 'lit'
|
|
@@ -107,7 +107,7 @@ describe('Fragment', () => {
|
|
|
107
107
|
app = new TestApplication(renderRoot)
|
|
108
108
|
await app.run() // To register activity
|
|
109
109
|
activity = new TestActivity(app) // Parent for the fragment
|
|
110
|
-
activity.
|
|
110
|
+
activity.lifecycle = ActivityLifecycle.Resumed // Mock activity as active
|
|
111
111
|
fragment = new TestFragment({ parent: activity })
|
|
112
112
|
})
|
|
113
113
|
|