@rebuy/rebuy 2.1.0 → 2.2.0-rc.10
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +654 -1
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +654 -1
- package/dist/index.mjs.map +4 -4
- package/dist/schema/button.d.ts +273 -0
- package/dist/schema/button.d.ts.map +1 -0
- package/dist/schema/common.d.ts +369 -0
- package/dist/schema/common.d.ts.map +1 -0
- package/dist/schema/constants.d.ts +165 -0
- package/dist/schema/constants.d.ts.map +1 -0
- package/dist/schema/data-source.d.ts +13 -0
- package/dist/schema/data-source.d.ts.map +1 -0
- package/dist/schema/image.d.ts +65 -0
- package/dist/schema/image.d.ts.map +1 -0
- package/dist/schema/index.d.ts +20 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/layout.d.ts +79 -0
- package/dist/schema/layout.d.ts.map +1 -0
- package/dist/schema/offers.d.ts +67 -0
- package/dist/schema/offers.d.ts.map +1 -0
- package/dist/schema/product.d.ts +147 -0
- package/dist/schema/product.d.ts.map +1 -0
- package/dist/schema/products.d.ts +152 -0
- package/dist/schema/products.d.ts.map +1 -0
- package/dist/schema/quantity.d.ts +21 -0
- package/dist/schema/quantity.d.ts.map +1 -0
- package/dist/schema/regex.d.ts +7 -0
- package/dist/schema/regex.d.ts.map +1 -0
- package/dist/schema/reviews.d.ts +10 -0
- package/dist/schema/reviews.d.ts.map +1 -0
- package/dist/schema/root.d.ts +127 -0
- package/dist/schema/root.d.ts.map +1 -0
- package/dist/schema/shared.d.ts +78 -0
- package/dist/schema/shared.d.ts.map +1 -0
- package/dist/schema/subscription.d.ts +10 -0
- package/dist/schema/subscription.d.ts.map +1 -0
- package/dist/schema/table.d.ts +10 -0
- package/dist/schema/table.d.ts.map +1 -0
- package/dist/schema/text.d.ts +162 -0
- package/dist/schema/text.d.ts.map +1 -0
- package/dist/schema/utils.d.ts +33 -0
- package/dist/schema/utils.d.ts.map +1 -0
- package/dist/schema/variants.d.ts +17 -0
- package/dist/schema/variants.d.ts.map +1 -0
- package/package.json +7 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type CABButtonSection } from './button';
|
|
2
|
+
import { type CABDataSourceSection } from './data-source';
|
|
3
|
+
import { type CABImageSection } from './image';
|
|
4
|
+
import { type CABLayoutSection } from './layout';
|
|
5
|
+
import { type CABOffersSection } from './offers';
|
|
6
|
+
import { type CABProductSection } from './product';
|
|
7
|
+
import { type CABProductsSection } from './products';
|
|
8
|
+
import { type CABQuantitySection } from './quantity';
|
|
9
|
+
import { type CABReviewsSection } from './reviews';
|
|
10
|
+
import { type CABSubscriptionSection } from './subscription';
|
|
11
|
+
import { type CABTableSection } from './table';
|
|
12
|
+
import { type CABTextSection, type TiptapDocument } from './text';
|
|
13
|
+
import { type CABVariantsSection } from './variants';
|
|
14
|
+
export declare const isHTML: (html?: string | undefined) => boolean;
|
|
15
|
+
export declare const hasHTMLInDoc: (doc: TiptapDocument) => boolean;
|
|
16
|
+
export declare const checkForHTML: (input: string | TiptapDocument) => boolean;
|
|
17
|
+
export declare const NO_HTML: {
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const isButtonType: (section: unknown) => section is CABButtonSection;
|
|
21
|
+
export declare const isDataSourceType: (section: unknown) => section is CABDataSourceSection;
|
|
22
|
+
export declare const isImageType: (section: unknown) => section is CABImageSection;
|
|
23
|
+
export declare const isLayoutType: (section: unknown) => section is CABLayoutSection;
|
|
24
|
+
export declare const isOffersType: (section: unknown) => section is CABOffersSection;
|
|
25
|
+
export declare const isProductType: (section: unknown) => section is CABProductSection;
|
|
26
|
+
export declare const isProductsType: (section: unknown) => section is CABProductsSection;
|
|
27
|
+
export declare const isQuantityType: (section: unknown) => section is CABQuantitySection;
|
|
28
|
+
export declare const isReviewsType: (section: unknown) => section is CABReviewsSection;
|
|
29
|
+
export declare const isSubscriptionType: (section: unknown) => section is CABSubscriptionSection;
|
|
30
|
+
export declare const isTableType: (section: unknown) => section is CABTableSection;
|
|
31
|
+
export declare const isTextType: (section: unknown) => section is CABTextSection;
|
|
32
|
+
export declare const isVariantsType: (section: unknown) => section is CABVariantsSection;
|
|
33
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/schema/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,eAAO,MAAM,MAAM,GAAI,OAAM,MAAM,GAAG,SAAc,KAAG,OAWtD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,KAAK,cAAc,KAAG,OACiC,CAAC;AAErF,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,GAAG,cAAc,KAAG,OAC8C,CAAC;AAE7G,eAAO,MAAM,OAAO;;CAAuC,CAAC;AAE5D,eAAO,MAAM,YAAY,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,gBACL,CAAC;AAEvD,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,oBACL,CAAC;AAE3D,eAAO,MAAM,WAAW,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,eACL,CAAC;AAEtD,eAAO,MAAM,YAAY,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,gBACL,CAAC;AAEvD,eAAO,MAAM,YAAY,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,gBACL,CAAC;AAEvD,eAAO,MAAM,aAAa,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,iBACL,CAAC;AAExD,eAAO,MAAM,cAAc,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,kBACL,CAAC;AAEzD,eAAO,MAAM,cAAc,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,kBACL,CAAC;AAEzD,eAAO,MAAM,aAAa,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,iBACL,CAAC;AAExD,eAAO,MAAM,kBAAkB,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,sBACL,CAAC;AAE7D,eAAO,MAAM,WAAW,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,eACL,CAAC;AAEtD,eAAO,MAAM,UAAU,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,cACL,CAAC;AAErD,eAAO,MAAM,cAAc,GAAI,SAAS,OAAO,KAAG,OAAO,IAAI,kBACL,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { type SectionDetails } from './shared';
|
|
3
|
+
export declare const CABVariantsSection: z.ZodObject<{
|
|
4
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5
|
+
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
6
|
+
sectionType: z.ZodDefault<z.ZodLiteral<"variants">>;
|
|
7
|
+
selector: z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
button: "button";
|
|
9
|
+
image: "image";
|
|
10
|
+
menu: "menu";
|
|
11
|
+
radio: "radio";
|
|
12
|
+
color: "color";
|
|
13
|
+
}>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type CABVariantsSection = z.infer<typeof CABVariantsSection>;
|
|
16
|
+
export type CABVariantsSectionProps = CABVariantsSection & SectionDetails;
|
|
17
|
+
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../src/schema/variants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,kBAAkB;;;;;;;;;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG,cAAc,CAAC"}
|
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.
|
|
4
|
+
"version": "2.2.0-rc.10",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rebuy, Inc.",
|
|
7
7
|
"type": "module",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
61
61
|
"@semantic-release/exec": "^7.1.0",
|
|
62
62
|
"@semantic-release/release-notes-generator": "^14.0.3",
|
|
63
|
+
"@types/lodash-es": "^4.17.12",
|
|
63
64
|
"@typescript-eslint/eslint-plugin": "^8.33.1",
|
|
64
65
|
"@typescript-eslint/parser": "^8.33.1",
|
|
65
66
|
"concurrently": "^9.1.2",
|
|
@@ -80,9 +81,13 @@
|
|
|
80
81
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
81
82
|
"husky": "^9.1.7",
|
|
82
83
|
"lint-staged": "^15.5.0",
|
|
84
|
+
"lodash-es": "^4.17.22",
|
|
83
85
|
"prettier": "^3.5.3",
|
|
86
|
+
"react-hook-form": "^7.69.0",
|
|
84
87
|
"semantic-release": "^24.2.5",
|
|
85
88
|
"sort-package-json": "^3.2.1",
|
|
86
|
-
"typescript": "^5.8.3"
|
|
89
|
+
"typescript": "^5.8.3",
|
|
90
|
+
"uuid": "^11.1.0",
|
|
91
|
+
"zod": "^3.25.76"
|
|
87
92
|
}
|
|
88
93
|
}
|