@dnncommunity/dnn-elements 0.24.4-beta.10 → 0.24.4-beta.11

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.
Files changed (22) hide show
  1. package/eslint-plugin/dist/index.js.map +1 -0
  2. package/eslint-plugin/dist/rules/index.js.map +1 -0
  3. package/eslint-plugin/dist/rules/no-label-slot-in-checkbox.js.map +1 -0
  4. package/eslint-plugin/dist/rules/no-label-slot-in-checkbox.tests.js.map +1 -0
  5. package/eslint-plugin/dist/utils.js.map +1 -0
  6. package/package.json +2 -2
  7. package/eslint-plugin/dist/eslint-plugin/src/index.js.map +0 -1
  8. package/eslint-plugin/dist/eslint-plugin/src/rules/index.js.map +0 -1
  9. package/eslint-plugin/dist/eslint-plugin/src/rules/no-label-slot-in-checkbox.js.map +0 -1
  10. package/eslint-plugin/dist/eslint-plugin/src/rules/no-label-slot-in-checkbox.tests.js.map +0 -1
  11. package/eslint-plugin/dist/eslint-plugin/src/utils.js.map +0 -1
  12. package/eslint-plugin/dist/package.json +0 -89
  13. /package/eslint-plugin/dist/{eslint-plugin/src/index.d.ts → index.d.ts} +0 -0
  14. /package/eslint-plugin/dist/{eslint-plugin/src/index.js → index.js} +0 -0
  15. /package/eslint-plugin/dist/{eslint-plugin/src/rules → rules}/index.d.ts +0 -0
  16. /package/eslint-plugin/dist/{eslint-plugin/src/rules → rules}/index.js +0 -0
  17. /package/eslint-plugin/dist/{eslint-plugin/src/rules → rules}/no-label-slot-in-checkbox.d.ts +0 -0
  18. /package/eslint-plugin/dist/{eslint-plugin/src/rules → rules}/no-label-slot-in-checkbox.js +0 -0
  19. /package/eslint-plugin/dist/{eslint-plugin/src/rules → rules}/no-label-slot-in-checkbox.tests.d.ts +0 -0
  20. /package/eslint-plugin/dist/{eslint-plugin/src/rules → rules}/no-label-slot-in-checkbox.tests.js +0 -0
  21. /package/eslint-plugin/dist/{eslint-plugin/src/utils.d.ts → utils.d.ts} +0 -0
  22. /package/eslint-plugin/dist/{eslint-plugin/src/utils.js → utils.js} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,mCAAgC;AAEhC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE;AACrB,kEAAkE;AAClE,iEAAiE;AACjE,OAAO,CAAC,oBAAoB,CAAwC,CAAC;AAEvE,MAAM,MAAM,GAAG;IACX,OAAO,EAAE;QACL,IAAI,WAAW;YACX,OAAO,WAAW,CAAC;QACvB,CAAC;KACJ;IACD,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACvB,KAAK,EAAL,aAAK;CACR,CAAC;AAEF,MAAM,WAAW,GAAG;IAChB,OAAO,EAAE;QACL,cAAc,EAAE,MAAM;KACzB;IACD,KAAK,EAAL,aAAK;CACR,CAAC;AAEF,kBAAe,MAAM,CAAC","sourcesContent":["import { rules } from \"./rules\";\r\n\r\nconst { name, version } =\r\n // `import`ing here would bypass the TSConfig's `\"rootDir\": \"src\"`\r\n // eslint-disable-next-line @typescript-eslint/no-require-imports\r\n require(\"../../package.json\") as typeof import(\"../../package.json\");\r\n\r\nconst plugin = {\r\n configs: {\r\n get recommended() {\r\n return recommended;\r\n },\r\n },\r\n meta: { name, version },\r\n rules,\r\n};\r\n\r\nconst recommended = {\r\n plugins: {\r\n \"dnn-elements\": plugin,\r\n },\r\n rules,\r\n};\r\n\r\nexport default plugin;"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;AAAA,2EAA4E;AAE/D,QAAA,KAAK,GAAG;IACjB,2BAA2B,EAAE,gCAAqB;CACrD,CAAA","sourcesContent":["import { rule as noLabelSlotInCheckbox } from \"./no-label-slot-in-checkbox\";\r\n\r\nexport const rules = {\r\n \"no-label-slot-in-checkbox\": noLabelSlotInCheckbox,\r\n}"]}
