@xpufx/paseo-helper-demo 0.2.1 → 0.2.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.
package/client/pill.tsx CHANGED
@@ -5,7 +5,7 @@ import { Icon, Modal, useToast, ScrollView, FlatList, TextInput as HostTextInput
5
5
  import {
6
6
  initClientHelpers,
7
7
  type ComposerPillRegistrar,
8
- } from "paseo-plugin-helper/client";
8
+ } from "./vendor/paseo-plugin-helper/index";
9
9
 
10
10
  initClientHelpers({ Icon, Modal, useRpc, useToast, copyText, ScrollView, FlatList, TextInput: HostTextInput });
11
11
  import {
@@ -40,14 +40,14 @@ import {
40
40
  type VisualFlair,
41
41
  type AttentionBeaconMode,
42
42
  type AttentionBeaconTone,
43
- } from "paseo-plugin-helper/client";
43
+ } from "./vendor/paseo-plugin-helper/index";
44
44
  import {
45
45
  useAutoRefreshQuery,
46
46
  useRpcMutation,
47
47
  usePluginSettings,
48
- } from "paseo-plugin-helper/core";
49
- import { HostModalSection } from "paseo-plugin-helper/ui";
50
- import { formatBytes, formatUptime } from "paseo-plugin-helper/shared";
48
+ } from "./vendor/paseo-plugin-helper/core/index";
49
+ import { HostModalSection } from "./vendor/paseo-plugin-helper/ui/index";
50
+ import { formatBytes, formatUptime } from "../shared/vendor/paseo-plugin-helper/index";
51
51
  import {
52
52
  getDemoDataRpc,
53
53
  triggerDemoActionRpc,
@@ -714,7 +714,7 @@ function DemoModal({ close, workspaceId }: RenderModalProps) {
714
714
  <Card.Header title="Sample Code Block" />
715
715
  <CodeBlock
716
716
  language="typescript"
717
- code={`import { createPluginPill, MetricGauge } from "paseo-plugin-helper/client";\n\n// Renders circular ring\n<MetricGauge value={75} label="CPU Load" />`}
717
+ code={`import { createPluginPill, MetricGauge } from "./vendor/paseo-plugin-helper/index";\n\n// Renders circular ring\n<MetricGauge value={75} label="CPU Load" />`}
718
718
  copyable
719
719
  />
720
720
  </Card>
@@ -19,8 +19,8 @@ import {
19
19
  triggerHaptic,
20
20
  usePluginTheme,
21
21
  type SidebarSurfaceRegistrar,
22
- } from "paseo-plugin-helper/client";
23
- import { useRpcQuery, useRpcMutation } from "paseo-plugin-helper/core";
22
+ } from "./vendor/paseo-plugin-helper/index";
23
+ import { useRpcQuery, useRpcMutation } from "./vendor/paseo-plugin-helper/core/index";
24
24
  import {
25
25
  DEMO_SERVER_SETTINGS_EXPECTED_PATH,
26
26
  DEMO_SERVER_SETTINGS_ID,
@@ -11,7 +11,7 @@ import {
11
11
  triggerHaptic,
12
12
  usePluginTheme,
13
13
  useSuiteSettings,
14
- } from "paseo-plugin-helper/client";
14
+ } from "./vendor/paseo-plugin-helper/index";
15
15
 
16
16
  export function SharedSuiteCard() {
17
17
  const { colors, typography } = usePluginTheme();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@xpufx/paseo-helper-demo",
3
3
  "private": false,
4
4
  "license": "MIT",
5
- "version": "0.2.1",
5
+ "version": "0.2.2",
6
6
  "scripts": {
7
7
  "stamp": "node -e \"import('./server/vendor/paseo-plugin-helper/version.ts').then(m => m.stampVersion({ targetFile: 'shared/version.ts' }))\"",
8
8
  "typecheck": "tsc --noEmit",
package/server/demo.ts CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  createSettingsHandlers,
9
9
  createWorkspaceBeacon,
10
10
  type BeaconDaemonClient,
11
- } from "paseo-plugin-helper/server";
11
+ } from "./vendor/paseo-plugin-helper/index";
12
12
  import type { PluginHandlerContext } from "@getpaseo/plugin/server";
13
13
  import { demoSettingsContract, type DemoData, type DemoSettings } from "../shared/demo.js";
14
14
  import { PLUGIN_VERSION } from "../shared/version.js";
@@ -3,7 +3,7 @@ import type {
3
3
  PluginServerContext,
4
4
  } from "@getpaseo/plugin/server";
5
5
  import type { SettingsDefinition } from "@getpaseo/plugin";
6
- import { createPluginLogger } from "paseo-plugin-helper/server";
6
+ import { createPluginLogger } from "./vendor/paseo-plugin-helper/index";
7
7
  import {
8
8
  buildServerSettingsSnapshot,
9
9
  demoSettingsDefinition,
@@ -1,9 +1,9 @@
1
- import { createSharedPluginSettings } from "paseo-plugin-helper/server";
1
+ import { createSharedPluginSettings } from "./vendor/paseo-plugin-helper/index";
2
2
  import {
3
3
  SuiteSettingsContract,
4
4
  SuiteSettingsSchema,
5
5
  type SuiteSettings,
6
- } from "paseo-plugin-helper/shared";
6
+ } from "../shared/vendor/paseo-plugin-helper/index";
7
7
  import { log } from "./demo.js";
8
8
 
9
9
  export const suiteSettings = createSharedPluginSettings<SuiteSettings>({
package/shared/demo.ts CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  defineContract,
3
3
  defineSettingsContract,
4
4
  type RpcOutput,
5
- } from "paseo-plugin-helper/shared";
5
+ } from "./vendor/paseo-plugin-helper/index";
6
6
  import { z } from "zod";
7
7
 
8
8
  export const DemoSettingsSchema = z.object({
@@ -1,6 +1,6 @@
1
1
  import { defineSettings, settingsRpc } from "@getpaseo/plugin";
2
2
  import { z } from "zod";
3
- import { defineContract } from "paseo-plugin-helper/shared";
3
+ import { defineContract } from "./vendor/paseo-plugin-helper/index";
4
4
 
5
5
  /**
6
6
  * TEMP DEMO (issue #62): upstream server-side settings handle.