@ubie/vitals-ui-business 0.0.0 → 0.1.0

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 ADDED
@@ -0,0 +1,18 @@
1
+ # @ubie/vitals-ui-business
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c28598e: `@ubie/vitals-ui-business` を初回公開します。
8
+
9
+ - Ant Design の root public exports を透過的に再公開
10
+ - Vitals theme を基底に利用側設定を拡張できる `UbieConfigProvider` と `UbieConfigProviderProps` を追加
11
+ - facade package を side-effect-free として宣言し、未使用 Provider/theme branch の tree-shaking を可能にする
12
+ - `@ubie/vitals-antd-theme` の package build で ESM と CommonJS の両形式を生成し、ESM-only の token dependency を output へ bundle
13
+ - `@ubie/vitals-antd-theme` を side-effect-free として宣言し、未使用 theme branch の tree-shaking を可能にする
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [c28598e]
18
+ - @ubie/vitals-antd-theme@0.0.7
package/dist/index.cjs ADDED
@@ -0,0 +1,24 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let antd = require("antd");
3
+ let _ubie_vitals_antd_theme = require("@ubie/vitals-antd-theme");
4
+ let react_jsx_runtime = require("react/jsx-runtime");
5
+ //#region src/UbieConfigProvider.tsx
6
+ function UbieConfigProvider({ children, ...configProviderProps }) {
7
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.ConfigProvider, {
8
+ theme: _ubie_vitals_antd_theme.antdTheme,
9
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.ConfigProvider, {
10
+ ...configProviderProps,
11
+ children
12
+ })
13
+ });
14
+ }
15
+ //#endregion
16
+ exports.UbieConfigProvider = UbieConfigProvider;
17
+ Object.keys(antd).forEach(function(k) {
18
+ if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
+ enumerable: true,
20
+ get: function() {
21
+ return antd[k];
22
+ }
23
+ });
24
+ });
@@ -0,0 +1,13 @@
1
+ import { ConfigProviderProps } from "antd";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ export * from "antd";
4
+
5
+ //#region src/UbieConfigProvider.d.ts
6
+ type UbieConfigProviderProps = ConfigProviderProps;
7
+ declare function UbieConfigProvider({
8
+ children,
9
+ ...configProviderProps
10
+ }: UbieConfigProviderProps): _$react_jsx_runtime0.JSX.Element;
11
+ //#endregion
12
+ export { UbieConfigProvider, type UbieConfigProviderProps };
13
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/UbieConfigProvider.tsx"],"mappings":";;;;;KAGY,uBAAA,GAA0B,mBAAA;AAAA,iBAEtB,kBAAA,CAAA;EAAqB,QAAA;EAAA,GAAa;AAAA,GAAuB,uBAAA,GAAuB,oBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,13 @@
1
+ import { ConfigProviderProps } from "antd";
2
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
+ export * from "antd";
4
+
5
+ //#region src/UbieConfigProvider.d.ts
6
+ type UbieConfigProviderProps = ConfigProviderProps;
7
+ declare function UbieConfigProvider({
8
+ children,
9
+ ...configProviderProps
10
+ }: UbieConfigProviderProps): _$react_jsx_runtime0.JSX.Element;
11
+ //#endregion
12
+ export { UbieConfigProvider, type UbieConfigProviderProps };
13
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/UbieConfigProvider.tsx"],"mappings":";;;;;KAGY,uBAAA,GAA0B,mBAAA;AAAA,iBAEtB,kBAAA,CAAA;EAAqB,QAAA;EAAA,GAAa;AAAA,GAAuB,uBAAA,GAAuB,oBAAA,CAAA,GAAA,CAAA,OAAA"}
package/dist/index.mjs ADDED
@@ -0,0 +1,18 @@
1
+ import { ConfigProvider } from "antd";
2
+ import { antdTheme } from "@ubie/vitals-antd-theme";
3
+ import { jsx } from "react/jsx-runtime";
4
+ export * from "antd";
5
+ //#region src/UbieConfigProvider.tsx
6
+ function UbieConfigProvider({ children, ...configProviderProps }) {
7
+ return /* @__PURE__ */ jsx(ConfigProvider, {
8
+ theme: antdTheme,
9
+ children: /* @__PURE__ */ jsx(ConfigProvider, {
10
+ ...configProviderProps,
11
+ children
12
+ })
13
+ });
14
+ }
15
+ //#endregion
16
+ export { UbieConfigProvider };
17
+
18
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/UbieConfigProvider.tsx"],"sourcesContent":["import { antdTheme } from \"@ubie/vitals-antd-theme\";\nimport { ConfigProvider, type ConfigProviderProps } from \"antd\";\n\nexport type UbieConfigProviderProps = ConfigProviderProps;\n\nexport function UbieConfigProvider({ children, ...configProviderProps }: UbieConfigProviderProps) {\n return (\n <ConfigProvider theme={antdTheme}>\n <ConfigProvider {...configProviderProps}>{children}</ConfigProvider>\n </ConfigProvider>\n );\n}\n"],"mappings":";;;;;AAKA,SAAgB,mBAAmB,EAAE,UAAU,GAAG,uBAAgD;AAChG,QACE,oBAAC,gBAAD;EAAgB,OAAO;YACrB,oBAAC,gBAAD;GAAgB,GAAI;GAAsB;GAA0B,CAAA;EACrD,CAAA"}
package/package.json CHANGED
@@ -1,10 +1,35 @@
1
1
  {
2
2
  "name": "@ubie/vitals-ui-business",
3
- "version": "0.0.0",
4
- "description": "OIDC trusted publishing setup package for @ubie/vitals-ui-business",
5
- "keywords": [
6
- "oidc",
7
- "trusted-publishing",
8
- "setup"
9
- ]
10
- }
3
+ "version": "0.1.0",
4
+ "description": "Ant Design components with the Ubie Vitals theme for business products",
5
+ "author": "Ubie Inc.",
6
+ "sideEffects": false,
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.cts",
10
+ "exports": {
11
+ ".": {
12
+ "development": "./src/index.ts",
13
+ "require": "./dist/index.cjs",
14
+ "import": "./dist/index.mjs"
15
+ }
16
+ },
17
+ "dependencies": {
18
+ "antd": "^6.1.0",
19
+ "@ubie/vitals-antd-theme": "0.0.7"
20
+ },
21
+ "devDependencies": {
22
+ "@types/react": "^19.2.7",
23
+ "@types/react-dom": "^19.2.3",
24
+ "react": "19.2.5",
25
+ "react-dom": "19.2.5",
26
+ "vite-plus": "0.1.20"
27
+ },
28
+ "peerDependencies": {
29
+ "react": ">=18.0.0",
30
+ "react-dom": ">=18.0.0"
31
+ },
32
+ "scripts": {
33
+ "build": "vp pack"
34
+ }
35
+ }
@@ -0,0 +1,12 @@
1
+ import { antdTheme } from "@ubie/vitals-antd-theme";
2
+ import { ConfigProvider, type ConfigProviderProps } from "antd";
3
+
4
+ export type UbieConfigProviderProps = ConfigProviderProps;
5
+
6
+ export function UbieConfigProvider({ children, ...configProviderProps }: UbieConfigProviderProps) {
7
+ return (
8
+ <ConfigProvider theme={antdTheme}>
9
+ <ConfigProvider {...configProviderProps}>{children}</ConfigProvider>
10
+ </ConfigProvider>
11
+ );
12
+ }
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from "antd";
2
+ export { UbieConfigProvider } from "./UbieConfigProvider";
3
+ export type { UbieConfigProviderProps } from "./UbieConfigProvider";
package/tsconfig.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "composite": true,
5
+ "noEmit": true
6
+ },
7
+ "include": ["src/**/*.ts", "src/**/*.tsx"]
8
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from "vite-plus";
2
+
3
+ export default defineConfig({
4
+ pack: {
5
+ dts: true,
6
+ format: ["esm", "cjs"],
7
+ },
8
+ });
package/README.md DELETED
@@ -1,45 +0,0 @@
1
- # @ubie/vitals-ui-business
2
-
3
- ## ⚠️ IMPORTANT NOTICE ⚠️
4
-
5
- **This package is created solely for the purpose of setting up OIDC (OpenID Connect) trusted publishing with npm.**
6
-
7
- This is **NOT** a functional package and contains **NO** code or functionality beyond the OIDC setup configuration.
8
-
9
- ## Purpose
10
-
11
- This package exists to:
12
- 1. Configure OIDC trusted publishing for the package name `@ubie/vitals-ui-business`
13
- 2. Enable secure, token-less publishing from CI/CD workflows
14
- 3. Establish provenance for packages published under this name
15
-
16
- ## What is OIDC Trusted Publishing?
17
-
18
- OIDC trusted publishing allows package maintainers to publish packages directly from their CI/CD workflows without needing to manage npm access tokens. Instead, it uses OpenID Connect to establish trust between the CI/CD provider (like GitHub Actions) and npm.
19
-
20
- ## Setup Instructions
21
-
22
- To properly configure OIDC trusted publishing for this package:
23
-
24
- 1. Go to [npmjs.com](https://www.npmjs.com/) and navigate to your package settings
25
- 2. Configure the trusted publisher (e.g., GitHub Actions)
26
- 3. Specify the repository and workflow that should be allowed to publish
27
- 4. Use the configured workflow to publish your actual package
28
-
29
- ## DO NOT USE THIS PACKAGE
30
-
31
- This package is a placeholder for OIDC configuration only. It:
32
- - Contains no executable code
33
- - Provides no functionality
34
- - Should not be installed as a dependency
35
- - Exists only for administrative purposes
36
-
37
- ## More Information
38
-
39
- For more details about npm's trusted publishing feature, see:
40
- - [npm Trusted Publishing Documentation](https://docs.npmjs.com/generating-provenance-statements)
41
- - [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
42
-
43
- ---
44
-
45
- **Maintained for OIDC setup purposes only**