@viewfly/scoped-css 0.0.1-alpha.1 → 0.0.1-alpha.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.
@@ -3,9 +3,6 @@ import { JSXElement, Props } from '@viewfly/core';
3
3
  function replaceCSSClass(template, css) {
4
4
  if (template instanceof JSXElement) {
5
5
  const cssNames = template.props.attrs.get('css');
6
- if (typeof cssNames !== 'string') {
7
- return;
8
- }
9
6
  template.props.attrs.delete('css');
10
7
  const classes = template.props.classes;
11
8
  Props.classToArray(cssNames).forEach(i => {
package/bundles/index.js CHANGED
@@ -5,9 +5,6 @@ var core = require('@viewfly/core');
5
5
  function replaceCSSClass(template, css) {
6
6
  if (template instanceof core.JSXElement) {
7
7
  const cssNames = template.props.attrs.get('css');
8
- if (typeof cssNames !== 'string') {
9
- return;
10
- }
11
8
  template.props.attrs.delete('css');
12
9
  const classes = template.props.classes;
13
10
  core.Props.classToArray(cssNames).forEach(i => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewfly/scoped-css",
3
- "version": "0.0.1-alpha.1",
3
+ "version": "0.0.1-alpha.2",
4
4
  "description": "Viewfly is a simple and easy-to-use JavaScript framework with an intuitive development experience",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",
@@ -15,7 +15,7 @@
15
15
  "license": "MIT",
16
16
  "keywords": [],
17
17
  "dependencies": {
18
- "@viewfly/core": "^0.0.1-alpha.1"
18
+ "@viewfly/core": "^0.0.1-alpha.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@rollup/plugin-commonjs": "^23.0.2",
@@ -34,6 +34,5 @@
34
34
  },
35
35
  "bugs": {
36
36
  "url": "https://github.com/viewfly/viewfly.git/issues"
37
- },
38
- "gitHead": "abca65615d81e3a6617d5fe588cdf38142a3523a"
37
+ }
39
38
  }
@@ -3,9 +3,6 @@ import { JSXElement, ComponentSetup, Props } from '@viewfly/core'
3
3
  function replaceCSSClass(template, css: Record<string, string>) {
4
4
  if (template instanceof JSXElement) {
5
5
  const cssNames = template.props.attrs.get('css')
6
- if (typeof cssNames !== 'string') {
7
- return
8
- }
9
6
  template.props.attrs.delete('css')
10
7
  const classes = template.props.classes
11
8
  Props.classToArray(cssNames).forEach(i => {