@lssm/example.learning-journey-platform-tour 1.41.0 → 1.42.2

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.
Files changed (45) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +41 -0
  2. package/.turbo/turbo-build.log +37 -15
  3. package/CHANGELOG.md +34 -0
  4. package/LICENSE +21 -0
  5. package/README.md +3 -0
  6. package/dist/docs/index.d.ts +1 -0
  7. package/dist/docs/index.js +1 -1
  8. package/dist/docs/platform-tour.docblock.d.ts +1 -0
  9. package/dist/docs/platform-tour.docblock.js +42 -1
  10. package/dist/docs/platform-tour.docblock.js.map +1 -0
  11. package/dist/example.d.ts +35 -0
  12. package/dist/example.d.ts.map +1 -0
  13. package/dist/example.js +39 -1
  14. package/dist/example.js.map +1 -0
  15. package/dist/handlers/demo.handlers.d.ts +25 -0
  16. package/dist/handlers/demo.handlers.d.ts.map +1 -0
  17. package/dist/handlers/demo.handlers.js +27 -1
  18. package/dist/handlers/demo.handlers.js.map +1 -0
  19. package/dist/index.d.ts +7 -0
  20. package/dist/index.js +9 -1
  21. package/dist/learning-journey-platform-tour.feature.d.ts +12 -0
  22. package/dist/learning-journey-platform-tour.feature.d.ts.map +1 -0
  23. package/dist/learning-journey-platform-tour.feature.js +68 -1
  24. package/dist/learning-journey-platform-tour.feature.js.map +1 -0
  25. package/dist/operations/index.d.ts +271 -0
  26. package/dist/operations/index.d.ts.map +1 -0
  27. package/dist/operations/index.js +176 -0
  28. package/dist/operations/index.js.map +1 -0
  29. package/dist/presentations/index.d.ts +9 -0
  30. package/dist/presentations/index.d.ts.map +1 -0
  31. package/dist/presentations/index.js +55 -1
  32. package/dist/presentations/index.js.map +1 -0
  33. package/dist/track.d.ts +8 -0
  34. package/dist/track.d.ts.map +1 -0
  35. package/dist/track.js +106 -1
  36. package/dist/track.js.map +1 -0
  37. package/package.json +28 -18
  38. package/src/index.ts +1 -1
  39. package/src/learning-journey-platform-tour.feature.ts +9 -8
  40. package/src/{contracts → operations}/index.test.ts +2 -2
  41. package/src/{contracts → operations}/index.ts +2 -2
  42. package/src/presentations/index.ts +17 -9
  43. package/tsconfig.tsbuildinfo +1 -1
  44. package/tsdown.config.js +11 -1
  45. package/dist/contracts/index.js +0 -1
package/package.json CHANGED
@@ -1,24 +1,26 @@
1
1
  {
2
2
  "name": "@lssm/example.learning-journey-platform-tour",
3
- "version": "1.41.0",
3
+ "version": "1.42.2",
4
4
  "description": "Learning journey track covering ContractSpec platform primitives.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {
9
- ".": "./src/index.ts",
10
- "./contracts": "./src/contracts/index.ts",
11
- "./docs": "./src/docs/index.ts",
12
- "./docs/platform-tour.docblock": "./src/docs/platform-tour.docblock.ts",
13
- "./example": "./src/example.ts",
14
- "./handlers/demo.handlers": "./src/handlers/demo.handlers.ts",
15
- "./learning-journey-platform-tour.feature": "./src/learning-journey-platform-tour.feature.ts",
16
- "./presentations": "./src/presentations/index.ts",
17
- "./track": "./src/track.ts",
9
+ ".": "./dist/index.js",
10
+ "./docs": "./dist/docs/index.js",
11
+ "./docs/platform-tour.docblock": "./dist/docs/platform-tour.docblock.js",
12
+ "./example": "./dist/example.js",
13
+ "./handlers/demo.handlers": "./dist/handlers/demo.handlers.js",
14
+ "./learning-journey-platform-tour.feature": "./dist/learning-journey-platform-tour.feature.js",
15
+ "./operations": "./dist/operations/index.js",
16
+ "./presentations": "./dist/presentations/index.js",
17
+ "./track": "./dist/track.js",
18
18
  "./*": "./*"
19
19
  },
