@payloadcms/richtext-lexical 3.41.0-canary.2 → 3.41.0-internal.c079756

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 +1 @@
1
- {"version":3,"file":"generateImportMap.d.ts","sourceRoot":"","sources":["../../src/utilities/generateImportMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI9C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAE1E,eAAO,MAAM,oBAAoB,SACxB;IAAE,kBAAkB,EAAE,wBAAwB,CAAA;CAAE,KAAG,eAAe,CAAC,mBAAmB,CA2D5F,CAAA"}
1
+ {"version":3,"file":"generateImportMap.d.ts","sourceRoot":"","sources":["../../src/utilities/generateImportMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,SAAS,CAAA;AAIhE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAE1E,eAAO,MAAM,oBAAoB,SACxB;IAAE,kBAAkB,EAAE,wBAAwB,CAAA;CAAE,KAAG,eAAe,CAAC,mBAAmB,CA0D5F,CAAA"}
@@ -1,7 +1,5 @@
1
1
  import { genImportMapIterateFields } from 'payload';
2
- export const getGenerateImportMap = args =>
3
- // @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve
4
- ({
2
+ export const getGenerateImportMap = args => ({
5
3
  addToImportMap,
6
4
  baseDir,
7
5
  config,
@@ -1 +1 @@
1
- {"version":3,"file":"generateImportMap.js","names":["genImportMapIterateFields","getGenerateImportMap","args","addToImportMap","baseDir","config","importMap","imports","resolvedFeature","resolvedFeatureMap","values","componentImports","Array","isArray","length","forEach","component","Object","ClientComponent","ClientFeature","nodes","node","getSubFields","subFields","fields"],"sources":["../../src/utilities/generateImportMap.tsx"],"sourcesContent":["import type { RichTextAdapter } from 'payload'\n\nimport { genImportMapIterateFields } from 'payload'\n\nimport type { ResolvedServerFeatureMap } from '../features/typesServer.js'\n\nexport const getGenerateImportMap =\n (args: { resolvedFeatureMap: ResolvedServerFeatureMap }): RichTextAdapter['generateImportMap'] =>\n // @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve\n ({ addToImportMap, baseDir, config, importMap, imports }) => {\n addToImportMap('@payloadcms/richtext-lexical/rsc#RscEntryLexicalCell')\n addToImportMap('@payloadcms/richtext-lexical/rsc#RscEntryLexicalField')\n addToImportMap('@payloadcms/richtext-lexical/rsc#LexicalDiffComponent')\n\n // iterate just through args.resolvedFeatureMap.values()\n for (const resolvedFeature of args.resolvedFeatureMap.values()) {\n if ('componentImports' in resolvedFeature) {\n if (typeof resolvedFeature.componentImports === 'function') {\n resolvedFeature.componentImports({\n addToImportMap,\n baseDir,\n config,\n importMap,\n imports,\n })\n } else if (\n Array.isArray(resolvedFeature.componentImports) &&\n resolvedFeature.componentImports?.length\n ) {\n resolvedFeature.componentImports.forEach((component) => {\n addToImportMap(component)\n })\n } else if (typeof resolvedFeature.componentImports === 'object') {\n for (const component of Object.values(resolvedFeature.componentImports)) {\n addToImportMap(component)\n }\n }\n }\n\n const ClientComponent = resolvedFeature.ClientFeature\n if (ClientComponent) {\n addToImportMap(ClientComponent)\n }\n\n /*\n Now run for all possible sub-fields\n */\n if (resolvedFeature.nodes?.length) {\n for (const node of resolvedFeature.nodes) {\n if (typeof node?.getSubFields !== 'function') {\n continue\n }\n const subFields = node.getSubFields({})\n if (subFields?.length) {\n genImportMapIterateFields({\n addToImportMap,\n baseDir,\n config,\n fields: subFields,\n importMap,\n imports,\n })\n }\n }\n }\n }\n }\n"],"mappings":"AAEA,SAASA,yBAAyB,QAAQ;AAI1C,OAAO,MAAMC,oBAAA,GACVC,IAAA;AACD;AACA,CAAC;EAAEC,cAAc;EAAEC,OAAO;EAAEC,MAAM;EAAEC,SAAS;EAAEC;AAAO,CAAE;EACtDJ,cAAA,CAAe;EACfA,cAAA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Map.js","names":["genImportMapIterateFields","getGenerateImportMap","args","addToImportMap","baseDir","config","importMap","imports","resolvedFeature","resolvedFeatureMap","values","componentImports","Array","isArray","length","forEach","component","Object","ClientComponent","ClientFeature","nodes","node","getSubFields","subFields","fields"],"sources":["../../src/utilities/generateImportMap.tsx"],"sourcesContent":["import type { PayloadComponent, RichTextAdapter } from 'payload'\n\nimport { genImportMapIterateFields } from 'payload'\n\nimport type { ResolvedServerFeatureMap } from '../features/typesServer.js'\n\nexport const getGenerateImportMap =\n (args: { resolvedFeatureMap: ResolvedServerFeatureMap }): RichTextAdapter['generateImportMap'] =>\n ({ addToImportMap, baseDir, config, importMap, imports }) => {\n addToImportMap('@payloadcms/richtext-lexical/rsc#RscEntryLexicalCell')\n addToImportMap('@payloadcms/richtext-lexical/rsc#RscEntryLexicalField')\n addToImportMap('@payloadcms/richtext-lexical/rsc#LexicalDiffComponent')\n\n // iterate just through args.resolvedFeatureMap.values()\n for (const resolvedFeature of args.resolvedFeatureMap.values()) {\n if ('componentImports' in resolvedFeature) {\n if (typeof resolvedFeature.componentImports === 'function') {\n resolvedFeature.componentImports({\n addToImportMap,\n baseDir,\n config,\n importMap,\n imports,\n })\n } else if (\n Array.isArray(resolvedFeature.componentImports) &&\n resolvedFeature.componentImports?.length\n ) {\n resolvedFeature.componentImports.forEach((component) => {\n addToImportMap(component)\n })\n } else if (typeof resolvedFeature.componentImports === 'object') {\n for (const component of Object.values(resolvedFeature.componentImports)) {\n addToImportMap(component as PayloadComponent)\n }\n }\n }\n\n const ClientComponent = resolvedFeature.ClientFeature\n if (ClientComponent) {\n addToImportMap(ClientComponent)\n }\n\n /*\n Now run for all possible sub-fields\n */\n if (resolvedFeature.nodes?.length) {\n for (const node of resolvedFeature.nodes) {\n if (typeof node?.getSubFields !== 'function') {\n continue\n }\n const subFields = node.getSubFields({})\n if (subFields?.length) {\n genImportMapIterateFields({\n addToImportMap,\n baseDir,\n config,\n fields: subFields,\n importMap,\n imports,\n })\n }\n }\n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,IAAIC,SAAA,EAAWT,MAAA,EAAQ;UACrBd,yBAAA,CAA0B;YACxBG,cAAA;YACAC,OAAA;YACAC,MAAA;YACAmB,MAAA,EAAQD,SAAA;YACRjB,SAAA;YACAC;UACF;QACF;MACF;IACF;EACF;AACF","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/richtext-lexical",
3
- "version": "3.41.0-canary.2",
3
+ "version": "3.41.0-internal.c079756",
4
4
  "description": "The officially supported Lexical richtext adapter for Payload",
5
5
  "homepage": "https://payloadcms.com",
6
6
  "repository": {
@@ -368,8 +368,8 @@
368
368
  "react-error-boundary": "4.1.2",
369
369
  "ts-essentials": "10.0.3",
370
370
  "uuid": "10.0.0",
371
- "@payloadcms/translations": "3.41.0-canary.2",
372
- "@payloadcms/ui": "3.41.0-canary.2"
371
+ "@payloadcms/translations": "3.41.0-internal.c079756",
372
+ "@payloadcms/ui": "3.41.0-internal.c079756"
373
373
  },
374
374
  "devDependencies": {
375
375
  "@babel/cli": "7.27.2",
@@ -388,16 +388,16 @@
388
388
  "esbuild": "0.25.5",
389
389
  "esbuild-sass-plugin": "3.3.1",
390
390
  "swc-plugin-transform-remove-imports": "4.0.4",
391
- "payload": "3.41.0-canary.2",
392
- "@payloadcms/eslint-config": "3.28.0"
391
+ "@payloadcms/eslint-config": "3.28.0",
392
+ "payload": "3.41.0-internal.c079756"
393
393
  },
394
394
  "peerDependencies": {
395
395
  "@faceless-ui/modal": "3.0.0-beta.2",
396
396
  "@faceless-ui/scroll-info": "2.0.0",
397
397
  "react": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
398
398
  "react-dom": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
399
- "@payloadcms/next": "3.41.0-canary.2",
400
- "payload": "3.41.0-canary.2"
399
+ "@payloadcms/next": "3.41.0-internal.c079756",
400
+ "payload": "3.41.0-internal.c079756"
401
401
  },
402
402
  "engines": {
403
403
  "node": "^18.20.2 || >=20.9.0"