@@ -0,0 +1 @@
1
+ {"version":3,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AO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;4BAChD,CAAC;yBACJ,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;YACL,CAAC;SACJ,CAAC;IACN,CAAC;CACJ,CAAC,CAAC","sourcesContent":["import { createRule } from \"../utils\";\r\n\r\nexport const rule = createRule({\r\n name: \"no-label-slot-in-checkbox\",\r\n defaultOptions: [],\r\n meta: {\r\n docs: {\r\n description: \"Disallow label slot in checkbox\",\r\n recommended: true,\r\n url: \"https://github.com/DNNCommunity/dnn-elements/releases/tag/v0.24.0\",\r\n },\r\n type: \"problem\",\r\n messages: {\r\n noLabelSlotInCheckbox: \"Label slot is not allowed in dnn-checkbox, wrap dnn-checkbox with a label instead.\"\r\n },\r\n fixable: \"code\",\r\n schema: [], // Ensure schema is defined as an empty array or with the appropriate schema definition\r\n },\r\n create(context) {\r\n return {\r\n JSXElement(node) {\r\n if (\r\n node.openingElement.name.type === \"JSXIdentifier\" &&\r\n node.openingElement.name.name === \"dnn-checkbox\"\r\n ) {\r\n const innerContent = node.children\r\n .map(child => context.sourceCode.getText(child))\r\n .join(\"\")\r\n .trim();\r\n \r\n if (innerContent) {\r\n context.report({\r\n node,\r\n messageId: \"noLabelSlotInCheckbox\",\r\n fix: fixer => {\r\n const checkboxText = context.sourceCode.getText(node.openingElement);\r\n const selfClosing = checkboxText.replace(/>$/, \" />\");\r\n \r\n const replacement = `<label>\\n${selfClosing}\\n${innerContent}\\n</label>`;\r\n return fixer.replaceText(node, replacement);\r\n }\r\n });\r\n }\r\n }\r\n }\r\n };\r\n },\r\n});\r\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-label-slot-in-checkbox.tests.js","sourceRoot":"","sources":["../../src/rules/no-label-slot-in-checkbox.tests.ts"],"names":[],"mappings":";;AAAA,gEAA4D;AAC5D,2EAAmD;AAEnD,MAAM,UAAU,GAAG,IAAI,wBAAU,EAAE,CAAC;AAEpC,yDAAyD;AACzD,MAAM,gBAAgB,GAAG;IACrB,aAAa,EAAE;QACX,YAAY,EAAE;YACV,GAAG,EAAE,IAAI;SACZ;KACJ;CACJ,CAAC;AAEF,UAAU,CAAC,GAAG,CAAC,2BAA2B,EAAE,gCAAI,EAAE;IAC9C,KAAK,EAAE;QACH;YACI,IAAI,EAAE,+BAA+B;YACrC,eAAe,EAAE,gBAAgB;SACpC;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,sEAAsE;YAC5E,eAAe,EAAE,gBAAgB;YACjC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;YAChD,MAAM,EAAE,8EAA8E;SACzF;KACJ;CACJ,CAAC,CAAC","sourcesContent":["import { RuleTester } from \"@typescript-eslint/rule-tester\";\r\nimport { rule } from \"./no-label-slot-in-checkbox\";\r\n\r\nconst ruleTester = new RuleTester();\r\n\r\n// Define a reusable configuration for JSX parser options\r\nconst jsxParserOptions = {\r\n parserOptions: {\r\n ecmaFeatures: {\r\n jsx: true,\r\n },\r\n },\r\n};\r\n\r\nruleTester.run(\"no-label-slot-in-checkbox\", rule, {\r\n valid: [\r\n {\r\n code: \"<dnn-checkbox></dnn-checkbox>\",\r\n languageOptions: jsxParserOptions,\r\n },\r\n ],\r\n invalid: [\r\n {\r\n code: \"<dnn-checkbox onClick={e => console.log(e)}>Something</dnn-checkbox>\",\r\n languageOptions: jsxParserOptions,\r\n errors: [{ messageId: \"noLabelSlotInCheckbox\" }],\r\n output: \"<label>\\n<dnn-checkbox onClick={e => console.log(e)} />\\nSomething\\n</label>\",\r\n },\r\n ],\r\n});"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAMtD,CAAC;AAEW,QAAA,UAAU,GAAG,mBAAW,CAAC,WAAW,CAC7C,IAAI,CAAC,EAAE,CAAC,sGAAsG,IAAI,KAAK,CAC1H,CAAC","sourcesContent":["import { ESLintUtils } from \"@typescript-eslint/utils\";\r\n\r\nexport interface TypedLintingRuleDocs {\r\n description: string;\r\n recommended?: boolean;\r\n requiresTyepeChecking?: boolean;\r\n};\r\n\r\nexport const createRule = ESLintUtils.RuleCreator<TypedLintingRuleDocs>(\r\n name => `https://github.com/DNNCommunity/dnn-elements/tree/main/packages/stencil-library/eslint-plugin/docs/${name}.md`\r\n);"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnncommunity/dnn-elements",
3
- "version": "0.24.4-beta.10",
3
+ "version": "0.24.4-beta.11",
4
4
  "description": "Dnn themed custom elements.",
5
5
  "repository": "https://github.com/dnncommunity/dnn-elements",
6
6
  "homepage": "https://dnncommunity.github.io/dnn-elements",
@@ -19,7 +19,7 @@
19
19
  "eslint-plugin/dist"
20
20
  ],
21
21
  "exports": {
22
- "./eslint": {
22
+ "./eslint-plugin": {
23
23
  "import": "./eslint-plugin/dist/index.js"
24
24
  }
25
25
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";;AAAA,mCAAgC;AAEhC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE;AACrB,kEAAkE;AAClE,iEAAiE;AACjE,OAAO,CAAC,oBAAoB,CAAwC,CAAC;AAEvE,MAAM,MAAM,GAAG;IACX,OAAO,EAAE;QACL,IAAI,WAAW;YACX,OAAO,WAAW,CAAC;QACvB,CAAC;KACJ;IACD,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;IACvB,KAAK,EAAL,aAAK;CACR,CAAC;AAEF,MAAM,WAAW,GAAG;IAChB,OAAO,EAAE;QACL,cAAc,EAAE,MAAM;KACzB;IACD,KAAK,EAAL,aAAK;CACR,CAAC;AAEF,kBAAe,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/rules/index.ts"],"names":[],"mappings":";;;AAAA,2EAA4E;AAE/D,QAAA,KAAK,GAAG;IACjB,2BAA2B,EAAE,gCAAqB;CACrD,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-label-slot-in-checkbox.js","sourceRoot":"","sources":["../../../../src/rules/no-label-slot-in-checkbox.ts"],"names":[],"mappings":";;;AAAA,oCAAsC;AAEzB,QAAA,IAAI,GAAG,IAAA,kBAAU,EAAC;IAC3B,IAAI,EAAE,2BAA2B;IACjC,cAAc,EAAE,EAAE;IAClB,IAAI,EAAE;QACF,IAAI,EAAE;YACF,WAAW,EAAE,iCAAiC;YAC9C,WAAW,EAAE,IAAI;YACjB,GAAG,EAAE,mEAAmE;SAC3E;QACD,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE;YACN,qBAAqB,EAAE,oFAAoF;SAC9G;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,EAAE,EAAE,uFAAuF;KACtG;IACD,MAAM,CAAC,OAAO;QACV,OAAO;YACH,UAAU,CAAC,IAAI;gBACX,IACI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,KAAK,eAAe;oBACjD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,KAAK,cAAc,EAClD,CAAC;oBACC,MAAM,YAAY,GAAG,IAAI,CAAC,QAAQ;yBAC7B,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;yBAC/C,IAAI,CAAC,EAAE,CAAC;yBACR,IAAI,EAAE,CAAC;oBAEZ,IAAI,YAAY,EAAE,CAAC;wBACf,OAAO,CAAC,MAAM,CAAC;4BACX,IAAI;4BACJ,SAAS,EAAE,uBAAuB;4BAClC,GAAG,EAAE,KAAK,CAAC,EAAE;gCACT,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gCACrE,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gCAEtD,MAAM,WAAW,GAAG,YAAY,WAAW,KAAK,YAAY,YAAY,CAAC;gCACzE,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;4BAChD,CAAC;yBACJ,CAAC,CAAC;oBACP,CAAC;gBACL,CAAC;YACL,CAAC;SACJ,CAAC;IACN,CAAC;CACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"no-label-slot-in-checkbox.tests.js","sourceRoot":"","sources":["../../../../src/rules/no-label-slot-in-checkbox.tests.ts"],"names":[],"mappings":";;AAAA,gEAA4D;AAC5D,2EAAmD;AAEnD,MAAM,UAAU,GAAG,IAAI,wBAAU,EAAE,CAAC;AAEpC,yDAAyD;AACzD,MAAM,gBAAgB,GAAG;IACrB,aAAa,EAAE;QACX,YAAY,EAAE;YACV,GAAG,EAAE,IAAI;SACZ;KACJ;CACJ,CAAC;AAEF,UAAU,CAAC,GAAG,CAAC,2BAA2B,EAAE,gCAAI,EAAE;IAC9C,KAAK,EAAE;QACH;YACI,IAAI,EAAE,+BAA+B;YACrC,eAAe,EAAE,gBAAgB;SACpC;KACJ;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,sEAAsE;YAC5E,eAAe,EAAE,gBAAgB;YACjC,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC;YAChD,MAAM,EAAE,8EAA8E;SACzF;KACJ;CACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAMtD,CAAC;AAEW,QAAA,UAAU,GAAG,mBAAW,CAAC,WAAW,CAC7C,IAAI,CAAC,EAAE,CAAC,sGAAsG,IAAI,KAAK,CAC1H,CAAC"}
@@ -1,89 +0,0 @@
1
- {
2
- "name": "@dnncommunity/dnn-elements",
3
- "version": "0.24.4-beta.10",
4
- "description": "Dnn themed custom elements.",
5
- "repository": "https://github.com/dnncommunity/dnn-elements",
6
- "homepage": "https://dnncommunity.github.io/dnn-elements",
7
- "license": "MIT",
8
- "main": "dist/index.cjs.js",
9
- "module": "dist/index.js",
10
- "es2015": "dist/esm/index.mjs",
11
- "es2017": "dist/esm/index.mjs",
12
- "types": "dist/types/index.d.ts",
13
- "collection": "dist/collection/collection-manifest.json",
14
- "collection:main": "dist/collection/index.js",
15
- "unpkg": "dist/dnn/dnn.js",
16
- "files": [
17
- "dist/",
18
- "loader/",
19
- "eslint-plugin/dist"
20
- ],
21
- "exports": {
22
- "./eslint": {
23
- "import": "./eslint-plugin/dist/index.js"
24
- }
25
- },
26
- "scripts": {
27
- "build": "npm run build:eslint-plugin && npm run eslint && stencil build --docs",
28
- "postbuild": "license-checker-rseidelsohn --out licenses.json --json --direct --relativeLicensePath --relativeModulePath",
29
- "watch": "stencil build --dev --watch",
30
- "start": "stencil build --dev --watch --serve",
31
- "start.edge": "stencil build --dev --watch --serve --es5",
32
- "poststart": "license-checker-rseidelsohn --out licenses.json --json --direct --relativeLicensePath --relativeModulePath",
33
- "test": "stencil test --spec --e2e",
34
- "test.watch": "stencil test --spec --e2e --watchAll",
35
- "test.eslint": "jest --config jest.eslint.config.js",
36
- "test.eslint.watch": "jest --config jest.eslint.config.js --watchAll",
37
- "generate": "stencil generate",
38
- "eslint": "eslint",
39
- "storybook": "storybook dev -p 6006",
40
- "build-storybook": "echo 'Storybook build is disabled for this release.'",
41
- "deploy-storybook": "gh-pages -d storybook-static --branch site",
42
- "build:eslint-plugin": "tsc -p eslint-plugin/tsconfig.json"
43
- },
44
- "devDependencies": {
45
- "@chromatic-com/storybook": "^3.1.0",
46
- "@stencil-community/eslint-plugin": "0.9.0",
47
- "@stencil/core": "4.22.2",
48
- "@stencil/react-output-target": "^0.5.1",
49
- "@stencil/sass": "^3.0.4",
50
- "@storybook/addon-a11y": "^8.3.2",
51
- "@storybook/addon-essentials": "^8.3.2",
52
- "@storybook/addon-links": "^8.3.2",
53
- "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
54
- "@storybook/addons": "^7.6.17",
55
- "@storybook/blocks": "^8.3.2",
56
- "@storybook/theming": "^8.3.2",
57
- "@storybook/web-components": "^8.3.2",
58
- "@storybook/web-components-webpack5": "^8.3.2",
59
- "@timkendrick/monaco-editor": "^0.0.9",
60
- "@types/estree-jsx": "^1.0.5",
61
- "@types/jest": "^29.5.10",
62
- "@typescript-eslint/eslint-plugin": "^8.30.1",
63
- "@typescript-eslint/parser": "^8.30.1",
64
- "@typescript-eslint/rule-tester": "^8.30.1",
65
- "@typescript-eslint/utils": "^8.30.1",
66
- "axe-playwright": "^2.0.1",
67
- "babel-loader": "^9.1.2",
68
- "eslint": "^8.57.0",
69
- "eslint-plugin-react": "^7.16.0",
70
- "eslint-plugin-storybook": "^0.11.1",
71
- "gh-pages": "^6.0.0",
72
- "jest": "^29.7.0",
73
- "jest-cli": "^29.7.0",
74
- "license-checker-rseidelsohn": "^4.2.6",
75
- "lit": "^3.1.0",
76
- "npm-run-all": "^4.1.5",
77
- "puppeteer": "^23.9.0",
78
- "react": "^18.2.0",
79
- "react-dom": "^18.2.0",
80
- "rollup-plugin-node-polyfills": "^0.2.1",
81
- "storybook": "^8.3.2",
82
- "ts-jest": "^29.3.2",
83
- "typescript": "5.6.3",
84
- "typescript-eslint": "^8.30.1"
85
- },
86
- "dependencies": {
87
- "jodit": "^4.2.27"
88
- }
89
- }