@recipe-book/react 0.0.3 → 0.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/CHANGELOG.md +36 -0
- package/LICENSE +21 -0
- package/README.md +48 -15
- package/core/package.json +5 -0
- package/core/schema-org/package.json +5 -0
- package/dist/core/schema-org.cjs +25 -0
- package/dist/core/schema-org.cjs.map +1 -0
- package/dist/core/schema-org.d.cts +1 -0
- package/dist/core/schema-org.d.ts +1 -0
- package/dist/core/schema-org.js +3 -0
- package/dist/core/schema-org.js.map +1 -0
- package/dist/core.cjs +25 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.cts +1 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +3 -0
- package/dist/core.js.map +1 -0
- package/dist/index.cjs +1224 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1276 -0
- package/dist/index.d.ts +1276 -10
- package/dist/index.js +1207 -2
- package/dist/index.js.map +1 -0
- package/package.json +71 -15
- package/dist/chunk-2S2Z4HLL.mjs +0 -46
- package/dist/chunk-2VMRVR3X.mjs +0 -1
- package/dist/chunk-36H6LM2B.mjs +0 -14
- package/dist/chunk-4IWVZEXX.mjs +0 -20
- package/dist/chunk-4XBZKTOL.mjs +0 -1
- package/dist/chunk-6AGILC25.mjs +0 -20
- package/dist/chunk-6AXGEB5P.mjs +0 -14
- package/dist/chunk-6JEDN4VR.mjs +0 -20
- package/dist/chunk-6KLLMLNF.mjs +0 -33
- package/dist/chunk-6LTLY5K7.mjs +0 -20
- package/dist/chunk-6RA4EVIO.mjs +0 -46
- package/dist/chunk-75DF3E6L.mjs +0 -50
- package/dist/chunk-7BWMULSB.mjs +0 -55
- package/dist/chunk-7PPB3PM6.mjs +0 -40
- package/dist/chunk-7SBP7DC5.mjs +0 -42
- package/dist/chunk-7XJBP24U.mjs +0 -20
- package/dist/chunk-A5JAKCMG.mjs +0 -44
- package/dist/chunk-ATOAYKI3.mjs +0 -26
- package/dist/chunk-B5IXKKFC.mjs +0 -38
- package/dist/chunk-BEMMFA52.mjs +0 -49
- package/dist/chunk-BOG5DA6M.mjs +0 -38
- package/dist/chunk-BW4DYFBO.mjs +0 -36
- package/dist/chunk-CDQFOSWR.mjs +0 -34
- package/dist/chunk-CRQVP6PW.mjs +0 -20
- package/dist/chunk-CY27OHOG.mjs +0 -1
- package/dist/chunk-DACFJWGN.mjs +0 -14
- package/dist/chunk-DE5GUZKO.mjs +0 -46
- package/dist/chunk-DNZAFS5G.mjs +0 -48
- package/dist/chunk-DS3O5PAR.mjs +0 -20
- package/dist/chunk-ENGJXHYU.mjs +0 -42
- package/dist/chunk-FIFGRJKD.mjs +0 -26
- package/dist/chunk-FWOMIZEF.mjs +0 -46
- package/dist/chunk-G7XD4VBW.mjs +0 -44
- package/dist/chunk-GBU6MVZL.mjs +0 -14
- package/dist/chunk-GM5F7IUT.mjs +0 -2
- package/dist/chunk-GSGRXRJP.mjs +0 -38
- package/dist/chunk-GZRNU24M.mjs +0 -46
- package/dist/chunk-HNDXCSZY.mjs +0 -44
- package/dist/chunk-HXTUDCO2.mjs +0 -49
- package/dist/chunk-I5TR6PEA.mjs +0 -0
- package/dist/chunk-IXRYSEMS.mjs +0 -30
- package/dist/chunk-J5Q2Z2JG.mjs +0 -38
- package/dist/chunk-JBAAWEV6.mjs +0 -1
- package/dist/chunk-JCPPNN26.mjs +0 -44
- package/dist/chunk-JR3OTSZB.mjs +0 -32
- package/dist/chunk-JWS5RTU3.mjs +0 -46
- package/dist/chunk-K6EZ773Q.mjs +0 -26
- package/dist/chunk-KNXMYQVO.mjs +0 -36
- package/dist/chunk-KRUZ7OA7.mjs +0 -44
- package/dist/chunk-KXCIJBR6.mjs +0 -14
- package/dist/chunk-M5D3UUZF.mjs +0 -19
- package/dist/chunk-MASAOP7L.mjs +0 -55
- package/dist/chunk-MGBEDCLT.mjs +0 -34
- package/dist/chunk-MKBCBPVR.mjs +0 -53
- package/dist/chunk-N53TONLF.mjs +0 -39
- package/dist/chunk-NYDGFRPM.mjs +0 -46
- package/dist/chunk-OPOABKD6.mjs +0 -23
- package/dist/chunk-OX6ITS5C.mjs +0 -20
- package/dist/chunk-PAAVW47I.mjs +0 -50
- package/dist/chunk-PAF5HSSV.mjs +0 -53
- package/dist/chunk-PBENQR7Y.mjs +0 -1
- package/dist/chunk-PH3LQIHZ.mjs +0 -26
- package/dist/chunk-PIB3RAOO.mjs +0 -24
- package/dist/chunk-PIXLJD7Y.mjs +0 -37
- package/dist/chunk-PTS3BZHK.mjs +0 -1
- package/dist/chunk-Q6I5J3IJ.mjs +0 -1
- package/dist/chunk-QOCKR2HO.mjs +0 -1
- package/dist/chunk-QOZCSS3B.mjs +0 -44
- package/dist/chunk-QSFPUODQ.mjs +0 -34
- package/dist/chunk-RY7QUBJI.mjs +0 -34
- package/dist/chunk-RZJRUG2I.mjs +0 -55
- package/dist/chunk-S3GGSQB5.mjs +0 -1
- package/dist/chunk-S3HRT5Z5.mjs +0 -14
- package/dist/chunk-SB7HBCCZ.mjs +0 -49
- package/dist/chunk-SEXTT3NJ.mjs +0 -25
- package/dist/chunk-SKEQCOPX.mjs +0 -43
- package/dist/chunk-TLBRVWD2.mjs +0 -1
- package/dist/chunk-TOOCHDUY.mjs +0 -36
- package/dist/chunk-TSKANLT4.mjs +0 -37
- package/dist/chunk-UAMZEZUI.mjs +0 -36
- package/dist/chunk-UQJ4XNWN.mjs +0 -26
- package/dist/chunk-VDSUUXCH.mjs +0 -34
- package/dist/chunk-VO7RY2ZK.mjs +0 -44
- package/dist/chunk-WJKDFBJ2.mjs +0 -34
- package/dist/chunk-WTC7PY7U.mjs +0 -54
- package/dist/chunk-WXDV7CMB.mjs +0 -14
- package/dist/chunk-X5FG3X6T.mjs +0 -1
- package/dist/chunk-X66DY4AZ.mjs +0 -1
- package/dist/chunk-XXSJXKWQ.mjs +0 -44
- package/dist/chunk-YZMVAQQG.mjs +0 -1
- package/dist/chunk-ZCXPZU7W.mjs +0 -20
- package/dist/chunk-ZJ4PNVYO.mjs +0 -52
- package/dist/chunk-ZU4QJLEY.mjs +0 -53
- package/dist/components/ingredients/ingredients-list.d.mts +0 -13
- package/dist/components/ingredients/ingredients-list.d.ts +0 -13
- package/dist/components/ingredients/ingredients-list.js +0 -2
- package/dist/components/ingredients/ingredients-list.mjs +0 -1
- package/dist/components/instructions/instruction-list.d.mts +0 -13
- package/dist/components/instructions/instruction-list.d.ts +0 -13
- package/dist/components/instructions/instruction-list.js +0 -1
- package/dist/components/instructions/instruction-list.mjs +0 -1
- package/dist/components/layouts/layout-default.d.mts +0 -7
- package/dist/components/layouts/layout-default.d.ts +0 -7
- package/dist/components/layouts/layout-default.js +0 -1
- package/dist/components/layouts/layout-default.mjs +0 -1
- package/dist/components/layouts/layout-types.d.mts +0 -8
- package/dist/components/layouts/layout-types.d.ts +0 -8
- package/dist/components/layouts/layout-types.js +0 -1
- package/dist/components/layouts/layout-types.mjs +0 -0
- package/dist/components/measurement-select.d.mts +0 -13
- package/dist/components/measurement-select.d.ts +0 -13
- package/dist/components/measurement-select.js +0 -1
- package/dist/components/measurement-select.mjs +0 -1
- package/dist/components/root.d.mts +0 -13
- package/dist/components/root.d.ts +0 -13
- package/dist/components/root.js +0 -1
- package/dist/components/root.mjs +0 -1
- package/dist/components/servings-select.d.mts +0 -11
- package/dist/components/servings-select.d.ts +0 -11
- package/dist/components/servings-select.js +0 -1
- package/dist/components/servings-select.mjs +0 -1
- package/dist/components/thumbnail.d.mts +0 -18
- package/dist/components/thumbnail.d.ts +0 -18
- package/dist/components/thumbnail.js +0 -1
- package/dist/components/thumbnail.mjs +0 -1
- package/dist/global-context.d.mts +0 -29
- package/dist/global-context.d.ts +0 -29
- package/dist/global-context.js +0 -1
- package/dist/global-context.mjs +0 -1
- package/dist/hooks/use-controllable.d.mts +0 -15
- package/dist/hooks/use-controllable.d.ts +0 -15
- package/dist/hooks/use-controllable.js +0 -1
- package/dist/hooks/use-controllable.mjs +0 -1
- package/dist/index.d.mts +0 -10
- package/dist/index.mjs +0 -1
- package/dist/recipe-context.d.mts +0 -29
- package/dist/recipe-context.d.ts +0 -29
- package/dist/recipe-context.js +0 -1
- package/dist/recipe-context.mjs +0 -1
- package/dist/types-from-core.d.mts +0 -1
- package/dist/types-from-core.d.ts +0 -1
- package/dist/types-from-core.js +0 -1
- package/dist/types-from-core.mjs +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @recipe-book/react
|
|
2
|
+
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- `<Recipe.Ingredient>` and the function `useFormatIngredient()` returns now throw a `RecipeBookError` with code `invalid_argument` for an item that isn't `{ ingredient, quantity? }`, such as `{}`, `null`, or an authored ingredient, instead of a bare `TypeError`. ([#925](https://github.com/SirajChokshi/recipe-book/pull/925) by [@SirajChokshi](https://github.com/SirajChokshi))
|
|
8
|
+
|
|
9
|
+
- The error is the one `formatIngredient` from `@recipe-book/react/core` throws: its message says what it expects and what it received, and links to the error's page.
|
|
10
|
+
|
|
11
|
+
- Passing `dangerouslySetInnerHTML` to a part that always renders content now fails typecheck instead of throwing when React renders it. ([#906](https://github.com/SirajChokshi/recipe-book/pull/906) by [@SirajChokshi](https://github.com/SirajChokshi))
|
|
12
|
+
|
|
13
|
+
- That's every part except four. `<Recipe.Root>` and `<Recipe.JsonLd>` already failed typecheck with it. `<Recipe.Image>` and `<Recipe.ServingsInput>` still typecheck with it, as a plain `<img>` or `<input>` does, and React still throws when it renders them.
|
|
14
|
+
- A wrapper that spreads its element's props into a part typechecks as before.
|
|
15
|
+
|
|
16
|
+
- Add `@recipe-book/react/core` and `@recipe-book/react/core/schema-org`, which re-export `@recipe-book/core` and `@recipe-book/core/schema-org`, so a React app installs one package. ([#888](https://github.com/SirajChokshi/recipe-book/pull/888) by [@SirajChokshi](https://github.com/SirajChokshi))
|
|
17
|
+
|
|
18
|
+
- The re-exports are core's own values, not copies. While an app's `@recipe-book/core` is on the same version as `@recipe-book/react`, the two packages share one copy of core, so code can mix imports from both. With different versions, the app gets a second copy of core.
|
|
19
|
+
- Neither is a `'use client'` module, so in a Server Component `parseRecipe`, `toJsonLd`, and core's other functions run on the server, as they do from core.
|
|
20
|
+
- `@recipe-book/react` still re-exports nothing from core, and its parts and hooks stay client references.
|
|
21
|
+
- Errors that said to call `parseRecipe()` or `formatIngredient()` from `@recipe-book/core` now name `@recipe-book/react/core`.
|
|
22
|
+
|
|
23
|
+
- `setServings`, `servings`, and `defaultServings` accept a number at either end of the servings window, such as 700000 for a recipe with 0.7 servings, as `resolveRecipe` now does. ([#911](https://github.com/SirajChokshi/recipe-book/pull/911) by [@SirajChokshi](https://github.com/SirajChokshi))
|
|
24
|
+
|
|
25
|
+
- The development warning for a number outside the window rounds the bounds it names to six digits inside the window, so it never names a number that's rejected: for a recipe with ⅔ servings, it names 666666 rather than 666667.
|
|
26
|
+
|
|
27
|
+
- `SystemOption` now sets `autoComplete="off"`, so when going back reloads the page, Firefox no longer re-enables an option that the server rendered disabled and the page enabled later, and its new `autoComplete` prop lets you pass your own value. ([#905](https://github.com/SirajChokshi/recipe-book/pull/905) by [@SirajChokshi](https://github.com/SirajChokshi))
|
|
28
|
+
|
|
29
|
+
## 0.1.0
|
|
30
|
+
|
|
31
|
+
- `<Recipe.Root>` holds a parsed recipe's servings and measurement system, controlled or not, and `useRecipe()` reads them. `useRecipeState()` does the same without a Root. With `parse={parseRecipe}`, a Root parses recipe input in the browser.
|
|
32
|
+
- `<Recipe.RecipeBookProvider>` sets `locale`, `labels` and `defaultSystem` for every Root inside it.
|
|
33
|
+
- Parts for the recipe's image, ingredients, steps, step text with converted temperatures, servings controls and a metric and US toggle. They set `data-recipe-*` attributes for styling. `<Recipe.Ingredient>` and its sub-parts, `<Recipe.Step>`, `<Recipe.SystemToggle>` and `<Recipe.SystemOption>` take `asChild` to render your own element.
|
|
34
|
+
- `<Recipe.JsonLd>` writes the recipe as schema.org Recipe JSON-LD.
|
|
35
|
+
- Supports React 18.2 and 19, including Server Components.
|
|
36
|
+
- ESM and CommonJS builds, each with type declarations and source maps. Every part also has a `Recipe`-prefixed name, such as `RecipeSteps`. Requires Node 22 or later.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Siraj Chokshi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,23 +1,56 @@
|
|
|
1
1
|
# @recipe-book/react
|
|
2
2
|
|
|
3
|
-
Unstyled,
|
|
3
|
+
Unstyled React components for recipes. Scale servings, switch between metric and US units, and render ingredients and steps with your own markup and styles.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Install
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```sh
|
|
8
|
+
npm i @recipe-book/react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Core's functions and types, such as `parseRecipe`, come from `@recipe-book/react/core`, so you don't install `@recipe-book/core` yourself. If your app also installs `@recipe-book/core`, keep it on the same version as `@recipe-book/react`, or the app gets a second copy of core.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Parse recipe input with `parseRecipe` and pass the parsed recipe to `<Recipe.Root>`. The parts inside it render the recipe at the chosen servings and measurement system.
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import { parseRecipe } from '@recipe-book/react/core'
|
|
19
|
+
import * as Recipe from '@recipe-book/react'
|
|
8
20
|
|
|
9
|
-
|
|
21
|
+
const result = parseRecipe({
|
|
22
|
+
name: 'Buttermilk pancakes',
|
|
23
|
+
servings: 4,
|
|
24
|
+
ingredients: [
|
|
25
|
+
{ name: 'all-purpose flour', quantity: '1 ½ cups', equivalents: ['190 g'] },
|
|
26
|
+
{ name: 'buttermilk', quantity: '1 ¼ cups' },
|
|
27
|
+
{ name: 'egg', plural: 'eggs', quantity: 2 },
|
|
28
|
+
],
|
|
29
|
+
steps: [
|
|
30
|
+
'Whisk the flour, buttermilk, and eggs.',
|
|
31
|
+
'Cook ¼-cup portions on a buttered griddle, 2–3 minutes per side.',
|
|
32
|
+
],
|
|
33
|
+
})
|
|
10
34
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
35
|
+
export function Pancakes() {
|
|
36
|
+
if (!result.success) throw result.error
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<Recipe.Root recipe={result.data}>
|
|
40
|
+
<h1>{result.data.name}</h1>
|
|
41
|
+
<Recipe.ServingsSelect />
|
|
42
|
+
<Recipe.SystemToggle />
|
|
43
|
+
<h2>Ingredients</h2>
|
|
44
|
+
<Recipe.Ingredients />
|
|
45
|
+
<h2>Method</h2>
|
|
46
|
+
<Recipe.Steps />
|
|
47
|
+
</Recipe.Root>
|
|
48
|
+
)
|
|
22
49
|
}
|
|
23
50
|
```
|
|
51
|
+
|
|
52
|
+
Parse where you load the recipe, such as in a Server Component or at build time, so the parser stays out of the browser bundle. [Render a recipe on the server](https://recipe-book.siraj.page/guides/render-a-recipe-on-the-server/) shows how with Next.js and React Router. With Next.js, and with Vite when each page loads as its own chunk, such as a lazy route, a page that parses in the browser with `import { parseRecipe } from '@recipe-book/react/core'` doesn't put the parser on other pages. Otherwise, such as with esbuild's code splitting or with Vite without lazy routes, parse on the server on every page: one page that parses in the browser can put the parser on other pages. Calling `import('@recipe-book/react/core')` can also download it, as [Why parse on the server](https://recipe-book.siraj.page/guides/render-a-recipe-in-react/#why-parse-on-the-server) describes.
|
|
53
|
+
|
|
54
|
+
## Documentation
|
|
55
|
+
|
|
56
|
+
[recipe-book.siraj.page](https://recipe-book.siraj.page)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/core/schema-org.ts
|
|
18
|
+
var schema_org_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(schema_org_exports);
|
|
20
|
+
__reExport(schema_org_exports, require("@recipe-book/core/schema-org"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@recipe-book/core/schema-org")
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=schema-org.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/schema-org.ts"],"sourcesContent":["export * from '@recipe-book/core/schema-org'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,yCAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@recipe-book/core/schema-org';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@recipe-book/core/schema-org';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/schema-org.ts"],"sourcesContent":["export * from '@recipe-book/core/schema-org'\n"],"mappings":";AAAA,cAAc;","names":[]}
|
package/dist/core.cjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/core.ts
|
|
18
|
+
var core_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(core_exports);
|
|
20
|
+
__reExport(core_exports, require("@recipe-book/core"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@recipe-book/core")
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=core.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core.ts"],"sourcesContent":["export * from '@recipe-book/core'\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAc,8BAAd;","names":[]}
|
package/dist/core.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@recipe-book/core';
|
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@recipe-book/core';
|
package/dist/core.js
ADDED
package/dist/core.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core.ts"],"sourcesContent":["export * from '@recipe-book/core'\n"],"mappings":";AAAA,cAAc;","names":[]}
|