diff --git a/assets/component-set/__package.json b/assets/component-set/__package.json index bce07431..c57bb0e1 100644 --- a/assets/component-set/__package.json +++ b/assets/component-set/__package.json @@ -1,15 +1,12 @@ { "name": "component-set", - "version": "1.227.0", + "version": "1.0.0", "main": "dist/templates.json", "license": "UNLICENSED", - "private": false, + "private": true, "devDependencies": { "@betty-blocks/cli": "^25.27.1", - "@commitlint/cli": "^16.1.0", - "@commitlint/config-angular": "^16.0.0", - "@semantic-release/changelog": "^6.0.1", - "@semantic-release/git": "^10.0.1", + "@betty-blocks/component-sdk": "^1.7.1", "@types/node": "^17.0.10", "@typescript-eslint/eslint-plugin": "^5.21.0", "@typescript-eslint/parser": "^5.21.0", @@ -22,47 +19,15 @@ "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.27.1", "eslint-plugin-react-hooks": "^4.3.0", - "husky": "^4.2.5", "nodemon": "^2.0.15", - "prettier": "^2.5.0", - "semantic-release": "^19.0.2", - "webpack": "^5.64.4", - "webpack-cli": "^4.9.1" - }, - "husky": { - "hooks": { - "pre-commit": "yarn lint", - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" - } + "prettier": "^2.5.0" }, "scripts": { "start": "bb components serve -p 5002", "build": "bb components build", "dev": "nodemon", "lint": "eslint --ext .js,.ts,.tsx ./src", - "lint:ci": "yarn lint --max-warnings 0", - "prettier:base": "prettier --single-quote", - "prettier:check": "yarn prettier:base --list-different \"src/**/*.js\"", - "prettier:write": "yarn prettier:base --write \"src/**/*.js\"", - "upload": "bb components publish -b material-ui-component-set", - "test": "echo \"Error: no test specified\" && exit 0", - "bundle": "npx webpack --config webpack.config.js" - }, - "files": ["dist"], - "dependencies": { - "@betty-blocks/component-sdk": "^1.7.1", - "@date-io/date-fns": "^1.3.13", - "@material-ui/core": "^4.9.11", - "@material-ui/icons": "^4.11.2", - "@material-ui/lab": "^4.0.0-alpha.50", - "@material-ui/pickers": "^3.2.10", - "@material-ui/styles": "^4.9.10", - "date-fns": "^2.11.0", - "react": "^16.13.1", - "react-dom": "^16.13.1" + "lint:ci": "yarn lint --max-warnings 0" }, - "repository": { - "type": "git", - "url": "https://github.com/bettyblocks/material-ui-component-set.git" - } + "files": ["dist"] } diff --git a/assets/component-set/src/utils.ts b/assets/component-set/src/utils.ts index 8180ed8d..d7a913dc 100644 --- a/assets/component-set/src/utils.ts +++ b/assets/component-set/src/utils.ts @@ -1,17 +1,4 @@ -import { PrefabComponentOption, showIfTrue } from '@betty-blocks/component-sdk'; - -// TODO: export OptionProducer from the sdk -type OptionProducer = (key: string) => PrefabComponentOption; -type Attributes = Partial; - -export type PartialBy = Omit & Partial>; - -export const updateOption = ( - producer: OptionProducer, - attrs: Attributes, -): OptionProducer => { - return (key) => ({ ...producer(key), ...attrs }); -}; +import { showIfTrue } from '@betty-blocks/component-sdk'; export const showOn = (key: string) => ({ configuration: { condition: showIfTrue(key) },