@rebuy/rebuy 2.26.0-rc.1 → 2.26.0-rc.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/dist/server/index.d.ts +1 -1
- package/dist/transforms/contentBlockV1/convertContentBlockImageToV2.d.ts +3 -3
- package/dist/transforms/contentBlockV1/convertContentBlockTextToV2.d.ts +2 -2
- package/dist/transforms/contentBlockV1/convertContentBlockToV2.d.ts +2 -2
- package/dist/transforms/contentBlockV1/convertTextToTiptapParagraph.d.ts +1 -1
- package/dist/transforms/htmlToTiptap/buildDefaultTextStyleMark.d.ts +2 -2
- package/dist/transforms/htmlToTiptap/buildLinkMark.d.ts +1 -1
- package/dist/transforms/htmlToTiptap/closeTag.d.ts +1 -1
- package/dist/transforms/htmlToTiptap/flushParagraph.d.ts +1 -1
- package/dist/transforms/htmlToTiptap/htmlToTiptap.d.ts +2 -2
- package/dist/transforms/htmlToTiptap/isSkipping.d.ts +1 -1
- package/dist/transforms/htmlToTiptap/makeDoc.d.ts +2 -2
- package/dist/transforms/htmlToTiptap/makeParagraph.d.ts +1 -1
- package/dist/transforms/htmlToTiptap/openTag.d.ts +1 -1
- package/dist/transforms/htmlToTiptap/pushText.d.ts +1 -1
- package/dist/transforms/htmlToTiptap/types.d.ts +1 -1
- package/dist/transforms/index.d.ts +12 -12
- package/package.json +3 -2
package/dist/server/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* (`UpstreamFetch`/`ServerContext`) plus the input types. The widget-conversion / section-composition
|
|
5
5
|
* orchestrators are added to this barrel in their later phases.
|
|
6
6
|
*/
|
|
7
|
-
export { NotFoundError, REBUY_ENGINE_HOST, UpstreamError, type AnalyticsEventInput, type AnalyticsInput, type CartInput, type CartLineInput, type DataSourceInput, type GiftInput, type GiftValidationInput, type MonetizeInput, type ServerContext, type UpstreamFetch, type UserConfigInput, type WidgetSettingsInput, } from '
|
|
7
|
+
export { NotFoundError, REBUY_ENGINE_HOST, UpstreamError, type AnalyticsEventInput, type AnalyticsInput, type CartInput, type CartLineInput, type DataSourceInput, type GiftInput, type GiftValidationInput, type MonetizeInput, type ServerContext, type UpstreamFetch, type UserConfigInput, type WidgetSettingsInput, } from '../server/shared';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CABImageSection } from '
|
|
2
|
-
import { CABLayoutSection } from '
|
|
3
|
-
import { type V1ImageBlock } from '
|
|
1
|
+
import { CABImageSection } from '../../schema/widgets/checkout-and-beyond/image';
|
|
2
|
+
import { CABLayoutSection } from '../../schema/widgets/checkout-and-beyond/layout';
|
|
3
|
+
import { type V1ImageBlock } from '../../transforms/contentBlockV1/types';
|
|
4
4
|
export declare const convertContentBlockImageToV2: (block: V1ImageBlock) => CABImageSection | CABLayoutSection;
|
|
5
5
|
//# sourceMappingURL=convertContentBlockImageToV2.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TiptapDocument } from '
|
|
2
|
-
import { type V1Language } from '
|
|
1
|
+
import { TiptapDocument } from '../../schema/widgets/checkout-and-beyond/text';
|
|
2
|
+
import { type V1Language } from '../../transforms/contentBlockV1/types';
|
|
3
3
|
export declare const convertContentBlockTextToV2: (language: V1Language | undefined) => TiptapDocument;
|
|
4
4
|
//# sourceMappingURL=convertContentBlockTextToV2.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CABRootSection } from '
|
|
2
|
-
import { type V1ConvertInput } from '
|
|
1
|
+
import { CABRootSection } from '../../schema/widgets/checkout-and-beyond/root';
|
|
2
|
+
import { type V1ConvertInput } from '../../transforms/contentBlockV1/types';
|
|
3
3
|
/** Translates a v1 content-block widget into a fully-formed `CABRootSection`. */
|
|
4
4
|
export declare const convertContentBlockToV2: ({ id, settings }: V1ConvertInput) => CABRootSection;
|
|
5
5
|
//# sourceMappingURL=convertContentBlockToV2.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type TextColorName, type TextSizeName } from '
|
|
2
|
-
import { type Mark } from '
|
|
1
|
+
import { type TextColorName, type TextSizeName } from '../../schema/widgets/checkout-and-beyond/common';
|
|
2
|
+
import { type Mark } from '../../transforms/htmlToTiptap/types';
|
|
3
3
|
export declare const buildDefaultTextStyleMark: (style: {
|
|
4
4
|
color?: TextColorName;
|
|
5
5
|
fontSize?: TextSizeName;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Spacing, type TextColorName, type TextSizeName } from '
|
|
2
|
-
import { type TiptapDocument } from '
|
|
1
|
+
import { type Spacing, type TextColorName, type TextSizeName } from '../../schema/widgets/checkout-and-beyond/common';
|
|
2
|
+
import { type TiptapDocument } from '../../schema/widgets/checkout-and-beyond/text';
|
|
3
3
|
export type HtmlToTiptapOptions = {
|
|
4
4
|
blockSpacing?: Spacing;
|
|
5
5
|
defaultTextStyle?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Spacing } from '
|
|
2
|
-
import { TiptapDocument, type TiptapParagraph } from '
|
|
1
|
+
import { type Spacing } from '../../schema/widgets/checkout-and-beyond/common';
|
|
2
|
+
import { TiptapDocument, type TiptapParagraph } from '../../schema/widgets/checkout-and-beyond/text';
|
|
3
3
|
export declare const makeDoc: (content: TiptapParagraph[], blockSpacing: Spacing) => TiptapDocument;
|
|
4
4
|
//# sourceMappingURL=makeDoc.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TiptapParagraph, type TiptapText } from '
|
|
1
|
+
import { TiptapParagraph, type TiptapText } from '../../schema/widgets/checkout-and-beyond/text';
|
|
2
2
|
export declare const makeParagraph: (content: TiptapText[]) => TiptapParagraph;
|
|
3
3
|
//# sourceMappingURL=makeParagraph.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TiptapParagraph, type TiptapText } from '
|
|
1
|
+
import { type TiptapParagraph, type TiptapText } from '../../schema/widgets/checkout-and-beyond/text';
|
|
2
2
|
export type Mark = NonNullable<TiptapText['marks']>[number];
|
|
3
3
|
export type StackEntry = {
|
|
4
4
|
marks: Mark[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { convertNumericObjects } from '
|
|
2
|
-
export { type DeepCamelCase, deepCamelCase, type ToCamelCase } from '
|
|
3
|
-
export { type HtmlToTiptapOptions, htmlToTiptap } from '
|
|
4
|
-
export { isCABRootSection } from '
|
|
5
|
-
export { normalizeTextContent } from '
|
|
6
|
-
export { normalizeTokens } from '
|
|
7
|
-
export { parseShielded } from '
|
|
8
|
-
export { CONTENT_BLOCK_MAX_IMAGE_WIDTH, isContentBlockV1, SHOPIFY_CHECKOUT_EXTENSION_CONTENT_BLOCK, type V1ConvertInput, type V1ImageBlock, type V1ImagePlacement, type V1Language, type V1Settings, } from '
|
|
9
|
-
export { convertContentBlockImageToV2 } from '
|
|
10
|
-
export { convertContentBlockTextToV2 } from '
|
|
11
|
-
export { convertContentBlockToV2 } from '
|
|
12
|
-
export { convertTextToTiptapParagraph } from '
|
|
1
|
+
export { convertNumericObjects } from '../transforms/convertNumericObjects';
|
|
2
|
+
export { type DeepCamelCase, deepCamelCase, type ToCamelCase } from '../transforms/deepCamelCase';
|
|
3
|
+
export { type HtmlToTiptapOptions, htmlToTiptap } from '../transforms/htmlToTiptap/htmlToTiptap';
|
|
4
|
+
export { isCABRootSection } from '../transforms/isCABRootSection';
|
|
5
|
+
export { normalizeTextContent } from '../transforms/normalizeTextContent';
|
|
6
|
+
export { normalizeTokens } from '../transforms/normalizeTokens';
|
|
7
|
+
export { parseShielded } from '../transforms/parseShielded';
|
|
8
|
+
export { CONTENT_BLOCK_MAX_IMAGE_WIDTH, isContentBlockV1, SHOPIFY_CHECKOUT_EXTENSION_CONTENT_BLOCK, type V1ConvertInput, type V1ImageBlock, type V1ImagePlacement, type V1Language, type V1Settings, } from '../transforms/contentBlockV1/types';
|
|
9
|
+
export { convertContentBlockImageToV2 } from '../transforms/contentBlockV1/convertContentBlockImageToV2';
|
|
10
|
+
export { convertContentBlockTextToV2 } from '../transforms/contentBlockV1/convertContentBlockTextToV2';
|
|
11
|
+
export { convertContentBlockToV2 } from '../transforms/contentBlockV1/convertContentBlockToV2';
|
|
12
|
+
export { convertTextToTiptapParagraph } from '../transforms/contentBlockV1/convertTextToTiptapParagraph';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebuy/rebuy",
|
|
3
3
|
"description": "This is the default library for Rebuy",
|
|
4
|
-
"version": "2.26.0-rc.
|
|
4
|
+
"version": "2.26.0-rc.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rebuy, Inc.",
|
|
7
7
|
"type": "module",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "npm run clean && npm run build:types && npm run build:code",
|
|
78
78
|
"build:code": "node esbuild.config.mjs",
|
|
79
|
-
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly --outDir dist",
|
|
79
|
+
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly --outDir dist && tsc-alias --project tsconfig.build.json",
|
|
80
80
|
"build:watch": "npm run clean && npm run build:types && node esbuild.config.mjs --watch",
|
|
81
81
|
"check-types": "tsc --noEmit",
|
|
82
82
|
"clean": "rm -rf dist",
|
|
@@ -136,6 +136,7 @@
|
|
|
136
136
|
"react-hook-form": "^7.69.0",
|
|
137
137
|
"semantic-release": "^24.2.5",
|
|
138
138
|
"sort-package-json": "^3.2.1",
|
|
139
|
+
"tsc-alias": "^1.8.16",
|
|
139
140
|
"typescript": "^5.8.3",
|
|
140
141
|
"vitest": "^4.1.8",
|
|
141
142
|
"zod": "^3.25.76"
|