@meonode/ui 0.0.1-alpha.7 → 0.0.1-alpha.9

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.
@@ -1,10 +1,7 @@
1
1
  ```ts
2
2
  // Component wraps a React Server Component into a Client Component
3
3
  // Think of it like a factory that transforms JSX-like node definitions into actual React components
4
- import { Component } from '@src/lib/node/core.node'
5
-
6
- // These are layout/HTML helpers that render to real DOM elements (e.g., <div>, <img>, <p>)
7
- import { Column, Row, Div, Img, P } from '@src/lib/node/html.node'
4
+ import { Component, Column, Row, Div, Img, P } from '@meonode/ui'
8
5
 
9
6
  const theme = { background: { primary: 'red', secondary: 'blue' } }
10
7
 
@@ -1,10 +1,7 @@
1
1
  ```ts
2
2
 
3
3
  // Wraps a hook-capable component into a BaseNode-compatible Client Component
4
- import { Component } from '@src/lib/node/core.node'
5
-
6
- // Layout primitives (synthetic components for JSX-less DOM generation)
7
- import { Column, Row, Div, P } from '@src/lib/node/html.node'
4
+ import { Component, Column, Row, Div, P } from '@meonode/ui'
8
5
  import { useState, useEffect } from 'react'
9
6
 
10
7
  // Shared theme object passed into components. This may be written in a different file and imported.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meonode/ui",
3
3
  "description": "`@meonode/ui` is a lightweight yet powerful utility for the programmatic creation and manipulation of React elements. It offers an enhanced, structured way to define components, manage props (separating CSS from DOM attributes), handle theming, and compose children *before* they are rendered by React. This provides greater control and flexibility, especially for dynamic UIs and design systems.",
4
- "version": "0.0.1-alpha.7",
4
+ "version": "0.0.1-alpha.9",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",
@@ -21,7 +21,7 @@
21
21
  "scripts": {
22
22
  "lint": "eslint --fix",
23
23
  "build": "rm -rf ./dist && babel src --out-dir dist --extensions \".ts,.js\" && tsc && tsc-alias && copyfiles -u 1 \"src/**/*.json\" dist",
24
- "publish": "npm publish"
24
+ "publish": "yarn version prerelease --deferred && yarn version apply && yarn npm publish"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@babel/cli": "^7.0.0",
@@ -51,11 +51,15 @@
51
51
  },
52
52
  "repository": {
53
53
  "type": "git",
54
- "url": "https://github.com/l7aromeo/meonode-ui.git"
54
+ "url": "git+https://github.com/l7aromeo/meonode-ui.git"
55
55
  },
56
56
  "homepage": "https://github.com/l7aromeo/meonode-ui#readme",
57
57
  "bugs": {
58
58
  "url": "https://github.com/l7aromeo/meonode-ui/issues"
59
59
  },
60
- "license": "MIT"
61
- }
60
+ "publishConfig": {
61
+ "access": "public"
62
+ },
63
+ "license": "MIT",
64
+ "stableVersion": "0.0.1-alpha.7"
65
+ }