@stripe/extensibility-jsonschema-tools 1.0.1 → 1.0.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/extensibility-jsonschema-tools-alpha.d.ts +25 -909
- package/dist/extensibility-jsonschema-tools-beta.d.ts +25 -909
- package/dist/extensibility-jsonschema-tools-internal.d.ts +23 -906
- package/dist/extensibility-jsonschema-tools-public.d.ts +25 -909
- package/dist/extract-config-schemas.d.ts +1 -1
- package/dist/extract-config-schemas.d.ts.map +1 -1
- package/dist/fixup-decimal-path-constraints.d.ts +1 -1
- package/dist/fixup-decimal-path-constraints.d.ts.map +1 -1
- package/dist/generate-schemas.d.ts +2 -2
- package/dist/generate-schemas.d.ts.map +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +50 -941
- package/dist/index.d.ts +50 -941
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -10
- package/dist/stdlib-extension.d.ts +2 -2
- package/dist/stdlib-extension.d.ts.map +1 -1
- package/dist/stripe-formspec-config.d.ts +1 -1
- package/dist/stripe-formspec-config.d.ts.map +1 -1
- package/dist/stripe-schema-defaults.d.ts +1 -1
- package/dist/stripe-schema-defaults.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -5
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,gBAAgB;AAChB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAIzD,gBAAgB;AAChB,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,gBAAgB;AAChB,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;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rB,MAAM,wBAAwB,CAAC;AAGhC,gBAAgB;AAChB,YAAY,EACV,8BAA8B,EAC9B,yBAAyB,EACzB,cAAc,EACd,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,6BAA6B,EAC7B,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAIhC,gBAAgB;AAChB,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,KAAK,cAAc,EACnB,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,eAAe,GACrB,MAAM,6BAA6B,CAAC;AAIrC,gBAAgB;AAChB,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAIzF,gBAAgB;AAChB,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAIpE,gBAAgB;AAChB,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __export = (target, all) => {
|
|
|
4
4
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
// ../../node_modules/.pnpm/@formspec
|
|
7
|
+
// ../../node_modules/.pnpm/@stripe+formspec-core@0.1.0-alpha.73/node_modules/@stripe/formspec-core/dist/index.js
|
|
8
8
|
function defineExtension(def) {
|
|
9
9
|
return def;
|
|
10
10
|
}
|
|
@@ -56,7 +56,7 @@ function matchesGlob(glob, namespace) {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
// ../../node_modules/.pnpm/@formspec
|
|
59
|
+
// ../../node_modules/.pnpm/@stripe+formspec-core@0.1.0-alpha.73/node_modules/@stripe/formspec-core/dist/internals.js
|
|
60
60
|
var _BUILTIN_CONSTRAINT_DEFINITIONS = {
|
|
61
61
|
minimum: "number",
|
|
62
62
|
maximum: "number",
|
|
@@ -4128,7 +4128,7 @@ var coerce = {
|
|
|
4128
4128
|
};
|
|
4129
4129
|
var NEVER = INVALID;
|
|
4130
4130
|
|
|
4131
|
-
// ../../node_modules/.pnpm/@formspec
|
|
4131
|
+
// ../../node_modules/.pnpm/@stripe+formspec-analysis@0.1.0-alpha.73_typescript@5.9.3/node_modules/@stripe/formspec-analysis/dist/internal.js
|
|
4132
4132
|
import * as ts3 from "typescript";
|
|
4133
4133
|
import * as ts from "typescript";
|
|
4134
4134
|
import * as ts2 from "typescript";
|
|
@@ -10016,7 +10016,7 @@ var TSDocParser = class {
|
|
|
10016
10016
|
}
|
|
10017
10017
|
};
|
|
10018
10018
|
|
|
10019
|
-
// ../../node_modules/.pnpm/@formspec
|
|
10019
|
+
// ../../node_modules/.pnpm/@stripe+formspec-analysis@0.1.0-alpha.73_typescript@5.9.3/node_modules/@stripe/formspec-analysis/dist/internal.js
|
|
10020
10020
|
function expectedCloseFor(open) {
|
|
10021
10021
|
if (open === "[") return "]";
|
|
10022
10022
|
if (open === "{") return "}";
|
|
@@ -14139,7 +14139,7 @@ function extractSummaryText(docComment, commentText, parsed) {
|
|
|
14139
14139
|
return hasTagOnlySummary ? "" : summary;
|
|
14140
14140
|
}
|
|
14141
14141
|
|
|
14142
|
-
// ../../node_modules/.pnpm/@formspec
|
|
14142
|
+
// ../../node_modules/.pnpm/@stripe+formspec-build@0.1.0-alpha.73_typescript@5.9.3/node_modules/@stripe/formspec-build/dist/index.js
|
|
14143
14143
|
import * as ts82 from "typescript";
|
|
14144
14144
|
import * as ts62 from "typescript";
|
|
14145
14145
|
import * as path from "path";
|
|
@@ -19727,8 +19727,8 @@ function isDefineCustomTypeCall(node, checker) {
|
|
|
19727
19727
|
const decl = resolved.declarations?.[0];
|
|
19728
19728
|
if (decl !== void 0) {
|
|
19729
19729
|
const sourceFile = decl.getSourceFile().fileName.replace(/\\/g, "/");
|
|
19730
|
-
return resolved.name === "defineCustomType" && // Match whether in node_modules/@formspec
|
|
19731
|
-
(sourceFile.includes("@formspec
|
|
19730
|
+
return resolved.name === "defineCustomType" && // Match whether in node_modules/@stripe/formspec-core or monorepo packages/core.
|
|
19731
|
+
(sourceFile.includes("@stripe/formspec-core") || sourceFile.includes("/packages/core/"));
|
|
19732
19732
|
}
|
|
19733
19733
|
}
|
|
19734
19734
|
return ts72.isIdentifier(node.expression) && node.expression.text === "defineCustomType";
|
|
@@ -19761,7 +19761,7 @@ function isDefineExtensionCall(node, checker) {
|
|
|
19761
19761
|
const decl = resolved.declarations?.[0];
|
|
19762
19762
|
if (decl !== void 0) {
|
|
19763
19763
|
const sourceFile = decl.getSourceFile().fileName.replace(/\\/g, "/");
|
|
19764
|
-
return resolved.name === "defineExtension" && (sourceFile.includes("@formspec
|
|
19764
|
+
return resolved.name === "defineExtension" && (sourceFile.includes("@stripe/formspec-core") || sourceFile.includes("/packages/core/"));
|
|
19765
19765
|
}
|
|
19766
19766
|
}
|
|
19767
19767
|
return ts72.isIdentifier(node.expression) && node.expression.text === "defineExtension";
|
|
@@ -20247,7 +20247,7 @@ function _generateSchemas(options) {
|
|
|
20247
20247
|
return result;
|
|
20248
20248
|
}
|
|
20249
20249
|
|
|
20250
|
-
// ../../node_modules/.pnpm/@formspec
|
|
20250
|
+
// ../../node_modules/.pnpm/@stripe+formspec-build@0.1.0-alpha.73_typescript@5.9.3/node_modules/@stripe/formspec-build/dist/browser.js
|
|
20251
20251
|
function toKebabCase2(logicalName) {
|
|
20252
20252
|
return logicalName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").replace(/-+/g, "-").toLowerCase();
|
|
20253
20253
|
}
|
|
@@ -20485,7 +20485,7 @@ var jsonSchema7Schema2 = external_exports.lazy(
|
|
|
20485
20485
|
// src/extract-config-schemas.ts
|
|
20486
20486
|
import * as ts12 from "typescript";
|
|
20487
20487
|
|
|
20488
|
-
// ../../node_modules/.pnpm/@formspec
|
|
20488
|
+
// ../../node_modules/.pnpm/@stripe+formspec-build@0.1.0-alpha.73_typescript@5.9.3/node_modules/@stripe/formspec-build/dist/internals.js
|
|
20489
20489
|
import * as ts63 from "typescript";
|
|
20490
20490
|
import * as path3 from "path";
|
|
20491
20491
|
import * as ts53 from "typescript";
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Registers custom type handlers for Decimal and other stdlib types so that
|
|
5
5
|
* formspec generates the correct JSON Schema representations.
|
|
6
6
|
*/
|
|
7
|
-
import { type ExtensionDefinition } from '@formspec
|
|
8
|
-
import { type ExtensionRegistry } from '@formspec
|
|
7
|
+
import { type ExtensionDefinition } from '@stripe/formspec-core';
|
|
8
|
+
import { type ExtensionRegistry } from '@stripe/formspec-build';
|
|
9
9
|
/**
|
|
10
10
|
* Stripe stdlib extension for FormSpec.
|
|
11
11
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdlib-extension.d.ts","sourceRoot":"","sources":["../src/stdlib-extension.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,
|
|
1
|
+
{"version":3,"file":"stdlib-extension.d.ts","sourceRoot":"","sources":["../src/stdlib-extension.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AA0BzF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,EAAE,mBAkEnC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,EAAE,iBAErC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-formspec-config.d.ts","sourceRoot":"","sources":["../src/stripe-formspec-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"stripe-formspec-config.d.ts","sourceRoot":"","sources":["../src/stripe-formspec-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,cAInC,CAAC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
|
-
import type { StaticSchemaGenerationOptions } from '@formspec
|
|
11
|
+
import type { StaticSchemaGenerationOptions } from '@stripe/formspec-build';
|
|
12
12
|
/** @internal */
|
|
13
13
|
export declare const _stripeSchemaDefaults: StaticSchemaGenerationOptions;
|
|
14
14
|
//# sourceMappingURL=stripe-schema-defaults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe-schema-defaults.d.ts","sourceRoot":"","sources":["../src/stripe-schema-defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"stripe-schema-defaults.d.ts","sourceRoot":"","sources":["../src/stripe-schema-defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAG5E,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,6BAEnC,CAAC"}
|