@ai-matrx/alchemy 0.20.6 → 0.22.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/CHANGELOG.md +38 -0
- package/dist/core.cjs +1 -6
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +2 -6
- package/dist/core.d.ts +2 -6
- package/dist/core.js +1 -6
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +1 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +1 -6
- package/dist/index.js.map +1 -1
- package/dist/operate-read.cjs +1 -1
- package/dist/operate-read.cjs.map +1 -1
- package/dist/operate-read.d.cts +5 -69
- package/dist/operate-read.d.ts +5 -69
- package/dist/operate-read.js +1 -1
- package/dist/operate-read.js.map +1 -1
- package/dist/operate-xlsx.cjs +2 -148
- package/dist/operate-xlsx.cjs.map +1 -1
- package/dist/operate-xlsx.d.cts +8 -1225
- package/dist/operate-xlsx.d.ts +8 -1225
- package/dist/operate-xlsx.js +2 -148
- package/dist/operate-xlsx.js.map +1 -1
- package/dist/operate.cjs +1 -6
- package/dist/operate.cjs.map +1 -1
- package/dist/operate.d.cts +2 -6
- package/dist/operate.d.ts +2 -6
- package/dist/operate.js +1 -6
- package/dist/operate.js.map +1 -1
- package/dist/react-surface.cjs +3 -0
- package/dist/react-surface.cjs.map +1 -0
- package/dist/react-surface.d.cts +19 -0
- package/dist/react-surface.d.ts +19 -0
- package/dist/react-surface.js +3 -0
- package/dist/react-surface.js.map +1 -0
- package/dist/react-workspace.cjs +2 -2
- package/dist/react-workspace.cjs.map +1 -1
- package/dist/react-workspace.d.cts +3 -6
- package/dist/react-workspace.d.ts +3 -6
- package/dist/react-workspace.js +2 -2
- package/dist/react-workspace.js.map +1 -1
- package/package.json +14 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";"use client";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var react_surface_exports={};__export(react_surface_exports,{ContentTransferSurfaceProvider:()=>ContentTransferSurfaceProvider,useContentTransferSurface:()=>useContentTransferSurface});module.exports=__toCommonJS(react_surface_exports);var React=__toESM(require("react"),1),import_jsx_runtime=require("react/jsx-runtime"),SurfaceContext=React.createContext(null);function ContentTransferSurfaceProvider({handle,children}){return(0,import_jsx_runtime.jsx)(SurfaceContext.Provider,{value:handle,children})}var useContentTransferSurface=()=>React.useContext(SurfaceContext);
|
|
3
|
+
//# sourceMappingURL=react-surface.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/react-surface.ts","../src/react/surface-context.tsx"],"sourcesContent":["\"use client\";\n/** `@ai-matrx/alchemy/react/surface` — the surface context alone (see react/surface-context.tsx). */\nexport * from \"./react/surface-context\";\n","\"use client\";\n/**\n * The nearest surface for the copy / transform menu: a context and its provider, nothing else.\n *\n * Its own public entry (`@ai-matrx/alchemy/react/surface`) so a host that only marks a surface\n * (every chat room does) never loads the workspace — that entry carries the preparation workspace\n * and the data-table filter engine (~70 kB gzip). `/react/workspace` imports this entry by its\n * public name, so both share ONE context object.\n */\nimport * as React from \"react\";\nimport type { SurfaceHandle } from \"@ai-matrx/alchemy/operate\";\n\nconst SurfaceContext = React.createContext<SurfaceHandle | null>(null);\n\nexport function ContentTransferSurfaceProvider({ handle, children }: { handle: SurfaceHandle; children: React.ReactNode }) {\n return <SurfaceContext.Provider value={handle}>{children}</SurfaceContext.Provider>;\n}\n\nexport const useContentTransferSurface = () => React.useContext(SurfaceContext);\n"],"mappings":";s6BAAA,4OCSA,UAAuB,4BAMd,gDAHH,eAAuB,oBAAoC,IAAI,EAE9D,SAAS,+BAA+B,CAAE,OAAQ,QAAS,EAAyD,CACzH,SAAO,wBAAC,eAAe,SAAf,CAAwB,MAAO,OAAS,SAAS,CAC3D,CAEO,IAAM,0BAA4B,IAAY,iBAAW,cAAc","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SurfaceHandle } from '@ai-matrx/alchemy/operate';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The nearest surface for the copy / transform menu: a context and its provider, nothing else.
|
|
6
|
+
*
|
|
7
|
+
* Its own public entry (`@ai-matrx/alchemy/react/surface`) so a host that only marks a surface
|
|
8
|
+
* (every chat room does) never loads the workspace — that entry carries the preparation workspace
|
|
9
|
+
* and the data-table filter engine (~70 kB gzip). `/react/workspace` imports this entry by its
|
|
10
|
+
* public name, so both share ONE context object.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
declare function ContentTransferSurfaceProvider({ handle, children }: {
|
|
14
|
+
handle: SurfaceHandle;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
declare const useContentTransferSurface: () => SurfaceHandle | null;
|
|
18
|
+
|
|
19
|
+
export { ContentTransferSurfaceProvider, useContentTransferSurface };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { SurfaceHandle } from '@ai-matrx/alchemy/operate';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The nearest surface for the copy / transform menu: a context and its provider, nothing else.
|
|
6
|
+
*
|
|
7
|
+
* Its own public entry (`@ai-matrx/alchemy/react/surface`) so a host that only marks a surface
|
|
8
|
+
* (every chat room does) never loads the workspace — that entry carries the preparation workspace
|
|
9
|
+
* and the data-table filter engine (~70 kB gzip). `/react/workspace` imports this entry by its
|
|
10
|
+
* public name, so both share ONE context object.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
declare function ContentTransferSurfaceProvider({ handle, children }: {
|
|
14
|
+
handle: SurfaceHandle;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
declare const useContentTransferSurface: () => SurfaceHandle | null;
|
|
18
|
+
|
|
19
|
+
export { ContentTransferSurfaceProvider, useContentTransferSurface };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";import*as React from"react";import{jsx}from"react/jsx-runtime";var SurfaceContext=React.createContext(null);function ContentTransferSurfaceProvider({handle,children}){return jsx(SurfaceContext.Provider,{value:handle,children})}var useContentTransferSurface=()=>React.useContext(SurfaceContext);export{ContentTransferSurfaceProvider,useContentTransferSurface};
|
|
3
|
+
//# sourceMappingURL=react-surface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/react/surface-context.tsx"],"sourcesContent":["\"use client\";\n/**\n * The nearest surface for the copy / transform menu: a context and its provider, nothing else.\n *\n * Its own public entry (`@ai-matrx/alchemy/react/surface`) so a host that only marks a surface\n * (every chat room does) never loads the workspace — that entry carries the preparation workspace\n * and the data-table filter engine (~70 kB gzip). `/react/workspace` imports this entry by its\n * public name, so both share ONE context object.\n */\nimport * as React from \"react\";\nimport type { SurfaceHandle } from \"@ai-matrx/alchemy/operate\";\n\nconst SurfaceContext = React.createContext<SurfaceHandle | null>(null);\n\nexport function ContentTransferSurfaceProvider({ handle, children }: { handle: SurfaceHandle; children: React.ReactNode }) {\n return <SurfaceContext.Provider value={handle}>{children}</SurfaceContext.Provider>;\n}\n\nexport const useContentTransferSurface = () => React.useContext(SurfaceContext);\n"],"mappings":";aASA,UAAY,UAAW,QAMd,mCAHT,IAAM,eAAuB,oBAAoC,IAAI,EAE9D,SAAS,+BAA+B,CAAE,OAAQ,QAAS,EAAyD,CACzH,OAAO,IAAC,eAAe,SAAf,CAAwB,MAAO,OAAS,SAAS,CAC3D,CAEO,IAAM,0BAA4B,IAAY,iBAAW,cAAc","names":[]}
|