@blocksdiy/react-common 1.0.0 → 1.0.1-test.1

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { AppVersionService, DataApiService } from "@blockscom/blocks-client-api";
3
- import { getApiHost } from "@blockscom/blocks-client-api/envService";
4
- import { WorkflowRequest } from "@blockscom/blocks-client-api/workflowService";
2
+ import { AppVersionService, DataApiService } from "@blocksdiy/blocks-client-api";
3
+ import { getApiHost } from "@blocksdiy/blocks-client-api/envService";
4
+ import { WorkflowRequest } from "@blocksdiy/blocks-client-api/workflowService";
5
5
  import { Slot } from "@radix-ui/react-slot";
6
6
  import { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";
7
7
  /* public decouple - blocks common */
@@ -1,4 +1,4 @@
1
- import { StreamEventData } from "@blockscom/blocks-client-api/types/app-data";
1
+ import { StreamEventData } from "@blocksdiy/blocks-client-api/types/app-data";
2
2
  export declare const useAiStreamChunks: ({ onChunk }: {
3
3
  onChunk: (chunkData: StreamEventData) => void;
4
4
  }) => {
@@ -1,7 +1,7 @@
1
1
  import { type ReactNode } from "react";
2
2
  import { IframeApi, PlatformApi } from "./types.js";
3
3
  /**
4
- * Provider for the iframe (app-render) side of the bridge.
4
+ * Provider for the iframe (app-render) side of the bridge..
5
5
  * Wraps the app inside the iframe and connects to the parent platform window.
6
6
  *
7
7
  * Use `usePlatform()` anywhere inside to access the platform's api.
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { getDomain, getProtocol } from "@blockscom/blocks-client-api/envService";
2
+ import { getDomain, getProtocol } from "@blocksdiy/blocks-client-api/envService";
3
3
  import { connect, WindowMessenger } from "penpal";
4
4
  import { createContext, useContext, useEffect, useRef } from "react";
5
5
  import { BridgeProvider, useBridgeState } from "./bridge-provider.js";
6
6
  const IframeApiContext = createContext(undefined);
7
7
  /**
8
- * Provider for the iframe (app-render) side of the bridge.
8
+ * Provider for the iframe (app-render) side of the bridge..
9
9
  * Wraps the app inside the iframe and connects to the parent platform window.
10
10
  *
11
11
  * Use `usePlatform()` anywhere inside to access the platform's api.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@blocksdiy/react-common",
3
3
  "blocksLinkIgnore": false,
4
- "version": "1.0.0",
4
+ "version": "1.0.1-test.1",
5
5
  "type": "module",
6
6
  "description": "React common",
7
7
  "keywords": [],
@@ -56,4 +56,4 @@
56
56
  "node": ">=24.11.0"
57
57
  },
58
58
  "packageManager": "pnpm@10.20.0"
59
- }
59
+ }