20
20
  "scripts": {
21
- "build": "bun build:bundle && bun build:types",
21
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
22
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
23
+ "build": "bun build:types && bun build:bundle",
22
24
  "build:bundle": "tsdown",
23
25
  "build:types": "tsc --noEmit",
24
26
  "dev": "bun build:bundle --watch",
@@ -28,14 +30,14 @@
28
30
  "lint:check": "eslint src"
29
31
  },
30
32
  "dependencies": {
31
- "@lssm/lib.contracts": "workspace:*",
32
- "@lssm/lib.schema": "workspace:*",
33
- "@lssm/module.learning-journey": "workspace:*"
33
+ "@lssm/lib.contracts": "1.42.2",
34
+ "@lssm/lib.schema": "1.42.2",
35
+ "@lssm/module.learning-journey": "1.42.2"
34
36
  },
35
37
  "devDependencies": {
36
- "@lssm/tool.tsdown": "workspace:*",
37
- "@lssm/tool.typescript": "workspace:*",
38
- "tsdown": "^0.17.4",
38
+ "@lssm/tool.tsdown": "1.42.2",
39
+ "@lssm/tool.typescript": "1.42.2",
40
+ "tsdown": "^0.18.3",
39
41
  "typescript": "^5.9.3"
40
42
  },
41
43
  "module": "./dist/index.js",
@@ -51,6 +53,14 @@
51
53
  "./presentations": "./dist/presentations/index.js",
52
54
  "./track": "./dist/track.js",
53
55
  "./*": "./*"
54
- }
56
+ },
57
+ "registry": "https://registry.npmjs.org/",
58
+ "access": "public"
59
+ },
60
+ "license": "MIT",
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "https://github.com/lssm-tech/contractspec.git",
64
+ "directory": "packages/examples/learning-journey-platform-tour"
55
65
  }
56
66
  }
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from './track';
2
2
  export * from './docs';
3
- export * from './contracts';
3
+ export * from './operations';
4
4
  export * from './handlers/demo.handlers';
5
5
  export * from './presentations';
6
6
  export * from './learning-journey-platform-tour.feature';
