@contractspec/module.examples 3.8.7 → 3.8.9

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 CHANGED
@@ -700,6 +700,11 @@ function resolveTemplatePresentation(presentationName) {
700
700
  return TEMPLATE_PRESENTATIONS[presentationName];
701
701
  }
702
702
 
703
+ // src/runtime/runtime-client.ts
704
+ function getTemplateApolloClient(runtime) {
705
+ return runtime.graphql.apollo;
706
+ }
707
+
703
708
  // src/runtime/context.tsx
704
709
  import { jsxDEV } from "react/jsx-dev-runtime";
705
710
  "use client";
@@ -750,7 +755,7 @@ function TemplateRuntimeProvider({
750
755
  await runtime.init({});
751
756
  const installer = new TemplateInstaller({ runtime });
752
757
  await installer.install(templateId, { projectId });
753
- const client = web2.createLocalGraphqlClient(runtime);
758
+ const client = getTemplateApolloClient(runtime);
754
759
  const engine = await getTemplateEngine();
755
760
  const handlers = new TemplateHandlers;
756
761
  handlers.crm = createCrmHandlers(runtime.db);
@@ -699,6 +699,11 @@ function resolveTemplatePresentation(presentationName) {
699
699
  return TEMPLATE_PRESENTATIONS[presentationName];
700
700
  }
701
701
 
702
+ // src/runtime/runtime-client.ts
703
+ function getTemplateApolloClient(runtime) {
704
+ return runtime.graphql.apollo;
705
+ }
706
+
702
707
  // src/runtime/context.tsx
703
708
  import { jsxDEV } from "react/jsx-dev-runtime";
704
709
  "use client";
@@ -749,7 +754,7 @@ function TemplateRuntimeProvider({
749
754
  await runtime.init({});
750
755
  const installer = new TemplateInstaller({ runtime });
751
756
  await installer.install(templateId, { projectId });
752
- const client = web2.createLocalGraphqlClient(runtime);
757
+ const client = getTemplateApolloClient(runtime);
753
758
  const engine = await getTemplateEngine();
754
759
  const handlers = new TemplateHandlers;
755
760
  handlers.crm = createCrmHandlers(runtime.db);
@@ -0,0 +1,6 @@
1
+ export interface TemplateApolloRuntime<TApolloClient> {
2
+ graphql: {
3
+ apollo: TApolloClient;
4
+ };
5
+ }
6
+ export declare function getTemplateApolloClient<TApolloClient>(runtime: TemplateApolloRuntime<TApolloClient>): TApolloClient;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/module.examples",
3
- "version": "3.8.7",
3
+ "version": "3.8.9",
4
4
  "description": "Example contract specifications collection",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -18,7 +18,7 @@
18
18
  "scripts": {
19
19
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
20
20
  "publish:pkg:canary": "bun publish:pkg --tag canary",
21
- "build": "bun run prebuild && bun run build:bundle && bun run build:types",
21
+ "build": "bun run build:bundle && bun run build:types",
22
22
  "build:bundle": "contractspec-bun-build transpile",
23
23
  "build:types": "contractspec-bun-build types",
24
24
  "dev": "contractspec-bun-build dev",
@@ -33,70 +33,70 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@apollo/client": "^4.1.6",
36
- "@contractspec/example.agent-console": "3.8.7",
37
- "@contractspec/example.ai-chat-assistant": "3.8.7",
38
- "@contractspec/example.ai-support-bot": "3.7.15",
39
- "@contractspec/example.analytics-dashboard": "3.9.7",
40
- "@contractspec/example.calendar-google": "3.7.15",
41
- "@contractspec/example.content-generation": "3.7.15",
42
- "@contractspec/example.crm-pipeline": "3.7.15",
43
- "@contractspec/example.data-grid-showcase": "3.8.7",
44
- "@contractspec/example.email-gmail": "3.7.15",
45
- "@contractspec/example.in-app-docs": "3.7.15",
46
- "@contractspec/example.integration-hub": "3.8.7",
47
- "@contractspec/example.integration-posthog": "3.7.15",
48
- "@contractspec/example.integration-stripe": "3.7.15",
49
- "@contractspec/example.integration-supabase": "3.7.15",
50
- "@contractspec/example.voice-providers": "3.7.15",
51
- "@contractspec/example.kb-update-pipeline": "3.7.15",
52
- "@contractspec/example.knowledge-canon": "3.7.15",
53
- "@contractspec/example.learning-journey-ambient-coach": "3.7.15",
54
- "@contractspec/example.learning-journey-crm-onboarding": "3.7.15",
55
- "@contractspec/example.learning-journey-duo-drills": "3.7.15",
56
- "@contractspec/example.learning-journey-platform-tour": "3.7.15",
57
- "@contractspec/example.learning-journey-quest-challenges": "3.7.15",
58
- "@contractspec/example.learning-journey-registry": "3.7.15",
59
- "@contractspec/example.learning-journey-studio-onboarding": "3.7.15",
60
- "@contractspec/example.learning-journey-ui-coaching": "3.7.15",
61
- "@contractspec/example.learning-journey-ui-gamified": "3.7.15",
62
- "@contractspec/example.learning-journey-ui-onboarding": "3.7.15",
63
- "@contractspec/example.learning-journey-ui-shared": "3.7.15",
64
- "@contractspec/example.learning-patterns": "3.7.15",
65
- "@contractspec/example.lifecycle-cli": "3.7.15",
66
- "@contractspec/example.lifecycle-dashboard": "3.7.15",
67
- "@contractspec/example.locale-jurisdiction-gate": "3.7.15",
68
- "@contractspec/example.marketplace": "3.8.7",
69
- "@contractspec/example.meeting-recorder-providers": "3.7.15",
70
- "@contractspec/example.messaging-agent-actions": "3.8.7",
71
- "@contractspec/example.minimal": "2.8.7",
72
- "@contractspec/example.openbanking-powens": "3.7.15",
73
- "@contractspec/example.opencode-cli": "2.8.7",
74
- "@contractspec/example.personalization": "3.7.15",
75
- "@contractspec/example.pocket-family-office": "3.7.15",
76
- "@contractspec/example.policy-safe-knowledge-assistant": "3.7.15",
77
- "@contractspec/example.product-intent": "3.7.15",
78
- "@contractspec/example.project-management-sync": "3.7.15",
79
- "@contractspec/example.saas-boilerplate": "3.8.7",
80
- "@contractspec/example.service-business-os": "3.7.15",
81
- "@contractspec/example.team-hub": "3.7.15",
82
- "@contractspec/example.versioned-knowledge-base": "3.7.15",
83
- "@contractspec/example.video-api-showcase": "3.7.15",
84
- "@contractspec/example.video-docs-terminal": "3.7.15",
85
- "@contractspec/example.video-marketing-clip": "3.7.15",
86
- "@contractspec/example.visualization-showcase": "3.9.7",
87
- "@contractspec/example.wealth-snapshot": "3.7.15",
88
- "@contractspec/example.workflow-system": "3.8.7",
89
- "@contractspec/lib.contracts-spec": "5.0.3",
90
- "@contractspec/lib.example-shared-ui": "6.0.15",
91
- "@contractspec/lib.runtime-sandbox": "2.7.12",
36
+ "@contractspec/example.agent-console": "3.8.9",
37
+ "@contractspec/example.ai-chat-assistant": "3.8.9",
38
+ "@contractspec/example.ai-support-bot": "3.7.17",
39
+ "@contractspec/example.analytics-dashboard": "3.9.9",
40
+ "@contractspec/example.calendar-google": "3.7.17",
41
+ "@contractspec/example.content-generation": "3.7.17",
42
+ "@contractspec/example.crm-pipeline": "3.7.17",
43
+ "@contractspec/example.data-grid-showcase": "3.8.9",
44
+ "@contractspec/example.email-gmail": "3.7.17",
45
+ "@contractspec/example.in-app-docs": "3.7.17",
46
+ "@contractspec/example.integration-hub": "3.8.9",
47
+ "@contractspec/example.integration-posthog": "3.7.17",
48
+ "@contractspec/example.integration-stripe": "3.7.17",
49
+ "@contractspec/example.integration-supabase": "3.7.17",
50
+ "@contractspec/example.voice-providers": "3.7.17",
51
+ "@contractspec/example.kb-update-pipeline": "3.7.17",
52
+ "@contractspec/example.knowledge-canon": "3.7.17",
53
+ "@contractspec/example.learning-journey-ambient-coach": "3.7.17",
54
+ "@contractspec/example.learning-journey-crm-onboarding": "3.7.17",
55
+ "@contractspec/example.learning-journey-duo-drills": "3.7.17",
56
+ "@contractspec/example.learning-journey-platform-tour": "3.7.17",
57
+ "@contractspec/example.learning-journey-quest-challenges": "3.7.17",
58
+ "@contractspec/example.learning-journey-registry": "3.7.17",
59
+ "@contractspec/example.learning-journey-studio-onboarding": "3.7.17",
60
+ "@contractspec/example.learning-journey-ui-coaching": "3.7.17",
61
+ "@contractspec/example.learning-journey-ui-gamified": "3.7.17",
62
+ "@contractspec/example.learning-journey-ui-onboarding": "3.7.17",
63
+ "@contractspec/example.learning-journey-ui-shared": "3.7.17",
64
+ "@contractspec/example.learning-patterns": "3.7.17",
65
+ "@contractspec/example.lifecycle-cli": "3.7.17",
66
+ "@contractspec/example.lifecycle-dashboard": "3.7.17",
67
+ "@contractspec/example.locale-jurisdiction-gate": "3.7.17",
68
+ "@contractspec/example.marketplace": "3.8.9",
69
+ "@contractspec/example.meeting-recorder-providers": "3.7.17",
70
+ "@contractspec/example.messaging-agent-actions": "3.8.9",
71
+ "@contractspec/example.minimal": "2.8.9",
72
+ "@contractspec/example.openbanking-powens": "3.7.17",
73
+ "@contractspec/example.opencode-cli": "2.8.9",
74
+ "@contractspec/example.personalization": "3.7.17",
75
+ "@contractspec/example.pocket-family-office": "3.7.17",
76
+ "@contractspec/example.policy-safe-knowledge-assistant": "3.7.17",
77
+ "@contractspec/example.product-intent": "3.7.17",
78
+ "@contractspec/example.project-management-sync": "3.7.17",
79
+ "@contractspec/example.saas-boilerplate": "3.8.9",
80
+ "@contractspec/example.service-business-os": "3.7.17",
81
+ "@contractspec/example.team-hub": "3.7.17",
82
+ "@contractspec/example.versioned-knowledge-base": "3.7.17",
83
+ "@contractspec/example.video-api-showcase": "3.7.17",
84
+ "@contractspec/example.video-docs-terminal": "3.7.17",
85
+ "@contractspec/example.video-marketing-clip": "3.7.17",
86
+ "@contractspec/example.visualization-showcase": "3.9.9",
87
+ "@contractspec/example.wealth-snapshot": "3.7.17",
88
+ "@contractspec/example.workflow-system": "3.8.9",
89
+ "@contractspec/lib.contracts-spec": "5.1.0",
90
+ "@contractspec/lib.example-shared-ui": "6.0.17",
91
+ "@contractspec/lib.runtime-sandbox": "2.7.14",
92
92
  "zod": "^4.3.5",
93
- "@contractspec/lib.contracts-runtime-client-react": "3.8.3",
94
- "@contractspec/lib.presentation-runtime-core": "3.9.3"
93
+ "@contractspec/lib.contracts-runtime-client-react": "3.8.5",
94
+ "@contractspec/lib.presentation-runtime-core": "3.9.5"
95
95
  },
96
96
  "devDependencies": {
97
- "@contractspec/tool.typescript": "3.7.11",
97
+ "@contractspec/tool.typescript": "3.7.13",
98
98
  "typescript": "^5.9.3",
99
- "@contractspec/tool.bun": "3.7.11"
99
+ "@contractspec/tool.bun": "3.7.13"
100
100
  },
101
101
  "exports": {
102
102
  ".": {