@multiplatform.one/markdown 9.13.0 → 9.14.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.
Files changed (69) hide show
  1. package/dist/cjs/Aside/index.native.js.map +1 -1
  2. package/dist/cjs/ExternalIcon/index.native.js.map +1 -1
  3. package/dist/cjs/Hr/index.native.js.map +1 -1
  4. package/dist/cjs/Li/index.native.js.map +1 -1
  5. package/dist/cjs/Markdown.native.js.map +1 -1
  6. package/dist/cjs/MarkdownSimpleTable/index.native.js.map +1 -1
  7. package/dist/cjs/Mdx/index.native.js +1 -1
  8. package/dist/cjs/Mdx/index.native.js.map +1 -1
  9. package/dist/cjs/MdxCodeBlock/index.native.js +1 -1
  10. package/dist/cjs/MdxCodeBlock/index.native.js.map +1 -1
  11. package/dist/cjs/MdxCodeBlock/mdxCodeBlockContext.native.js.map +1 -1
  12. package/dist/cjs/Notice/index.cjs +10 -1
  13. package/dist/cjs/Notice/index.native.js +10 -1
  14. package/dist/cjs/Notice/index.native.js.map +1 -1
  15. package/dist/cjs/Table/index.native.js.map +1 -1
  16. package/dist/cjs/Tabs/index.native.js.map +1 -1
  17. package/dist/cjs/Ul/index.native.js.map +1 -1
  18. package/dist/cjs/Video/index.native.js.map +1 -1
  19. package/dist/cjs/components/Blockquote.native.js.map +1 -1
  20. package/dist/cjs/components/Break.native.js.map +1 -1
  21. package/dist/cjs/components/CodeBlock.native.js.map +1 -1
  22. package/dist/cjs/components/Heading.native.js.map +1 -1
  23. package/dist/cjs/components/HorizontalRule.native.js.map +1 -1
  24. package/dist/cjs/components/Image.native.js.map +1 -1
  25. package/dist/cjs/components/InlineCode.native.js.map +1 -1
  26. package/dist/cjs/components/InlineStyles.native.js.map +1 -1
  27. package/dist/cjs/components/Link.native.js.map +1 -1
  28. package/dist/cjs/components/List.native.js +1 -1
  29. package/dist/cjs/components/List.native.js.map +1 -1
  30. package/dist/cjs/components/Paragraph.native.js.map +1 -1
  31. package/dist/cjs/components/Table.native.js.map +1 -1
  32. package/dist/cjs/components/index.native.js.map +1 -1
  33. package/dist/cjs/hooks/index.native.js.map +1 -1
  34. package/dist/cjs/hooks/useCompileAndEvaluateMdx.native.js.map +1 -1
  35. package/dist/cjs/hooks/useCompileMdx.native.js.map +1 -1
  36. package/dist/cjs/hooks/useEvaluateMdx.native.js.map +1 -1
  37. package/dist/cjs/icons/index.native.js.map +1 -1
  38. package/dist/cjs/index.native.js +15 -15
  39. package/dist/cjs/index.native.js.map +1 -1
  40. package/dist/cjs/mdxComponents.native.js +5 -5
  41. package/dist/cjs/mdxComponents.native.js.map +1 -1
  42. package/dist/cjs/mermaid/MermaidBlock.native.js +1 -1
  43. package/dist/cjs/mermaid/index.native.js.map +1 -1
  44. package/dist/cjs/mermaid/mountDiagramSvg.native.js.map +1 -1
  45. package/dist/cjs/parser.native.js.map +1 -1
  46. package/dist/cjs/renderer.native.js +1 -1
  47. package/dist/cjs/renderer.native.js.map +1 -1
  48. package/dist/cjs/shared/colorRamps.native.js.map +1 -1
  49. package/dist/cjs/shared/cutoffGradient.native.js.map +1 -1
  50. package/dist/cjs/shared/textRidesText.native.js.map +1 -1
  51. package/dist/cjs/shared/tokenPx.native.js.map +1 -1
  52. package/dist/cjs/shared/useMarkdownTableKnobs.native.js.map +1 -1
  53. package/dist/cjs/shiki/index.native.js.map +1 -1
  54. package/dist/cjs/types.native.js.map +1 -1
  55. package/dist/cjs/util/rehypeMetaAttributes.native.js.map +1 -1
  56. package/dist/esm/Notice/index.mjs +10 -1
  57. package/dist/esm/Notice/index.mjs.map +1 -1
  58. package/dist/esm/Notice/index.native.js +10 -1
  59. package/dist/esm/Notice/index.native.js.map +1 -1
  60. package/dist/jsx/Notice/index.mjs +10 -1
  61. package/dist/jsx/Notice/index.mjs.map +1 -1
  62. package/dist/jsx/Notice/index.native.js +10 -1
  63. package/dist/jsx/Notice/index.native.js.map +1 -1
  64. package/package.json +9 -9
  65. package/src/Notice/Notice.spec.tsx +34 -3
  66. package/src/Notice/index.tsx +13 -1
  67. package/src/stories/Callouts.stories.tsx +1 -1
  68. package/types/Notice/index.d.ts +4 -1
  69. package/types/Notice/index.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__toCommonJS","mod","value","shiki_exports","module","exports"],"sources":["index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar shiki_exports = {};\nmodule.exports = __toCommonJS(shiki_exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIV,iBAAiB,CAACO,IAAI,CAAC,EACrC,IAAI,CAACL,YAAY,CAACS,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/Cb,SAAS,CAACW,EAAE,EAAEI,GAAG,EAAE;MAAEE,GAAG,EAAEA,CAAA,KAAML,IAAI,CAACG,GAAG,CAAC;MAAEG,UAAU,EAAE,EAAEJ,IAAI,GAAGX,gBAAgB,CAACS,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACI;IAAW,CAAC,CAAC;EACxH;EACA,OAAOP,EAAE;AACX,CAAC;AACD,IAAIQ,YAAY,GAAIC,GAAG,IAAKV,WAAW,CAACV,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEqB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,aAAa,GAAG,CAAC,CAAC;AACtBC,MAAM,CAACC,OAAO,GAAGL,YAAY,CAACG,aAAa,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","shiki_exports"],"sources":["../../../src/shiki/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__copyProps","to","from","except","desc","key","call","get","enumerable","__toCommonJS","mod","value","types_exports","module","exports"],"sources":["types.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar types_exports = {};\nmodule.exports = __toCommonJS(types_exports);\n//# sourceMappingURL=types.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIV,iBAAiB,CAACO,IAAI,CAAC,EACrC,IAAI,CAACL,YAAY,CAACS,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/Cb,SAAS,CAACW,EAAE,EAAEI,GAAG,EAAE;MAAEE,GAAG,EAAEA,CAAA,KAAML,IAAI,CAACG,GAAG,CAAC;MAAEG,UAAU,EAAE,EAAEJ,IAAI,GAAGX,gBAAgB,CAACS,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACI;IAAW,CAAC,CAAC;EACxH;EACA,OAAOP,EAAE;AACX,CAAC;AACD,IAAIQ,YAAY,GAAIC,GAAG,IAAKV,WAAW,CAACV,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEqB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,aAAa,GAAG,CAAC,CAAC;AACtBC,MAAM,CAACC,OAAO,GAAGL,YAAY,CAACG,aAAa,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","rehypeMetaAttributes_exports","rehypeMetaAttributes","module","exports","import_unist_util_visit","require","re","_options","arguments","length","onElement","node","match","tagName","data","meta","lastIndex","exec","properties","tree","visit"],"sources":["rehypeMetaAttributes.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar rehypeMetaAttributes_exports = {};\n__export(rehypeMetaAttributes_exports, {\n rehypeMetaAttributes: () => rehypeMetaAttributes\n});\nmodule.exports = __toCommonJS(rehypeMetaAttributes_exports);\nvar import_unist_util_visit = require(\"unist-util-visit\");\nvar re = /\\b([-\\w]+)(?:=(?:\"([^\"]*)\"|'([^']*)'|([^\"'\\s]+)))?/g;\nfunction rehypeMetaAttributes() {\n var _options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n function onElement(node) {\n var match;\n if (node.tagName === \"code\" && node.data && node.data.meta) {\n re.lastIndex = 0;\n match = re.exec(node.data.meta);\n while (match) {\n node.properties[match[1]] = match[2] || match[3] || match[4] || \"\";\n match = re.exec(node.data.meta);\n }\n }\n }\n return function(tree) {\n (0, import_unist_util_visit.visit)(tree, \"element\", onElement);\n };\n}\n//# sourceMappingURL=rehypeMetaAttributes.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEyB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,4BAA4B,GAAG,CAAC,CAAC;AACrChB,QAAQ,CAACgB,4BAA4B,EAAE;EACrCC,oBAAoB,EAAEA,CAAA,KAAMA;AAC9B,CAAC,CAAC;AACFC,MAAM,CAACC,OAAO,GAAGN,YAAY,CAACG,4BAA4B,CAAC;AAC3D,IAAII,uBAAuB,GAAGC,OAAO,CAAC,kBAAkB,CAAC;AACzD,IAAIC,EAAE,GAAG,qDAAqD;AAC9D,SAASL,oBAAoBA,CAAA,EAAG;EAC9B,IAAIM,QAAQ,GAAGC,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,GAAGA,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;EAClF,SAASE,SAASA,CAACC,IAAI,EAAE;IACvB,IAAIC,KAAK;IACT,IAAID,IAAI,CAACE,OAAO,KAAK,MAAM,IAAIF,IAAI,CAACG,IAAI,IAAIH,IAAI,CAACG,IAAI,CAACC,IAAI,EAAE;MAC1DT,EAAE,CAACU,SAAS,GAAG,CAAC;MAChBJ,KAAK,GAAGN,EAAE,CAACW,IAAI,CAACN,IAAI,CAACG,IAAI,CAACC,IAAI,CAAC;MAC/B,OAAOH,KAAK,EAAE;QACZD,IAAI,CAACO,UAAU,CAACN,KAAK,CAAC,CAAC,CAAC,CAAC,GAAGA,KAAK,CAAC,CAAC,CAAC,IAAIA,KAAK,CAAC,CAAC,CAAC,IAAIA,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;QAClEA,KAAK,GAAGN,EAAE,CAACW,IAAI,CAACN,IAAI,CAACG,IAAI,CAACC,IAAI,CAAC;MACjC;IACF;EACF;EACA,OAAO,UAASI,IAAI,EAAE;IACpB,CAAC,CAAC,EAAEf,uBAAuB,CAACgB,KAAK,EAAED,IAAI,EAAE,SAAS,EAAET,SAAS,CAAC;EAChE,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","rehypeMetaAttributes_exports","__export","rehypeMetaAttributes","module","exports","import_unist_util_visit","require","re","_options","arguments","length","onElement","node","match","tagName","data","meta","lastIndex","exec","properties","tree","visit"],"sources":["../../../src/util/rehypeMetaAttributes.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,4BAAA;AAAAC,QAAA,CAAAD,4BAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AAEAC,MAAA,CAAAC,OAAA,GAAAT,YAAA,CAAsBK,4BAAA;AACtB,IAAAK,uBAAW,GAAAC,OAAA;AAEJ,IAAAC,EAAA,GAAS,qDAAoC;AAClD,SAAAL,oBAA8BA,CAAA;EAC5B,IAAAM,QAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;EACJ,SAAIE,SAAKA,CAAAC,IAAY;IACnB,IAAAC,KAAG;IACH,IAAAD,IAAA,CAAAE,OAAW,KAAK,MAAK,IAAKF,IAAI,CAAAG,IAAA,IAAAH,IAAA,CAAAG,IAAA,CAAAC,IAAA;MAC9BT,EAAA,CAAAU,SAAO,GAAO;MACZJ,KAAA,GAAKN,EAAA,CAAAW,IAAA,CAAAN,IAAW,CAAAG,IAAO,CAACC,IAAI;MAC5B,OAAAH,KAAQ,EAAG;QACbD,IAAA,CAAAO,UAAA,CAAAN,KAAA,OAAAA,KAAA,OAAAA,KAAA,OAAAA,KAAA;QACFA,KAAA,GAAAN,EAAA,CAAAW,IAAA,CAAAN,IAAA,CAAAG,IAAA,CAAAC,IAAA;MACF;IACA;EACE;EACF,iBAAAI,IAAA;IACF,IAAAf,uBAAA,CAAAgB,KAAA,EAAAD,IAAA,aAAAT,SAAA","ignoreList":[]}
@@ -1,4 +1,5 @@
1
1
  import { Alert, unwrapText } from "@multiplatform.one/components";
2
+ import { warnDeprecatedProp } from "@multiplatform.one/theme";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  const themeIntentMap = {
4
5
  yellow: "warning",
@@ -9,11 +10,19 @@ const themeIntentMap = {
9
10
  function Notice({
10
11
  children,
11
12
  theme = "yellow",
13
+ raw,
12
14
  disableUnwrap,
13
15
  title,
14
16
  ...props
15
17
  }) {
16
- const content = disableUnwrap ? children : unwrapText(children);
18
+ warnDeprecatedProp({
19
+ component: "Notice",
20
+ prop: "disableUnwrap",
21
+ use: "raw",
22
+ removal: "10.0.0",
23
+ passed: disableUnwrap !== void 0
24
+ });
25
+ const content = raw ?? disableUnwrap ? children : unwrapText(children);
17
26
  return /* @__PURE__ */jsx(Alert, {
18
27
  intent: themeIntentMap[theme],
19
28
  title,
@@ -1 +1 @@
1
- {"version":3,"names":["Alert","unwrapText","jsx","themeIntentMap","yellow","blue","green","red","Notice","children","theme","disableUnwrap","title","props","content","intent","marginVertical"],"sources":["../../../src/Notice/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,KAAA,EAAyBC,UAAA,QAAkB;AA6BhD,SAAAC,GAAA;AAxBJ,MAAMC,cAAA,GAAmD;EACvDC,MAAA,EAAQ;EACRC,IAAA,EAAM;EACNC,KAAA,EAAO;EACPC,GAAA,EAAK;AACP;AAUO,SAASC,OAAO;EACrBC,QAAA;EACAC,KAAA,GAAQ;EACRC,aAAA;EACAC,KAAA;EACA,GAAGC;AACL,GAA0C;EACxC,MAAMC,OAAA,GAAUH,aAAA,GAAgBF,QAAA,GAAWR,UAAA,CAAWQ,QAAQ;EAC9D,OACE,eAAAP,GAAA,CAACF,KAAA;IAAMe,MAAA,EAAQZ,cAAA,CAAeO,KAAK;IAAGE,KAAA;IAAcI,cAAA,EAAe;IAAM,GAAGH,KAAA;IACzEJ,QAAA,EAAAK;EAAA,CACH;AAEJ","ignoreList":[]}
1
+ {"version":3,"names":["Alert","unwrapText","warnDeprecatedProp","jsx","themeIntentMap","yellow","blue","green","red","Notice","children","theme","raw","disableUnwrap","title","props","component","prop","use","removal","passed","content","intent","marginVertical"],"sources":["../../../src/Notice/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,KAAA,EAAyBC,UAAA,QAAkB;AACpD,SAASC,kBAAA,QAA0B;AAwC/B,SAAAC,GAAA;AAnCJ,MAAMC,cAAA,GAAmD;EACvDC,MAAA,EAAQ;EACRC,IAAA,EAAM;EACNC,KAAA,EAAO;EACPC,GAAA,EAAK;AACP;AAaO,SAASC,OAAO;EACrBC,QAAA;EACAC,KAAA,GAAQ;EACRC,GAAA;EACAC,aAAA;EACAC,KAAA;EACA,GAAGC;AACL,GAA0C;EACxCb,kBAAA,CAAmB;IACjBc,SAAA,EAAW;IACXC,IAAA,EAAM;IACNC,GAAA,EAAK;IACLC,OAAA,EAAS;IACTC,MAAA,EAAQP,aAAA,KAAkB;EAC5B,CAAC;EACD,MAAMQ,OAAA,GAAWT,GAAA,IAAOC,aAAA,GAAiBH,QAAA,GAAWT,UAAA,CAAWS,QAAQ;EACvE,OACE,eAAAP,GAAA,CAACH,KAAA;IAAMsB,MAAA,EAAQlB,cAAA,CAAeO,KAAK;IAAGG,KAAA;IAAcS,cAAA,EAAe;IAAM,GAAGR,KAAA;IACzEL,QAAA,EAAAW;EAAA,CACH;AAEJ","ignoreList":[]}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Alert, unwrapText } from "@multiplatform.one/components";
3
+ import { warnDeprecatedProp } from "@multiplatform.one/theme";
3
4
  var themeIntentMap = {
4
5
  yellow: "warning",
5
6
  blue: "info",
@@ -10,11 +11,19 @@ function Notice(param) {
10
11
  var {
11
12
  children,
12
13
  theme = "yellow",
14
+ raw,
13
15
  disableUnwrap,
14
16
  title,
15
17
  ...props
16
18
  } = param;
17
- var content = disableUnwrap ? children : unwrapText(children);
19
+ warnDeprecatedProp({
20
+ component: "Notice",
21
+ prop: "disableUnwrap",
22
+ use: "raw",
23
+ removal: "10.0.0",
24
+ passed: disableUnwrap !== void 0
25
+ });
26
+ var content = (raw !== null && raw !== void 0 ? raw : disableUnwrap) ? children : unwrapText(children);
18
27
  return /* @__PURE__ */_jsx(Alert, {
19
28
  intent: themeIntentMap[theme],
20
29
  title,
@@ -1 +1 @@
1
- {"version":3,"names":["jsx","_jsx","Alert","unwrapText","themeIntentMap","yellow","blue","green","red","Notice","param","children","theme","disableUnwrap","title","props","content","intent","marginVertical"],"sources":["../../../src/Notice/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAA,IAAyBC,IAAA,2BAAkB;AA6BhD,SAAAC,KAAA,EAAAC,UAAA;AAxBJ,IAAAC,cAAM;EACJC,MAAA,EAAQ;EACRC,IAAA,EAAM;EACNC,KAAA,EAAO;EACPC,GAAA,EAAK;AACP;AAUO,SAASC,OAAOC,KAAA;EACrB;IAAAC,QAAA;IAAAC,KAAA;IAAAC,aAAA;IAAAC,KAAA;IAAA,GAAAC;EAAA,IAAAL,KAAA;EACA,IAAAM,OAAQ,GAAAH,aAAA,GAAAF,QAAA,GAAAR,UAAA,CAAAQ,QAAA;EACR,sBAAAV,IAAA,CAAAC,KAAA;IACAe,MAAA,EAAAb,cAAA,CAAAQ,KAAA;IACAE,KAAG;IACqCI,cAAA;IACxC,GAAAH,KAAM;IACNJ,QACE,EAAAK;EAIJ","ignoreList":[]}
1
+ {"version":3,"names":["jsx","_jsx","Alert","unwrapText","warnDeprecatedProp","themeIntentMap","yellow","blue","green","red","Notice","param","children","theme","raw","disableUnwrap","title","props","component","prop","use","removal","passed","content","intent","marginVertical"],"sources":["../../../src/Notice/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAA,IAAyBC,IAAA,2BAAkB;AACpD,SAASC,KAAA,EAAAC,UAAA,uCAA0B;AAwC/B,SAAAC,kBAAA;AAnCJ,IAAAC,cAAM;EACJC,MAAA,EAAQ;EACRC,IAAA,EAAM;EACNC,KAAA,EAAO;EACPC,GAAA,EAAK;AACP;AAaO,SAASC,OAAOC,KAAA;EACrB;IAAAC,QAAA;IAAAC,KAAA;IAAAC,GAAA;IAAAC,aAAA;IAAAC,KAAA;IAAA,GAAAC;EAAA,IAAAN,KAAA;EACAP,kBAAQ;IACRc,SAAA;IACAC,IAAA;IACAC,GAAA;IACAC,OAAG;IACqCC,MAAA,EAAAP,aAAA;EACxC;EAAmB,IACjBQ,OAAA,GAAW,CAAAT,GAAA,aAAAA,GAAA,cAAAA,GAAA,GAAAC,aAAA,IAAAH,QAAA,GAAAT,UAAA,CAAAS,QAAA;EAAA,OACX,eAAMX,IAAA,CAAAC,KAAA;IACNsB,MAAK,EAAAnB,cAAA,CAAAQ,KAAA;IACLG,KAAA;IACAS,cAAQ;IACT,GAAAR,KAAA;IACDL,QAAM,EAAAW;EACN;AAKF","ignoreList":[]}
@@ -1,4 +1,5 @@
1
1
  import { Alert, unwrapText } from "@multiplatform.one/components";
2
+ import { warnDeprecatedProp } from "@multiplatform.one/theme";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  const themeIntentMap = {
4
5
  yellow: "warning",
@@ -9,11 +10,19 @@ const themeIntentMap = {
9
10
  function Notice({
10
11
  children,
11
12
  theme = "yellow",
13
+ raw,
12
14
  disableUnwrap,
13
15
  title,
14
16
  ...props
15
17
  }) {
16
- const content = disableUnwrap ? children : unwrapText(children);
18
+ warnDeprecatedProp({
19
+ component: "Notice",
20
+ prop: "disableUnwrap",
21
+ use: "raw",
22
+ removal: "10.0.0",
23
+ passed: disableUnwrap !== void 0
24
+ });
25
+ const content = raw ?? disableUnwrap ? children : unwrapText(children);
17
26
  return /* @__PURE__ */jsx(Alert, {
18
27
  intent: themeIntentMap[theme],
19
28
  title,
@@ -1 +1 @@
1
- {"version":3,"names":["Alert","unwrapText","jsx","themeIntentMap","yellow","blue","green","red","Notice","children","theme","disableUnwrap","title","props","content","intent","marginVertical"],"sources":["../../../src/Notice/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,KAAA,EAAyBC,UAAA,QAAkB;AA6BhD,SAAAC,GAAA;AAxBJ,MAAMC,cAAA,GAAmD;EACvDC,MAAA,EAAQ;EACRC,IAAA,EAAM;EACNC,KAAA,EAAO;EACPC,GAAA,EAAK;AACP;AAUO,SAASC,OAAO;EACrBC,QAAA;EACAC,KAAA,GAAQ;EACRC,aAAA;EACAC,KAAA;EACA,GAAGC;AACL,GAA0C;EACxC,MAAMC,OAAA,GAAUH,aAAA,GAAgBF,QAAA,GAAWR,UAAA,CAAWQ,QAAQ;EAC9D,OACE,eAAAP,GAAA,CAACF,KAAA;IAAMe,MAAA,EAAQZ,cAAA,CAAeO,KAAK;IAAGE,KAAA;IAAcI,cAAA,EAAe;IAAM,GAAGH,KAAA;IACzEJ,QAAA,EAAAK;EAAA,CACH;AAEJ","ignoreList":[]}
1
+ {"version":3,"names":["Alert","unwrapText","warnDeprecatedProp","jsx","themeIntentMap","yellow","blue","green","red","Notice","children","theme","raw","disableUnwrap","title","props","component","prop","use","removal","passed","content","intent","marginVertical"],"sources":["../../../src/Notice/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,KAAA,EAAyBC,UAAA,QAAkB;AACpD,SAASC,kBAAA,QAA0B;AAwC/B,SAAAC,GAAA;AAnCJ,MAAMC,cAAA,GAAmD;EACvDC,MAAA,EAAQ;EACRC,IAAA,EAAM;EACNC,KAAA,EAAO;EACPC,GAAA,EAAK;AACP;AAaO,SAASC,OAAO;EACrBC,QAAA;EACAC,KAAA,GAAQ;EACRC,GAAA;EACAC,aAAA;EACAC,KAAA;EACA,GAAGC;AACL,GAA0C;EACxCb,kBAAA,CAAmB;IACjBc,SAAA,EAAW;IACXC,IAAA,EAAM;IACNC,GAAA,EAAK;IACLC,OAAA,EAAS;IACTC,MAAA,EAAQP,aAAA,KAAkB;EAC5B,CAAC;EACD,MAAMQ,OAAA,GAAWT,GAAA,IAAOC,aAAA,GAAiBH,QAAA,GAAWT,UAAA,CAAWS,QAAQ;EACvE,OACE,eAAAP,GAAA,CAACH,KAAA;IAAMsB,MAAA,EAAQlB,cAAA,CAAeO,KAAK;IAAGG,KAAA;IAAcS,cAAA,EAAe;IAAM,GAAGR,KAAA;IACzEL,QAAA,EAAAW;EAAA,CACH;AAEJ","ignoreList":[]}
@@ -29,6 +29,7 @@ __export(Notice_exports, {
29
29
  module.exports = __toCommonJS(Notice_exports);
30
30
  var import_jsx_runtime = require("react/jsx-runtime");
31
31
  var import_components = require("@multiplatform.one/components");
32
+ var import_theme = require("@multiplatform.one/theme");
32
33
  var themeIntentMap = {
33
34
  yellow: "warning",
34
35
  blue: "info",
@@ -39,11 +40,19 @@ function Notice(param) {
39
40
  var {
40
41
  children,
41
42
  theme = "yellow",
43
+ raw,
42
44
  disableUnwrap,
43
45
  title,
44
46
  ...props
45
47
  } = param;
46
- var content = disableUnwrap ? children : (0, import_components.unwrapText)(children);
48
+ (0, import_theme.warnDeprecatedProp)({
49
+ component: "Notice",
50
+ prop: "disableUnwrap",
51
+ use: "raw",
52
+ removal: "10.0.0",
53
+ passed: disableUnwrap !== void 0
54
+ });
55
+ var content = (raw !== null && raw !== void 0 ? raw : disableUnwrap) ? children : (0, import_components.unwrapText)(children);
47
56
  return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Alert, {
48
57
  intent: themeIntentMap[theme],
49
58
  title,
@@ -1 +1 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value"],"sources":["../../../src/Notice/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AA6BL,IAAAA,SAAA,GAAAC,MAAA,CAAAC,cAAA;AAxBJ,IAAAC,gBAAM,GAAmDF,MAAA,CAAAG,wBAAA;AAAA,IACvDC,iBAAQ,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACRC,YAAM,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACNC,QAAO,GAAAA,CAAAC,MAAA,EAAAC,GAAA;EACP,KAAK,IAAAC,IAAA,IAAAD,GAAA,EACPZ,SAAA,CAAAW,MAAA,EAAAE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;EAAA;AAUO;AAAgB,IACrBC,WAAA,GAAAA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;EACA,IAAAF,IAAQ,WAAAA,IAAA,wBAAAA,IAAA;IACR,SAAAG,GAAA,IAAAhB,iBAAA,CAAAa,IAAA,GACA,KAAAX,YAAA,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,EACGnB,SAAA,CAAAiB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAjB,gBAAA,CAAAe,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;EACL;EACE,OAAME,EAAA;AACN;AAKF,IAAAM,YAAA,GAAAC,GAAA,IAAAR,WAAA,CAAAhB,SAAA;EAAAyB,KAAA;AAAA,IAAAD,GAAA","ignoreList":[]}
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","Notice_exports","Notice","module","exports","import_jsx_runtime","require","import_components","import_theme","themeIntentMap"],"sources":["../../../src/Notice/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAS;;AACT,IAAAA,SAAS,GAAAC,MAAA,CAAAC,cAA0B;AAwC/B,IAAAC,gBAAA,GAAAF,MAAA,CAAAG,wBAAA;AAnCJ,IAAAC,iBAAM,GAAmDJ,MAAA,CAAAK,mBAAA;AAAA,IACvDC,YAAQ,GAAAN,MAAA,CAAAO,SAAA,CAAAC,cAAA;AAAA,IACRC,QAAM,GAAAA,CAAAC,MAAA,EAAAC,GAAA;EACN,SAAOC,IAAA,IAAAD,GAAA,EACPZ,SAAK,CAAAW,MAAA,EAAAE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;EAAA;AACP;AAaO,IAAAC,WAAS,GAAOA,CAAAC,EAAA,EAAAC,IAAA,EAAAC,MAAA,EAAAC,IAAA;EACrB,IAAAF,IAAA,WAAAA,IAAA,wBAAAA,IAAA;IACA,SAAQG,GAAA,IAAAhB,iBAAA,CAAAa,IAAA,GACR,KAAAX,YAAA,CAAAe,IAAA,CAAAL,EAAA,EAAAI,GAAA,KAAAA,GAAA,KAAAF,MAAA,EACAnB,SAAA,CAAAiB,EAAA,EAAAI,GAAA;MAAAP,GAAA,EAAAA,CAAA,KAAAI,IAAA,CAAAG,GAAA;MAAAN,UAAA,IAAAK,IAAA,GAAAjB,gBAAA,CAAAe,IAAA,EAAAG,GAAA,MAAAD,IAAA,CAAAL;IAAA;EACA;EACA,OAAGE,EAAA;AACL;AACE,IAAAM,YAAA,GAAAC,GAAmB,IAAAR,WAAA,CAAAhB,SAAA;EAAAyB,KAAA;AAAA,IAAAD,GAAA;AAAA,IACjBE,cAAW;AAAAhB,QACX,CAAAgB,cAAM;EAAAC,MACN,EAAKA,CAAA,KAAAA;AAAA;AACIC,MACT,CAAAC,OAAQ,GAAAN,YAAA,CAAkBG,cAAA;AAAA,IAC3BI,kBAAA,GAAAC,OAAA;AACD,IAAAC,iBAAiB,GAAAD,OAAO,gCAAuC;AAC/D,IAAAE,YACE,GAAAF,OAAA,2BAAe;AAInB,IAAAG,cAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/markdown",
3
- "version": "9.13.0",
3
+ "version": "9.14.0",
4
4
  "description": "Cross-platform markdown renderer with Shiki syntax highlighting for React and React Native",
5
5
  "keywords": [
6
6
  "cross-platform",
@@ -68,11 +68,11 @@
68
68
  "dependencies": {
69
69
  "@mdx-js/mdx": "^3.1.1",
70
70
  "@mdx-js/react": "^3.1.1",
71
- "@multiplatform.one/components": "^9.13.0",
72
- "@multiplatform.one/platform": "^9.13.0",
73
- "@multiplatform.one/router": "^9.13.0",
74
- "@multiplatform.one/table-primitives": "^9.13.0",
75
- "@multiplatform.one/theme": "^9.13.0",
71
+ "@multiplatform.one/components": "^9.14.0",
72
+ "@multiplatform.one/platform": "^9.14.0",
73
+ "@multiplatform.one/router": "^9.14.0",
74
+ "@multiplatform.one/table-primitives": "^9.14.0",
75
+ "@multiplatform.one/theme": "^9.14.0",
76
76
  "@tamagui/linear-gradient": "2.7.6",
77
77
  "@tamagui/react-native-svg": "2.7.6",
78
78
  "@tamagui/web": "2.7.6",
@@ -90,9 +90,9 @@
90
90
  "unist-util-visit": "^5.1.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@multiplatform.one/config": "9.13.0",
94
- "@multiplatform.one/storybook": "9.13.0",
95
- "@multiplatform.one/test-utils": "9.13.0",
93
+ "@multiplatform.one/config": "9.14.0",
94
+ "@multiplatform.one/storybook": "9.14.0",
95
+ "@multiplatform.one/test-utils": "9.14.0",
96
96
  "@tamagui/build": "2.7.6",
97
97
  "@testing-library/jest-dom": "^7.0.1",
98
98
  "@testing-library/react": "^16.3.3",
@@ -5,7 +5,8 @@
5
5
 
6
6
  import { renderWithProviders } from "@multiplatform.one/test-utils";
7
7
  import { Paragraph } from "tamagui";
8
- import { describe, expect, it } from "vitest";
8
+ import { __resetDevWarnSeen } from "@multiplatform.one/theme";
9
+ import { describe, expect, it, vi } from "vitest";
9
10
  import { Notice } from "./index";
10
11
 
11
12
  describe("Notice", () => {
@@ -57,12 +58,42 @@ describe("Notice", () => {
57
58
  expect(container.querySelector('[role="status"]')).toBeTruthy();
58
59
  });
59
60
 
60
- it("disableUnwrap keeps element children instead of flattening them", () => {
61
+ it("raw keeps element children instead of flattening them", () => {
61
62
  const { container } = renderWithProviders(
62
- <Notice theme="green" disableUnwrap>
63
+ <Notice theme="green" raw>
63
64
  <Paragraph>kept as an element</Paragraph>
64
65
  </Notice>,
65
66
  );
66
67
  expect(container.querySelector("p")?.textContent).toBe("kept as an element");
67
68
  });
69
+
70
+ it("flattens element children by default", () => {
71
+ const { container } = renderWithProviders(
72
+ <Notice theme="green">
73
+ <Paragraph>flattened</Paragraph>
74
+ </Notice>,
75
+ );
76
+ expect(container.querySelector("p")).toBeNull();
77
+ expect(container.textContent).toContain("flattened");
78
+ });
79
+
80
+ it("the deprecated disableUnwrap still keeps elements and warns once (FZ-8079)", () => {
81
+ __resetDevWarnSeen();
82
+ const warn = vi.spyOn(console, "warn").mockImplementation(() => {});
83
+ const { container } = renderWithProviders(
84
+ <>
85
+ <Notice theme="green" disableUnwrap>
86
+ <Paragraph>kept as an element</Paragraph>
87
+ </Notice>
88
+ <Notice theme="blue" disableUnwrap>
89
+ <Paragraph>kept too</Paragraph>
90
+ </Notice>
91
+ </>,
92
+ );
93
+ expect(container.querySelectorAll("p")).toHaveLength(2);
94
+ const hits = warn.mock.calls.filter(([line]) => String(line).includes("deprecated-prop"));
95
+ expect(hits).toHaveLength(1);
96
+ expect(String(hits[0][0])).toContain("use raw");
97
+ warn.mockRestore();
98
+ });
68
99
  });
@@ -1,4 +1,5 @@
1
1
  import { Alert, type AlertIntent, unwrapText } from "@multiplatform.one/components";
2
+ import { warnDeprecatedProp } from "@multiplatform.one/theme";
2
3
  import type { ReactNode } from "react";
3
4
 
4
5
  type NoticeTheme = "yellow" | "blue" | "green" | "red";
@@ -13,6 +14,9 @@ const themeIntentMap: Record<NoticeTheme, AlertIntent> = {
13
14
  export interface NoticeProps {
14
15
  children: ReactNode;
15
16
  theme?: NoticeTheme;
17
+ /** Pass children through untouched instead of flattening one element level. */
18
+ raw?: boolean;
19
+ /** @deprecated Use `raw`. Removed in 10.0.0. */
16
20
  disableUnwrap?: boolean;
17
21
  title?: string;
18
22
  }
@@ -21,11 +25,19 @@ export interface NoticeProps {
21
25
  export function Notice({
22
26
  children,
23
27
  theme = "yellow",
28
+ raw,
24
29
  disableUnwrap,
25
30
  title,
26
31
  ...props
27
32
  }: NoticeProps & Record<string, unknown>) {
28
- const content = disableUnwrap ? children : unwrapText(children);
33
+ warnDeprecatedProp({
34
+ component: "Notice",
35
+ prop: "disableUnwrap",
36
+ use: "raw",
37
+ removal: "10.0.0",
38
+ passed: disableUnwrap !== undefined,
39
+ });
40
+ const content = (raw ?? disableUnwrap) ? children : unwrapText(children);
29
41
  return (
30
42
  <Alert intent={themeIntentMap[theme]} title={title} marginVertical="$4" {...props}>
31
43
  {content}
@@ -125,7 +125,7 @@ export const NoticeEdge: Story = {
125
125
  sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
126
126
  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
127
127
  </Notice>
128
- <Notice theme="green" disableUnwrap>
128
+ <Notice theme="green" raw>
129
129
  <YStack gap="$2">
130
130
  <Paragraph>Interactive children:</Paragraph>
131
131
  <Button size="$2" alignSelf="flex-start">
@@ -3,10 +3,13 @@ type NoticeTheme = "yellow" | "blue" | "green" | "red";
3
3
  export interface NoticeProps {
4
4
  children: ReactNode;
5
5
  theme?: NoticeTheme;
6
+ /** Pass children through untouched instead of flattening one element level. */
7
+ raw?: boolean;
8
+ /** @deprecated Use `raw`. Removed in 10.0.0. */
6
9
  disableUnwrap?: boolean;
7
10
  title?: string;
8
11
  }
9
12
  /** Markdown-facing callout: a thin wrapper mapping Notice themes onto Alert intents. */
10
- export declare function Notice({ children, theme, disableUnwrap, title, ...props }: NoticeProps & Record<string, unknown>): import("react/jsx-runtime").JSX.Element;
13
+ export declare function Notice({ children, theme, raw, disableUnwrap, title, ...props }: NoticeProps & Record<string, unknown>): import("react/jsx-runtime").JSX.Element;
11
14
  export {};
12
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Notice/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AASvD,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wFAAwF;AACxF,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,KAAgB,EAChB,aAAa,EACb,KAAK,EACL,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2CAOvC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Notice/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AASvD,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,+EAA+E;IAC/E,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,gDAAgD;IAChD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wFAAwF;AACxF,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,KAAgB,EAChB,GAAG,EACH,aAAa,EACb,KAAK,EACL,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2CAcvC"}