@@ -12,6 +12,7 @@ import type { FeatureModuleSpec } from '@lssm/lib.contracts';
12
12
  export const LearningJourneyPlatformTourFeature: FeatureModuleSpec = {
13
13
  meta: {
14
14
  key: 'learning-journey-platform-tour',
15
+ version: 1,
15
16
  title: 'Learning Journey: Platform Tour',
16
17
  description:
17
18
  'Platform primitives tour journey for exploring ContractSpec core features',
@@ -23,8 +24,8 @@ export const LearningJourneyPlatformTourFeature: FeatureModuleSpec = {
23
24
 
24
25
  // All contract operations included in this feature
25
26
  operations: [
26
- { name: 'learningJourney.platformTour.recordEvent', version: 1 },
27
- { name: 'learningJourney.platformTour.getTrack', version: 1 },
27
+ { key: 'learningJourney.platformTour.recordEvent', version: 1 },
28
+ { key: 'learningJourney.platformTour.getTrack', version: 1 },
28
29
  ],
29
30
 
30
31
  // Events emitted by this feature
@@ -32,27 +33,27 @@ export const LearningJourneyPlatformTourFeature: FeatureModuleSpec = {
32
33
 
33
34
  // Presentations associated with this feature
34
35
  presentations: [
35
- { name: 'learning.journey.platform.track', version: 1 },
36
- { name: 'learning.journey.platform.widget', version: 1 },
36
+ { key: 'learning.journey.platform.track', version: 1 },
37
+ { key: 'learning.journey.platform.widget', version: 1 },
37
38
  ],
38
39
 
39
40
  // Link operations to their primary presentations
40
41
  opToPresentation: [
41
42
  {
42
- op: { name: 'learningJourney.platformTour.getTrack', version: 1 },
43
- pres: { name: 'learning.journey.platform.track', version: 1 },
43
+ op: { key: 'learningJourney.platformTour.getTrack', version: 1 },
44
+ pres: { key: 'learning.journey.platform.track', version: 1 },
44
45
  },
45
46
  ],
46
47
 
47
48
  // Target requirements for multi-surface rendering
48
49
  presentationsTargets: [
49
50
  {
50
- name: 'learning.journey.platform.track',
51
+ key: 'learning.journey.platform.track',
51
52
  version: 1,
52
53
  targets: ['react', 'markdown', 'application/json'],
53
54
  },
54
55
  {
55
- name: 'learning.journey.platform.widget',
56
+ key: 'learning.journey.platform.widget',
56
57
  version: 1,
57
58
  targets: ['react'],
58
59
  },
@@ -16,7 +16,7 @@ describe('platform tour contracts', () => {
16
16
  it('exposes track metadata', () => {
17
17
  expect(platformTourContracts.track.id).toBe('platform_primitives_tour');
18
18
  expect(platformTourContracts.track.steps.length).toBeGreaterThan(0);
19
- expect(GetPlatformTourTrack.meta.name).toBe(
19
+ expect(GetPlatformTourTrack.meta.key).toBe(
20
20
  'learningJourney.platformTour.getTrack'
21
21
  );
22
22
  });
@@ -42,7 +42,7 @@ describe('platform tour contracts', () => {
42
42
  });
43
43
 
44
44
  it('exposes record event contract', () => {
45
- expect(RecordPlatformTourEvent.meta.name).toBe(
45
+ expect(RecordPlatformTourEvent.meta.key).toBe(
46
46
  'learningJourney.platformTour.recordEvent'
47
47
  );
48
48
  });
@@ -76,7 +76,7 @@ const SuccessModel = defineSchemaModel({
76
76
 
77
77
  export const GetPlatformTourTrack = defineQuery({
78
78
  meta: {
79
- name: 'learningJourney.platformTour.getTrack',
79
+ key: 'learningJourney.platformTour.getTrack',
80
80
  version: 1,
81
81
  stability: 'experimental',
82
82
  owners: [...OWNERS],
@@ -98,7 +98,7 @@ export const GetPlatformTourTrack = defineQuery({
98
98
 
99
99
  export const RecordPlatformTourEvent = defineCommand({
100
100
  meta: {
101
- name: 'learningJourney.platformTour.recordEvent',
101
+ key: 'learningJourney.platformTour.recordEvent',
102
102
  version: 1,
103
103
  stability: 'experimental',
104
104
  owners: [...OWNERS],
@@ -1,18 +1,26 @@
1
1
  import type {
2
- PresentationDescriptorV2,
3
- PresentationV2Meta,
2
+ PresentationSpecMeta,
3
+ PresentationSpec,
4
4
  } from '@lssm/lib.contracts';
5
- import { PlatformTourTrackModel } from '../contracts';
5
+ import { StabilityEnum } from '@lssm/lib.contracts';
6
+ import { PlatformTourTrackModel } from '../operations';
6
7
 
7
- const baseMeta: Pick<PresentationV2Meta, 'domain' | 'owners' | 'tags'> = {
8
+ const baseMeta: Pick<
9
+ PresentationSpecMeta,
10
+ 'domain' | 'owners' | 'tags' | 'title' | 'stability' | 'goal' | 'context'
11
+ > = {
8
12
  domain: 'learning-journey',
9
- owners: ['examples.learning-journey.platform-tour'],
13
+ title: 'Platform Tour',
14
+ owners: ['@examples.learning-journey.platform-tour'],
10
15
  tags: ['learning', 'platform', 'tour'],
16
+ stability: StabilityEnum.Experimental,
17
+ goal: 'Visualize platform tour progress',
18
+ context: 'Used in platform tour dashboard and widgets',
11
19
  };
12
20
 
13
- export const PlatformTourTrackPresentation: PresentationDescriptorV2 = {
21
+ export const PlatformTourTrackPresentation: PresentationSpec = {
14
22
  meta: {
15
- name: 'learning.journey.platform.track',
23
+ key: 'learning.journey.platform.track',
16
24
  version: 1,
17
25
  description: 'Platform primitives tour track detail',
18
26
  ...baseMeta,
@@ -26,9 +34,9 @@ export const PlatformTourTrackPresentation: PresentationDescriptorV2 = {
26
34
  targets: ['react', 'markdown', 'application/json'],
27
35
  };
28
36
 
29
- export const PlatformTourWidgetPresentation: PresentationDescriptorV2 = {
37
+ export const PlatformTourWidgetPresentation: PresentationSpec = {
30
38
  meta: {
31
- name: 'learning.journey.platform.widget',
39
+ key: 'learning.journey.platform.widget',
32
40
  version: 1,
33
41
  description: 'Compact widget for platform tour progress',
34
42
  ...baseMeta,