@nullplatform/ui-plugin-sdk 0.6.0 → 0.6.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/dist/catalog.js +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +1 -1
- package/dist/contractProps.d.ts +1 -1
- package/package.json +2 -2
package/dist/catalog.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* This file is pure data so it can be imported by the host without pulling
|
|
9
9
|
* the DOM polyfill.
|
|
10
10
|
*/
|
|
11
|
-
import { UI_COMPONENTS_CONTRACTS } from "./contracts.generated";
|
|
11
|
+
import { UI_COMPONENTS_CONTRACTS } from "./contracts.generated.js";
|
|
12
12
|
/**
|
|
13
13
|
* The values a plugin may pass to these props. The SDK's components are typed from these lists, and
|
|
14
14
|
* the host checks each value against them again at runtime, falling back to the element's default:
|
package/dist/components.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import "./polyfill.js";
|
|
|
6
6
|
import type { ReactNode } from "react";
|
|
7
7
|
import { type AlertSeverity, type ButtonColor, type ButtonSize, type ButtonVariant, type ChipColor, type ChipSize, type ChipVariant, type SkeletonVariant, type StackDirection, type TextAlign, type TextVariant } from "./catalog.js";
|
|
8
8
|
export type { AlertSeverity, ButtonColor, ButtonSize, ButtonVariant, ChipColor, ChipSize, ChipVariant, SkeletonVariant, StackDirection, TextAlign, TextVariant, } from "./catalog.js";
|
|
9
|
-
export * from "./components.generated";
|
|
9
|
+
export * from "./components.generated.js";
|
|
10
10
|
export type { ContractProps, UiComponentsTag } from "./contractProps.js";
|
|
11
11
|
export declare const TextField: import("react").ComponentType<{
|
|
12
12
|
label: string;
|
package/dist/components.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./polyfill.js";
|
|
2
2
|
import { component } from "./component.js";
|
|
3
3
|
// The design-system components plugins render, one per contract react-ui-components publishes.
|
|
4
|
-
export * from "./components.generated";
|
|
4
|
+
export * from "./components.generated.js";
|
|
5
5
|
export const TextField = component("np-text-field");
|
|
6
6
|
export const Select = component("np-select");
|
|
7
7
|
export const Switch = component("np-switch");
|
package/dist/contractProps.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import type { UI_COMPONENTS_CONTRACTS } from "./contracts.generated";
|
|
2
|
+
import type { UI_COMPONENTS_CONTRACTS } from "./contracts.generated.js";
|
|
3
3
|
type Contract = (typeof UI_COMPONENTS_CONTRACTS)[number];
|
|
4
4
|
/** The elements the SDK takes from @nullplatform/react-ui-components' contracts. */
|
|
5
5
|
export type UiComponentsTag = Contract["tag"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nullplatform/ui-plugin-sdk",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "SDK for nullplatform UI plugins: catalog components, bridge client and defineUI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "tsc -p tsconfig.json && tsc -p tsconfig.contract.cjs.json && node scripts/finish-build.mjs",
|
|
34
|
+
"build": "tsc -p tsconfig.json && tsc -p tsconfig.contract.cjs.json && node scripts/finish-build.mjs && node scripts/check-node-imports.mjs",
|
|
35
35
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test-types.json",
|
|
36
36
|
"test": "vitest run --passWithNoTests",
|
|
37
37
|
"sync:contracts": "node scripts/sync-contracts.mjs"
|