@rowsncolumns/functions 15.0.2 → 15.1.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.
- package/Readme.md +21 -3
- package/dist/cjs/descriptions.d.ts +16 -0
- package/dist/cjs/descriptions.d.ts.map +1 -0
- package/dist/cjs/descriptions.js +18 -0
- package/dist/cjs/function-descriptions.d.ts.map +1 -1
- package/dist/cjs/function-descriptions.js +933 -0
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/descriptions.d.ts +16 -0
- package/dist/esm/descriptions.d.ts.map +1 -0
- package/dist/esm/descriptions.js +14 -0
- package/dist/esm/function-descriptions.d.ts.map +1 -1
- package/dist/esm/function-descriptions.js +933 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +14 -6
package/Readme.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @rowsncolumns/functions
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The function catalog (`functionDescriptions`: name, syntax, description, parameters, category) that
|
|
4
|
+
drives autocomplete and Insert Function, plus the custom functions (`functions`) the legacy
|
|
5
|
+
JavaScript calculator registers.
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
## Entries
|
|
8
|
+
|
|
9
|
+
| Import | Contents |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| `@rowsncolumns/functions/descriptions` | `functionDescriptions` only. Pure data, no runtime imports — what a host on `@rowsncolumns/rnc-engine` / `rnc-yrs-store` should use. |
|
|
12
|
+
| `@rowsncolumns/functions` | The catalog **and** `functions`, the custom-function implementations for the JavaScript calculator (pulls in `@rowsncolumns/calculator`, `fast-formula-parser`, `toolkit`). |
|
|
13
|
+
| `@rowsncolumns/functions/server` | The catalog and the server-safe `functions` for the calculation worker. |
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { functionDescriptions } from "@rowsncolumns/functions/descriptions";
|
|
17
|
+
|
|
18
|
+
<CanvasGrid functionDescriptions={functionDescriptions} … />
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The package is declared `"sideEffects": false`; `__tests__/descriptions-subpath.spec.ts` holds the
|
|
22
|
+
`descriptions` entry to the catalog alone, and `__tests__/engine-description-coverage.spec.ts` holds
|
|
23
|
+
the catalog to every function the rnc-engine wasm registers.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@rowsncolumns/functions/descriptions` — the function catalog on its own.
|
|
3
|
+
*
|
|
4
|
+
* The root entry also re-exports the legacy JavaScript calculator's implementations (`functions`),
|
|
5
|
+
* which pull in `@rowsncolumns/calculator`, `@rowsncolumns/fast-formula-parser` and
|
|
6
|
+
* `@rowsncolumns/toolkit`. A host on the Rust engine only needs the catalog (autocomplete, Insert
|
|
7
|
+
* Function, the conditional-format / data-validation editors), so this entry must stay a pure data
|
|
8
|
+
* module: nothing here may import from `./formulas` or any `@rowsncolumns/*` runtime package.
|
|
9
|
+
* `__tests__/descriptions-subpath.spec.ts` walks the built import graph to hold that (#1135).
|
|
10
|
+
*
|
|
11
|
+
* The specifier carries its `.js` extension so the emitted `dist/esm/descriptions.js` also loads
|
|
12
|
+
* under Node's own ESM resolver (no bundler), not only under bundlers that resolve bare paths.
|
|
13
|
+
*/
|
|
14
|
+
export { functionDescriptions } from "./function-descriptions.js";
|
|
15
|
+
export type { CalculatorFunction, FunctionParameter } from "./types";
|
|
16
|
+
//# sourceMappingURL=descriptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["../../descriptions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.functionDescriptions = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* `@rowsncolumns/functions/descriptions` — the function catalog on its own.
|
|
6
|
+
*
|
|
7
|
+
* The root entry also re-exports the legacy JavaScript calculator's implementations (`functions`),
|
|
8
|
+
* which pull in `@rowsncolumns/calculator`, `@rowsncolumns/fast-formula-parser` and
|
|
9
|
+
* `@rowsncolumns/toolkit`. A host on the Rust engine only needs the catalog (autocomplete, Insert
|
|
10
|
+
* Function, the conditional-format / data-validation editors), so this entry must stay a pure data
|
|
11
|
+
* module: nothing here may import from `./formulas` or any `@rowsncolumns/*` runtime package.
|
|
12
|
+
* `__tests__/descriptions-subpath.spec.ts` walks the built import graph to hold that (#1135).
|
|
13
|
+
*
|
|
14
|
+
* The specifier carries its `.js` extension so the emitted `dist/esm/descriptions.js` also loads
|
|
15
|
+
* under Node's own ESM resolver (no bundler), not only under bundlers that resolve bare paths.
|
|
16
|
+
*/
|
|
17
|
+
var function_descriptions_js_1 = require("./function-descriptions.js");
|
|
18
|
+
Object.defineProperty(exports, "functionDescriptions", { enumerable: true, get: function () { return function_descriptions_js_1.functionDescriptions; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-descriptions.d.ts","sourceRoot":"","sources":["../../function-descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,eAAO,MAAM,oBAAoB,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"function-descriptions.d.ts","sourceRoot":"","sources":["../../function-descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,eAAO,MAAM,oBAAoB,EAAE,kBAAkB,EAklXpD,CAAC"}
|